/* Do Celu — components.css: elementy motywu potomnego na każdej stronie (pasek info, stopka, 404, progress, do góry, lightbox, reveal, menu mobilne) */

/* Do Celu — home.css: komponenty strony głównej i globalne elementy motywu potomnego
   (pasek info, stopka, 404, progress, do góry, lightbox, reveal, marquee, rotator, menu mobilne) */

/* ---- reveal ---- */
.dc-will-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--dc-ease), transform .8s var(--dc-ease); transition-delay: calc(var(--i, 0) * 60ms); }
.dc-will-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .dc-will-reveal { opacity: 1; transform: none; transition: none; } }

/* ---- pasek informacyjny ---- */
.dc-infobar { background: var(--dc-sun); color: var(--dc-sun-ink); font-size: 15px; font-weight: 500; }
.dc-infobar__in { max-width: 1200px; margin: 0 auto; padding: 9px 20px; display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; }
.dc-infobar a { min-height: 34px; padding: 6px 12px; font-size: 14px !important; background: var(--dc-sun-ink) !important; color: #fff !important; border-color: var(--dc-sun-ink) !important; }

/* ---- pasek postępu + do góry ---- */
.dc-progress { position: fixed; left: 0; top: 0; height: 4px; width: 100%; background: var(--dc-sun); transform-origin: 0 50%; transform: scaleX(0); z-index: 1000; pointer-events: none; }
.admin-bar .dc-progress { top: 32px; }
.dc-totop { position: fixed; right: 20px; bottom: 90px; width: 48px; height: 48px; display: grid; place-items: center; background: var(--dc-ink); color: #fff !important; font-family: var(--dc-display); font-size: 24px; font-weight: 800; text-decoration: none !important; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s, background .2s; z-index: 900; }
.dc-totop.is-on { opacity: 1; transform: none; }
.dc-totop:hover { background: var(--dc-accent); }
@media (max-width: 600px) { .dc-totop { right: 14px; bottom: 150px; width: 44px; height: 44px; } }

/* ---- lightbox ---- */
.dc-lb { position: fixed; inset: 0; background: rgba(10,42,23,.96); z-index: 2000; display: none; align-items: center; justify-content: center; }
.dc-lb.is-open { display: flex; }
.dc-lb figure { margin: 0; max-width: min(92vw, 1400px); max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dc-lb img { max-width: 92vw; max-height: 84vh; object-fit: contain; display: block; }
.dc-lb figcaption { color: rgba(255,255,255,.85); font-size: 14px; text-align: center; }
.dc-lb button { position: absolute; background: transparent; border: 0; color: #fff; font-family: var(--dc-display); font-size: 56px; line-height: 1; cursor: pointer; width: 64px; height: 64px; display: grid; place-items: center; }
.dc-lb button:hover { color: var(--dc-sun); }
.dc-lb__close { top: 12px; right: 12px; } .dc-lb__prev { left: 8px; top: 50%; transform: translateY(-50%); } .dc-lb__next { right: 8px; top: 50%; transform: translateY(-50%); }
.dc-lb__count { position: absolute; left: 20px; bottom: 16px; color: rgba(255,255,255,.7); font-family: var(--dc-display); font-size: 18px; letter-spacing: .04em; }
.gallery .gallery-item a, .dc-autogrid a { cursor: zoom-in; }

/* ---- siatka automatyczna we wpisach z wieloma zdjęciami ---- */

/* ---- menu mobilne pełnoekranowe (Astra off-canvas) ---- */
.ast-mobile-popup-drawer.active .ast-mobile-popup-inner { background: var(--dc-ink) !important; color: #fff; }
.ast-mobile-popup-drawer.active .ast-mobile-popup-inner::before { content: ''; position: absolute; right: -60px; bottom: -40px; width: 320px; height: 320px; background: url('../../../uploads/2022/12/logo-kolor-docelu.png') no-repeat center / contain; opacity: .08; pointer-events: none; }
.ast-mobile-popup-drawer .menu-item > .menu-link { font-family: var(--dc-display) !important; font-size: 34px !important; font-weight: 800 !important; color: #fff !important; border: 0 !important; padding: 10px 24px !important; }
.ast-mobile-popup-drawer .menu-item > .menu-link:hover, .ast-mobile-popup-drawer .current-menu-item > .menu-link { color: var(--dc-sun) !important; }
.ast-mobile-popup-drawer .menu-item { border: 0 !important; }
.ast-mobile-popup-drawer.active .menu-item { animation: dc-menu-in .5s cubic-bezier(.16,1,.3,1) both; }
.ast-mobile-popup-drawer.active .menu-item:nth-child(2) { animation-delay: 60ms; } .ast-mobile-popup-drawer.active .menu-item:nth-child(3) { animation-delay: 120ms; } .ast-mobile-popup-drawer.active .menu-item:nth-child(4) { animation-delay: 180ms; } .ast-mobile-popup-drawer.active .menu-item:nth-child(5) { animation-delay: 240ms; }
@keyframes dc-menu-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.ast-mobile-popup-drawer .ast-mobile-popup-header .menu-toggle-close { color: #fff !important; }
@media (prefers-reduced-motion: reduce) { .ast-mobile-popup-drawer.active .menu-item { animation: none; } }

/* ---- stopka 4-kolumnowa ---- */
.dc-footer { background: var(--dc-ink); color: rgba(255,255,255,.85); border-top: 6px solid var(--dc-sun); }
.dc-footer__grid { max-width: 1200px; margin: 0 auto; padding: 64px 20px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.dc-footer h2 { color: #fff; font-size: 24px; margin: 0 0 14px; }
.dc-footer p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; }
.dc-footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.dc-footer a:hover { color: var(--dc-sun); border-bottom-color: var(--dc-sun); }
.dc-footer ul { list-style: none; margin: 0; padding: 0; }
.dc-footer li { margin: 0 0 8px; font-size: 15px; }
.dc-footer__logo { width: 190px; height: auto; background: #fff; padding: 8px; margin: 0 0 16px; display: block; }
.dc-footer__social a { margin-right: 16px; font-family: var(--dc-display); font-weight: 700; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.dc-footer__bar { border-top: 1px solid rgba(255,255,255,.18); }
.dc-footer__bar { max-width: 1200px; margin: 0 auto; padding: 18px 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.65); }
.dc-footer__bar a { margin-left: 18px; color: rgba(255,255,255,.85); border: 0; }
@media (max-width: 1024px) { .dc-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .dc-footer__grid { grid-template-columns: 1fr; padding: 48px 16px 24px; } .dc-footer__bar { flex-direction: column; } .dc-footer__bar a { margin: 0 18px 0 0; } }

/* ---- 404 ---- */
.dc-404 { padding: 80px 20px 120px; }
.dc-404__in { max-width: 760px; margin: 0 auto; }
.dc-404__code { font-family: var(--dc-display); font-weight: 800; font-size: clamp(96px, 20vw, 220px); line-height: .85; color: var(--dc-sun); margin: 0; }
.dc-404 h1 { margin: 8px 0 12px; }
.dc-404__btns { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 36px; }
.dc-404__search { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.dc-404__search label { grid-column: 1 / -1; font-weight: 600; }
.dc-404__search input { border: 2px solid var(--dc-ink); padding: 12px 14px; font-size: 16px; border-radius: var(--dc-r); }

/* ---- pliki do pobrania (.dc-file) — port z 21st.dev file-card-collections, radius 0 ---- */
.dc-filelist { list-style: none; margin: 16px 0 24px; padding: 0; border-top: 2px solid var(--dc-ink); }
.dc-file { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--dc-line); color: var(--dc-ink); text-decoration: none !important; transition: background .2s; }
.dc-file:hover { background: var(--dc-soft); }
.dc-file__icon { position: relative; width: 56px; height: 72px; background: #fff; border: 1px solid #C9D6CD; padding: 9px 8px; box-sizing: border-box; }
.dc-file__icon::before { content: ''; position: absolute; left: 8px; right: 8px; top: 10px; height: 44px; background: repeating-linear-gradient(to bottom, rgba(10,42,23,.22) 0 2px, transparent 2px 7px); clip-path: polygon(0 0, 55% 0, 55% 2px, 0 2px, 0 7px, 100% 7px, 100% 9px, 0 9px, 0 14px, 80% 14px, 80% 16px, 0 16px, 0 21px, 100% 21px, 100% 23px, 0 23px, 0 28px, 65% 28px, 65% 30px, 0 30px, 0 35px, 90% 35px, 90% 37px, 0 37px, 0 42px, 40% 42px, 40% 44px, 0 44px); }
.dc-file__badge { position: absolute; right: -8px; bottom: 8px; padding: 2px 6px; font-family: var(--dc-display); font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #4B5563; }
.dc-file--pdf .dc-file__badge { background: #B42318; } .dc-file--doc .dc-file__badge, .dc-file--docx .dc-file__badge, .dc-file--odt .dc-file__badge { background: #175CD3; }
.dc-file--xls .dc-file__badge, .dc-file--xlsx .dc-file__badge, .dc-file--csv .dc-file__badge { background: #087443; } .dc-file--zip .dc-file__badge, .dc-file--rar .dc-file__badge { background: #6941C6; }
.dc-file--ppt .dc-file__badge, .dc-file--pptx .dc-file__badge { background: #C4320A; } .dc-file--jpg .dc-file__badge, .dc-file--png .dc-file__badge, .dc-file--jpeg .dc-file__badge { background: #C11574; }
.dc-file__name { font-family: var(--dc-display); font-weight: 700; font-size: 22px; line-height: 1.1; margin: 0 0 4px; }
.dc-file__meta { font-size: 13px; color: #5a6b60; letter-spacing: .04em; text-transform: uppercase; }
.dc-file__dl { font-weight: 600; font-size: 15px; color: var(--dc-accent); white-space: nowrap; }
.dc-file:hover .dc-file__dl { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 3px; text-decoration-color: var(--dc-sun); }
@media (max-width: 600px) { .dc-file { grid-template-columns: 56px 1fr; } .dc-file__dl { grid-column: 2; } .dc-file__name { font-size: 19px; } }

/* ---- timeline (.dc-tl) — port z 21st „milestones”, pionowa oś, karty naprzemiennie, radius 0 ---- */
.dc-tl { list-style: none; margin: 24px 0; padding: 0; position: relative; }
.dc-tl::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--dc-ink); transform: translateX(-1px); }
.dc-tl__item { position: relative; width: 50%; padding: 0 48px 40px 0; }
.dc-tl__item:nth-child(even) { margin-left: 50%; padding: 0 0 40px 48px; }
.dc-tl__item::after { content: ''; position: absolute; top: 22px; right: -9px; width: 16px; height: 16px; background: var(--dc-sun); border: 2px solid var(--dc-ink); box-sizing: border-box; }
.dc-tl__item:nth-child(even)::after { right: auto; left: -9px; }
.dc-tl__card { background: #fff; border: 1px solid var(--dc-line); border-top: 4px solid var(--dc-accent); padding: 20px 22px; text-align: right; }
.dc-tl__item:nth-child(even) .dc-tl__card { text-align: left; }
.dc-tl__when { display: block; font-family: var(--dc-display); font-weight: 800; font-size: 20px; letter-spacing: .04em; color: var(--dc-accent); margin: 0 0 4px; }
.dc-tl__card h3 { font-size: 26px; margin: 0 0 8px; }
.dc-tl__card p { margin: 0; font-size: 15px; line-height: 1.55; color: #424242; }
.dc-tl--steps .dc-tl__when { color: var(--dc-sun-ink); background: var(--dc-sun); display: inline-block; padding: 2px 8px; }
@media (max-width: 760px) { .dc-tl::before { left: 8px; } .dc-tl__item, .dc-tl__item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 28px 36px; } .dc-tl__item::after, .dc-tl__item:nth-child(even)::after { left: 1px; right: auto; } .dc-tl__card, .dc-tl__item:nth-child(even) .dc-tl__card { text-align: left; } }

/* ---- accordion (.dc-acc) — natywny <details>, radius 0 ---- */
.dc-acc { margin: 16px 0 32px; border-top: 2px solid var(--dc-ink); }
.dc-acc details { border-bottom: 1px solid var(--dc-line); }
.dc-acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; align-items: center; gap: 16px; padding: 18px 0; font-family: var(--dc-display); font-weight: 700; font-size: 24px; line-height: 1.1; color: var(--dc-ink); }
.dc-acc summary::-webkit-details-marker { display: none; }
.dc-acc summary::after { content: '+'; font-family: var(--dc-display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--dc-accent); text-align: center; transition: transform .25s; }
.dc-acc details[open] summary::after { transform: rotate(45deg); }
.dc-acc summary:hover { color: var(--dc-accent); }
.dc-acc details[open] summary { background: var(--dc-soft); padding-left: 14px; margin: 0 -14px; padding-right: 14px; }
.dc-acc__body { padding: 4px 0 20px; font-size: 16px; line-height: 1.6; color: #424242; }
.dc-acc__body p { margin: 0 0 10px; } .dc-acc__body ul { margin: 0 0 10px 20px; }
.dc-file > span:nth-child(2) > .dc-file__name, .dc-file > span:nth-child(2) > .dc-file__meta { display: block; }
@media (prefers-reduced-motion: reduce) { .dc-acc summary::after { transition: none; } }

/* ---- bento-galeria fotorelacji (.dc-bento) — port z 21st interactive-bento-gallery, bez drag, radius 0 ---- */
.entry-content .gallery.dc-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 72px; grid-auto-flow: dense; gap: 10px; margin: 24px 0 32px; }
.entry-content .gallery.dc-bento .gallery-item { float: none !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; position: relative; overflow: hidden; background: var(--dc-soft); }
.entry-content .gallery.dc-bento .gallery-icon, .entry-content .gallery.dc-bento .gallery-icon a { display: block; height: 100%; }
.entry-content .gallery.dc-bento img { width: 100% !important; height: 100% !important; aspect-ratio: auto !important; object-fit: cover; object-position: 50% 18%; display: block; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.entry-content .gallery.dc-bento .gallery-item:hover img { transform: scale(1.03); }
.entry-content .gallery.dc-bento .gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,42,23,.55), transparent 55%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.entry-content .gallery.dc-bento .gallery-item:hover::after { opacity: 1; }
.entry-content .gallery.dc-bento .gallery-caption { position: absolute; left: 12px; right: 12px; bottom: 10px; margin: 0; color: #fff; font-size: 13px; font-weight: 600; z-index: 1; opacity: 0; transition: opacity .25s; pointer-events: none; }
.entry-content .gallery.dc-bento .gallery-item:hover .gallery-caption { opacity: 1; }
.dc-bento__tall { grid-column: span 1; grid-row: span 3; }
.dc-bento__wide { grid-column: span 2; grid-row: span 3; }
.dc-bento__sq { grid-column: span 1; grid-row: span 3; }
.dc-bento__big { grid-column: span 2; grid-row: span 6; }
@media (max-width: 760px) { .entry-content .gallery.dc-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 70px; gap: 8px; } .dc-bento__tall, .dc-bento__sq { grid-row: span 3; } .dc-bento__wide { grid-row: span 3; } .dc-bento__big { grid-column: span 2; grid-row: span 4; } }
@media (prefers-reduced-motion: reduce) { .entry-content .gallery.dc-bento .gallery-item:hover img { transform: none; } }

/* lightbox: dok miniatur */
.dc-lb figure { max-height: 78vh; }
.dc-lb img { max-height: 70vh; }
.dc-lb__dock { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 6px; max-width: 94vw; overflow-x: auto; padding: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); scrollbar-width: none; }
.dc-lb__dock::-webkit-scrollbar { display: none; }
.dc-lb__dock button { all: unset; width: 48px; height: 48px; flex: 0 0 auto; cursor: pointer; opacity: .55; transition: opacity .2s, transform .2s, outline-color .2s; outline: 2px solid transparent; outline-offset: 0; }
.dc-lb__dock button img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.dc-lb__dock button:hover, .dc-lb__dock button:focus-visible { opacity: 1; }
.dc-lb__dock button.is-active { opacity: 1; transform: translateY(-6px); outline-color: var(--dc-sun); }
.dc-lb__count { left: auto; right: 20px; bottom: 90px; }
@media (max-width: 600px) { .dc-lb__dock button { width: 40px; height: 40px; } .dc-lb img { max-height: 62vh; } }
@media (prefers-reduced-motion: reduce) { .dc-lb__dock button.is-active { transform: none; } }

/* ---- toast ---- */
.dc-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); background: var(--dc-ink); color: #fff; padding: 12px 18px; font-size: 15px; font-weight: 500; opacity: 0; pointer-events: none; z-index: 3000; transition: opacity .25s, transform .25s; border-left: 4px solid var(--dc-sun); max-width: 92vw; }
.dc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
/* ---- kopiuj ---- */
.dc-copy { display: inline-flex; align-items: center; gap: 8px; }
.dc-copy__btn { all: unset; cursor: pointer; font-family: 'Lexend', sans-serif; font-size: 13px; font-weight: 600; padding: 6px 10px; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: var(--dc-btn-radius); transition: background .18s, border-color .18s; }
.dc-copy__btn:hover, .dc-copy__btn:focus-visible { background: rgba(255,255,255,.12); border-color: #fff; }
.dc-copy__btn.is-done { background: var(--dc-sun); color: var(--dc-sun-ink); border-color: var(--dc-sun); }
.dc-copy--light .dc-copy__btn { color: var(--dc-ink); border-color: #BFD9C8; } .dc-copy--light .dc-copy__btn:hover { background: var(--dc-soft); border-color: var(--dc-accent); }
.dc-krs-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 8px 0 12px; }
.dc-krs-wrap .dc-krs { margin: 0; }
/* ---- filtry (Aktualności) ---- */
.dc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.dc-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid #BFD9C8; border-radius: var(--dc-btn-radius); color: var(--dc-ink); font-size: 14px; font-weight: 600; text-decoration: none !important; transition: background .18s, border-color .18s, color .18s; }
.dc-chips a:hover { background: var(--dc-soft); border-color: var(--dc-accent); }
.dc-chips a.is-active { background: var(--dc-ink); border-color: var(--dc-ink); color: #fff; }
.dc-chips a small { font-weight: 400; opacity: .7; margin-left: 6px; }
/* ---- okruszki ---- */
.dc-crumbs { max-width: 1200px; margin: 0 auto; padding: 14px 20px 0; font-size: 13px; color: #5a6b60; }
.dc-crumbs a { color: var(--dc-ink); text-decoration: none; } .dc-crumbs a:hover { color: var(--dc-accent); }
.dc-crumbs span[aria-hidden] { margin: 0 8px; opacity: .5; }
/* ---- udostępnij ---- */
.dc-share { max-width: 860px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--dc-line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.dc-share strong { margin-right: 6px; }
/* ---- rotator v2 (pionowe przesuwanie) ---- */
.dc-words { display: inline-block; vertical-align: bottom; height: 1.15em; line-height: 1.15em; overflow: hidden; color: var(--dc-sun); position: relative; }
.dc-words__track { display: block; transition: transform .55s cubic-bezier(.16,1,.3,1); }
.dc-words__track span { display: block; height: 1.15em; line-height: 1.15em; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .dc-words__track { transition: none; } .dc-toast { transition: none; } }


/* ================= Liquid gradient (zieleń + żółć) — sekcje z płynnym tłem ================= */
.dc-liquid { background-color: var(--dc-ink); }
.dc-liquid > .elementor-container, .dc-liquid > .ast-container, .dc-liquid > .dc-404__in { position: relative; z-index: 2; }
.dc-liquid.liquid-host--scrim::after { z-index: 1; background: linear-gradient(90deg, rgba(10,42,23,.55) 0%, rgba(10,42,23,.25) 50%, rgba(10,42,23,.05) 100%), linear-gradient(180deg, rgba(10,42,23,.05), rgba(10,42,23,.4)); }
.dc-liquid .liquid { border-radius: inherit; }
/* programy: zamiast płaskiego granatu */
#programy.dc-liquid { background-color: #0A2A17 !important; }
#programy .dc-glow { display: none; }
/* banery stron i archiwum: białe napisy na płynnym tle */
.ast-single-entry-banner[data-post-type="page"].dc-liquid, .ast-archive-entry-banner.dc-liquid { background: var(--dc-ink) !important; color: #fff; }
.ast-archive-entry-banner.dc-liquid h1, .ast-archive-entry-banner.dc-liquid .ast-container *, .ast-single-entry-banner[data-post-type="page"].dc-liquid .ast-container * { color: #fff !important; }
.ast-archive-entry-banner.dc-liquid { padding-top: 56px !important; padding-bottom: 40px !important; }
/* 404 */
.dc-404.dc-liquid { color: #fff; } .dc-404.dc-liquid .dc-404__code, .dc-404.dc-liquid h1, .dc-404.dc-liquid p { color: #fff; }
/* fallback gradientu na banerach (global.css wymusza tło ink !important) */
.ast-single-entry-banner[data-post-type="page"].dc-liquid, .ast-archive-entry-banner.dc-liquid, #programy.dc-liquid { background: linear-gradient(120deg, var(--liquid-1) 0%, var(--liquid-2) 34%, var(--liquid-3) 56%, var(--liquid-4) 130%) !important; background-size: 240% 240% !important; }

/* ---- zakładki (.dc-tabs) ---- */
.dc-tabs { margin-top: 20px; }
.dc-tabs__bar { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--dc-line); }
.dc-tabs__btn { appearance: none; border: 1px solid var(--dc-line); background: #fff; color: var(--dc-ink); font: 600 15px/1 'Lexend', sans-serif; padding: 12px 18px; border-radius: var(--dc-r-pill); cursor: pointer; transition: background var(--dc-t) var(--dc-ease), color .3s, border-color .3s, transform .3s var(--dc-ease); }
.dc-tabs__btn:hover { background: var(--dc-soft); border-color: var(--dc-accent); }
.dc-tabs__btn[aria-selected="true"] { background: var(--dc-ink); color: #fff; border-color: var(--dc-ink); }
.dc-tabs__btn:focus-visible { outline: 3px solid var(--dc-sun); outline-offset: 2px; }
.dc-tabs__panel { animation: dc-tab-in .5s var(--dc-ease); }
.dc-tabs__panel[hidden] { display: none; }
.dc-tabs__title { font-size: 34px !important; margin: 20px 0 10px !important; }
.dc-tabs__more { margin: 28px 0 0 !important; }
@keyframes dc-tab-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dc-tabs__panel { animation: none; } }
@media (max-width: 600px) { .dc-tabs__btn { padding: 10px 14px; font-size: 14px; } .dc-tabs__title { font-size: 28px !important; } }


/* ================= Stopka v2 (21.10.2026): finansujący + 3 kolumny + krótszy mobile ================= */
.dc-site-footer { margin-top: 48px; }
.dc-footer__funders { background: #fff; border-top: 1px solid var(--dc-line); }
.dc-footer__funders-in { max-width: 1200px; margin: 0 auto; padding: 28px 20px 32px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.dc-footer__funders-label { margin: 0; font-size: 13px; font-weight: 600; color: #5a6b60; letter-spacing: .02em; flex: 0 0 auto; }
.dc-footer__funders ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 36px; flex-wrap: wrap; flex: 1 1 auto; justify-content: space-between; }
.dc-footer__funders li { margin: 0; display: flex; align-items: center; }
.dc-footer__funders img { display: block; width: auto; height: 46px; max-width: 220px; object-fit: contain; }
.dc-footer__funders .is-pfron img { height: 50px; }
.dc-footer__funders .is-pl img { height: 38px; }
.dc-footer__funders .is-mcps img { height: 72px; margin: -13px -14px; }
.dc-footer__funders .is-maz img { height: 60px; margin: -9px -10px; }
.dc-footer { margin-top: 0 !important; border-radius: 0 !important; }
.dc-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding: 56px 20px 40px; }
.dc-footer h2 { font-size: 22px; margin: 4px 0 14px; letter-spacing: .01em; }
.dc-footer__logo-link { border: 0 !important; display: inline-block; }
.dc-footer__logo { width: 220px !important; height: auto; background: none !important; padding: 0 !important; margin: 0 0 18px !important; filter: brightness(0) invert(1); border-radius: 0 !important; }
.dc-footer__lead { max-width: 380px; color: rgba(255,255,255,.82); }
.dc-footer__big { margin: 18px 0 4px !important; } .dc-footer__big a { font-family: var(--dc-display); font-weight: 800; font-size: 30px; line-height: 1; border: 0 !important; }
.dc-footer__muted { color: rgba(255,255,255,.7); font-size: 14px !important; }
.dc-footer__social { margin-top: 14px !important; }
.dc-footer__social a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgba(255,255,255,.35) !important; border-radius: var(--dc-r-pill); font-family: 'Lexend', sans-serif !important; font-weight: 600 !important; font-size: 14px !important; letter-spacing: .02em !important; text-transform: none !important; margin: 0 !important; }
.dc-footer__social a:hover { background: var(--dc-sun); color: var(--dc-sun-ink) !important; border-color: var(--dc-sun) !important; }
.dc-footer__places li, .dc-footer__links li { margin: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.dc-footer__places li:last-child, .dc-footer__links li:last-child { border-bottom: 0; }
.dc-footer__places a, .dc-footer__links a { display: block; padding: 11px 0; border: 0 !important; min-height: 44px; box-sizing: border-box; transition: color .25s, padding-left .3s var(--dc-ease); }
.dc-footer__places a:hover, .dc-footer__links a:hover { padding-left: 6px; }
.dc-footer__place-t { display: block; font-weight: 600; font-size: 15px; color: #fff; }
.dc-footer__place-d { display: block; font-size: 13px; color: rgba(255,255,255,.65); margin-top: 2px; }
.dc-footer__places a:hover .dc-footer__place-t { color: var(--dc-sun); }
.dc-footer__links a { font-size: 15px; display: flex; align-items: center; }
.dc-footer__bar { align-items: center; }
.dc-footer__bar a { margin-left: 0 !important; }
@media (max-width: 1024px) {
	.dc-footer__funders-in { gap: 18px; }
	.dc-footer__funders ul { gap: 24px; justify-content: flex-start; }
	.dc-footer__grid { grid-template-columns: 1fr 1fr; }
	.dc-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.dc-site-footer { margin-top: 32px; }
	.dc-footer__funders-in { padding: 20px 16px 22px; }
	.dc-footer__funders ul { gap: 14px 22px; }
	.dc-footer__funders img { height: 34px; max-width: 150px; }
	.dc-footer__funders .is-pfron img { height: 38px; } .dc-footer__funders .is-pl img { height: 30px; }
	.dc-footer__funders .is-mcps img { height: 54px; margin: -10px -10px; } .dc-footer__funders .is-maz img { height: 46px; margin: -7px -8px; }
	.dc-footer__grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 16px 24px; }
	.dc-footer__logo { width: 190px !important; }
	.dc-footer__links { columns: 2; column-gap: 16px; }
	.dc-footer__links li { break-inside: avoid; }
	.dc-footer__links li:nth-last-child(-n+2) { border-bottom: 0; }
	.dc-footer__bar { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; }
}
@media (max-width: 600px) {
	.dc-footer__grid { gap: 22px; padding: 32px 16px 20px; }
	.dc-footer__logo { width: 160px !important; margin-bottom: 12px !important; }
	.dc-footer__lead { font-size: 14px !important; margin-bottom: 6px !important; }
	.dc-footer__big { margin-top: 10px !important; } .dc-footer__big a { font-size: 26px; }
	.dc-footer__brand p { margin-bottom: 6px; }
	.dc-footer__social { margin-top: 8px !important; }
	.dc-footer h2 { font-size: 20px; margin-bottom: 6px; }
	.dc-footer__places { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
	.dc-footer__places li { border-bottom: 0; }
	.dc-footer__places a { padding: 8px 0; }
	.dc-footer__place-t { font-size: 14px; } .dc-footer__place-d { font-size: 12px; }
	.dc-footer__links li { border-bottom: 0; }
	.dc-footer__links a { padding: 6px 0; font-size: 14px; }
	.dc-footer__funders-label { flex: 1 0 100%; }
}
.dc-show-sm { display: none; text-decoration: none; }
@media (max-width: 600px) {
	.dc-hide-sm { display: none; } .dc-show-sm { display: inline; }
	.dc-footer__lead { display: none; }
	.dc-footer__funders-in { padding: 16px 16px 18px; gap: 10px; }
	.dc-footer__funders ul { gap: 10px 18px; }
	.dc-footer__funders img { height: 30px; } .dc-footer__funders .is-pfron img { height: 34px; } .dc-footer__funders .is-pl img { height: 26px; }
	.dc-footer__funders .is-mcps img { height: 48px; margin: -9px -9px; } .dc-footer__funders .is-maz img { height: 40px; margin: -6px -7px; }
	.dc-footer__bar { padding: 14px 16px 18px; font-size: 12px; }
	.dc-footer__place-d { line-height: 1.3; }
}

/* ---- siatka luźnych zdjęć we wpisach (.dc-photogrid, app.js 4b) — ta sama zasada co galerie ---- */
.dc-photogrid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 72px; grid-auto-flow: dense; gap: 10px; margin: 24px 0 32px; }
.dc-photogrid__item { margin: 0; position: relative; overflow: hidden; border-radius: var(--dc-r); background: var(--dc-soft); grid-column: span 1; grid-row: span 3; }
.dc-photogrid__item.is-wide { grid-column: span 2; }
.dc-photogrid__item.is-big { grid-column: span 2; grid-row: span 6; }
.dc-photogrid__item a { display: block; height: 100%; border: 0 !important; cursor: zoom-in; }
.dc-photogrid__item img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; object-fit: cover; object-position: 50% 25%; transition: transform .8s var(--dc-ease); cursor: zoom-in; }
.dc-photogrid__item:hover img { transform: scale(1.03); }
@media (max-width: 760px) { .dc-photogrid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 70px; gap: 8px; } .dc-photogrid__item.is-big { grid-row: span 4; } }
@media (prefers-reduced-motion: reduce) { .dc-photogrid__item:hover img { transform: none; } }
