/* ==========================================================================
   Zmienne. Czerwień marki (#ec1d24) jest użyta dekoracyjnie (podkreślenia, ramki),
   a do tekstu i przycisków służy ciemniejsza --c-red-a (kontrast 6:1 na bieli, WCAG AA).
   Wszystkie rozmiary tekstu w rem, układ działa przy powiększeniu 200-400%.
   ========================================================================== */
:root {
	--c-red: #ec1d24;
	--c-red-a: #c4151b;
	--c-red-a-dark: #8f0d12;
	--bg: #fff;
	--fg: #333;
	--head: #232629;
	--link: #232629;
	--link-hover: var(--c-red-a);
	--border: #dbdbdb;
	--muted: #595959;
	--btn-bg: var(--c-red-a);
	--btn-fg: #fff;
	--btn-hover-bg: #232629;
	--bar-bg: #e2e2e2;
	--bar-fg: #232629;
	--dark-bg: #232629;
	--dark-fg: #dbdbdb;
	--dark-hover-bg: #2f3438;
	--line: var(--c-red);
	--max: 1140px;
	--max-wide: 1600px;
	--f-head: 'Nunito', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

html { font-size: 100%; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 400 1.0625rem/1.65 'Nunito', system-ui, sans-serif; color: var(--fg); background: var(--bg); display: flex; flex-direction: column; min-height: 100vh; overflow-wrap: break-word; }
main { flex: 1 0 auto; }
main:focus { outline: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4, h5, h6 { color: var(--head); line-height: 1.25; font-weight: 700; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.topbar .container, .header-main { width: min(100% - 2rem, var(--max-wide)); }

.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; color: #000; padding: .7rem 1.1rem; font-weight: 700; }
:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; box-shadow: 0 0 0 6px #fff; }
.footer-top :focus-visible, .sub-menu :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px #000; }
[hidden] { display: none !important; }

/* pasek górny */
.topbar { background: var(--bar-bg); color: var(--bar-fg); font: 500 .8125rem/1.4 var(--f-head); }
.topbar .container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1rem; padding-block: 3px; }
.topbar p { margin: 0; text-align: center; }
.social { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin: 0 auto; padding: 5px 8px; }
.social a { display: flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 3px; border-radius: 10%; color: #fff; transition: opacity .2s, transform .2s; }
.social a:hover { opacity: .85; transform: translateY(-1px); color: #fff; }
.social .icon { display: block; width: 20px; height: 20px; fill: currentColor; }
.social-facebook { background: #3b5998; }
.social-youtube { background: #cd201f; }
.social-instagram { background: #262626; }
.social-bip { background: transparent; }
.social-bip .icon { width: auto; height: 20px; }
.icon { display: block; flex: none; }

/* nagłówek */
.site-header { margin-bottom: 1.5rem; }
.home .site-header { margin-bottom: 2.5rem; }
.header-main { display: flex; align-items: stretch; justify-content: space-between; gap: 2rem; padding-block: 1.2rem 0; margin-inline: auto; }
.brand { align-self: flex-start; padding-bottom: 1rem; }
.brand img { display: block; width: auto; max-height: 89px; }
.brand-text { font-size: 1.3rem; font-weight: 800; text-decoration: none; color: var(--head); }
.header-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: .8rem; min-width: 0; }
.site-search { display: flex; align-items: center; width: 230px; max-width: 100%; }
.site-search input { flex: 1; min-width: 0; padding: .35rem .5rem; border: 1px solid #767676; background: var(--bg); color: var(--fg); font: inherit; font-size: .95rem; border-radius: 0; }
.site-search input::placeholder { color: var(--muted); opacity: 1; }
.site-search button { display: flex; align-items: center; min-width: 36px; min-height: 36px; justify-content: center; border: 0; background: none; color: var(--head); cursor: pointer; }
.site-search button:hover { color: var(--link-hover); }
.site-search .icon { width: 17px; height: 17px; }

/* menu */
.main-nav { position: relative; z-index: 20; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; padding: 0; background: none; border: 1px solid #767676; border-radius: 4px; color: var(--head); cursor: pointer; }
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: var(--head); color: #fff; border-color: var(--head); }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: .8rem 1.1rem; color: var(--head); text-decoration: none; font-weight: 500; position: relative; }
.main-nav > ul > li > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); transform: scaleX(0); transition: transform .2s; }
.main-nav li:hover > a, .main-nav li:focus-within > a, .main-nav li.open > a, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: var(--c-red-a); }
.main-nav > ul > li:hover > a::after, .main-nav > ul > li:focus-within > a::after, .main-nav > ul > li.open > a::after, .main-nav > ul > .current-menu-item > a::after, .main-nav > ul > .current-menu-ancestor > a::after { transform: scaleX(1); }
.main-nav > ul > .has-sub > a { padding-right: 2.1rem; }
.main-nav > ul > .has-sub > a::before { content: ''; position: absolute; right: 1rem; top: 50%; margin-top: -2px; border: 4px solid transparent; border-top-color: currentColor; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 290px; max-width: 90vw; background: var(--dark-bg); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.main-nav > ul > li:nth-last-child(-n+3) > .sub-menu { left: auto; right: 0; }
.main-nav .sub-menu a { color: var(--dark-fg); font-weight: 500; padding: .7rem 1.1rem; }
.main-nav .sub-menu a::after { content: none; }
.main-nav .sub-menu li:hover > a, .main-nav .sub-menu li:focus-within > a, .main-nav .sub-menu .current-menu-item > a { background: var(--dark-hover-bg); color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.main-nav li.open > .sub-menu { display: block; }
.main-nav .sub-menu .sub-menu { top: 0; left: 100%; }

/* hero (duży slider) */
.hero { position: relative; }
.hero .carousel { --per: 1; --gap: 0px; }
.hero img { display: block; width: 100%; height: auto; }
.hero .carousel-nav { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); gap: .35rem; padding: .35rem; border-radius: 999px; background: rgba(35, 38, 41, .8); }
.hero .carousel-nav button { width: 40px; height: 40px; background: transparent; }
.hero .carousel-nav button:hover { background: var(--c-red-a); }

/* sekcje */
.section { padding: 2.5rem 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.section-head h2, .partners h2, .calendar h2 { margin: 0; font: 600 1.9rem/1.2 var(--f-head); color: var(--head); }
.calendar h2 { margin-bottom: 1.2rem; }
.carousel-nav { display: flex; gap: .5rem; }
.carousel-nav button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--dark-bg); color: #fff; font-size: 1.2rem; cursor: pointer; transition: background .2s; }
.carousel-nav button:hover { background: var(--c-red-a); }
.carousel-nav svg { width: 16px; height: 16px; fill: currentColor; }
.carousel { --gap: 1.2rem; --per: 4; display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; scroll-snap-align: start; }
.more { text-align: center; margin: 1.5rem 0 0; }
.btn { display: inline-block; background: var(--btn-bg); color: var(--btn-fg); padding: .7rem 1.5rem; border-radius: 4px; text-decoration: none; font-weight: 700; transition: background .2s; }
.btn:hover { background: var(--btn-hover-bg); color: #fff; }

/* kafelki wpisów */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 1.5rem; margin: 1.5rem 0 2.5rem; }
.card a { display: block; height: 100%; text-decoration: none; color: var(--head); background: var(--bg); border: 1px solid var(--border); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card a:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .16); transform: translateY(-3px); color: var(--link-hover); }
.card a:hover .card-title { text-decoration: underline; }
.card img { display: block; width: 100%; aspect-ratio: 210 / 297; object-fit: cover; }
.card-noimg { display: block; aspect-ratio: 210 / 297; background: var(--bar-bg); }
.card-title { font: 600 1rem/1.35 var(--f-head); margin: 0; padding: .9rem 1rem 1.1rem; }

/* kalendarz wydarzeń (The Events Calendar, osadzenie) - szerokość i lewa krawędź jak nagłówek sekcji; wysokość ustawia main.js */
.calendar iframe[data-tec-events-ece-iframe] { display: block; width: 100%; max-width: none; height: 520px; margin: 0; border: 0; }

/* partnerzy */
.partners { border-top: 1px solid var(--border); }
.partner-logos { --gap: 2rem; --per: 5; list-style: none; align-items: center; margin: 0; padding: 0; }
.partner-logos li { display: flex; justify-content: center; align-items: center; height: 110px; }
.partner-logos img { display: block; max-height: 90px; max-width: 100%; width: auto; }

/* treść */
.page-wrap { padding-block: 2.5rem 4rem; }
.entry-title { font: 600 clamp(1.7rem, 3.5vw, 2.4rem)/1.2 var(--f-head); margin: 0 0 1.2rem; }
.entry-meta { color: var(--muted); margin-top: -.4rem; }
.entry-content { max-width: 60rem; }
.entry-content .grid { max-width: none; }
.entry-content h2, .entry-content h3 { font-family: var(--f-head); font-weight: 600; }
.entry-content table { border-collapse: collapse; width: 100%; max-width: 32rem; margin: 1rem 0; }
.entry-content caption { text-align: left; font-weight: 700; padding-bottom: .4rem; }
.entry-content td, .entry-content th { padding: .5rem .8rem; border-bottom: 1px solid var(--border); text-align: left; }
.entry-content th { font-weight: 700; }
.entry-content iframe { width: 100%; max-width: 100%; min-height: 300px; border: 0; }
.entry-content .wp-block-file { margin: .8rem 0; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 2rem; }
.page-numbers { padding: .5rem .9rem; border: 1px solid var(--border); text-decoration: none; border-radius: 4px; }
.page-numbers.current { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }

/* stopka - pełna szerokość, równe marginesy po bokach: lewa kolumna przy lewej krawędzi, środkowa wyśrodkowana, prawa przy prawej */
.site-footer { margin-top: 2rem; flex-shrink: 0; }
.site-footer .container { width: 100%; max-width: 1500px; margin-inline: auto; padding-inline: clamp(1.5rem, 9vw, 8rem); }
.footer-top { background: var(--dark-bg); color: var(--dark-fg); }
.footer-top a { color: var(--dark-fg); text-decoration: none; }
.footer-top a:hover, .footer-top a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); padding-block: 2.5rem; }
.footer-title { color: #fff; font: 600 1.15rem/1.3 var(--f-head); margin-top: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-social a, .footer-contact li { display: flex; align-items: center; gap: .7rem; }
.footer-social .icon { width: 20px; height: 20px; fill: currentColor; }
.footer-social .social-bip-icon .icon { width: 36px; height: auto; }
.footer-contact li { align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: .4rem; color: var(--c-red); }
.footer-bottom { background: var(--bar-bg); color: var(--bar-fg); font-size: .9rem; padding-block: .8rem; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--bar-fg); font-weight: 700; }
.footer-bottom a:hover { color: var(--link-hover); }

/* ekran aktualności i kategorii: kafelki z fragmentem opisu */
.list-title { font: 600 clamp(1.7rem, 3.5vw, 2.4rem)/1.2 var(--f-head); margin: 0 0 1.5rem; }
.list-heading { font: 600 1.6rem/1.2 var(--f-head); margin: 2rem 0 1.2rem; color: var(--head); }
.news-list { scroll-margin-top: 1rem; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.news-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.news-card-thumb { display: block; overflow: hidden; }
.news-card-thumb img, .news-card-thumb .card-noimg { display: block; width: 100%; aspect-ratio: 210 / 297; object-fit: cover; }
.news-card-body { display: flex; flex: 1; flex-direction: column; gap: .6rem; padding: 1.1rem 1.2rem 1.2rem; }
.news-card-title { margin: 0; font: 600 1.15rem/1.35 var(--f-head); }
.news-card-title a { color: var(--head); text-decoration: none; }
.news-card-title a:hover { color: var(--link-hover); text-decoration: underline; }
.news-card-excerpt { margin: 0; color: var(--fg); font-size: .95rem; line-height: 1.55; }
.news-card-more { align-self: flex-start; font-weight: 700; }
.news-card-date { margin: auto 0 0; padding-top: .4rem; color: var(--muted); font-size: .85rem; }
.pagination { margin: 1.5rem 0 2.5rem; }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
/* godziny otwarcia: dwie kolumny obok siebie (Biblioteka Główna, Filia nr 2) */
.entry-content:has(.hours-grid) { max-width: none; }
.hours-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.hours-col h2 { margin: 0 0 .25rem; font-size: 1.6rem; }
.hours-col > p:first-of-type { margin: 0 0 1rem; font-size: 1rem; }
.hours-col table { max-width: none; margin: 0 0 1rem; border: 1px solid var(--border); }
.hours-col caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hours-col th, .hours-col td { padding: .65rem 1rem; border: 1px solid var(--border); font-weight: 400; }
.hours-col th { width: 45%; font-weight: 600; }
.hours-col tbody tr:nth-child(odd) { background: #f4f4f4; }
@media (max-width: 700px) { .hours-grid { grid-template-columns: 1fr; } }
/* kontakt: dwie sekcje (Biblioteka, Filia nr 2), po lewej dane, po prawej adres z mapą */
.entry-content:has(.contact-section) { max-width: none; }
.contact-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.contact-info h2 { margin: 0 0 1rem; font-size: 1.6rem; }
.contact-info h3 { margin: 1.4rem 0 .3rem; font: 600 1.05rem/1.35 var(--f-head); }
.contact-info h3:first-of-type { margin-top: 0; }
.contact-info p { margin: 0; }
.contact-address { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.contact-address::before { content: ''; flex: none; width: 46px; height: 46px; background: var(--head); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z'/%3E%3C/svg%3E") center / contain no-repeat; }
.contact-address p { margin: 0; }
.contact-street { font: 600 1.1rem/1.3 var(--f-head); color: var(--head); }
.contact-city { font-weight: 700; }
.contact-map iframe { display: block; width: 100%; height: 320px; border: 0; }
.contact-divider { border: 0; border-top: 1px solid rgba(0, 0, 0, .4); margin: 1.7rem 0; }
@media (max-width: 800px) { .contact-section { grid-template-columns: 1fr; } }
/* Bloki Gutenberga w treści stron (treść jest zapisana jako gotowy HTML, więc style bloków dostarcza motyw) */
.has-text-align-center { text-align: center; }
.wp-block-columns { display: flex; flex-wrap: wrap; align-items: normal !important; gap: 1.5rem 2.5rem; margin: 0 0 1.5rem; } /* !important: globalny styl WP (.is-layout-flex) wyśrodkowywał kolumny */
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-column.is-vertically-aligned-top { align-self: flex-start; }
.wp-block-column.is-vertically-aligned-center { align-self: center; }
.wp-block-column.is-vertically-aligned-bottom { align-self: flex-end; }
.wp-block-column > :first-child { margin-top: 0; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1rem; }
.wp-block-buttons.is-content-justification-center { justify-content: center; }
.wp-block-buttons.is-content-justification-right { justify-content: flex-end; }
.wp-block-button__link, .wp-block-file__button { display: inline-block; padding: .75rem 1.6rem; border: 0; border-radius: 4px; background: var(--btn-bg); color: var(--btn-fg); font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; transition: background .2s; }
.wp-block-button__link:hover, .wp-block-file__button:hover { background: var(--btn-hover-bg); color: #fff; }
.wp-block-image { margin: 0 0 1.5rem; }
.wp-block-image img { display: block; max-width: 100%; height: auto; }
.wp-block-image.aligncenter { text-align: center; }
.wp-block-image.aligncenter img { margin-inline: auto; }
.wp-block-gallery { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.wp-block-gallery > .wp-block-image, .wp-block-gallery > figure { flex: 1 1 calc(33.333% - 1rem); margin: 0; min-width: 160px; }
.wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 1rem 0 1.5rem; }
.wp-block-file__embed { display: none; }
@media (min-width: 782px) { .wp-block-columns { flex-wrap: nowrap; } }
@media (max-width: 781px) { .wp-block-column { flex-basis: 100% !important; } }
/* strony z listą wpisów z kategorii (Heroizm, 75-lecie): 3 kafelki w wierszu */
.entry-content:has(.grid--3) { max-width: none; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.entry-content .grid--3 + p, .entry-content .grid--3 ~ figure { max-width: 60rem; }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid--3 { grid-template-columns: 1fr; } }
/* obraz na górze wpisu */
.post-content-image { margin: 0 0 1.5rem; max-width: 60rem; }
.post-content-image img { display: block; width: 100%; height: auto; }

.post-poster { margin: 0 0 1.5rem; max-width: 60rem; }
.post-poster img { display: block; width: 100%; height: auto; }

/* formularze WPForms: kolory i czcionka motywu */
.wpforms-container { --wpforms-button-background-color: var(--c-red-a); --wpforms-button-background-color-alt: var(--c-red-a-dark); --wpforms-button-text-color: #fff; --wpforms-button-border-radius: 4px; --wpforms-field-border-radius: 0; margin: 1rem 0 2rem; max-width: 40rem; }
.wpforms-container .wpforms-submit-container .wpforms-submit { background: var(--btn-bg) !important; color: var(--btn-fg) !important; border: 0 !important; border-radius: 4px !important; padding: .75rem 1.6rem !important; font: inherit; font-weight: 700; cursor: pointer; }
.wpforms-container .wpforms-submit-container .wpforms-submit:hover { background: var(--btn-hover-bg) !important; }
.wpforms-container .wpforms-field-label, .wpforms-container .wpforms-field-sublabel { color: var(--head); font-weight: 700; }
.wpforms-container .wpforms-field-description, .wpforms-container .wpforms-field-label-inline { color: var(--fg); }
.entry-content .wpforms-container-full { margin: 1rem 0 2rem !important; } /* formularz przy lewej krawędzi treści (WPForms centrował go) */
.wpforms-confirmation-container-full { background: #f4f4f4; border: 1px solid var(--border); border-left: 4px solid var(--line); padding: 1rem 1.25rem; }
/* zgoda na cookies i treści zewnętrzne */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: #fff; color: var(--fg); border-top: 4px solid var(--c-red); box-shadow: 0 -6px 24px rgba(0, 0, 0, .2); padding: 1rem 0; }
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.cookie-banner h2 { margin: 0 0 .4rem; font-size: 1.15rem; }
.cookie-banner p { margin: 0 0 .7rem; font-size: .95rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-actions .btn { border: 2px solid var(--btn-bg); cursor: pointer; font: inherit; font-weight: 700; }
.cookie-actions .btn-link { background: transparent; color: var(--head); border-color: var(--head); }
.cookie-actions .btn-link:hover { background: var(--head); color: #fff; }
.cookie-settings label { display: flex; gap: .5rem; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--dark-fg); font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.link-btn:hover { color: #fff; }
.footer-consent { margin: .8rem 0 0; }
.consent-embed { display: flex; align-items: center; justify-content: center; min-height: 220px; margin: 1rem 0; padding: 1.5rem; background: #f4f4f4; border: 1px solid var(--border); text-align: center; }
.consent-embed-inner { max-width: 34rem; }
.consent-embed p { margin: 0 0 .7rem; }
/* Responsywność - ważna też dla powiększenia strony do 200-400% (efektywnie wąski ekran) */
@media (max-width: 1100px) {
	.carousel { --per: 3; }
	.partner-logos { --per: 4; }
}
@media (max-width: 900px) {
	.header-main { flex-direction: column; align-items: stretch; gap: 0; }
	.brand { align-self: center; text-align: center; padding-bottom: .75rem; }
	.brand img, .brand .custom-logo-link { margin-inline: auto; }
	.header-right { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; }
	.site-search { flex: 0 1 240px; width: auto; min-width: 0; }
	.site-search input { padding: .25rem .4rem; font-size: .9rem; }
	.site-search button { min-width: 32px; min-height: 32px; }
	.nav-toggle { display: flex; }
	.main-nav { flex: 0 0 100%; }
	.main-nav > ul { display: none; flex-direction: column; }
	.main-nav.open > ul { display: flex; }
	.main-nav > ul > li > a::after { display: none; }
	.main-nav .sub-menu { position: static; display: none; box-shadow: none; min-width: 0; max-width: none; }
	.main-nav li.open > .sub-menu { display: block; }
	.main-nav .sub-menu a { padding-left: 2rem; }
	.footer-grid { grid-template-columns: 1fr; gap: 2rem; }
	.topbar .container { grid-template-columns: 1fr; justify-items: center; }
}
@media (max-width: 700px) {
	.carousel { --per: 2; }
	.partner-logos { --per: 3; }
	.footer-bottom .container { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
	.carousel { --per: 1; }
	.partner-logos { --per: 2; }
	.section-head h2, .partners h2, .calendar h2 { font-size: 1.5rem; }
}

/* Użytkownik wyłączył animacje w systemie */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
