/* Spójny rytm, złote światło i spokojny ruch. */
:root { --line: #d7d9dd; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.section { padding-block: clamp(64px, 7.4vw, 106px); }
.site-header { border-bottom-color: #c4a56b30; }
.site-header::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: linear-gradient(90deg,#a78d54,#e8cf98); transform: scaleX(var(--reading-progress,0)); transform-origin: left; pointer-events: none; }
.hero { height: auto; max-height: none; min-height: calc(100svh - var(--header-height)); display: flex; flex-direction: column; }
.hero-inner { height: auto; flex: 1; min-height: calc(100svh - var(--header-height) - 80px); padding-block: 64px 60px; }
.hero-bottom { position: relative; bottom: auto; left: auto; right: auto; min-height: 80px; padding-block: 18px; border-top: 1px solid #f6e8c326; }
.hero h1 { font-size: clamp(4.7rem,7.6vw,7.5rem); }
.hero h1 em { color: #e8cfa0; }
.hero-shade { background: linear-gradient(90deg,#162439ba 0%,#1624396e 39%,#16243908 75%),linear-gradient(0deg,#1624398a,transparent 45%); }
.hero-atmosphere { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sunlight-rays { position: absolute; inset: -15%; opacity: .58; background: conic-gradient(from 100deg at 92% 44%,transparent 0deg,#ffdc9029 8deg,transparent 16deg,transparent 26deg,#ffe6a21c 34deg,transparent 44deg,transparent 57deg,#ffde8e20 65deg,transparent 74deg); mix-blend-mode: screen; transform-origin: 92% 44%; }
.cursor-light { position: absolute; width: 560px; height: 560px; left: var(--light-x,78%); top: var(--light-y,48%); transform: translate(-50%,-50%); background: radial-gradient(ellipse,#ffe2a320,transparent 66%); opacity: .8; }
.sun-motes { position: absolute; inset: 0; }
.sun-motes i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #ffe8b7; box-shadow: 0 0 12px 3px #ffe1a04d; opacity: 0; left: 67%; top: 55%; }
.sun-motes i:nth-child(2) { left: 81%; top: 69%; animation-delay: -3s; }
.sun-motes i:nth-child(3) { left: 59%; top: 39%; animation-delay: -7s; width: 2px; height: 2px; }
.sun-motes i:nth-child(4) { left: 93%; top: 61%; animation-delay: -11s; }
.sun-motes i:nth-child(5) { left: 74%; top: 32%; animation-delay: -5s; width: 2px; height: 2px; }
.sun-motes i:nth-child(6) { left: 51%; top: 72%; animation-delay: -14s; }
.sun-motes i:nth-child(7) { left: 88%; top: 25%; animation-delay: -9s; width: 2px; height: 2px; }
.sun-motes i:nth-child(8) { left: 63%; top: 82%; animation-delay: -17s; }
.motion-active .hero-photo { animation: landscape-breathe 24s ease-in-out infinite alternate; }
.motion-active .sunlight-rays { animation: sunlight-sway 18s ease-in-out infinite alternate; }
.motion-active .sun-motes i { animation-name: mote-rise; animation-duration: 19s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
.motion-active .intro-sun svg, .motion-active .cta-symbol svg { animation: solar-turn 100s linear infinite; }
.motion-active .scroll-line { transform-origin: top; animation: scroll-breathe 2.8s ease-in-out infinite; }
.motion-active .hero-inner > * { animation: welcome-in 1s ease both; }
.motion-active .hero-inner h1 { animation-delay: .12s; }
.motion-active .hero-inner .hero-lead { animation-delay: .22s; }
.motion-active .hero-inner .button-group { animation-delay: .32s; }
.motion-toggle { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #e2cf9e52; border-radius: 2px; min-height: 44px; padding: 9px 13px; background: #16243933; color: #f1e5ca; font-family: var(--sans); font-size: .75rem; letter-spacing: 0; cursor: pointer; white-space: nowrap; }
.motion-toggle:hover { background: #f1e5ca14; border-color: #e2cf9e9c; }
.motion-toggle:focus-visible { outline-color: #edc563; }
.motion-toggle-icon { display: block; width: 8px; height: 11px; border-inline: 2px solid currentColor; }
.motion-toggle[data-motion-enabled="false"] .motion-toggle-icon { border: 0; width: 10px; height: 10px; background: currentColor; clip-path: polygon(0 0,100% 50%,0 100%); }
.page-intro { border-bottom: 1px solid #c5ccd43d; background: radial-gradient(ellipse at 92% 15%,#e4d7af35,transparent 48%),linear-gradient(115deg,#f7f6f2,#efeee9); }
.page-intro::after { content: ''; position: absolute; bottom: 0; left: 0; width: 26%; height: 1px; background: linear-gradient(90deg,transparent,#b89b64,transparent); }
.page-shortcuts a { transition: color .2s,border-color .2s; }
.intro-grid { align-items: start; }
.introduction .body-copy { padding-top: 5px; }
.identity-strip { margin-top: 56px; }
.values-section, .values-detail { background: radial-gradient(ellipse at 95% 0,#41577755,transparent 65%),var(--forest); }
.values-grid article svg, .value-symbol svg { transition: transform .5s ease,color .5s ease; }
.values-grid article:hover > svg, .value-row:hover svg { transform: translateY(-5px) rotate(6deg); color: #e5cd95; }
.daily-image { border-radius: 2px; box-shadow: 18px 18px 0 #e5e7e9; }
.image-label { font-size: 1.8rem; }
.community-values-grid { gap: 56px; }
.community-values-grid article { padding: 30px 34px; background: #f7f6f266; border: 1px solid #b7955047; border-top: 2px solid #b7955080; transition: background .35s,box-shadow .35s; }
.community-values-grid article:hover { background: #f7f6f2; box-shadow: 0 16px 40px #20324908; }
.local-values-more { margin-top: 32px; }
.document-item { transition: border-color .3s,box-shadow .3s; }
.document-item:hover { border-color: #b59a66; box-shadow: 0 10px 28px #2032490a; }
.document-item--featured:hover { box-shadow: 0 10px 32px #2032491c; }
.contact-local, .donation-card, .friends-intro-card { box-shadow: 0 15px 40px #1624390b; }
.faq-plus::after { transition: transform .25s ease; }
.faq-item summary { transition: color .2s; }
.faq-item[open] .faq-answer { animation: answer-in .28s ease; }
.cta-section { position: relative; overflow: hidden; background: radial-gradient(ellipse at 5% 100%,#e7d6ae55,transparent 65%),#efeee9; }
.cta-inner { position: relative; }
.footer-brand > p.footer-description { font-family: var(--sans); color: #c9d1dc; font-size: .95rem; line-height: 1.8; max-width: 340px; margin-top: 22px; }
.footer-address { padding-top: 20px; border-top: 1px solid #ffffff20; max-width: 350px; }
.footer-tools { display: flex; align-items: center; gap: 28px; }
.footer-tools .motion-toggle { border: 0; background: transparent; padding-inline: 0; color: #dbe2eb; }
.footer-bottom { align-items: center; }
.donation-card .account-copy-status { display: block; min-height: 3.6em; }
#dokumenty-gminy, #dokumenty-kosciola, #statut, #rozum-i-dzialanie, .faq-group { scroll-margin-top: 0; }
.motion-active [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease,transform .7s cubic-bezier(.2,.7,.25,1); transition-delay: var(--reveal-delay,0ms); }
.motion-active [data-reveal].is-revealed, .motion-active [data-reveal]:focus-within { opacity: 1; transform: none; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; transition: none !important; }
.motion-paused { scroll-behavior: auto; }
.motion-paused [data-reveal] { opacity: 1 !important; transform: none !important; }
.motion-paused .hero-photo, .motion-paused .intro-sun svg, .motion-paused .cta-symbol svg { transform: none; }
.motion-paused .cursor-light, .motion-paused .sun-motes { display: none; }
.motion-suspended *, .motion-suspended *::before, .motion-suspended *::after { animation-play-state: paused !important; }
@keyframes landscape-breathe { from { transform: scale(1); } to { transform: scale(1.035); } }
@keyframes sunlight-sway { from { transform: rotate(-3deg); opacity: .35; } to { transform: rotate(3deg); opacity: .75; } }
@keyframes mote-rise { 0%,100% { transform: translate(0,30px); opacity: 0; } 30% { opacity: .5; } 80% { transform: translate(25px,-55px); opacity: .15; } }
@keyframes solar-turn { to { transform: rotate(360deg); } }
@keyframes scroll-breathe { 0%,100% { transform: scaleY(.65); opacity: .45; } 50% { transform: scaleY(1); opacity: .9; } }
@keyframes welcome-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes answer-in { from { opacity: .4; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@media (max-width:960px) { .daily-image { box-shadow: 12px 12px 0 #e5e7e9; } .community-values-grid { gap: 30px; } }
@media (max-width:700px) {
  .hero-inner { min-height: calc(100svh - var(--header-height) - 80px); padding-block: 48px 42px; }
  .hero h1 { font-size: clamp(3.8rem,14.2vw,5.8rem); }
  .hero .eyebrow { margin-bottom: 23px; }
  .hero-bottom { gap: 12px; min-height: 80px; padding-block: 16px; }
  .hero-bottom > span:first-child { display: none; }
  .hero-bottom > a { font-size: .75rem; letter-spacing: 0; max-width: 170px; }
  .hero-bottom .motion-toggle { font-size: .7rem; padding-inline: 8px; gap: 8px; }
  .hero-shade { background: linear-gradient(90deg,#1624399e,#20324930),linear-gradient(0deg,#162439d9,transparent 80%); }
  .sun-motes i:nth-child(n+5) { display: none; }
  .cursor-light { display: none; }
  .community-values-grid article { padding: 26px; }
  .daily-image { width: calc(100% - 12px); }
  .footer-bottom { align-items: flex-start; }
  .footer-tools { justify-content: space-between; width: 100%; gap: 15px; }
  .footer-tools .motion-toggle { font-size: .75rem; }
}
@media (max-height:600px) { :root { --header-height: 0px; } }
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .sun-motes, .cursor-light { display: none; }
}
@media print {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-atmosphere, .motion-toggle, .copy-account, .account-copy-status { display: none !important; }
}
