/* Strona projektu Fundacji (np. Dom Wytchnienia). Szkielet i wspolne sekcje z karta.css. */
.k-project{background:var(--violet)}
.k-backers{display:flex;align-items:center;justify-content:center;gap:7px;margin:-4px 0 10px;font-size:13px;color:var(--soft)}
.k-backers svg{width:18px;height:18px;padding:3px;border-radius:50%;background:var(--green);stroke:#fff;stroke-width:2.4}
.k-backers b{color:var(--ink)}

.kp-row{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:14px;align-items:stretch}
.kp-row.even{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.kp-about h2,.kp-steps h2,.kp-bricks h2,.kp-news h2,.kp-gallery h2{font-size:23px}
.kp-text p{margin:0 0 10px;font-size:15px;line-height:1.6;color:#3a5667}
.kp-text p:last-child{margin-bottom:0}

/* Etapy */
.kp-steps ol{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:4px}
.kp-steps li{position:relative;display:flex;gap:14px;align-items:flex-start;padding-bottom:12px}
.kp-steps li:not(:last-child):before{content:"";position:absolute;left:14px;top:30px;bottom:-2px;width:2px;background:#e3ebef}
.kp-steps li.zrobiony:not(:last-child):before{background:var(--green)}
.kp-dot{position:relative;z-index:1;flex:0 0 30px;height:30px;border-radius:50%;display:grid;place-items:center;font:900 13px Nunito,sans-serif;background:#eef3f5;color:var(--soft)}
.kp-steps .zrobiony .kp-dot{background:var(--green);color:#fff}
.kp-steps .zrobiony .kp-dot svg{width:17px;height:17px;stroke:#fff;stroke-width:3}
.kp-steps .w_trakcie .kp-dot{background:var(--pink);color:#fff;box-shadow:0 0 0 5px #ffe3ee}
.kp-steps li>div{flex:1;min-width:0;padding-top:5px}
.kp-steps b{font-size:15px}
.kp-steps .planowany b{color:var(--soft);font-weight:600}
.kp-step-bar{display:flex;align-items:center;gap:10px;margin:8px 0 0}
.kp-step-bar i{flex:1;height:8px;border-radius:8px;background:#e8eef1;overflow:hidden}
.kp-step-bar span{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#ff4f8f,var(--pink))}
.kp-step-bar small{font-weight:800;color:var(--ink)}

/* Cegielki */
.kp-bricks-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:14px}
.kp-brick{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid var(--edge);border-radius:18px;transition:transform .2s,box-shadow .2s,border-color .2s}
.kp-brick:hover{transform:translateY(-3px);border-color:#ffc2d8;box-shadow:0 12px 26px rgba(255,23,107,.12)}
.kp-brick b{display:block;font:900 22px Nunito,sans-serif}
.kp-brick small{display:block;font-size:13px;color:var(--soft);margin:2px 0 8px;line-height:1.35}
.kp-brick em{font-style:normal;font-weight:800;font-size:13px;color:var(--pink)}
.kp-brick-icon{flex:0 0 58px;height:58px;border-radius:16px;background:#fff1f6 center/34px no-repeat}
.kp-brick-icon.serce{background-image:url("../images/icon-heart.f236937d347b.png")}
.kp-brick-icon.roslina{background-color:#ecf9e0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2359b900' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 14h10l-1.5 7h-7zM12 14V8m0 0c0-3 2-5 5-5 0 3-2 5-5 5Zm0 2c0-2.5-1.7-4-4-4 0 2.5 1.7 4 4 4Z'/%3E%3C/svg%3E")}
.kp-brick-icon.mis{background-color:#fff4e3;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9820b' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='6.5' cy='6.5' r='2.5'/%3E%3Ccircle cx='17.5' cy='6.5' r='2.5'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='14' r='2'/%3E%3Cpath d='M10 10.5h.01M14 10.5h.01'/%3E%3C/svg%3E")}
.kp-brick-icon.dom{background-color:#eaf6fd;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2309a4dc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11 12 4l8 7v9h-5v-5h-6v5H4z'/%3E%3C/svg%3E")}

/* Aktualnosci */
.kp-news-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
.kp-news-grid img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:14px;display:block}
.kp-news-grid time{display:block;margin:8px 0 3px;font-size:12.5px;color:var(--soft)}
.kp-news-grid h3{font-size:15px;line-height:1.3}

/* Partnerzy */
.kp-partners{display:flex;flex-direction:column;justify-content:space-between;gap:16px;background:#fff;border-radius:var(--r);box-shadow:var(--sh);padding:18px 20px}
.kp-partners .k-partners{background:none;box-shadow:none;padding:0;border-radius:0}
.kp-partner-btn{align-self:center}

/* Galeria */
.kp-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}
.kp-gallery-grid img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px;display:block}

@media(prefers-reduced-motion:reduce){.kp-brick{transition:none}}
@media(max-width:1280px){.kp-bricks-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){
  .kp-row,.kp-row.even{grid-template-columns:1fr}
  .kp-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .kp-bricks-grid{grid-template-columns:1fr;gap:10px}
  .kp-brick{padding:12px}
  .kp-news-grid{grid-template-columns:1fr}
}

.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.k-photo-copy h1.kp-title{font-size:54px;white-space:nowrap}

/* Wsparcie w polowie szerokosci: zwarta lista jak na makiecie */
.kp-row .k-support .k-head{flex-wrap:wrap;gap:8px 12px}
.kp-row .k-support .k-write{margin-left:auto}
.kp-row .k-feed li{grid-template-columns:32px minmax(0,1fr) auto;grid-template-areas:"ikona kto czas" "ikona tekst tekst";gap:2px 12px;padding:10px 2px}
.kp-row .k-feed-icon{grid-area:ikona}
.kp-row .k-feed-who{grid-area:kto}
.kp-row .k-feed-time{grid-area:czas}
.kp-row .k-feed-text{grid-area:tekst;font-size:13px}
.kp-row .k-likes,.kp-row .k-dots{display:none}
.kp-row .k-support-foot{grid-template-columns:1fr;gap:12px;justify-items:center}
.kp-row .k-anon{display:none}
@media(max-width:1280px){.k-photo-copy h1.kp-title{font-size:44px;white-space:normal}}

/* Kampania z blokami opisu, progami i sugerowanymi kwotami (np. Swieta razem z Team Espero) */
.k-project.kp-kampania{background:var(--pink)}
.k-photo-copy h1.kp-title.kp-title-dlugi{white-space:normal;font-size:60px;line-height:1.02;max-width:520px}
.k-hero.kp-hero-kwoty .k-photo-copy{max-width:min(600px,82%);bottom:42px}
.k-photo-copy .kp-haslo{margin-top:12px;max-width:440px;font:700 40px/1.05 Caveat,cursive;transform:rotate(-3deg);transform-origin:left;text-shadow:0 2px 10px rgba(0,0,0,.35)}
.k-hero.kp-hero-kwoty{grid-template-columns:minmax(0,1fr) 360px}
.k-hero.kp-hero-kwoty .k-photo{min-height:520px}

/* Karta celu: wybor kwoty */
.kp-kwoty{align-self:stretch;text-align:left;margin-top:4px}
.kp-kwoty h2{font-size:17px;margin:4px 0 10px!important}
.kp-kwoty-lista{display:grid;gap:7px;margin-bottom:12px}
.kp-kwota{display:grid;grid-template-columns:18px 80px minmax(0,1fr);align-items:center;gap:8px;padding:9px 11px;border:1px solid var(--edge);border-radius:12px;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.kp-kwota:hover{border-color:#ffc2d8}
.kp-kwota input{margin:0;width:17px;height:17px;accent-color:var(--pink)}
.kp-kwota b{font:900 15px Nunito,sans-serif;white-space:nowrap}
.kp-kwota small{font-size:11.5px;line-height:1.3;color:var(--soft)}
.kp-kwota:has(input:checked){border:2px solid var(--pink);padding:8px 10px;box-shadow:0 6px 16px rgba(255,23,107,.12)}
.kp-kwota:has(input:checked) b{color:var(--pink)}
.kp-kwota:has(input:focus-visible){outline:2px solid var(--pink);outline-offset:2px}
.kp-kwoty .k-btn-pay{width:100%;border:0;cursor:pointer;font-size:15px;letter-spacing:.3px}

/* Ikony kampanii */
.kp-ikona{width:18px;height:18px;flex:0 0 auto}
.kp-ikona.choinka{fill:#2f9e44}
.kp-ikona.serce{fill:var(--pink)}
.kp-ikona.gwiazda{fill:#f5af00}
.kp-ikona.ok{fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}

/* Pasek progow */
.kp-progi{padding:18px 22px 22px}
.kp-progi-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.kp-progi-head h2{font-size:23px}
.kp-progi-head p{margin:0;font-size:14px;color:var(--soft)}
.kp-progi-head p b{color:var(--ink)}
.kp-progi-lista{list-style:none;margin:20px 0 0;padding:0;display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column}
.kp-prog{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center}
.kp-prog:before{content:"";position:absolute;top:18px;right:50%;left:-50%;border-top:2px dashed #d5e0e5;z-index:0}
.kp-prog:first-child:before{display:none}
.kp-prog.linia-pelna:before{border-top:3px solid var(--pink)}
.kp-prog.linia-w_drodze:before{border-top:3px dashed var(--pink)}
.kp-prog-kropka{position:relative;z-index:1;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e8eef1;box-shadow:0 0 0 5px #fff}
.kp-prog-kropka .kp-ikona{width:20px;height:20px;fill:#fff}
.kp-prog.osiagniety .kp-prog-kropka{background:var(--green)}
.kp-prog.biezacy .kp-prog-kropka{background:var(--pink);box-shadow:0 0 0 5px #ffe3ee}
.kp-prog.przyszly .kp-prog-kropka .kp-ikona.serce,.kp-prog.biezacy .kp-prog-kropka .kp-ikona.serce{fill:#fff}
.kp-prog.przyszly:last-child .kp-prog-kropka{background:#ffe3ee}
.kp-prog.przyszly:last-child .kp-prog-kropka .kp-ikona.serce{fill:var(--pink)}
.kp-prog-opis{margin-top:12px;display:flex;flex-direction:column;align-items:center}
.kp-prog-tytul{display:flex;align-items:center;gap:6px;margin:0;font-size:14px;font-weight:600}
.kp-prog-kwota{font:900 16px Nunito,sans-serif;margin-top:2px}
.kp-prog.biezacy .kp-prog-tytul,.kp-prog.biezacy .kp-prog-kwota{color:var(--pink)}
.kp-prog.przyszly:last-child .kp-prog-tytul{font-weight:800;text-transform:uppercase}
.kp-dymek{position:relative;margin-top:12px;max-width:260px;padding:10px 14px;border-radius:14px;background:#fff0f5;color:#c2185b;font-size:13px;font-weight:600;line-height:1.4}
.kp-dymek:before{content:"";position:absolute;top:-7px;left:50%;margin-left:-7px;border:7px solid transparent;border-top:0;border-bottom-color:#fff0f5}
.kp-dymek p{margin:0}
.kp-dymek p+p{margin-top:6px}

/* Opis z blokow + wsparcie obok */
.kp-row.kp-opis-row{grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:start}
.kp-row.kp-pojedynczy{grid-template-columns:1fr}
.kp-opis h2{font-size:23px;margin-bottom:10px!important}
.kb{margin:0 0 16px}
.kb:last-child{margin-bottom:0}
.kb p{margin:0 0 10px;font-size:15px;line-height:1.6;color:#3a5667}
.kb p:last-child{margin-bottom:0}
.kb strong{color:var(--ink)}
.kb h3,.kb-naglowek{font-size:20px;line-height:1.25}
.kb.kb-naglowek{margin:24px 0 10px}
.kb-akapit h3{margin-bottom:8px}
.kb-wyroznienie{padding:14px 18px;border-left:4px solid var(--pink);border-radius:4px 14px 14px 4px;background:#fff3f7}
.kb-wyroznienie p{margin:0 0 2px;color:#e0115f;font-weight:600}
.kb-wyroznienie p strong{color:var(--ink);font-weight:800}
.kb-cytat{position:relative;display:flex;align-items:center;gap:14px;padding:16px 20px;border-radius:16px;background:linear-gradient(90deg,#fff0f5,#fff7fa)}
.kb-cudzyslow{font:900 72px/0.6 Georgia,serif;color:var(--pink);transform:translateY(14px)}
.kb-cytat blockquote{margin:0}
.kb-cytat blockquote p{margin:0;font:700 34px/1.15 Caveat,cursive;color:var(--ink)}
.kb-cytat figcaption{font-size:13px;color:var(--soft)}
.kb-cytat-serce{color:var(--pink);font-size:24px}
.kb-zdjecie img{display:block;width:100%;border-radius:16px}
.kb-zdjecie figcaption{margin-top:6px;font-size:13px;color:var(--soft)}
.kb-cta{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:16px;background:#fff0f5}
.kb-cta>.kp-ikona{width:26px;height:26px}
.kb-cta-tekst{flex:1;min-width:0}
.kb-cta-tekst p{color:#d81b60;font-size:14px;line-height:1.45}
.kb-cta.sam-przycisk{justify-content:center;background:none;padding:0}
.kb-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:12px;background:linear-gradient(#ff3d86,var(--pink));color:#fff!important;font:900 14px Nunito,sans-serif;letter-spacing:.3px;white-space:nowrap;box-shadow:0 10px 20px rgba(255,23,107,.25);transition:transform .15s}
.kb-btn:hover{transform:translateY(-2px)}
.kb-btn svg{width:18px;height:18px;fill:#fff}
.kb-wstep p{font-weight:700;color:var(--ink)}
.kb-kafle h3{margin-bottom:6px}
.kb-kafle-lista{list-style:none;margin:12px 0 10px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.kb-kafle-lista li{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--edge);border-radius:14px;background:#fff}
.kb-kafle-lista b{display:block;font:900 20px Nunito,sans-serif}
.kb-kafle-lista small{display:block;font-size:12px;line-height:1.3;color:var(--soft)}
.kb-cennik .kb-kafle-lista li{align-items:flex-start}
.kb-kafel-ikona{flex:0 0 44px;width:44px;height:44px;border-radius:12px;background:#fff1f6 center/26px no-repeat}
.kb-kafel-ikona.dorosli{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff176b'%3E%3Ccircle cx='8' cy='6' r='2.6'/%3E%3Ccircle cx='16' cy='6' r='2.6'/%3E%3Cpath d='M4.5 21v-7.5c0-2 1.4-3.5 3.5-3.5s3.5 1.5 3.5 3.5V21zm8 0v-7.5c0-2 1.4-3.5 3.5-3.5s3.5 1.5 3.5 3.5V21z'/%3E%3C/svg%3E")}
.kb-kafel-ikona.nastolatek{background-color:#ecf9e0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2359b900'%3E%3Ccircle cx='12' cy='5.5' r='3'/%3E%3Cpath d='M7 21v-7c0-2.6 2.2-4.5 5-4.5s5 1.9 5 4.5v7h-3.2v-5h-3.6v5z'/%3E%3C/svg%3E")}
.kb-kafel-ikona.dziecko{background-color:#fff4e3;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8910c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='6' r='3'/%3E%3Cpath d='M6 11.5l6 1.5 6-1.5M12 13v3.5M8.5 21l3.5-4.5 3.5 4.5'/%3E%3C/svg%3E")}
.kb-kafel-ikona.maluch{background-color:#eaf6fd;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2309a4dc' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='9' r='4.5'/%3E%3Cpath d='M10.5 8.5h.01M13.5 8.5h.01M10.8 11c.7.5 1.7.5 2.4 0M7 21c0-3 2.2-5 5-5s5 2 5 5M12 4.5V3'/%3E%3C/svg%3E")}
.kb-podsumowanie{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 0;margin:0!important;padding:10px 14px;border-radius:12px;background:#f1f6f8;font-size:14px!important;color:var(--ink)!important;font-weight:600}
.kb-podsumowanie span+span:before{content:"\00B7";margin:0 10px;color:var(--soft)}
.kb-podsumowanie span.etykieta+span:before{content:"";margin:0 0 0 6px}
.kb-podsumowanie strong{font-weight:800}
.kb-udostepnij{display:flex;align-items:center;gap:18px;padding:16px 18px;border-radius:16px;background:#fff0f5}
.kb-udostepnij-tekst{flex:1;min-width:0}
.kb-udostepnij h3{display:flex;align-items:center;gap:8px;font-size:16px;color:#d81b60;margin-bottom:8px}
.kb-udostepnij h3 .kp-ikona{width:24px;height:24px}
.kb-udostepnij p{font-size:14px;line-height:1.5;margin-bottom:6px}
.kb-btn-obrys{display:inline-flex;align-items:center;gap:8px;padding:11px 18px;border:2px solid var(--pink);border-radius:12px;background:#fff;color:var(--pink);font:900 14px Nunito,sans-serif;letter-spacing:.3px;white-space:nowrap;cursor:pointer}
.kb-btn-obrys svg{width:18px;height:18px;fill:none;stroke:var(--pink);stroke-width:2}
.kb-btn-obrys:hover{background:#fff0f5}
.kb-btn-obrys.ok{border-color:var(--green);color:#3d8a00}

@media(prefers-reduced-motion:reduce){.kb-btn,.kp-kwota{transition:none}}
@media(max-width:1100px){
  .kp-row.kp-opis-row{grid-template-columns:1fr}
  .k-hero.kp-hero-kwoty{grid-template-columns:1fr}
  .k-hero.kp-hero-kwoty .k-photo{min-height:420px}
  .k-photo-copy h1.kp-title.kp-title-dlugi{font-size:38px}
  .k-photo-copy .kp-haslo{font-size:27px}
}
@media(max-width:700px){
  .kp-progi-lista{grid-auto-flow:row;grid-auto-columns:auto;gap:0;margin-top:14px}
  .kp-prog{flex-direction:row;align-items:flex-start;text-align:left;gap:14px;padding-bottom:16px}
  .kp-prog:before{display:none}
  .kp-prog:after{content:"";position:absolute;top:38px;bottom:0;left:18px;border-left:2px dashed #d5e0e5}
  .kp-prog:last-child:after{display:none}
  .kp-prog.po-pelna:after{border-left:3px solid var(--pink);left:17.5px}
  .kp-prog.po-w_drodze:after{border-left:3px dashed var(--pink);left:17.5px}
  .kp-prog-opis{margin-top:4px;align-items:flex-start}
  .kp-dymek{max-width:none}
  .kp-dymek:before{left:22px}
  .kb-kafle-lista{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kb-kafle-lista li{flex-direction:column;align-items:flex-start}
  .kb-cennik .kb-kafle-lista{grid-template-columns:1fr}
  .kb-cennik .kb-kafle-lista li{flex-direction:row}
  .kb-cta,.kb-udostepnij{flex-direction:column;align-items:stretch;text-align:left}
  .kb-cta>.kp-ikona{display:none}
  .kb-btn,.kb-btn-obrys{justify-content:center;white-space:normal}
  .kb-cytat blockquote p{font-size:28px}
  .kb-podsumowanie{flex-direction:column;align-items:center;gap:4px}
  .kb-podsumowanie span+span:before{content:none}
}
@media(max-width:420px){
  .k-photo-copy h1.kp-title.kp-title-dlugi{font-size:32px}
  .k-photo-copy .kp-haslo{font-size:23px}
}
