/* ==========================================================================
   Dotacje PROW Modern – warstwa wyglądu nad motywem Brandon
   ========================================================================== */
:root {
	--dpm-navy: #0b1f3a;
	--dpm-navy-2: #12294a;
	--dpm-ink: #111827;
	--dpm-text: #374151;
	--dpm-muted: #6b7280;
	--dpm-line: #e5e7eb;
	--dpm-bg: #f6f7f9;
	--dpm-accent: #1d4ed8;
	--dpm-accent-2: #1e40af;
	--dpm-gold: #c8a24a;
	--dpm-radius: 14px;
	--dpm-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
	--dpm-shadow-hover: 0 2px 4px rgba(16,24,40,.06), 0 18px 40px rgba(16,24,40,.12);
	--dpm-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body.dpm-modern, body.dpm-modern #Wrapper { background: #fff !important; }
body.dpm-modern, body.dpm-modern p, body.dpm-modern li, body.dpm-modern input, body.dpm-modern textarea, body.dpm-modern select, body.dpm-modern button {
	font-family: var(--dpm-font) !important; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body.dpm-modern { color: var(--dpm-text) !important; font-size: 16px; line-height: 1.7; }
body.dpm-modern h1, body.dpm-modern h2, body.dpm-modern h3, body.dpm-modern h4, body.dpm-modern h5, body.dpm-modern h6 {
	font-family: var(--dpm-font) !important; color: var(--dpm-ink) !important; font-weight: 650 !important; letter-spacing: -0.02em; line-height: 1.2 !important;
}
body.dpm-modern a { color: var(--dpm-accent); transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
body.dpm-modern a:hover { color: var(--dpm-accent-2); }
body.dpm-modern ::selection { background: var(--dpm-accent); color: #fff; }
body.dpm-modern img { max-width: 100%; height: auto; }
body.dpm-modern .container { max-width: 1200px; }

body.dpm-modern #top_bar { background: var(--dpm-navy) !important; border: 0 !important; }
body.dpm-modern #top_bar, body.dpm-modern #top_bar a, body.dpm-modern #top_bar i { color: rgba(255,255,255,.85) !important; font-size: 13px; }
body.dpm-modern #top_bar a:hover { color: #fff !important; }

body.dpm-modern #Header { background: rgba(255,255,255,.96) !important; border-bottom: 1px solid var(--dpm-line) !important; box-shadow: none !important; -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); }
body.dpm-modern #Header.fixed, body.dpm-modern.sticky-header #Header.fixed { box-shadow: 0 6px 24px rgba(16,24,40,.08) !important; }
body.dpm-modern #Header .addons .contact_details p.text { color: var(--dpm-muted) !important; text-transform: none; letter-spacing: 0; }
body.dpm-modern #Header #searchform input.field { border: 1px solid var(--dpm-line) !important; border-radius: 999px !important; background: var(--dpm-bg) !important; padding: 6px 14px !important; box-shadow: none !important; color: var(--dpm-ink) !important; }
body.dpm-modern #Header #searchform input.field:focus { border-color: var(--dpm-accent) !important; background: #fff !important; outline: none; }

body.dpm-modern #menu > ul > li > a { font-family: var(--dpm-font) !important; font-size: 14px !important; font-weight: 550 !important; letter-spacing: .01em !important; text-transform: none !important; color: var(--dpm-ink) !important; background: transparent !important; border: 0 !important; position: relative; }
body.dpm-modern #menu > ul > li > a:after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 4px; height: 2px; background: var(--dpm-accent); transition: left .25s ease, right .25s ease; }
body.dpm-modern #menu > ul > li:hover > a:after, body.dpm-modern #menu > ul > li.current-menu-item > a:after, body.dpm-modern #menu > ul > li.current_page_item > a:after, body.dpm-modern #menu > ul > li.current-menu-ancestor > a:after { left: 14px; right: 14px; }
body.dpm-modern #menu > ul > li:hover > a, body.dpm-modern #menu > ul > li.current-menu-item > a, body.dpm-modern #menu > ul > li.current_page_item > a { color: var(--dpm-accent) !important; }
body.dpm-modern #menu > ul > li.menu-zus > a, body.dpm-modern #menu > ul > li.menu-sklep > a { border-radius: 999px !important; padding-left: 16px !important; padding-right: 16px !important; line-height: 34px !important; height: auto !important; margin-top: 8px; margin-left: 6px; }
body.dpm-modern #menu > ul > li.menu-zus > a { background: var(--dpm-accent) !important; color: #fff !important; }
body.dpm-modern #menu > ul > li.menu-zus > a:hover { background: var(--dpm-accent-2) !important; }
body.dpm-modern #menu > ul > li.menu-sklep > a { background: transparent !important; color: var(--dpm-ink) !important; box-shadow: inset 0 0 0 1.5px var(--dpm-ink); }
body.dpm-modern #menu > ul > li.menu-sklep > a:hover { background: var(--dpm-ink) !important; color: #fff !important; }
body.dpm-modern #menu > ul > li.menu-zus > a:after, body.dpm-modern #menu > ul > li.menu-sklep > a:after { display: none; }
body.dpm-modern #menu ul.sub-menu, body.dpm-modern #menu ul ul { background: #fff !important; border: 1px solid var(--dpm-line) !important; border-radius: 12px !important; box-shadow: 0 16px 40px rgba(16,24,40,.12) !important; padding: 8px 0 !important; overflow: visible; }
body.dpm-modern #menu ul ul li, body.dpm-modern #menu ul ul li a { background: transparent !important; border: 0 !important; }
body.dpm-modern #menu ul ul li a { color: var(--dpm-text) !important; font-size: 14px !important; font-weight: 450 !important; text-transform: none !important; letter-spacing: 0 !important; padding: 9px 18px !important; }
body.dpm-modern #menu ul ul li a:hover { color: var(--dpm-accent) !important; background: var(--dpm-bg) !important; }

body.dpm-modern #mfn-slider .swiper-slide { position: relative; }
body.dpm-modern #mfn-slider .swiper-background { position: relative; }
body.dpm-modern #mfn-slider .swiper-background:before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, rgba(11,31,58,.82) 0%, rgba(11,31,58,.55) 45%, rgba(11,31,58,.15) 100%); pointer-events: none; z-index: 0; }
body.dpm-modern #mfn-slider .swiper-background > .container { position: relative; z-index: 1; }
body.dpm-modern #mfn-slider .swiper-title { color: rgba(255,255,255,.8) !important; font-size: 14px !important; font-weight: 600 !important; letter-spacing: .14em !important; text-transform: uppercase; }
body.dpm-modern #mfn-slider .swiper-desc { color: #fff !important; font-size: clamp(32px, 4.6vw, 60px) !important; font-weight: 700 !important; letter-spacing: -0.03em !important; line-height: 1.08 !important; text-shadow: none !important; }
body.dpm-modern #mfn-slider a.button { background: #fff !important; color: var(--dpm-navy) !important; border: 0 !important; border-radius: 999px !important; padding: 0 28px !important; line-height: 48px !important; height: 48px !important; font-weight: 600 !important; font-size: 15px !important; text-transform: none !important; letter-spacing: 0 !important; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
body.dpm-modern #mfn-slider a.button:hover { transform: translateY(-1px); background: var(--dpm-gold) !important; color: var(--dpm-navy) !important; }

body.dpm-modern #Content { background: #fff !important; padding-top: 56px; }
body.dpm-modern .the_content_wrapper { font-size: 17px; line-height: 1.75; color: var(--dpm-text); }
body.dpm-modern .the_content_wrapper h2 { font-size: clamp(26px, 2.6vw, 36px) !important; margin: 1.4em 0 .6em; }
body.dpm-modern .the_content_wrapper h3 { font-size: clamp(21px, 2vw, 27px) !important; margin: 1.3em 0 .5em; }
body.dpm-modern .the_content_wrapper h4 { font-size: 19px !important; }
body.dpm-modern .the_content_wrapper p { margin-bottom: 1.1em; }
body.dpm-modern .the_content_wrapper a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
body.dpm-modern .the_content_wrapper a:hover { text-decoration-thickness: 2px; }
body.dpm-modern .the_content_wrapper hr, body.dpm-modern hr { border: 0 !important; height: 1px !important; background: var(--dpm-line) !important; margin: 40px 0 !important; }
body.dpm-modern .the_content_wrapper ul li, body.dpm-modern .the_content_wrapper ol li { margin-bottom: .45em; }
body.dpm-modern blockquote { border-left: 3px solid var(--dpm-accent) !important; background: var(--dpm-bg) !important; border-radius: 0 var(--dpm-radius) var(--dpm-radius) 0; padding: 20px 26px !important; color: var(--dpm-ink) !important; font-style: normal !important; }
body.dpm-modern table { border-collapse: collapse; width: 100%; border: 1px solid var(--dpm-line); border-radius: 10px; overflow: hidden; }
body.dpm-modern table th { background: var(--dpm-bg) !important; color: var(--dpm-ink) !important; font-weight: 600; }
body.dpm-modern table th, body.dpm-modern table td { border-color: var(--dpm-line) !important; padding: 12px 14px !important; }

body.dpm-modern .the_content_wrapper .boxhead { background: #fff; border: 1px solid var(--dpm-line); border-radius: var(--dpm-radius); padding: 28px 32px; margin-bottom: 24px; box-shadow: var(--dpm-shadow); transition: box-shadow .25s ease, transform .25s ease; }
body.dpm-modern .the_content_wrapper .boxhead:hover { box-shadow: var(--dpm-shadow-hover); transform: translateY(-2px); }
body.dpm-modern .the_content_wrapper .boxhead img { border-radius: 10px; }
body.dpm-modern .the_content_wrapper .boxhead h3 { margin-top: 0; }

body.dpm-modern .fancy_heading h1, body.dpm-modern .fancy_heading h2, body.dpm-modern .fancy_heading .title { font-size: clamp(30px, 3.4vw, 46px) !important; font-weight: 700 !important; letter-spacing: -0.03em !important; color: var(--dpm-ink) !important; }
body.dpm-modern .fancy_heading .inside, body.dpm-modern .fancy_heading p { color: var(--dpm-muted) !important; font-size: 18px !important; line-height: 1.6; max-width: 760px; margin-left: auto; margin-right: auto; }
body.dpm-modern .fancy_heading .fancy_heading_wrapper:after, body.dpm-modern .fancy_heading hr { background: var(--dpm-accent) !important; }

body.dpm-modern .button, body.dpm-modern a.button, body.dpm-modern input[type="submit"], body.dpm-modern button[type="submit"], body.dpm-modern .wpcf7-submit, body.dpm-modern a.more { background: var(--dpm-accent) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; padding: 0 24px !important; line-height: 44px !important; height: auto; font-weight: 600 !important; font-size: 15px !important; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; text-decoration: none !important; display: inline-block; }
body.dpm-modern .button:hover, body.dpm-modern a.button:hover, body.dpm-modern input[type="submit"]:hover, body.dpm-modern .wpcf7-submit:hover, body.dpm-modern a.more:hover { background: var(--dpm-accent-2) !important; color: #fff !important; transform: translateY(-1px); }
body.dpm-modern #Header #searchform input.submit { background: transparent !important; padding: 0 !important; line-height: normal !important; }

body.dpm-modern #Content input[type="text"], body.dpm-modern #Content input[type="email"], body.dpm-modern #Content input[type="tel"], body.dpm-modern #Content input[type="url"], body.dpm-modern #Content input[type="number"], body.dpm-modern #Content textarea, body.dpm-modern #Content select { border: 1px solid #d1d5db !important; border-radius: 10px !important; background: #fff !important; padding: 12px 14px !important; box-shadow: none !important; color: var(--dpm-ink) !important; font-size: 16px !important; }
body.dpm-modern #Content input:focus, body.dpm-modern #Content textarea:focus, body.dpm-modern #Content select:focus { border-color: var(--dpm-accent) !important; box-shadow: 0 0 0 4px rgba(29,78,216,.12) !important; outline: none; }

body.dpm-modern .posts_wrapper .post_wrapper { background: #fff !important; border: 1px solid var(--dpm-line) !important; border-radius: var(--dpm-radius) !important; overflow: hidden; box-shadow: var(--dpm-shadow) !important; transition: box-shadow .25s ease, transform .25s ease; }
body.dpm-modern .posts_wrapper .column:hover .post_wrapper { box-shadow: var(--dpm-shadow-hover) !important; transform: translateY(-3px); }
body.dpm-modern .posts_wrapper .post_photo img { display: block; width: 100%; }
body.dpm-modern .posts_wrapper .desc { padding: 22px 24px 24px !important; background: #fff !important; }
body.dpm-modern .posts_wrapper .post_title, body.dpm-modern .posts_wrapper .post_title a { font-size: 19px !important; line-height: 1.35 !important; color: var(--dpm-ink) !important; font-weight: 650 !important; text-decoration: none !important; text-transform: none !important; }
body.dpm-modern .posts_wrapper .post_title a:hover { color: var(--dpm-accent) !important; }
body.dpm-modern .posts_wrapper a.more { background: transparent !important; color: var(--dpm-accent) !important; padding: 0 !important; line-height: 1.6 !important; margin-top: 10px; }
body.dpm-modern .posts_wrapper a.more:hover { background: transparent !important; color: var(--dpm-accent-2) !important; transform: none; }
body.dpm-modern .post_meta, body.dpm-modern .post_meta a, body.dpm-modern .post_meta div { color: var(--dpm-muted) !important; font-size: 13px !important; background: transparent !important; border-color: var(--dpm-line) !important; }
body.dpm-modern .posts_wrapper .post_meta { padding: 10px 4px !important; }
body.dpm-modern .hover-mask .mask, body.dpm-modern .photo_wrapper .mask { background: rgba(11,31,58,.35) !important; }
body.dpm-modern .pager a, body.dpm-modern .pager .page, body.dpm-modern .pager .current, body.dpm-modern .pages a { border-radius: 999px !important; border: 1px solid var(--dpm-line) !important; background: #fff !important; color: var(--dpm-ink) !important; }
body.dpm-modern .pager a.active, body.dpm-modern .pager .current, body.dpm-modern .pager a:hover { background: var(--dpm-navy) !important; color: #fff !important; border-color: var(--dpm-navy) !important; }

body.dpm-modern.single-post .section-post-content .the_content_wrapper, body.dpm-modern.single-post .section-post-header .post_header { max-width: 780px; margin-left: auto !important; margin-right: auto !important; float: none !important; }
body.dpm-modern.single-post .post_header h1, body.dpm-modern.single-post .post_header h2 { font-size: clamp(30px, 3.6vw, 46px) !important; letter-spacing: -0.03em !important; }
body.dpm-modern.single-post .post_photo img { border-radius: var(--dpm-radius); }
body.dpm-modern .author-box .author-box-wrapper { background: var(--dpm-bg) !important; border: 0 !important; border-radius: var(--dpm-radius) !important; padding: 24px !important; }
body.dpm-modern .author-box .avatar-wrapper img { border-radius: 50% !important; }
body.dpm-modern .post_navigation a { color: var(--dpm-ink) !important; }
body.dpm-modern #Subheader { background: var(--dpm-bg) !important; border: 0 !important; box-shadow: none !important; }
body.dpm-modern #Subheader .title { color: var(--dpm-ink) !important; font-weight: 700 !important; letter-spacing: -0.02em; }
body.dpm-modern #Subheader .breadcrumbs, body.dpm-modern #Subheader .breadcrumbs a { color: var(--dpm-muted) !important; }

body.dpm-modern #Footer { background: var(--dpm-navy) !important; color: rgba(255,255,255,.72) !important; border: 0 !important; }
body.dpm-modern #Footer .footer_line { display: none !important; }
body.dpm-modern #Footer .widgets_wrapper { padding: 64px 0 32px !important; background: transparent !important; }
body.dpm-modern #Footer h4, body.dpm-modern #Footer .widget h4 { color: #fff !important; font-size: 13px !important; font-weight: 600 !important; letter-spacing: .12em !important; text-transform: uppercase !important; margin-bottom: 18px !important; }
body.dpm-modern #Footer, body.dpm-modern #Footer p, body.dpm-modern #Footer li, body.dpm-modern #Footer .textwidget { color: rgba(255,255,255,.72) !important; font-size: 15px; }
body.dpm-modern #Footer li.pseudo-h3 { color: #fff !important; font-weight: 600; }
body.dpm-modern #Footer a { color: #fff !important; text-decoration: none; }
body.dpm-modern #Footer a:hover { color: var(--dpm-gold) !important; }
body.dpm-modern #Footer .widget, body.dpm-modern #Footer .company_box { background: transparent !important; border: 0 !important; }
body.dpm-modern #Footer .footer_menu { background: var(--dpm-navy-2) !important; border-top: 1px solid rgba(255,255,255,.08) !important; padding: 18px 0 !important; }
body.dpm-modern #Footer .copyright, body.dpm-modern #Footer .copyright a { color: rgba(255,255,255,.55) !important; font-size: 13px !important; }
body.dpm-modern #back_to_top { background: var(--dpm-accent) !important; border-radius: 999px !important; color: #fff !important; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
body.dpm-modern ul.sxc-follow-buttons { margin-top: 32px; }

body.dpm-modern.dpm-js .dpm-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
body.dpm-modern.dpm-js .dpm-reveal.dpm-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	body.dpm-modern.dpm-js .dpm-reveal { opacity: 1; transform: none; transition: none; }
	body.dpm-modern * { transition: none !important; }
}
@media only screen and (max-width: 959px) {
	body.dpm-modern #Content { padding-top: 36px; }
	body.dpm-modern .the_content_wrapper .boxhead { padding: 22px; }
	body.dpm-modern #menu > ul > li.menu-zus > a, body.dpm-modern #menu > ul > li.menu-sklep > a { margin: 6px 12px; display: inline-block; }
	body.dpm-modern #menu > ul > li > a:after { display: none; }
	body.dpm-modern #menu ul.sub-menu, body.dpm-modern #menu ul ul { box-shadow: none !important; border: 0 !important; border-radius: 0 !important; }
}
@media only screen and (max-width: 767px) {
	body.dpm-modern .the_content_wrapper { font-size: 16px; }
	body.dpm-modern #mfn-slider .swiper-desc { font-size: 30px !important; }
	body.dpm-modern #Footer .widgets_wrapper { padding: 44px 0 16px !important; }
}

/* --- v1.0.1: karty na stronie głównej --- */
body.dpm-modern .the_content_wrapper .boxhead { background: transparent; border: 0; padding: 0; box-shadow: none; margin-bottom: 0; }
body.dpm-modern .the_content_wrapper .boxhead:hover { box-shadow: none; transform: none; }
body.dpm-modern .the_content_wrapper .boxhead:has(img):not(:has(.boxhead)) { background: #fff; border: 1px solid var(--dpm-line); border-radius: var(--dpm-radius); padding: 28px 32px; margin-bottom: 24px; box-shadow: var(--dpm-shadow); transition: box-shadow .25s ease, transform .25s ease; }
body.dpm-modern .the_content_wrapper .boxhead:has(img):not(:has(.boxhead)):hover { box-shadow: var(--dpm-shadow-hover); transform: translateY(-2px); }
body.dpm-modern .the_content_wrapper h1 a, body.dpm-modern .the_content_wrapper h2 a, body.dpm-modern .the_content_wrapper h3 a, body.dpm-modern .the_content_wrapper h4 a { text-decoration: none !important; color: var(--dpm-ink) !important; }
body.dpm-modern .the_content_wrapper h1 a:hover, body.dpm-modern .the_content_wrapper h2 a:hover, body.dpm-modern .the_content_wrapper h3 a:hover, body.dpm-modern .the_content_wrapper h4 a:hover { color: var(--dpm-accent) !important; }
body.dpm-modern .the_content_wrapper .boxhead > hr { margin: 24px 0 !important; }
@media only screen and (max-width: 959px) { body.dpm-modern .the_content_wrapper .boxhead:has(img):not(:has(.boxhead)) { padding: 20px; } }
body.dpm-modern .the_content_wrapper .boxhead:has(img):not(:has(.boxhead)) { display: flow-root; }
/* --- v1.0.3: blog cards box sizing --- */
body.dpm-modern .posts_wrapper .post_wrapper, body.dpm-modern .posts_wrapper .desc, body.dpm-modern .posts_wrapper .post_photo { box-sizing: border-box !important; max-width: 100%; }
body.dpm-modern .posts_wrapper .desc { width: 100% !important; overflow-wrap: anywhere; }
