/*
Theme Name: M24 Klasyk 2
Theme URI: https://mistrzejowice24.pl
Author: Mistrzejowice24.pl
Description: Układ obecnej strony Mistrzejowice24.pl w nowoczesnym wydaniu: powitanie jako karta z wyszukiwarką, pływające skróty, wyróżniony wpis, etykiety tematów, kolory z logo. Bez Elementora.
Version: 1.0.18
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: m24
*/

:root {
	/* kolory z logo M24 */
	--ink: #111a2e;
	--text: #3c4559;
	--muted: #727a8c;
	--blue: #2f6fc0;
	--blue-deep: #1f529a;
	--blue-tint: #eaf2fc;
	--green: #7cb83a;
	--green-deep: #4b7f17;
	--green-tint: #eef6e3;
	--sun: #f2b233;
	--sun-deep: #8f5f00;
	--sun-tint: #fdf3dc;
	--coral: #e0603f;
	--coral-tint: #fde9e3;
	--hero-a: #e6f1fb;
	--hero-b: #eef7ea;
	--bg: #ffffff;
	--soft: #f6f8fb;
	--line: #e7eaf0;
	--footer: #0f1524;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(17, 26, 46, .04), 0 8px 24px rgba(17, 26, 46, .06);
	--shadow-hover: 0 2px 4px rgba(17, 26, 46, .05), 0 18px 40px rgba(17, 26, 46, .12);
	--font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
	--wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); font-weight: 700; line-height: 1.22; letter-spacing: -.02em; margin: 0 0 .5em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 10px; left: 10px; background: #fff; padding: 10px 16px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.ico { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; flex-shrink: 0; }

/* ---------- Topbar & header ---------- */

.topbar { font-size: 12.5px; color: var(--muted); background: var(--soft); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar-date { display: inline-flex; gap: 6px; align-items: center; }
.topbar-follow { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.topbar-follow a { color: var(--muted); display: inline-flex; }
.topbar-follow a:hover { color: var(--blue); }
.topbar-follow svg { width: 14px; height: 14px; fill: currentColor; }
.topbar-follow .sep { width: 1px; height: 12px; background: var(--line); }

.site-header { background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.site-logo img { height: 48px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 9px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; transition: background .15s, color .15s; }
.main-nav a:hover { background: var(--soft); color: var(--blue); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { background: var(--blue-tint); color: var(--blue-deep); }
.main-nav .is-active > a { background: var(--blue-tint); color: var(--blue-deep); }
.main-nav.spy-active .current-menu-item:not(.is-active) > a, .main-nav.spy-active .current_page_item:not(.is-active) > a { background: none; color: var(--ink); }
.main-nav .menu-shop > a { color: var(--sun-deep); }
.main-nav .menu-shop > a:hover { background: var(--sun-tint); }
.main-nav .sub-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; background: #fff; box-shadow: var(--shadow-hover); border: 1px solid var(--line); border-radius: 14px; padding: 6px; flex-direction: column; align-items: stretch; }
.main-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a { border-radius: 8px; font-weight: 500; }
.header-tools { display: flex; align-items: center; gap: 4px; }
.header-tools a, .nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); background: none; border: 0; cursor: pointer; padding: 0; }
.header-tools a:hover, .nav-toggle:hover { background: var(--soft); }
.header-tools svg, .nav-toggle svg { width: 19px; height: 19px; }
.nav-toggle { display: none; }

/* ---------- 1. Powitanie jako karta ---------- */

.hero { padding: 28px 0 0; }
.hero-card {
	position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 24px;
	background: radial-gradient(120% 140% at 100% 0%, var(--hero-b) 0%, rgba(238,247,234,0) 55%), linear-gradient(135deg, var(--hero-a), #f3f8fd);
	border-radius: 28px; padding: 56px 56px 96px; overflow: hidden;
}
.hero-card::after { /* delikatne "kropki" w tle */
	content: ""; position: absolute; right: -40px; bottom: -40px; width: 260px; height: 260px; opacity: .5; pointer-events: none;
	background-image: radial-gradient(var(--blue) 1.2px, transparent 1.4px); background-size: 16px 16px;
	-webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%);
}
.hero-text { position: relative; z-index: 2; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--green-deep); background: rgba(255,255,255,.7); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(38px, 5vw, 62px); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 18px; }
.hero h1 strong { font-weight: 800; color: var(--blue); }
.hero p { margin: 0 0 26px; font-size: 16.5px; max-width: 50ch; }
.hero p strong { color: var(--ink); }
.hero p.hero-join { margin-top: -6px; margin-bottom: 0; font-size: 18px; color: var(--ink); }
.hero-search { position: relative; display: flex; align-items: center; max-width: 500px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: var(--shadow); }
.hero-search > svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 12px; font: 15.5px var(--font); color: var(--ink); outline: none; }
.hero-search button { border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 700 14px var(--font); padding: 12px 22px; cursor: pointer; transition: background .15s; }
.hero-search button:hover { background: var(--blue); }
.hero-stats { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.hero-stats span { font-size: 13px; color: var(--muted); }
.hero-art { position: relative; z-index: 1; margin: -30px -30px -110px 0; }
.hero-art img { width: 100%; max-width: 560px; margin-left: auto; mix-blend-mode: multiply; }

/* ---------- 2. Plywajace karty skrotow ---------- */

.shortcuts { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: -52px 32px 0; }
.sc { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); color: var(--ink); transition: transform .18s, box-shadow .18s; }
.sc:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: var(--ink); }
.sc-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; transition: transform .18s; }
.sc:hover .sc-ico { transform: rotate(-6deg) scale(1.06); }
.sc-ico svg { width: 24px; height: 24px; }
.sc--blue .sc-ico { background: var(--blue-tint); color: var(--blue); }
.sc--green .sc-ico { background: var(--green-tint); color: var(--green-deep); }
.sc--sun .sc-ico { background: var(--sun-tint); color: var(--sun-deep); }
.sc--coral .sc-ico { background: var(--coral-tint); color: var(--coral); }
.sc strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; }
.sc span span { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }

/* ---------- Naglowki sekcji ---------- */

.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 0; }
.section-head h2 span { font-weight: 400; color: var(--muted); }
.section-head a.more, .section-head > a { font-size: 14px; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.section-head > a::after { content: "→"; transition: transform .15s; }
.section-head > a:hover::after { transform: translateX(3px); }

/* ---------- Etykiety ---------- */

.chip { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-deep); line-height: 1.3; }
a.chip:hover { filter: brightness(.96); color: var(--blue-deep); }
.chip--green { background: var(--green-tint); color: var(--green-deep); }
a.chip--green:hover { color: var(--green-deep); }
.chip--sun { background: var(--sun-tint); color: var(--sun-deep); }
a.chip--sun:hover { color: var(--sun-deep); }
.chip--coral { background: var(--coral-tint); color: #a83a1f; }
a.chip--coral:hover { color: #a83a1f; }
.chip--ink { background: #eceef3; color: var(--ink); }
.list-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; position: relative; z-index: 2; }

/* ---------- 3. Lista wpisow ---------- */

.layout-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.post-list { display: flex; flex-direction: column; gap: 6px; }
.list-item { display: grid; grid-template-columns: 220px 1fr; gap: 22px; padding: 14px; margin: 0 -14px; border-radius: var(--radius); position: relative; transition: background .15s; }
.list-item:hover { background: var(--soft); }
.list-thumb { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--soft); }
.list-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.list-item:hover .list-thumb img { transform: scale(1.05); }
.list-body { display: flex; flex-direction: column; justify-content: center; }
.list-title { font-size: 19px; line-height: 1.3; margin: 0 0 6px; }
.list-title a { color: var(--ink); }
.list-title a::after { content: ""; position: absolute; inset: 0; }
.list-item:hover .list-title a { color: var(--blue); }
.list-excerpt { font-size: 14.5px; color: var(--muted); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.list-meta .read::before { content: "·"; margin-right: 8px; }
.meta-date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }

.list-item--featured { grid-template-columns: 1fr; gap: 18px; padding: 0 0 22px; margin: 0 0 14px; border-bottom: 1px solid var(--line); border-radius: 0; }
.list-item--featured:hover { background: none; }
.list-item--featured .list-thumb { aspect-ratio: 16 / 8.5; border-radius: var(--radius); }
.list-item--featured .list-title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.18; }
.list-item--featured .list-excerpt { font-size: 16px; -webkit-line-clamp: 3; }

.load-more { display: flex; justify-content: center; margin: 30px 0 6px; }
.load-more a { font-size: 14px; font-weight: 700; color: var(--ink); background: var(--soft); border: 1px solid var(--line); padding: 12px 24px; border-radius: 999px; transition: background .15s, color .15s; }
.load-more a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.ad-slot { margin-top: 32px; }
.ad-slot .widget { margin: 0; }
.ad-slot img { border-radius: var(--radius-sm); }
.ad-placeholder { display: grid; place-items: center; text-align: center; gap: 4px; min-height: 120px; border: 1.5px dashed #cfd5df; border-radius: var(--radius); background: var(--soft); color: var(--muted); font-size: 13px; padding: 20px; transition: border-color .15s, color .15s; }
.ad-placeholder strong { color: var(--ink); font-size: 14px; }
.ad-placeholder:hover { border-color: var(--blue); color: var(--blue); }
.ad-placeholder--tall { min-height: 260px; }

/* ---------- 4. Panel boczny ---------- */

.sidebar { align-self: stretch; }
.sidebar > .ad-slot:last-of-type { position: sticky; top: 98px; }
.sidebar .widget { margin-bottom: 22px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.sidebar .widget-title, .sidebar h3 { font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.topic-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.topic { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: var(--soft); color: var(--text); border: 1px solid transparent; transition: border-color .15s, color .15s, background .15s; }
.topic span { font-size: 11px; color: var(--muted); font-weight: 600; }
.topic:hover { border-color: var(--blue); background: #fff; color: var(--blue); }
.topic-more { margin-top: 10px; }
.topic-more summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--blue); list-style: none; padding: 4px 0; }
.topic-more summary::-webkit-details-marker { display: none; }
.topic-more summary::after { content: " ▾"; }
.topic-more[open] summary::after { content: " ▴"; }
.topic-more .topic-cloud { margin-top: 8px; }
.banners { display: grid; gap: 12px; }
.banners a { display: block; border-radius: 12px; overflow: hidden; }
.banners img { width: 100%; transition: transform .35s; }
.banners a:hover img { transform: scale(1.04); }
.widget ul { padding-left: 18px; margin: 0; }

/* ---------- Mistrzejowice z pasja ---------- */

.passion { background: linear-gradient(180deg, var(--soft), #fff); padding: 60px 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.portrait { position: relative; }
.portrait-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); margin-bottom: 12px; background: var(--soft); }
.portrait-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.portrait:hover .portrait-img img { transform: scale(1.05); }
.portrait h3 { font-size: 15px; font-weight: 700; line-height: 1.4; margin: 0 0 6px; }
.portrait h3 a { color: var(--ink); }
.portrait h3 a::after { content: ""; position: absolute; inset: 0; }
.portrait:hover h3 a { color: var(--blue); }

/* ---------- Warto przeczytac ---------- */

.mixed { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 28px; }
.overlay-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; background: var(--ink); }
.overlay-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.overlay-card:hover img { transform: scale(1.04); }
.overlay-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(17,26,46,0) 35%, rgba(17,26,46,.85)); }
.overlay-body { position: relative; z-index: 2; padding: 24px; }
.overlay-body h3 { color: #fff; font-size: 21px; margin: 0 0 8px; }
.overlay-body h3 a { color: #fff; }
.overlay-body h3 a::after { content: ""; position: absolute; inset: 0; }
.overlay-body .meta-date { color: #d8deea; }
.num-list, .round-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.num-item, .round-item { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; position: relative; }
.num-thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft); }
.num-thumb img { width: 100%; height: 100%; object-fit: cover; }
.num-thumb b { position: absolute; left: 6px; top: 6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: #fff; color: var(--ink); font: 800 12px var(--font); box-shadow: var(--shadow); }
.round-item { grid-template-columns: 68px 1fr; }
.round-thumb { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--soft); }
.round-thumb img { width: 100%; height: 100%; object-fit: cover; }
.num-item h4, .round-item h4 { font-size: 14.5px; font-weight: 700; line-height: 1.4; margin: 0 0 4px; }
.num-item h4 a, .round-item h4 a { color: var(--ink); }
.num-item h4 a::after, .round-item h4 a::after { content: ""; position: absolute; inset: 0; }
.num-item:hover h4 a, .round-item:hover h4 a { color: var(--blue); }
.round-item .list-chips { margin-bottom: 4px; }

/* ---------- Karty (archiwa, powiazane) ---------- */

.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media--empty { display: grid; place-items: center; color: var(--muted); }
.card-media--empty svg { width: 40px; }
.card-body { display: flex; flex-direction: column; gap: 6px; }
.card-title { font-size: 17px; margin: 0; }
.card-title a { color: var(--ink); }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card-title a { color: var(--blue); }
.card-excerpt { font-size: 14px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); order: -1; }
.card-meta .chip { position: relative; z-index: 2; }

/* ---------- Single / page ---------- */

.entry-hero { padding: 40px 0 8px; }
.entry-hero .wrap { max-width: 860px; }
.entry-hero h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; margin: 12px 0 14px; letter-spacing: -.03em; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 14px; color: var(--muted); }
.entry-meta .chips { display: flex; gap: 6px; }
.entry-figure { max-width: 1080px; margin: 28px auto 0; padding: 0 24px; }
.entry-figure img { width: 100%; border-radius: 22px; max-height: 620px; object-fit: cover; }
.entry-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.entry-content { max-width: 740px; margin: 0 auto; padding: 36px 24px 16px; font-size: 18px; line-height: 1.8; color: #2c3446; }
.entry-content > * { margin-top: 0; margin-bottom: 1.1em; }
.entry-content h2 { font-size: 27px; margin-top: 1.5em; }
.entry-content h3 { font-size: 22px; margin-top: 1.4em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: 12px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .wp-caption-text { font-size: 13px; color: var(--muted); margin-top: 6px; }
.entry-content blockquote { margin-left: 0; padding: 20px 24px; background: var(--blue-tint); border-radius: 0 var(--radius) var(--radius) 0; border-left: 4px solid var(--blue); font-size: 19px; font-weight: 500; color: var(--ink); }
.entry-content iframe, .entry-content video { max-width: 100%; border-radius: 12px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content td, .entry-content th { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.entry-content .alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin: 6px 24px 12px 0; }
.entry-content .alignright { float: right; margin: 6px 0 12px 24px; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.wp-block-gallery, .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.sticky {} .bypostauthor {}
.entry-footer { max-width: 740px; margin: 0 auto; padding: 0 24px 20px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--soft); }
.share strong { margin-right: auto; color: var(--ink); font-size: 15px; }
.share a { font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.share a:hover { border-color: var(--blue); color: var(--blue); }
.tags { margin-top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.post-nav { max-width: 740px; margin: 0 auto; padding: 8px 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-nav a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1.4; transition: border-color .15s, box-shadow .15s; }
.post-nav a:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--blue); }
.post-nav small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; margin-bottom: 4px; }
.post-nav .next { text-align: right; }

.archive-head { padding: 28px 0 0; }
.archive-head .wrap > * { position: relative; }
.archive-head .wrap { background: linear-gradient(135deg, var(--hero-a), #f3f8fd); border-radius: 24px; padding: 36px 40px; max-width: calc(var(--wrap) - 48px); }
.archive-head h1 { font-size: clamp(28px, 3.6vw, 42px); margin: 8px 0 6px; letter-spacing: -.03em; }
.archive-head .wrap > p, .archive-head .wrap > div { margin: 0; max-width: 62ch; }
.archive-kicker { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-deep); }
.archive-head .hero-search { margin-top: 18px; }
.archive-head .hero-search input { padding-left: 4px; }
.pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 40px 0 8px; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 700; font-size: 14px; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.empty-state { text-align: center; padding: 60px 20px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 14px var(--font); }
.btn:hover { background: var(--blue); color: #fff; }

.comments { max-width: 740px; margin: 0 auto; padding: 30px 24px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 16px 18px; border-radius: var(--radius); background: var(--soft); margin-bottom: 10px; }
.comment-meta { font-size: 13px; color: var(--muted); }
.comment-author { font-weight: 700; color: var(--ink); }
.comment-author img { display: inline-block; border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-form label { display: block; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: 15px var(--font); }
.comment-form .submit { padding: 12px 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 700 14px var(--font); cursor: pointer; }

/* ---------- Footer ---------- */

.site-footer { background: var(--footer); color: #9aa3b6; margin-top: 64px; font-size: 13.5px; }
.footer-main { padding: 48px 0 38px; }
.footer-main .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.footer-logo { background: #fff; padding: 8px 12px; border-radius: 12px; justify-self: start; }
.footer-logo img { height: 34px; width: auto; }
.footer-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.footer-menu li + li::before { content: "•"; margin: 0 12px; color: #3a4357; }
.footer-menu a { color: #e6e9f0; font-weight: 600; }
.footer-menu a:hover { color: var(--green); }
.footer-social { justify-self: end; display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #1c2436; color: #fff; transition: background .15s; }
.footer-social a:hover { background: var(--blue); }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }
.footer-bottom { border-top: 1px solid #1c2436; padding: 18px 0; text-align: center; font-size: 12.5px; }
.footer-bottom a { color: #cdd3df; }
.footer-bottom a:hover { color: var(--green); }

.to-top { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; z-index: 40; box-shadow: var(--shadow-hover); }
.to-top:hover { background: var(--blue); color: #fff; }
.to-top svg { width: 16px; height: 16px; }

/* ---------- Responsive ---------- */

@media (max-width: 1140px) {
	.nav-toggle { display: grid; }
	.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 10px 24px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-hover); max-height: calc(100vh - 74px); overflow-y: auto; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.main-nav a { border-radius: 10px; padding: 11px 12px; }
	.main-nav .sub-menu { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; }
	.header-tools { margin-left: auto; }
	.shortcuts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
	.hero-card { grid-template-columns: 1fr; padding: 40px 32px 84px; text-align: left; }
	.hero-art { margin: 0 auto -90px; max-width: 380px; order: -1; }
	.layout-main { grid-template-columns: 1fr; }
	.sidebar > .ad-slot:last-of-type { position: static; }
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
	.mixed { grid-template-columns: 1fr 1fr; }
	.overlay-card { grid-column: 1 / -1; min-height: 340px; }
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.wrap { padding: 0 16px; }
	.topbar-date { display: none; }
	.site-logo img { height: 40px; }
	.hero { padding-top: 12px; }
	.hero-card { padding: 28px 20px 76px; border-radius: 22px; }
	.hero-art { max-width: 280px; margin-bottom: -60px; }
	.hero-search button { padding: 11px 16px; }
	.hero-stats { gap: 8px 22px; }
	.hero-stats strong { font-size: 20px; }
	.shortcuts { margin: -44px 8px 0; gap: 10px; }
	.sc { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
	.sc span span { display: none; }
	.sc strong { font-size: 14px; }
	.list-item { grid-template-columns: 112px 1fr; gap: 14px; padding: 10px; margin: 0 -10px; }
	.list-title { font-size: 15.5px; }
	.list-excerpt { display: none; }
	.list-meta .read { display: none; }
	.list-item--featured { grid-template-columns: 1fr; padding: 0 0 18px; margin: 0 0 10px; }
	.list-item--featured .list-excerpt { display: -webkit-box; }
	.grid-4, .grid-3, .grid-2, .mixed { grid-template-columns: 1fr; }
	.archive-head .wrap { padding: 26px 20px; border-radius: 0; }
	.footer-main .wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.footer-logo, .footer-social { justify-self: center; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav .next { text-align: left; }
	.entry-figure { padding: 0; }
	.entry-figure img { border-radius: 0; }
}

/* ---------- Strona O nas ---------- */

.about-hero { padding: 28px 0 0; }
.about-hero .hero-card { padding: 56px; grid-template-columns: 1fr 1fr; }
.about-kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 14px; }
.about-hero h1 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 500; letter-spacing: -.035em; line-height: 1.06; margin-bottom: 18px; }
.about-hero h1 strong { font-weight: 800; color: var(--blue); }
.about-hero p { font-size: 16.5px; margin: 0; max-width: 52ch; }
.collage { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.collage img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.collage > :nth-child(1) { transform: rotate(-2deg); }
.collage > :nth-child(2) { transform: translateY(18px) rotate(2deg); }
.collage > :nth-child(3) { transform: translateY(-6px) rotate(1.5deg); }
.collage > :nth-child(4) { transform: translateY(12px) rotate(-1.5deg); }

.about-what { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.what { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.what .sc-ico { width: 44px; height: 44px; }
.what h3 { font-size: 16px; margin: 0 0 4px; }
.what p { margin: 0; font-size: 14px; color: var(--muted); }
.what:nth-child(6n+1) .sc-ico { background: var(--blue-tint); color: var(--blue); }
.what:nth-child(6n+2) .sc-ico { background: var(--green-tint); color: var(--green-deep); }
.what:nth-child(6n+3) .sc-ico { background: var(--sun-tint); color: var(--sun-deep); }
.what:nth-child(6n+4) .sc-ico { background: var(--coral-tint); color: var(--coral); }
.what:nth-child(6n+5) .sc-ico { background: var(--blue-tint); color: var(--blue); }
.what:nth-child(6n+6) .sc-ico { background: var(--green-tint); color: var(--green-deep); }
.what .sc-ico svg { width: 22px; height: 22px; }

.team { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.person { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 26px; border-radius: 22px; background: var(--soft); }
.person img { width: 170px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.person h3 { font-size: 22px; margin: 0; }
.person .role { display: block; font-size: 13.5px; font-weight: 700; color: var(--blue); margin: 2px 0 12px; }
.person p { font-size: 14.5px; margin: 0 0 12px; }
.person .does { font-size: 13.5px; color: var(--muted); margin: 0; }
.person .does strong { color: var(--ink); }

.story { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); display: grid; gap: 22px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -30px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.timeline li:last-child::before { background: var(--green); border-color: var(--green); }
.timeline strong { display: block; font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.timeline span { font-size: 14px; color: var(--muted); }
.story-text p { font-size: 16.5px; margin: 0 0 14px; }

.gallery-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gallery-strip figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--soft); }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-strip figure:hover img { transform: scale(1.06); }
.gallery-strip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(180deg, transparent, rgba(17,26,46,.8)); opacity: 0; transition: opacity .2s; }
.gallery-strip figure:hover figcaption, .gallery-strip figure:focus-within figcaption { opacity: 1; }

.projects2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project2 { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; color: var(--text); transition: box-shadow .18s, transform .18s; }
.project2:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); color: var(--text); }
.project2 img { width: 100%; aspect-ratio: 1000 / 552; object-fit: cover; }
.project2 div { padding: 22px 24px 26px; }
.project2 h3 { font-size: 20px; margin: 0 0 8px; }
.project2 p { font-size: 14.5px; margin: 0 0 12px; }
.project2 .go { font-size: 14px; font-weight: 700; color: var(--blue); }

.about-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px 40px; border-radius: 24px; background: var(--ink); color: #c9d0dd; }
.about-cta h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 6px; }
.about-cta p { margin: 0; }
.about-cta .btn { background: var(--green); color: var(--ink); }
.about-cta .btn:hover { background: #fff; color: var(--ink); }

@media (max-width: 960px) {
	.about-hero .hero-card { grid-template-columns: 1fr; padding: 36px 28px 44px; }
	.about-what { grid-template-columns: 1fr 1fr; }
	.team, .projects2 { grid-template-columns: 1fr; }
	.story { grid-template-columns: 1fr; gap: 28px; }
	.gallery-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
	.about-what { grid-template-columns: 1fr; }
	.person { grid-template-columns: 1fr; padding: 20px; }
	.person img { width: 100%; max-width: 220px; }
	.gallery-strip { grid-template-columns: repeat(3, 1fr); }
	.about-cta { padding: 26px 22px; }
}

/* ---------- Strona O Mistrzejowicach ---------- */

.town-hero { grid-template-columns: 1.15fr .85fr; }
.facts { position: relative; z-index: 2; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.facts > div { background: rgba(255,255,255,.8); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.facts dt { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.facts dd { margin: 4px 0 0; font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.15; }
.facts .facts-wide { grid-column: 1 / -1; }
.facts .facts-wide dd { font-size: 15.5px; font-weight: 600; letter-spacing: 0; }

.units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.unit { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.unit:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.unit-pin { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--blue-tint); color: var(--blue); }
.unit:nth-child(-n+3) .unit-pin { background: var(--green-tint); color: var(--green-deep); }
.unit-pin svg { width: 20px; height: 20px; }
.unit strong { display: block; font-size: 15px; line-height: 1.3; }
.unit span span { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 2px; }

.years { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px 18px; position: relative; }
.years li { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.years li::before { content: ""; position: absolute; left: 0; top: -8px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.years li:nth-child(n+6)::before { border-color: var(--green); }
.years strong { display: block; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin-bottom: 4px; }
.years span { font-size: 14px; color: var(--text); line-height: 1.45; display: block; }

.history { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 98px; display: flex; flex-direction: column; gap: 2px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.toc strong { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.toc a { font-size: 14px; font-weight: 600; color: var(--text); padding: 6px 10px; border-radius: 8px; }
.toc a:hover { background: var(--soft); color: var(--blue); }
.toc a.is-current { background: var(--blue-tint); color: var(--blue-deep); }
.m24-landing .history-text h2 { scroll-margin-top: 100px; }
.history-text { max-width: 760px; margin: 0; padding: 0; font-size: 17px; }
.history-text h2 { scroll-margin-top: 100px; font-size: 26px; margin-top: 1.6em; }
.history-text h2:first-child { margin-top: 0; }
.history-text .source { font-size: 14px; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); margin-top: 2em; }

@media (max-width: 1024px) {
	.units { grid-template-columns: repeat(3, 1fr); }
	.years { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
	.town-hero { grid-template-columns: 1fr; }
	.history { grid-template-columns: 1fr; gap: 24px; }
	.toc { position: static; flex-direction: row; flex-wrap: wrap; }
	.toc strong { width: 100%; }
}
@media (max-width: 640px) {
	.units { grid-template-columns: 1fr 1fr; }
	.unit { flex-direction: column; gap: 8px; padding: 14px; }
	.years { grid-template-columns: 1fr; gap: 18px; padding-left: 22px; border-left: 2px solid var(--line); }
	.years li { border-top: 0; padding-top: 0; }
	.years li::before { left: -31px; top: 6px; }
	.facts dd { font-size: 20px; }
}

/* ---------- Podstrony z bloków (O nas, O Mistrzejowicach) ---------- */
/* Treść wklejona do edytora WordPressa jako bloki. Grupy WordPressa dodają
   wewnętrzny div - "display: contents" sprawia, że układ działa jak w podglądzie. */

.m24-landing .wp-block-group__inner-container { display: contents; }
.m24-landing figure { margin: 0; }
.m24-landing > .section { margin: 0; }
.m24-landing .section--flat { padding-top: 0; }
.m24-landing h2 em, .section-head h2 em { font-style: normal; font-weight: 400; color: var(--muted); }
.m24-landing .lead-p { margin: -10px 0 24px; max-width: 60ch; }
.m24-landing .about-hero { padding: 28px 0 0; }
.m24-landing .hero-card p { margin: 0; }
.m24-landing .hero-card .about-kicker { margin-bottom: 14px; }
.m24-landing .hero-card h1 { margin-bottom: 18px; }

/* galerie WordPressa: zamiast flexa - nasza siatka */
.m24-landing .wp-block-gallery.collage,
.m24-landing .wp-block-gallery.gallery-strip { display: grid !important; gap: 10px; flex-wrap: initial; }
.m24-landing .wp-block-gallery.collage { grid-template-columns: 1fr 1fr; gap: 12px; position: relative; z-index: 2; }
.m24-landing .wp-block-gallery.gallery-strip { grid-template-columns: repeat(6, 1fr); }
.m24-landing .wp-block-gallery.collage > figure.wp-block-image,
.m24-landing .wp-block-gallery.gallery-strip > figure.wp-block-image { width: auto !important; margin: 0 !important; aspect-ratio: 1; }
.m24-landing .wp-block-gallery.collage > figure img { border-radius: 18px; box-shadow: var(--shadow); }
.m24-landing .wp-block-gallery.gallery-strip > figure { border-radius: 12px; overflow: hidden; }
.m24-landing .wp-block-gallery img { width: 100% !important; height: 100% !important; object-fit: cover; }
.m24-landing .wp-block-gallery.gallery-strip figcaption { font-size: 12px; font-weight: 600; padding: 22px 10px 8px; opacity: 0; transition: opacity .2s; }
.m24-landing .wp-block-gallery.gallery-strip figure:hover figcaption { opacity: 1; }

/* karty z ikoną (Czym się zajmujemy, Warto zobaczyć, Osiedla) */
.m24-landing .what.wp-block-group, .m24-landing .unit.wp-block-group { position: relative; display: block; padding: 20px 20px 20px 78px; min-height: 84px; }
.m24-landing .unit.wp-block-group { padding: 16px 16px 16px 64px; min-height: 0; }
.m24-landing .what.wp-block-group::before, .m24-landing .unit.wp-block-group::before {
	content: ""; position: absolute; left: 20px; top: 20px; width: 44px; height: 44px; border-radius: 14px; background: var(--blue-tint);
}
.m24-landing .unit.wp-block-group::before { left: 16px; top: 16px; width: 36px; height: 36px; border-radius: 10px; }
.m24-landing .what.wp-block-group::after, .m24-landing .unit.wp-block-group::after {
	content: ""; position: absolute; left: 31px; top: 31px; width: 22px; height: 22px; background: var(--blue);
	-webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.m24-landing .unit.wp-block-group::after { left: 24px; top: 24px; width: 20px; height: 20px; }
.m24-landing .what:nth-child(4n+2)::before { background: var(--green-tint); } .m24-landing .what:nth-child(4n+2)::after { background: var(--green-deep); }
.m24-landing .what:nth-child(4n+3)::before { background: var(--sun-tint); } .m24-landing .what:nth-child(4n+3)::after { background: var(--sun-deep); }
.m24-landing .what:nth-child(4n+4)::before { background: var(--coral-tint); } .m24-landing .what:nth-child(4n+4)::after { background: var(--coral); }
.m24-landing .unit:nth-child(-n+3)::before { background: var(--green-tint); } .m24-landing .unit:nth-child(-n+3)::after { background: var(--green-deep); }
.m24-landing .what h3 { font-size: 16px; margin: 0 0 4px; }
.m24-landing .what p { margin: 0; font-size: 14px; color: var(--muted); }
.m24-landing .what h3 a { color: var(--ink); }
.m24-landing .what h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.m24-landing .what:has(h3 a):hover h3 a { color: var(--blue); }
.m24-landing .facts .fact-value a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.m24-landing .facts .fact-value a:hover { color: var(--blue); }
.m24-landing .unit h3 { font-size: 15px; margin: 0; line-height: 1.3; }
.m24-landing .unit h3 a { color: var(--ink); }
.m24-landing .unit h3 a::after { content: ""; position: absolute; inset: 0; }
.m24-landing .unit p { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.35; }

.ico-news { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='4' width='14' height='16' rx='1.5'/%3E%3Cpath d='M17 8h3v10a2 2 0 0 1-2 2M6 8h8M6 12h8M6 16h5'/%3E%3C/svg%3E"); }
.ico-map { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M9 4 3 6v14l6-2 6 2 6-2V4l-6 2-6-2Z'/%3E%3Cpath d='M9 4v14M15 6v14'/%3E%3C/svg%3E"); }
.ico-culture { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 10 12 4l9 6M5 10v8M9 10v8M15 10v8M19 10v8M3 20h18'/%3E%3C/svg%3E"); }
.ico-star { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.7 5.6 6.1.8-4.5 4.2 1.1 6-5.4-2.9-5.4 2.9 1.1-6L3.2 9.4l6.1-.8L12 3Z'/%3E%3C/svg%3E"); }
.ico-mega { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 10v4h4l6 4V6L7 10H3ZM16 9a4 4 0 0 1 0 6M18.5 6.5a7.5 7.5 0 0 1 0 11'/%3E%3C/svg%3E"); }
.ico-bag { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 13H6L5 8Z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E"); }
.ico-pin { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21Z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }

/* zespół */
.m24-landing .person > figure img { width: 170px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.m24-landing .person h3 { font-size: 22px; margin: 0; }
.m24-landing .person .role { font-size: 13.5px; font-weight: 700; color: var(--blue); margin: 2px 0 12px; }

/* listy: oś czasu, lata, spis treści */
.m24-landing .timeline li, .m24-landing .years li { font-size: 14px; color: var(--muted); line-height: 1.45; }
.m24-landing .years li { color: var(--text); }
.m24-landing .story-text p { font-size: 16.5px; margin: 0 0 14px; }
.m24-landing .toc .toc-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.m24-landing .toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.m24-landing .toc-list a { display: block; }
.m24-landing .history-text { font-size: 17px; line-height: 1.8; color: #2c3446; }
.m24-landing .history-text p { margin: 0 0 1.1em; }
.m24-landing .history-text a { text-decoration: underline; text-underline-offset: 3px; }

/* fakty */
.m24-landing .facts { margin: 0; }
.m24-landing .facts .fact { background: rgba(255,255,255,.8); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.m24-landing .facts .fact-label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.m24-landing .facts .fact-value { margin: 4px 0 0; font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.15; }
.m24-landing .facts .facts-wide .fact-value { font-size: 15.5px; font-weight: 600; letter-spacing: 0; }

/* projekty i wezwanie do kontaktu */
.m24-landing .project2 > .wp-block-group { padding: 22px 24px 26px; }
.m24-landing .project2 h3 a { color: var(--ink); }
.m24-landing .project2 h3 a:hover { color: var(--blue); }
.m24-landing .project2 .go a { font-size: 14px; font-weight: 700; color: var(--blue); }
.m24-landing .project2 > figure img { width: 100%; aspect-ratio: 1000 / 552; object-fit: cover; }
.m24-landing .about-cta .wp-block-buttons { margin: 0; }
.m24-landing .about-cta .wp-block-button__link { background: var(--green); color: var(--ink); border-radius: 999px; padding: 12px 22px; font: 700 14px var(--font); }
.m24-landing .about-cta .wp-block-button__link:hover { background: #fff; }
.m24-landing .about-cta .wp-block-buttons { gap: 10px; }
.m24-landing .about-cta .is-style-outline .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.m24-landing .about-cta .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--ink); }

@media (max-width: 960px) {
	.m24-landing .wp-block-gallery.gallery-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
	.m24-landing .wp-block-gallery.gallery-strip { grid-template-columns: repeat(3, 1fr); }
	.m24-landing .person > figure img { width: 100%; max-width: 220px; }
	.m24-landing .unit.wp-block-group { padding: 60px 14px 14px; }
	.m24-landing .unit.wp-block-group::before { left: 14px; top: 14px; }
	.m24-landing .unit.wp-block-group::after { left: 22px; top: 22px; }
}

/* ---------- Strona Współpraca ---------- */

.ico-image { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='m21 16-5-5-8 8'/%3E%3C/svg%3E"); }
.ico-chat { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 5h12v9H9l-4 3v-3H4z'/%3E%3Cpath d='M16 9h4v8h-1v3l-3-3h-5v-3'/%3E%3C/svg%3E"); }
.ico-camera { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.3' cy='6.7' r='.8' fill='black'/%3E%3C/svg%3E"); }
.ico-play { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='3'/%3E%3Cpath d='m10 9 5 3-5 3V9Z'/%3E%3C/svg%3E"); }
.ico-gift { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M5 12v8h14v-8M12 8v12M12 8S10.5 4 8 4.5 7.5 8 12 8ZM12 8s1.5-4 4-3.5S16.5 8 12 8Z'/%3E%3C/svg%3E"); }
.ico-swap { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h14l-3-3M20 16H6l3 3'/%3E%3C/svg%3E"); }
.ico-bulb { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3Z'/%3E%3C/svg%3E"); }

.m24-landing .wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.m24-landing .wp-block-button { margin: 0; }
.m24-landing .wp-block-button__link { display: inline-block; text-decoration: none; }
.m24-landing .hero-card .wp-block-buttons { margin-top: 24px; }
.m24-landing .hero-card .wp-block-button__link { background: var(--ink); color: #fff; border-radius: 999px; padding: 13px 24px; font: 700 15px var(--font); }
.m24-landing .hero-card .wp-block-button__link:hover { background: var(--blue); }
.m24-landing .hero-card .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.m24-landing .hero-card .is-style-outline .wp-block-button__link:hover { background: var(--ink); color: #fff; }

.m24-landing .coop { display: grid; gap: 40px; }
.m24-landing .coop-title { font-size: 21px; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.m24-landing .coop-title::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--blue); }
.m24-landing .coop-group:nth-child(2) .coop-title::before { background: var(--green); }
.m24-landing .coop-group:nth-child(3) .coop-title::before { background: var(--sun); }
.m24-landing .coop-intro { margin: 0 0 16px; color: var(--muted); }

.m24-landing .years.steps { grid-template-columns: repeat(3, 1fr); }
.m24-landing .years.steps strong { font-size: 19px; }
.m24-landing .trust { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.m24-landing .trust p { margin: 0; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; }
.m24-landing .trust p::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green-tint); color: var(--green-deep); font-weight: 800; font-size: 13px; flex-shrink: 0; }

/* blok "Najnowsze wpisy" jako siatka kart */
.m24-landing .wp-block-latest-posts.sponsored-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.m24-landing .sponsored-grid li.is-hidden { display: none; }
.m24-landing .sponsored-grid.passion-grid li::before { content: "Mistrzejowice z pasją"; background: var(--sun-tint); color: var(--sun-deep); }
.m24-landing #z-pasja { scroll-margin-top: 100px; }
.m24-more { display: flex; justify-content: center; margin-top: 32px; }
.m24-more-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 700 14px var(--font); cursor: pointer; transition: background .15s; }
.m24-more-btn:hover { background: var(--blue); }
.m24-more-btn svg { width: 18px; height: 18px; }
.m24-landing .sponsored-grid li { position: relative; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.m24-landing .sponsored-grid .wp-block-latest-posts__featured-image { margin: 0 0 6px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.m24-landing .sponsored-grid .wp-block-latest-posts__featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; max-width: none; }
.m24-landing .sponsored-grid li:hover img { transform: scale(1.05); }
.m24-landing .sponsored-grid .wp-block-latest-posts__post-title { font-size: 16.5px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.m24-landing .sponsored-grid .wp-block-latest-posts__post-title::after { content: ""; position: absolute; inset: 0; }
.m24-landing .sponsored-grid li:hover .wp-block-latest-posts__post-title { color: var(--blue); }
.m24-landing .sponsored-grid .wp-block-latest-posts__post-date { font-size: 13px; color: var(--muted); }
.m24-landing .sponsored-grid li::before { content: "Artykuł sponsorowany"; order: 1; align-self: flex-start; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eceef3; color: var(--ink); }
.m24-landing .sponsored-grid .wp-block-latest-posts__featured-image { order: 0; }
.m24-landing .sponsored-grid .wp-block-latest-posts__post-title { order: 2; }
.m24-landing .sponsored-grid .wp-block-latest-posts__post-date { order: 3; }

@media (max-width: 960px) {
	.m24-landing .wp-block-latest-posts.sponsored-grid { grid-template-columns: 1fr 1fr; }
	.m24-landing .years.steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.m24-landing .wp-block-latest-posts.sponsored-grid { grid-template-columns: 1fr; }
}

/* Swiateczny baner (klasa "xmas" na grupie about-cta) - usun klase po Swietach. */
.about-cta.xmas { position: relative; overflow: hidden; isolation: isolate; padding-top: 44px; padding-bottom: 44px; background: linear-gradient(120deg, #143d2f 0%, #111a2e 62%, #2a1420 100%); }
.about-cta.xmas > * { position: relative; z-index: 2; }
.about-cta.xmas::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
	background-image: radial-gradient(circle, #fff 1.4px, transparent 1.8px), radial-gradient(circle, rgba(255,255,255,.7) 1px, transparent 1.4px), radial-gradient(circle, rgba(255,255,255,.5) 2px, transparent 2.4px);
	background-size: 90px 90px, 55px 55px, 140px 140px; background-position: 0 0, 20px 30px, 60px 10px;
	animation: m24-snieg 14s linear infinite; }
@keyframes m24-snieg { to { background-position: 0 90px, 20px 85px, 60px 150px; } }
.about-cta.xmas::before { content: ""; position: absolute; top: 0; right: 380px; z-index: 1; width: 170px; height: 104px; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 104'%3E%3Cg stroke='%23f2b233' stroke-width='1.5' opacity='.8'%3E%3Cpath d='M30 0v46M85 0v70M140 0v34'/%3E%3C/g%3E%3Ccircle cx='30' cy='60' r='14' fill='%23d94b3a'/%3E%3Crect x='25' y='43' width='10' height='5' rx='1.5' fill='%23f2b233'/%3E%3Ccircle cx='25' cy='55' r='4' fill='%23fff' opacity='.35'/%3E%3Ccircle cx='85' cy='86' r='16' fill='%23f2b233'/%3E%3Crect x='79' y='67' width='12' height='5' rx='1.5' fill='%23f6d27a'/%3E%3Cpath d='M70 86h30' stroke='%23d94b3a' stroke-width='3'/%3E%3Ccircle cx='79' cy='80' r='4.5' fill='%23fff' opacity='.35'/%3E%3Ccircle cx='140' cy='47' r='12' fill='%237cb83a'/%3E%3Crect x='135' y='31' width='10' height='5' rx='1.5' fill='%23f2b233'/%3E%3Ccircle cx='136' cy='43' r='3.5' fill='%23fff' opacity='.35'/%3E%3C/svg%3E") no-repeat center top / contain;
	animation: m24-bombki 5s ease-in-out infinite alternate; transform-origin: 50% 0; }
@keyframes m24-bombki { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
.about-cta.xmas h2::before { content: "✦ "; color: var(--sun); }
.about-cta.xmas strong { color: var(--sun); }
@media (max-width: 960px) { .about-cta.xmas::before { right: 16px; width: 110px; height: 68px; opacity: .9; } .about-cta.xmas { padding-top: 76px; } }
@media (prefers-reduced-motion: reduce) { .about-cta.xmas::after, .about-cta.xmas::before { animation: none; } }

/* Mistrzejowice kiedys i dzis */
.m24-landing .section--invite { padding-top: 28px; padding-bottom: 0; }
.about-cta.invite { background: var(--sun-tint); color: var(--text); border: 1px solid #f3dfae; }
.about-cta.invite h2 { color: var(--ink); }
.about-cta.invite h2 em { font-style: normal; color: var(--sun-deep); font-weight: 800; }
.about-cta.invite .about-cta-text { max-width: 720px; }
.m24-landing .about-cta.invite .wp-block-button__link { background: var(--ink); color: #fff; }
.m24-landing .about-cta.invite .wp-block-button__link:hover { background: var(--blue); }
.m24-landing .kid-note { margin: 14px 0 0; text-align: center; font-size: 13.5px; color: var(--muted); }
.m24-landing .kid-wide { max-width: 900px; margin: 0 auto; }
.m24-landing .kid-wide img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.m24-landing .kid-row { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 48px; align-items: center; }
.m24-landing .kid-row > figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.m24-landing .kid-text h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 12px; }
.m24-landing .kid-text p { margin: 0 0 12px; font-size: 16.5px; }
.m24-landing .kid-text .about-kicker { margin-bottom: 10px; }
.m24-landing .kid-source { font-size: 13.5px !important; color: var(--muted); }
.m24-compare { position: relative; max-width: 900px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); user-select: none; }
.m24-compare figure { margin: 0; position: relative; }
.m24-compare img { display: block; width: 100%; height: auto; }
.m24-compare figcaption { position: absolute; top: 12px; left: 12px; margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(17,26,46,.78); color: #fff; font: 700 13px var(--font); }
.m24-compare.is-ready figure:nth-of-type(2) { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.m24-compare.is-ready figure:nth-of-type(2) img { height: 100%; object-fit: cover; }
.m24-compare.is-ready figure:nth-of-type(2) figcaption { left: auto; right: 12px; }
.m24-compare input[type="range"] { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.m24-compare .compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); z-index: 2; width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; box-shadow: 0 0 0 1px rgba(17,26,46,.15); }
.m24-compare .compare-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111a2e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: var(--shadow-hover); }
.m24-compare input[type="range"]:focus-visible ~ .compare-handle::after { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (max-width: 960px) { .m24-landing .kid-row { grid-template-columns: 1fr; gap: 28px; } .m24-landing .kid-row > figure { max-width: 440px; } }

.comments .m24-more { margin: 8px 0 32px; }

/* Nasi partnerzy - siatka logotypow */
.m24-landing .partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.m24-landing .partners figure.partner { margin: 0; height: 118px; display: flex; align-items: center; justify-content: center; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.m24-landing .partners figure.partner a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.m24-landing .partners figure.partner img { max-width: 100%; max-height: 78px; width: auto; height: auto; object-fit: contain; }
.m24-landing .partners figure.partner:has(a):hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
@media (max-width: 640px) { .m24-landing .partners { grid-template-columns: repeat(2, 1fr); gap: 10px; } .m24-landing .partners figure.partner { height: 96px; padding: 12px; } }

/* Baner cookies */
.cookie-banner { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 200; max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 20px 24px; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 50px rgba(17,26,46,.18); font-size: 14px; line-height: 1.55; }
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 4px; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { padding: 11px 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font: 700 14px var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.cookie-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.cookie-btn--ghost { background: #fff; color: var(--ink); }
.cookie-settings { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.cookie-settings:hover { color: #fff; }
@media (max-width: 720px) {
	.cookie-banner { left: 10px; right: 10px; bottom: 10px; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
	.cookie-actions { flex-direction: column-reverse; }
	.cookie-btn { width: 100%; }
}
/* Polityka prywatnosci */
.entry-content .policy-date { color: var(--muted); font-size: 15px; }
.entry-content mark { background: var(--sun-tint); color: var(--sun-deep); padding: 1px 4px; border-radius: 4px; }
