/*
Theme Name: Mały Wielki Krok
Description: Motyw blokowy Fundacji Mały Wielki Krok – kolory i charakter logo, dużo zdjęć, mało tekstu. Treści edytujesz w Wygląd › Edytor.
Version: 1.4.5
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maly-wielki-krok
*/

/* ---------- Podstawy ---------- */
img { max-width: 100%; height: auto; }

.mwk-odrecznie {
	font-family: var(--wp--preset--font-family--odrecznie);
	font-size: 1.75rem;
	line-height: 1.1;
	color: var(--wp--preset--color--pomarancz-ciemny);
	margin: 0;
}
.mwk-odrecznie.is-zielony { color: var(--wp--preset--color--zielen-ciemna); }
.mwk-odrecznie.is-granatowy { color: var(--wp--preset--color--granat); }

/* Kreska w stylu logo przed nagłówkiem sekcji */
.mwk-kreska::before {
	content: "";
	display: inline-block;
	width: 72px;
	height: 54px;
	margin-right: 20px;
	vertical-align: middle;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 90'%3E%3Cpath d='M10 15h100' stroke='%2395B840' stroke-width='12' stroke-linecap='round'/%3E%3Cpath d='M20 80 60 35l40 45' fill='none' stroke='%2395B840' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Nagłówek ---------- */
.mwk-naglowek { gap: 16px 32px; }
.mwk-naglowek .wp-block-site-logo img { display: block; }
.mwk-naglowek .wp-block-navigation { font-weight: 800; font-size: 1.0625rem; }
.mwk-naglowek .wp-block-navigation a { text-decoration: none; }
.mwk-naglowek .wp-block-navigation a:hover { color: var(--wp--preset--color--pomarancz-ciemny); }
.mwk-naglowek-prawa { gap: 12px 28px; }

/* ---------- Przyciski ---------- */
.wp-block-button.mwk-pomarancz .wp-block-button__link { background: var(--wp--preset--color--pomarancz); color: #fff; }
.wp-block-button.mwk-pomarancz .wp-block-button__link:hover { background: var(--wp--preset--color--pomarancz-ciemny); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 2px solid currentColor; background: transparent; color: var(--wp--preset--color--granat); }

/* ---------- Hero ---------- */
.mwk-hero { position: relative; margin-bottom: 140px !important; }
.mwk-hero .mwk-hero-zdjecie { margin: 0; position: relative; z-index: 1; }
.mwk-hero .mwk-hero-zdjecie img { width: 100%; height: 620px; object-fit: cover; border-radius: 48px; display: block; }
.mwk-hero-karta {
	position: absolute;
	z-index: 2;
	left: 72px;
	bottom: -80px;
	max-width: 500px;
	background: #fff;
	border-radius: 36px;
	padding: 32px 40px 36px !important;
	box-shadow: 0 20px 50px rgba(30, 26, 77, .18);
}
.mwk-hero-karta > * + * { margin-top: 14px; }
.mwk-hero-karta .mwk-odrecznie { transform: rotate(-3deg); transform-origin: left; }
.mwk-hero-karta h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.02; margin: 0; }
.mwk-hero-karta p:not(.mwk-odrecznie) { font-size: 1.125rem; margin: 0; }

/* ---------- Aktualności ---------- */
.mwk-tytul-sekcji { align-items: flex-end; gap: 16px; }
.mwk-tytul-sekcji h2 { margin: 0; }
.mwk-aktualnosci { gap: 24px !important; }
.mwk-aktualnosci .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.mwk-aktualnosci .wp-block-post { margin: 0 0 24px; }
.mwk-aktualnosci .wp-block-post-featured-image { margin: 0 0 14px; }
.mwk-aktualnosci .wp-block-post-featured-image img { border-radius: 32px; object-fit: cover; width: 100%; }
.mwk-aktualnosci .mwk-wpis-duzy .wp-block-post-featured-image img { height: 520px; }
.mwk-aktualnosci .mwk-wpisy-male .wp-block-post-featured-image img { height: 220px; }
.mwk-aktualnosci .wp-block-post-title { margin: 0; line-height: 1.15; }
.mwk-aktualnosci .wp-block-post-title a { text-decoration: none; }
.mwk-aktualnosci .mwk-wpis-duzy .wp-block-post-title { font-size: 2.125rem; }
.mwk-aktualnosci .mwk-wpisy-male .wp-block-post-title { font-size: 1.5rem; }
.mwk-aktualnosci .wp-block-post-date { font-size: .875rem; color: #5A5785; margin-bottom: 6px; }

/* ---------- Chcę pomóc ---------- */
.mwk-pomoc-wiersz { gap: 20px !important; margin-bottom: 20px !important; }
.mwk-kafel {
	border-radius: 40px;
	padding: 40px !important;
	min-height: 300px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 16px;
	box-sizing: border-box;
}
.mwk-kafel > * { margin: 0 !important; }
.mwk-kafel h3 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); line-height: 1.1; }
.mwk-kafel .mwk-krs { align-self: flex-start; color: var(--wp--preset--color--granat-ciemny); }
.mwk-kafel-pomarancz p a { color: #fff; text-decoration: underline; }
.mwk-kafel-zielony-jasny { background: var(--wp--preset--color--zielen-jasna); border: 4px solid var(--wp--preset--color--zielen); }
.mwk-kafel-zielony-jasny .wp-block-buttons { margin-top: auto !important; }
.mwk-kafel-fiolet p:last-child { margin-top: auto !important; }
html { scroll-behavior: smooth; }
#chce-pomoc { scroll-margin-top: 24px; }
.mwk-kafel a:not(.wp-block-button__link) { text-decoration: none; color: inherit; }
.mwk-kafel .wp-block-button__link, .mwk-kafel .wp-block-button__link:hover { color: #fff; }
.mwk-kafel-pomarancz { background: var(--wp--preset--color--pomarancz); color: #fff; }
.mwk-kafel-pomarancz h3, .mwk-kafel-pomarancz a:not(.wp-block-button__link) { color: #fff; }
.mwk-kafel-pomarancz::before {
	content: "";
	width: 80px; height: 54px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 60'%3E%3Cpath d='M10 15q35 40 70 0' fill='none' stroke='%23fff' stroke-width='10' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center / contain;
}
.mwk-kafel-zdjecie { position: relative; padding: 0 !important; overflow: hidden; }
.mwk-kafel-zdjecie .wp-block-image { margin: 0; height: 100%; }
.mwk-kafel-zdjecie .wp-block-image img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; display: block; }
.mwk-kafel-zdjecie .mwk-etykieta {
	position: absolute; left: 28px; bottom: 28px; margin: 0;
	background: #fff; border-radius: 24px; padding: 16px 24px;
	font-family: var(--wp--preset--font-family--naglowki); font-weight: 700; font-size: 1.75rem;
	color: var(--wp--preset--color--granat);
}
.mwk-kafel-zdjecie .mwk-etykieta a { text-decoration: none; color: inherit; }
.mwk-kafel-niski { min-height: 150px; padding: 28px 40px !important; justify-content: center; }
.mwk-kafel-zielony { background: var(--wp--preset--color--zielen); color: var(--wp--preset--color--granat-ciemny); flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.mwk-kafel-zielony > * { margin: 0 !important; }
.mwk-krs { background: #fff; border-radius: 16px; padding: 12px 18px; font-weight: 800; font-size: 1.25rem; letter-spacing: .04em; }
.mwk-kafel-fiolet { background: var(--wp--preset--color--fiolet-jasny); }

/* ---------- Stopka ---------- */
.mwk-stopka { background: var(--wp--preset--color--granat); color: #D8D5F0; margin-top: 0 !important; }
.mwk-stopka a { color: #C6E08A; }
.mwk-stopka h2, .mwk-stopka h3, .mwk-stopka strong { color: #fff; }
.mwk-stopka p { margin: 0 0 4px; }
.mwk-stopka-dol { border-top: 1px solid #4A4196; font-size: .875rem; padding-top: 20px; }

/* ---------- Wpisy i strony ---------- */
.mwk-obrazek-wyrozniajacy img { border-radius: 40px; max-height: 560px; object-fit: cover; width: 100%; }
.mwk-lista-wpisow .wp-block-post-template { gap: 32px; }
.mwk-lista-wpisow .wp-block-post-featured-image img { border-radius: 28px; height: 240px; object-fit: cover; width: 100%; }


/* ---------- Podstrony ---------- */
.mwk-podstrona-naglowek {
	background: var(--wp--preset--color--zielen-jasna);
	border-radius: 48px;
	padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 80px) !important;
	position: relative;
	overflow: hidden;
}
.mwk-podstrona-naglowek::after {
	content: "";
	position: absolute; right: 48px; top: 40px;
	width: 160px; height: 110px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 140'%3E%3Cpath d='M20 20Q60 90 110 40t80 20' fill='none' stroke='%2395B840' stroke-width='10' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.mwk-podstrona-naglowek > * { position: relative; z-index: 1; max-width: 820px; }
.mwk-podstrona-naglowek .wp-block-post-title { font-size: clamp(2.5rem, 6vw, 4.5rem); margin: 8px 0 16px; }
.mwk-lead { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.6; color: #3D3A66; margin: 0; }
.mwk-sekcja { margin-top: clamp(56px, 7vw, 104px) !important; }
.mwk-sekcja h2 { margin-top: 0; }
.wp-block-columns .mwk-kolumna-srodek { align-self: center; }
.wp-block-image.mwk-zdjecie-zaokraglone img { border-radius: 36px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wp-block-image.mwk-zdjecie-szerokie img { border-radius: 40px; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.mwk-dopisek { font-weight: 700; color: var(--wp--preset--color--granat); margin-top: 24px; }

/* Lista jako kolorowe kafelki */
ul.mwk-kafelki-lista { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
ul.mwk-kafelki-lista li { border-radius: 24px; padding: 22px 24px; font-weight: 800; font-size: 1.125rem; line-height: 1.35; background: var(--wp--preset--color--fiolet-jasny); color: var(--wp--preset--color--granat); }
ul.mwk-kafelki-lista li:nth-child(3n+1) { background: #FBE6DC; color: #8A2E14; }
ul.mwk-kafelki-lista li:nth-child(3n+2) { background: #EEF5DC; color: var(--wp--preset--color--zielen-ciemna); }

/* Lista z ptaszkami */
ul.mwk-ptaszki { list-style: none; padding: 0; margin: 0; }
ul.mwk-ptaszki li { position: relative; padding-left: 40px; margin-bottom: 12px; }
ul.mwk-ptaszki li::before {
	content: ""; position: absolute; left: 0; top: 4px; width: 26px; height: 26px; border-radius: 50%;
	background: var(--wp--preset--color--zielen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 18px;
}
.mwk-kafel ul.mwk-ptaszki li { margin-bottom: 10px; }

/* Karty kontaktowe */
.mwk-karty-pion { display: flex; flex-direction: column; gap: 14px; }
.mwk-karta { background: var(--wp--preset--color--zielen-jasna); border-radius: 24px; padding: 20px 24px !important; }
.mwk-karta > * { margin: 0 !important; }
.mwk-karta-etykieta { font-family: var(--wp--preset--font-family--odrecznie); font-size: 1.5rem; color: var(--wp--preset--color--pomarancz-ciemny); line-height: 1.1; }

/* Formularze Contact Form 7 */
.mwk-formularz { background: #fff; border-radius: 36px; padding: clamp(24px, 4vw, 44px) !important; box-shadow: 0 16px 48px rgba(30, 26, 77, .10); }
.mwk-formularz h2 { margin-top: 0; font-size: 2rem; }
.mwk-formularz .wpcf7 label { display: block; font-weight: 700; margin-bottom: 14px; }
.mwk-formularz .wpcf7 input[type="text"],
.mwk-formularz .wpcf7 input[type="email"],
.mwk-formularz .wpcf7 input[type="tel"],
.mwk-formularz .wpcf7 select,
.mwk-formularz .wpcf7 textarea {
	width: 100%; box-sizing: border-box; margin-top: 6px;
	border: 2px solid #D6D3F0; border-radius: 16px; padding: 14px 16px;
	font: inherit; color: var(--wp--preset--color--granat-ciemny); background: #fff;
}
.mwk-formularz .wpcf7 textarea { min-height: 140px; }
.mwk-formularz .wpcf7 input:focus, .mwk-formularz .wpcf7 textarea:focus, .mwk-formularz .wpcf7 select:focus { outline: 3px solid var(--wp--preset--color--zielen); border-color: transparent; }
.mwk-formularz .wpcf7 input[type="submit"] {
	background: var(--wp--preset--color--pomarancz); color: #fff; border: 0; border-radius: 999px;
	padding: 16px 32px; font: inherit; font-weight: 800; cursor: pointer;
}
.mwk-formularz .wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--pomarancz-ciemny); }
.mwk-mapa iframe { width: 100%; height: 420px; border-radius: 36px; display: block; }

/* Numer konta / KRS */
.mwk-konto { background: var(--wp--preset--color--granat); color: #fff; border-radius: 40px; padding: clamp(28px, 5vw, 56px) !important; text-align: center; }
.mwk-konto > * { margin: 0 auto !important; }
.mwk-konto .mwk-odrecznie { color: #C6E08A; }
.mwk-konto-bank { font-weight: 700; color: #D8D5F0; margin-top: 8px !important; }
.mwk-konto-numer { font-family: var(--wp--preset--font-family--naglowki); font-weight: 700; font-size: clamp(1.5rem, 4vw, 3rem); letter-spacing: .03em; line-height: 1.2; margin: 12px auto !important; }
.mwk-konto-zielone { background: var(--wp--preset--color--zielen); color: var(--wp--preset--color--granat-ciemny); }
.mwk-konto-zielone .mwk-odrecznie { color: var(--wp--preset--color--granat); }

/* Galeria, instrukcja, wideo */
.mwk-galeria img { border-radius: 20px; }
.wp-block-image.mwk-instrukcja img { border-radius: 24px; width: 100%; height: auto; }
.mwk-wideo iframe { border-radius: 32px; }

/* FAQ */
.mwk-faq { border-bottom: 2px solid #E7E5F5; padding: 18px 0; }
.mwk-faq summary { font-weight: 800; font-size: 1.1875rem; cursor: pointer; color: var(--wp--preset--color--granat); list-style-position: outside; }
.mwk-faq summary:hover { color: var(--wp--preset--color--pomarancz-ciemny); }
.mwk-faq p { margin: 12px 0 0; }
.mwk-faq-sekcja { max-width: 900px; }

/* Kroki (FaniMani) */
.mwk-krok { border-radius: 32px; padding: 32px !important; height: 100%; box-sizing: border-box; }
.mwk-krok > * { margin: 0 0 10px !important; }
.mwk-numer { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--naglowki); font-weight: 700; font-size: 1.75rem; color: #fff; }
.mwk-krok.is-pomarancz { background: #FBE6DC; } .mwk-krok.is-pomarancz .mwk-numer { background: var(--wp--preset--color--pomarancz); }
.mwk-krok.is-zielony { background: #EEF5DC; } .mwk-krok.is-zielony .mwk-numer { background: var(--wp--preset--color--zielen); color: var(--wp--preset--color--granat-ciemny); }
.mwk-krok.is-granatowy { background: var(--wp--preset--color--fiolet-jasny); } .mwk-krok.is-granatowy .mwk-numer { background: var(--wp--preset--color--granat); }

/* Wezwanie do działania */
.mwk-cta { margin-top: clamp(56px, 7vw, 104px) !important; background: var(--wp--preset--color--fiolet-jasny); border-radius: 48px; padding: clamp(32px, 5vw, 64px) !important; text-align: center; }
.mwk-cta > * { margin-left: auto !important; margin-right: auto !important; }
.mwk-cta h2 { margin: 8px auto 24px; }
.mwk-cta .wp-block-buttons { justify-content: center; }


/* Instrukcja krok po kroku (1,5%) */
.mwk-etapy { position: relative; margin-top: 32px !important; }
.mwk-etapy::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; border-left: 4px dotted #C9C5E6; }
.mwk-etap { display: flex; gap: 24px; align-items: flex-start; position: relative; margin: 0 0 28px !important; background: none !important; padding: 0 !important; }
.mwk-etap > .mwk-numer { flex: none; margin: 0 !important; position: relative; z-index: 1; box-shadow: 0 0 0 8px #fff; }
.mwk-etap-tresc { flex: 1; padding-top: 8px; }
.mwk-etap-tresc > * { margin: 0 0 10px !important; }
.mwk-etap-tresc h3 { font-size: 1.625rem; }
.mwk-etap.is-pomarancz .mwk-numer { background: var(--wp--preset--color--pomarancz); }
.mwk-etap.is-zielony .mwk-numer { background: var(--wp--preset--color--zielen); color: var(--wp--preset--color--granat-ciemny); }
.mwk-etap.is-granatowy .mwk-numer { background: var(--wp--preset--color--granat); }
.mwk-scenariusze { margin-top: 8px !important; gap: 20px !important; }
.mwk-scenariusze .mwk-krok h3 { font-size: 1.5rem; }
.mwk-final { margin-top: 28px !important; }
.mwk-final h3 { color: inherit; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.mwk-ptak-duzy { width: 72px; height: 72px; border-radius: 50%; background: #fff; color: var(--wp--preset--color--pomarancz); font-size: 2.5rem; line-height: 72px; font-weight: 800; }
.mwk-zrodlo { font-size: .875rem; color: #5A5785; margin-top: 16px !important; }


/* Nasze projekty */
.mwk-projekty { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.mwk-projekt { display: flex; flex-direction: column; border-radius: 36px; overflow: hidden; text-decoration: none !important; color: var(--wp--preset--color--granat-ciemny) !important; transition: transform .2s ease, box-shadow .2s ease; }
.mwk-projekt:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(30, 26, 77, .15); }
.mwk-projekt-zdjecie img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.mwk-projekt-tresc { display: flex; flex-direction: column; gap: 8px; padding: 24px 28px 28px; flex: 1; }
.mwk-projekt-nazwa { font-family: var(--wp--preset--font-family--naglowki); font-weight: 700; font-size: 2rem; line-height: 1.05; color: var(--wp--preset--color--granat); }
.mwk-projekt-opis { line-height: 1.5; }
.mwk-projekt-licznik { margin-top: auto; font-weight: 800; padding-top: 8px; }
.mwk-projekt.is-pomarancz { background: #FBE6DC; } .mwk-projekt.is-pomarancz .mwk-projekt-licznik { color: var(--wp--preset--color--pomarancz-ciemny); }
.mwk-projekt.is-zielony { background: #EEF5DC; } .mwk-projekt.is-zielony .mwk-projekt-licznik { color: var(--wp--preset--color--zielen-ciemna); }
.mwk-projekt.is-granatowy { background: var(--wp--preset--color--fiolet-jasny); } .mwk-projekt.is-granatowy .mwk-projekt-licznik { color: var(--wp--preset--color--granat); }
.mwk-podstrona-naglowek .wp-block-query-title { font-size: clamp(2.5rem, 6vw, 4.5rem); margin: 8px 0 16px; }
.mwk-podstrona-naglowek .wp-block-term-description p { margin: 0; }
.mwk-wstecz { margin-top: 20px !important; font-weight: 800; }
.mwk-wstecz a { text-decoration: none; }
.mwk-etykiety a { display: inline-block; background: var(--wp--preset--color--zielen-jasna); border: 2px solid var(--wp--preset--color--zielen); color: var(--wp--preset--color--zielen-ciemna); font-weight: 800; font-size: .875rem; padding: 4px 14px; border-radius: 999px; text-decoration: none; margin: 0 4px 4px 0; }
.mwk-etykiety .wp-block-post-terms__separator { display: none; }


/* Liczby (FaniMani) */
.mwk-fakty { gap: 20px !important; }
.mwk-fakt { background: var(--wp--preset--color--zielen-jasna); border-radius: 32px; padding: 28px !important; text-align: center; height: 100%; box-sizing: border-box; }
.mwk-fakt > * { margin: 0 !important; }
.mwk-fakt-liczba { font-family: var(--wp--preset--font-family--naglowki); font-weight: 700; font-size: clamp(2.5rem, 5vw, 3.5rem); color: var(--wp--preset--color--pomarancz-ciemny); line-height: 1.1; }
.mwk-konto .wp-block-buttons { justify-content: center; margin-top: 16px; }
.mwk-konto h2 { color: #fff; }
.mwk-krok a { color: inherit; text-decoration: underline; }


/* ---------- Chcę pomóc: 4 sposoby ---------- */
.mwk-pomoc { margin-top: var(--wp--preset--spacing--60) !important; margin-bottom: var(--wp--preset--spacing--60) !important; }
.mwk-pomoc-naglowek { gap: 48px !important; margin-bottom: 40px !important; }
.mwk-pomoc-naglowek h2 { margin: 6px 0 14px; }
.mwk-pomoc-zdjecie { margin: 0; }
.mwk-pomoc-zdjecie img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 36px; display: block; }
.mwk-sposoby { flex-wrap: wrap !important; gap: 20px !important; }
.wp-block-columns.mwk-sposoby > .mwk-sposob { flex: 1 1 240px !important; }
.mwk-sposob { border-radius: 32px; padding: 28px !important; display: flex; flex-direction: column; gap: 12px; box-sizing: border-box; transition: transform .2s ease, box-shadow .2s ease; }
.mwk-sposob:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(30, 26, 77, .12); }
.mwk-sposob > * { margin: 0 !important; }
.mwk-sposob::before { content: ""; width: 60px; height: 60px; border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: 30px; margin-bottom: 4px; }
.mwk-sposob h3 { font-size: 1.5rem; line-height: 1.15; }
.mwk-sposob p { line-height: 1.55; }
.mwk-sposob .wp-block-buttons { margin-top: auto !important; padding-top: 8px; }
.mwk-sposob .wp-block-button { width: 100%; }
.mwk-sposob .wp-block-button__link { width: 100%; box-sizing: border-box; text-align: center; }
.mwk-sposob-tag { align-self: flex-start; font-size: .8125rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; background: #fff; }
.mwk-sposob.is-podatek { background: #FBE6DC; }
.mwk-sposob.is-podatek::before, .mwk-bento-kafel.is-podatek::before { background-color: var(--wp--preset--color--pomarancz); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l4 4v14H7zM14 3v4h4M9.5 17l5-6M10 11.5h.01M14 16.5h.01'/%3E%3C/svg%3E"); }
.mwk-sposob.is-podatek .mwk-sposob-tag { color: var(--wp--preset--color--pomarancz-ciemny); }
.mwk-sposob.is-darowizna { background: var(--wp--preset--color--fiolet-jasny); }
.mwk-sposob.is-darowizna::before { background-color: var(--wp--preset--color--granat); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.5-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.5-7 10-7 10z'/%3E%3C/svg%3E"); }
.mwk-sposob.is-darowizna .mwk-sposob-tag { color: var(--wp--preset--color--granat); }
.mwk-sposob.is-zakupy { background: #EEF5DC; }
.mwk-sposob.is-zakupy::before, .mwk-bento-kafel.is-zakupy::before { background-color: var(--wp--preset--color--zielen); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E1A4D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8h12l-1 12H7zM9 8a3 3 0 0 1 6 0'/%3E%3C/svg%3E"); }
.mwk-sposob.is-zakupy .mwk-sposob-tag { color: var(--wp--preset--color--zielen-ciemna); }
.mwk-sposob.is-czas { background: #fff; border: 3px solid var(--wp--preset--color--zielen); }
.mwk-sposob.is-czas::before, .mwk-bento-kafel.is-czas::before { background-color: var(--wp--preset--color--zielen-jasna); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2178' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM3 20a6 6 0 0 1 12 0M16 5.5a2.5 2.5 0 1 1 0 5M17 14a5 5 0 0 1 4 6'/%3E%3C/svg%3E"); }
.mwk-sposob.is-czas .mwk-sposob-tag { color: var(--wp--preset--color--granat); background: var(--wp--preset--color--zielen-jasna); }


/* ---------- Chcę pomóc: nieregularna siatka ---------- */
.mwk-bento { gap: 20px !important; margin-bottom: 20px !important; }
.mwk-bento-kafel { border-radius: 40px; padding: clamp(28px, 3.5vw, 44px) !important; display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; min-height: 340px; position: relative; overflow: hidden; }
.mwk-bento-kafel > * { margin: 0 !important; }
.mwk-bento-kafel::before { content: ""; width: 60px; height: 60px; border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: 30px; flex: none; }
.mwk-bento-kafel h3 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: 1.1; }
.mwk-bento-kafel p { line-height: 1.55; max-width: 560px; }
.mwk-bento-kafel .wp-block-buttons { margin-top: auto !important; padding-top: 6px; }
.mwk-bento-kafel .mwk-krs { align-self: flex-start; background: #fff; color: var(--wp--preset--color--granat-ciemny); }
/* 1,5% – pomarańczowy */
.mwk-bento-kafel.is-podatek { background: var(--wp--preset--color--pomarancz); color: #fff; }
.mwk-bento-kafel.is-podatek h3 { color: #fff; }
.mwk-bento-kafel.is-podatek::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CC5124' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l4 4v14H7zM14 3v4h4M9.5 17l5-6M10 11.5h.01M14 16.5h.01'/%3E%3C/svg%3E"); }
.mwk-bento-kafel.is-podatek .mwk-krs { background: transparent; color: #fff; border: 2px dashed rgba(255,255,255,.8); font-size: 1.375rem; }
.mwk-bento-kafel.is-podatek .mwk-sposob-tag { background: rgba(255,255,255,.2); color: #fff; }
.mwk-przycisk-bialy .wp-block-button__link { background: #fff !important; color: var(--wp--preset--color--granat) !important; }
.mwk-przycisk-bialy .wp-block-button__link:hover { background: var(--wp--preset--color--granat-ciemny) !important; color: #fff !important; }
/* Darowizna – zdjęcie z panelem */
.mwk-bento-kafel.is-zdjecie { padding: 0 !important; justify-content: flex-end; background: var(--wp--preset--color--fiolet-jasny); }
.mwk-bento-kafel.is-zdjecie::before { display: none; }
.mwk-bento-kafel.is-zdjecie .wp-block-image { position: absolute !important; inset: 0; }
.mwk-bento-kafel.is-zdjecie .wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mwk-panel { position: relative; z-index: 1; margin: 20px !important; background: #fff; border-radius: 28px; padding: 22px 24px !important; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 12px 30px rgba(30, 26, 77, .18); }
.mwk-panel > * { margin: 0 !important; }
.mwk-panel .mwk-sposob-tag { background: var(--wp--preset--color--fiolet-jasny); color: var(--wp--preset--color--granat); }
.mwk-panel h3 { font-size: 1.75rem; }
/* FaniMani – zielony jasny */
.mwk-bento-kafel.is-zakupy { background: #EEF5DC; }
.mwk-bento-kafel.is-zakupy .mwk-sposob-tag { color: var(--wp--preset--color--zielen-ciemna); }
/* Wolontariat – fiolet */
.mwk-bento-kafel.is-czas { background: var(--wp--preset--color--fiolet-jasny); }
.mwk-bento-kafel.is-czas::before { background-color: var(--wp--preset--color--granat); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM3 20a6 6 0 0 1 12 0M16 5.5a2.5 2.5 0 1 1 0 5M17 14a5 5 0 0 1 4 6'/%3E%3C/svg%3E"); }
.mwk-bento-kafel.is-czas .mwk-sposob-tag { color: var(--wp--preset--color--granat); }
.mwk-bento-kafel .mwk-sposob-tag { align-self: flex-start; }

/* ---------- Linki bez podkreśleń ---------- */
a:where(:not(.wp-element-button)) { text-decoration: none; }
p a:not(.wp-element-button), li a:not(.wp-element-button), .wp-block-post-title a { font-weight: 700; text-decoration: none; }
p a:not(.wp-element-button):hover, li a:not(.wp-element-button):hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--wp--preset--color--zielen); outline-offset: 3px; border-radius: 6px; }

/* ---------- Bez podkreśleń w menu i przyciskach ---------- */
.wp-element-button, .wp-block-button__link, .wp-block-button__link:hover,
.wp-block-navigation a, .wp-block-navigation a:hover,
.wp-block-site-logo a, .mwk-projekt, .mwk-projekt:hover { text-decoration: none !important; }


/* ---------- Powitanie: tekst obok ilustracji ---------- */
.mwk-hero2 { gap: clamp(32px, 5vw, 72px) !important; margin-top: 16px !important; margin-bottom: var(--wp--preset--spacing--50) !important; }
.mwk-hero2-tekst > * { margin: 0 0 18px !important; }
.mwk-hero2-tekst .mwk-odrecznie { transform: rotate(-3deg); transform-origin: left; display: inline-block; }
.mwk-hero2-tekst h1 { font-size: clamp(2.75rem, 5.2vw, 4.75rem); line-height: 1.02; }
.mwk-hero2-tekst .wp-block-buttons { margin-top: 28px !important; gap: 12px; }
.mwk-hero2-grafika { margin: 0; }
.mwk-hero2-grafika img { width: 100%; height: auto; aspect-ratio: 14 / 11; object-fit: cover; border-radius: 48px; display: block; }
@media (max-width: 781px) {
	.mwk-hero2 { flex-direction: column-reverse; }
	.mwk-hero2-grafika img { border-radius: 32px; }
}


/* ---------- Menu na telefonie ---------- */
@media (max-width: 599px) {
	.wp-block-navigation__responsive-container-open:not(.always-shown) {
		width: 48px; height: 48px; border-radius: 50%;
		background: var(--wp--preset--color--granat); color: #fff;
		display: flex; align-items: center; justify-content: center;
	}
	.wp-block-navigation__responsive-container-open svg { fill: currentColor; width: 26px; height: 26px; }
}
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--zielen-jasna) !important;
	color: var(--wp--preset--color--granat) !important;
	padding: 20px 20px 32px !important;
}
.wp-block-navigation__responsive-container.is-menu-open::before {
	content: ""; position: absolute; top: 18px; left: 20px; width: 120px; height: 70px;
	background: url("assets/images/logo-mwk.png") no-repeat left center / contain;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	top: 26px; right: 20px; width: 48px; height: 48px; border-radius: 50%;
	background: #fff; color: var(--wp--preset--color--granat);
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 18px rgba(30, 26, 77, .12);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 96px !important; align-items: stretch !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	width: 100%; align-items: stretch !important; gap: 12px !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: flex !important; justify-content: space-between; align-items: center; width: 100%; box-sizing: border-box;
	background: #fff; border-radius: 22px; padding: 18px 22px !important;
	border-left: 8px solid var(--wp--preset--color--zielen);
	font-family: var(--wp--preset--font-family--naglowki); font-weight: 700; font-size: 1.5rem; line-height: 1.2;
	color: var(--wp--preset--color--granat) !important; text-align: left;
	box-shadow: 0 6px 18px rgba(30, 26, 77, .06);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(3n+1) .wp-block-navigation-item__content { border-left-color: var(--wp--preset--color--pomarancz); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(3n+2) .wp-block-navigation-item__content { border-left-color: var(--wp--preset--color--zielen); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(3n) .wp-block-navigation-item__content { border-left-color: var(--wp--preset--color--granat); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { content: "→"; color: var(--wp--preset--color--pomarancz); font-size: 1.25rem; }
.wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content { background: var(--wp--preset--color--granat); color: #fff !important; }
/* Pozycja menu z klasą mwk-menu-cta – pomarańczowy przycisk */
.wp-block-navigation__responsive-container.is-menu-open .mwk-menu-cta > .wp-block-navigation-item__content { background: var(--wp--preset--color--pomarancz); color: #fff !important; border-left-color: var(--wp--preset--color--pomarancz-ciemny) !important; }
.wp-block-navigation__responsive-container.is-menu-open .mwk-menu-cta > .wp-block-navigation-item__content::after { content: "♥"; color: #fff; }
@media (min-width: 600px) { .mwk-naglowek .mwk-menu-cta { display: none; } }

/* ---------- Telefon i tablet ---------- */
@media (max-width: 781px) {
	.mwk-hero { margin-bottom: 0 !important; }
	.mwk-hero .mwk-hero-zdjecie img { height: auto; aspect-ratio: 2 / 1; border-radius: 28px; object-position: right center; }
	.mwk-hero-karta { position: relative; z-index: 2; left: auto; bottom: auto; max-width: none; margin: -28px 12px 0 !important; padding: 24px !important; }
	.mwk-hero-karta .mwk-odrecznie { font-size: 1.5rem; }
	.mwk-aktualnosci .mwk-wpis-duzy .wp-block-post-featured-image img { height: 280px; }
	.mwk-kafel { padding: 28px !important; min-height: 220px; }
	.mwk-bento-kafel { min-height: 0; border-radius: 32px; }
	.mwk-bento-kafel.is-zdjecie { min-height: 380px; }
	.mwk-kreska::before { width: 48px; height: 36px; margin-right: 12px; }
	.mwk-podstrona-naglowek { border-radius: 32px; }
	.mwk-podstrona-naglowek::after { width: 90px; height: 60px; right: 20px; top: 20px; }
	.mwk-mapa iframe { height: 300px; border-radius: 24px; }
	.wp-block-image.mwk-zdjecie-szerokie img { aspect-ratio: 4 / 3; }
}
