  :root{
    --brick: #7a3b2e;
    --brick-dark: #5c2c22;
    --cream: #efe6d8;
    --paper: #fffcf8;
    --charcoal: #2b2622;
    --gold: #b08a3e;
    --gold-light: #d9b978;
    --steel: #6b7280;
    --steel-light: #e4e1da;
    --radius: 4px;
    --max: 1120px;
  }

  *{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }
  body{
    margin:0;
    font-family:"Public Sans", -apple-system, sans-serif;
    color: var(--charcoal);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  h1,h2,h3,.display{
    font-family:"Fraunces", Georgia, serif;
    font-weight: 600;
    color: var(--brick-dark);
    line-height: 1.15;
    margin: 0 0 0.5em;
  }
  p{ margin: 0 0 1em; }
  a{ color: var(--brick-dark); }
  img{ max-width:100%; display:block; }

  .wrap{ max-width: var(--max); margin: 0 auto; padding: 0 24px; }
  .skip-link{
    position:absolute; left:-9999px; top:0; background:var(--charcoal); color:#fff;
    padding: 10px 16px; z-index: 100; border-radius: 0 0 4px 0;
  }
  .skip-link:focus{ left:0; }

  /* -------- placeholder styling (widoczne, żeby nie zniknęło przed publikacją) -------- */
  .fill{
    background: #fff3c4;
    border: 1px dashed #a8862f;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.95em;
    color: #6b4f14;
    white-space: nowrap;
  }

  /* przyciski kwot */
  .button, .button1, .button2 {
		background: #fff3c4;
		border: 1px solid #a8862f;
		padding: 2px 4px;
		border-radius: 7px;
		font-weight: 600;
		font-size: 0.9em;
		color: #6b4f14;
		white-space: nowrap;
  }
  .button1, .button2 {width: stretch;}
  .button2 { padding:1em; }

#kwota_widoczna {
	text-align:right;
}

#wplata {
	width:stretch;
	margin-top: 2em;
}

#dodatkowe-informacje {
	width:stretch; height:6em;
}

#p24 {
	width: 170px;
	padding:10px;
	margin:0 auto;
	background-color: #fff;
}

#logo_fundacji {
	width: 100%;
	max-width: 12em;
	margin-left:2em;
	margin-right:2em;
}

  /* -------- top bar -------- */
  .topbar{
    background: var(--charcoal);
    color: var(--cream);
    font-size: 0.85rem;
    padding: 8px 0;
  }
  .topbar .wrap{ display:flex; justify-content: space-between; align-items:center; gap: 16px; flex-wrap: wrap;}
  .topbar a{ color: var(--gold-light); text-decoration:none; }

  /* -------- hero -------- */
  .hero{
    position: relative;
    color: #fff;
    display:flex;
    align-items:flex-end;
    min-height: 82vh;
    background: var(--charcoal);
  }
  .hero img{
    position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position: center 30%;
    opacity: 0.55;
  }
  .hero::after{
    content:"";
    position:absolute; inset:0;
    background: linear-gradient(180deg, rgba(43,38,34,0.15) 0%, rgba(43,38,34,0.55) 55%, rgba(43,38,34,0.92) 100%);
  }
  .hero-content{ position: relative; z-index: 2; padding: 64px 0 56px; width:100%; }
  .eyebrow{
    display:inline-flex; align-items:center; gap:10px;
    text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight:600;
    color: var(--gold-light); margin-bottom: 18px;
  }
  .eyebrow::before{ content:""; width:28px; height:1px; background: var(--gold-light); display:inline-block; }
  
  .hero h1{
    color:#fff; font-size: clamp(2rem, 5vw, 3.4rem); max-width: 16ch;
  }
  .hero .stat-line{
    font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight:500; color: var(--cream); max-width: 46ch; margin-bottom: 28px;
  }
  .hero .stat-line strong{ color:#fff; }
  .cta-row{ display:flex; gap:14px; flex-wrap:wrap; }

  .btn{
    display:inline-flex; align-items:center; justify-content:center;
    padding: 15px 30px; border-radius: var(--radius); font-weight:700; font-size:1rem;
    text-decoration:none; border: 2px solid transparent; cursor:pointer; transition: transform .15s ease, background .15s ease;
    font-family:"Public Sans", sans-serif;
  }
  .btn:hover{ transform: translateY(-1px); }
  .btn-primary{ background: var(--gold); color: var(--charcoal); }
  .btn-primary:hover{ background: var(--gold-light); }
  .btn-outline{ background: transparent; color:#fff; border-color: rgba(255,255,255,0.6); }
  .btn-outline:hover{ border-color:#fff; background: rgba(255,255,255,0.08); }
  .btn-block{ background: var(--brick); color:#fff; }
  .btn-block:hover{ background: var(--brick-dark); }

  /* -------- floor shaft signature graphic -------- */
  .shaft-band{ background: var(--cream); padding: 46px 0 36px; border-bottom: 1px solid #e2d5bf; }
  .shaft-caption{ text-align:center; font-size:0.95rem; color: var(--steel); max-width: 46ch; margin: 14px auto 0; }
  .shaft-svg{ width:100%; height:auto; display:block; }

  /* -------- sections -------- */
  section{ padding: 84px 0; }
  .section-narrow{ max-width: 990px; margin:0 auto; }
  .kicker{
    text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight:700; color: var(--brick);
    margin-bottom: 10px;
	align-items: center;
	display: inline-flex;
    gap: 10px;
  }
  .kicker::before{ content:""; width:28px; height:1px; background: var(--brick); display:inline-block; }
  .lede{ font-size: 1.2rem; color: #4a423b; font-weight: 600; }

  blockquote.pull{
    border-left: 4px solid var(--gold);
    margin: 40px 0;
    padding: 4px 0 4px 28px;
    font-family:"Fraunces", serif;
    font-size: 1.5rem;
    font-weight:500;
    color: var(--brick-dark);
    font-style: italic;
  }

  .two-col{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items:center; }
  .photo-frame{ border: 8px solid var(--paper); box-shadow: 0 10px 30px rgba(43,38,34,0.18); }
  .photo-frame figcaption{
    font-size: 0.85rem; color: var(--steel); padding-top:10px; font-style: italic;
  }

  .bg-charcoal{ background: var(--charcoal); color: var(--steel-light); }
  .bg-charcoal h2{ color:#fff; }
  .bg-charcoal .kicker{ color: var(--gold-light); }

  .checklist{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; }
  .checklist li{ position:relative; padding-left: 34px; }
  .checklist li::before{
    content:"✓"; position:absolute; left:0; top:0;
    width:22px; height:22px; border-radius:50%; background: var(--gold);
    color: var(--charcoal); font-size:0.8rem; font-weight:800; display:flex; align-items:center; justify-content:center;
  }

  .funds-list{ list-style: none; margin:0; padding:0; counter-reset: fundcount; }
  .funds-list li{
    counter-increment: fundcount;
    display:flex; gap:18px; padding: 18px 0; border-bottom: 1px solid var(--steel-light);
  }
  .funds-list li::before{
    content: counter(fundcount, decimal-leading-zero);
    font-family:"Fraunces", serif; font-weight:600; color: var(--gold); font-size:1.1rem; flex-shrink:0;
  }

  /* -------- progress / counter -------- */
  .progress-card{
    background: var(--paper); border: 1px solid var(--steel-light); border-radius: 8px;
    padding: 36px; box-shadow: 0 4px 20px rgba(43,38,34,0.06);
  }
  .progress-numbers{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom: 14px; flex-wrap:wrap; gap:8px;}
  .progress-numbers .amount{ font-family:"Fraunces", serif; font-size: 2rem; font-weight:600; color: var(--brick-dark); }
  .progress-numbers .goal{ color: var(--steel); font-size:0.95rem; }
  .shaft-progress{
    height: 34px; background: var(--steel-light); border-radius: 4px; overflow:hidden; position:relative;
    border: 1px solid #d8d2c6;
  }
  .shaft-progress-fill{
    height:100%; width: var(--pct, 22%);
    background: linear-gradient(90deg, var(--gold) 0%, var(--brick) 100%);
    transition: width 1.2s ease;
  }
  .progress-pct{ text-align:right; margin-top:8px; font-weight:700; color: var(--brick-dark); font-size:0.95rem;}

  /* -------- payment box -------- */
  .pay-box{
    background: var(--brick); color:#fff; border-radius: 8px; padding: 40px;
    display:grid; grid-template-columns: 1fr 1fr; gap: 28px;
  }
  .pay-box h3{ color:#fff; margin-bottom: 18px; font-size:1.3rem; }
  .pay-field{ margin-bottom:2em; }
  .pay-field .label{ text-transform:uppercase; letter-spacing:0.08em; font-size:0.72rem; color: var(--gold-light); font-weight:700; margin-bottom:4px;}
  .pay-field .value{ font-size:1.05rem; font-weight:600; word-break:break-word; }
  .pay-box .fill{ color: #6b4f14; }

  /* -------- news stub -------- */
  .news-item{ border-left: 3px solid var(--gold); padding-left: 20px; margin-bottom: 26px; }
  .news-date{ font-size:0.82rem; color: var(--steel); text-transform:uppercase; letter-spacing:0.06em; font-weight:700; }

  /* -------- share / slogans -------- */
  .tag-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 22px; }
  .tag{ background: var(--cream); color: var(--brick-dark); padding: 7px 14px; border-radius:20px; font-size:0.85rem; font-weight:600;}

  /* -------- consent notice -------- */
  .notice{
    background: #fbeee9; border: 1px solid #e0b6a6; border-radius: 6px; padding: 20px 24px; font-size:0.92rem; color:#5c2c22;
  }
  .notice strong{ display:block; margin-bottom:6px; }

  footer{ background: var(--charcoal); color: var(--steel-light); padding: 56px 0 30px; font-size:0.92rem; }
  footer .wrap{ display:grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
  footer h4{ color:#fff; font-family:"Public Sans"; font-size:0.85rem; text-transform:uppercase; letter-spacing:0.08em; margin-bottom:14px;}
  footer ul{ list-style:none; padding:0; margin:0; }
  footer li{ margin-bottom:8px; }
  footer a{ color: var(--steel-light); text-decoration:none; }
  footer a:hover{ text-decoration:underline; }
  .fine{ margin-top:40px; padding-top:20px; /*border-top:1px solid #443c34;*/ font-size:0.8rem; color:#9a938a; }

  a:focus-visible, button:focus-visible{ outline: 3px solid var(--gold); outline-offset: 2px; }

  .center {text-align:center; }
  .right {float:right; margin-right: 3em; display: flex; align-items: center; /*display:none;*/}
  .left {float:left; margin-left: 3em;}
  
  
  @media (max-width: 860px){
    .two-col{ grid-template-columns: 1fr; }
    .checklist{ grid-template-columns: 1fr; }
    .pay-box{ grid-template-columns: 1fr; }
    footer .wrap{ grid-template-columns: 1fr; gap: 28px; }
    section{ padding: 56px 0; }
	.right, .left {width: 80%; float:none; clear:both; margin:0 auto;; text-align: center;}
	.right {display: flex; margin: 0 auto; width: fit-content;  }
  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto; }
    .shaft-progress-fill{ transition:none; }
  }
}
  
  
  
  /* -------- Galeria: przycisk -------- */
.gallery-trigger{
  cursor: pointer;
}

/* -------- Lightbox -------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 17, 15, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open {
  display: flex;
}
.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img{
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border-radius: 2px;
  opacity: 1;
  /*transition: opacity 200ms ease;*/
  -webkit-transition: all .3s ease-in-out;
  -moz-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
}
/*
.lightbox img.is-fading{
  opacity: 0;
}
*/
.lightbox-caption{
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  font-size: 0.95rem;
  text-align: center;
  max-width: 80vw;
  padding: 0 16px;
}
.lightbox-counter{
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next{
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  transition: background .15s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover{
  background: rgba(255,255,255,0.2);
}
.lightbox-close{ top: 20px; right: 20px; }
.lightbox-prev{ left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next{ right: 20px; top: 50%; transform: translateY(-50%); } 

@media (max-width: 640px){
  .lightbox-prev, .lightbox-next{ width: 42px; height: 42px; font-size: 1.2rem; }
  .lightbox-prev{ left: 8px; }
  .lightbox-next{ right: 8px; }
  .lightbox-close{ top: 10px; right: 10px; }
}

.link_formularz {
	color: #fff3c4;
}