/* Motyw „Spółdzielnia”: układ, nagłówek, stopka, sekcje strony głównej, 4 wersje wyglądu. */

/* ---------- Wersje wyglądu: kolory, fonty, zaokrąglenia ---------- */
body { --smc-theme-radius: 12px; }
body.smc-v3 {
	--wp--preset--color--base: #FFFFFF;
	--wp--preset--color--surface: #FAF6EF;
	--wp--preset--color--contrast: #1E1B17;
	--wp--preset--color--muted: #4A443B;
	--wp--preset--color--primary: #0D5C60;
	--wp--preset--color--primary-dark: #094447;
	--wp--preset--color--primary-tint: #DFF0EE;
	--wp--preset--color--alert: #A9361A;
	--wp--preset--color--alert-tint: #FBE8E0;
	--wp--preset--color--line: #E2DACB;
	--wp--preset--font-family--heading: Literata, Georgia, serif;
	--smc-theme-radius: 14px;
}
body.smc-v4 {
	--wp--preset--color--surface: #F4F4F7;
	--wp--preset--color--contrast: #15151C;
	--wp--preset--color--muted: #43434F;
	--wp--preset--color--primary: #3730A3;
	--wp--preset--color--primary-dark: #2A2482;
	--wp--preset--color--primary-tint: #ECEBFB;
	--wp--preset--color--alert: #B42318;
	--wp--preset--color--alert-tint: #FDECEA;
	--wp--preset--color--line: #DCDCE5;
	--wp--preset--font-family--heading: Lexend, system-ui, sans-serif;
	--smc-theme-radius: 10px;
}
body.smc-v2 :where(h1, h2, h3, h4) { font-weight: 700; }
body.smc-v4 :where(h1, h2, h3, h4) { font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Podstawy ---------- */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "cv05"; }
:where(h1, h2, h3) { text-wrap: balance; }
:where(p, li) { text-wrap: pretty; }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:where(.wp-site-blocks) :focus-visible { outline: 3px solid var(--wp--preset--color--contrast); outline-offset: 2px; box-shadow: 0 0 0 5px #ffdd00; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-element-button, .wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid currentColor; background: transparent; color: var(--wp--preset--color--primary); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--primary-tint); color: var(--wp--preset--color--primary-dark); }
.wp-block-button.sp-btn-alert > .wp-block-button__link { color: var(--wp--preset--color--alert); border-color: var(--wp--preset--color--alert); }
.wp-block-button.sp-btn-alert > .wp-block-button__link:hover { background: var(--wp--preset--color--alert-tint); color: var(--wp--preset--color--alert); }

/* ---------- Nagłówek (moduł smc/naglowek) ---------- */
@media (max-width: 1023px) {
	.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 60; }
	html { scroll-padding-top: 5rem; }
}

/* ---------- Treść ---------- */
.sp-main { padding-bottom: clamp(3rem, 6vw, 5rem); }
.sp-main.sp-main--home { padding-bottom: 0; }
.sp-main:not(.sp-main--home):not(.sp-main--wide) { padding-top: 1.25rem; }
.sp-crumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; font-size: 1rem; color: var(--wp--preset--color--muted); }
.sp-crumbs li + li::before { content: "›"; margin: 0 .45rem 0 .2rem; }
.sp-crumbs a { color: var(--wp--preset--color--muted); }
.sp-title { margin-top: 0; margin-bottom: 1rem; }
.sp-lead, .sp-lead p { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); }
.sp-lead p { max-width: 44rem; }
.sp-main > .sp-lead { max-width: var(--wp--style--global--content-size) !important; }
.sp-main--modul .wp-block-post-content > .sp-lead { margin-bottom: 2rem; }
/* Wąskie szablony (ogłoszenia, sprawa): kolumna wyrównana do lewej krawędzi siatki 1200 px */
.sp-main:not(.sp-main--modul):not(.sp-main--home).is-layout-constrained > * { margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important; margin-right: auto !important; }
.sp-main :where(.wp-block-post-content) > * { max-width: var(--wp--style--global--content-size); }
.sp-main :where(.wp-block-post-content) > .alignwide { max-width: var(--wp--style--global--wide-size); }
.sp-main :where(.wp-block-post-content) > :where(h2) { margin-top: 2.25rem; }
.sp-main :where(.wp-block-post-content) :where(ul, ol) li { margin-bottom: .35rem; }
.sp-main .wp-block-table table { border-collapse: collapse; font-size: 1.0625rem; }
.sp-main .wp-block-table th, .sp-main .wp-block-table td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: .7rem .75rem .7rem 0; text-align: left; }
.sp-main .wp-block-table thead th { border-bottom: 2px solid var(--wp--preset--color--contrast); }
.sp-postmeta { gap: .5rem 1rem; color: var(--wp--preset--color--muted); font-size: 1rem; margin-bottom: .5rem; }
.sp-postmeta .wp-block-post-terms a { font-weight: 700; color: var(--wp--preset--color--primary-dark); }
.sp-featured img { border-radius: var(--smc-theme-radius); }
.sp-backlink { margin-top: 2.5rem; font-weight: 700; }
.sp-search .wp-block-search__input { min-height: 52px; padding: .5rem .9rem; border: 2px solid var(--wp--preset--color--muted); border-radius: var(--smc-theme-radius); font-size: 1.125rem; }
.sp-search .wp-block-search__button { min-height: 52px; margin-left: .5rem; border-radius: var(--smc-theme-radius); }
.sp-search .wp-block-search__label { font-weight: 700; }

/* Lista ogłoszeń */
.sp-postlist { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--wp--preset--color--line); }
.sp-postcard { display: grid; grid-template-columns: minmax(0, 14rem) 1fr; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.sp-postcard:not(:has(.sp-postcard__img img))::before { content: ""; display: block; aspect-ratio: 3 / 2; border-radius: var(--smc-theme-radius); background: var(--wp--preset--color--primary-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%231D5C45' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E") center / 2rem no-repeat; }
@media (max-width: 599px) { .sp-postcard:not(:has(.sp-postcard__img img))::before { display: none; } }
.sp-postcard__img img { border-radius: var(--smc-theme-radius); }
.sp-postcard__title { margin: 0 0 .5rem; font-size: 1.25rem; }
.sp-postcard__title a { color: var(--wp--preset--color--contrast); }
.sp-postcard .wp-block-post-excerpt__excerpt { margin: 0; }
@media (max-width: 599px) { .sp-postcard { grid-template-columns: 1fr; gap: 1rem; } }

/* FAQ (blok Szczegóły) */
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 0; }
.wp-block-details:first-of-type { border-top: 1px solid var(--wp--preset--color--line); }
.wp-block-details summary { cursor: pointer; padding: 1.25rem 3.5rem 1.25rem 0; font-weight: 600; font-size: 1.0625rem; line-height: 1.4; list-style: none; position: relative; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--wp--preset--color--primary-tint); color: var(--wp--preset--color--primary); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.wp-block-details[open] summary::after { content: "−"; background: var(--wp--preset--color--primary); color: #fff; }
.wp-block-details summary:hover { color: var(--wp--preset--color--primary); }
/* Odpowiedź rozwija się płynnie (Chrome/Edge; w pozostałych przeglądarkach bez animacji). */
.wp-block-details { interpolate-size: allow-keywords; }
.wp-block-details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size .25s ease-out, opacity .25s ease-out, content-visibility .25s; transition-behavior: allow-discrete; }
.wp-block-details[open]::details-content { block-size: auto; opacity: 1; }
.wp-block-details > :not(summary) { margin-top: 0; padding-bottom: 1rem; max-width: 42rem; }
.sp-faq h2 { margin-top: 0; }
@media (max-width: 781px) { .sp-faq .wp-block-details:nth-of-type(n+5) { display: none; } }
/* Awarie i telefony: karta w dwóch kolumnach */
@media (min-width: 900px) {
	.sp-main--modul .wp-block-post-content > .smc-awaria { max-width: none !important; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3.5rem; align-items: start; }
	.sp-main--modul .smc-awaria > .smc-awaria__main { grid-column: 1; grid-row: 1 / span 2; }
	.sp-main--modul .smc-awaria > .smc-awaria__later { grid-column: 2; grid-row: 1; margin: 0; padding: 0; border: 0; }
	.sp-main--modul .smc-awaria > .smc-awaria__alarm { grid-column: 2; grid-row: 2; }
	.sp-main--modul .smc-awaria > .smc-awaria__more { grid-column: 1 / -1; }
}

/* ---------- Strona główna: sekcje ---------- */
.sp-section { padding-top: clamp(4rem, 8vw, 6rem); padding-bottom: clamp(4rem, 8vw, 6rem); margin-block-start: 0 !important; }
.sp-section--tight { padding-top: 0; }
.sp-section h2.wp-block-heading { font-size: clamp(1.5rem, 3vw, 1.875rem); letter-spacing: -.02em; }
.sp-section--dark { background: var(--wp--preset--color--primary-dark); color: rgba(255, 255, 255, .88); }
.sp-section--dark h2.wp-block-heading, .sp-section--dark h3 { color: #fff; }
.sp-section--dark .smc-split__lead { color: rgba(255, 255, 255, .72); }
.sp-section--dark a, .sp-section--dark .smc-docs2 a { color: #fff !important; }
.sp-section--dark .smc-docs2 ul, .sp-section--dark .smc-docs2 a { border-color: rgba(255, 255, 255, .16); }
.sp-section--dark .smc-docs2 a > .smc-icon { color: rgba(255, 255, 255, .72); }
.sp-section--dark .smc-docs2__ftext span { color: rgba(255, 255, 255, .72); }
.sp-section--surface { background: var(--wp--preset--color--surface); }
.sp-section__head { gap: .5rem 2rem; margin-bottom: 1.75rem; }
.sp-section__head h2 { margin: 0; }
.sp-section__head p { margin: 0; }
.sp-section__head a { font-weight: 600; }
.sp-section__lead { margin-top: .25rem; margin-bottom: 1.75rem; color: var(--wp--preset--color--muted); max-width: 44rem !important; }
.sp-section.is-layout-constrained > .sp-section__lead { margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important; margin-right: auto !important; }
.sp-main--home .wp-block-post-content > .wp-block-group.alignfull + .wp-block-group.alignfull { margin-block-start: 0; }

/* Hero – wspólne */
.sp-hero { margin-block-start: 0 !important; }
.sp-hero h1 { margin: 0 0 1rem; font-size: clamp(2.1rem, 4.6vw, 3.1rem); line-height: 1.12; }
.sp-hero .sp-hero__lead { font-size: var(--wp--preset--font-size--large); max-width: 36rem; margin: 0 0 1.75rem; }
.sp-hero .wp-block-buttons { gap: .75rem; }
.sp-hero .wp-block-button__link { font-size: 1.125rem; padding: .9rem 1.5rem; }

/* V1 Zieleń: zdjęcie osiedla pod ciemnozieloną warstwą, biała karta awarii */
.sp-hero--v1 { padding-left: var(--wp--style--root--padding-left) !important; padding-right: var(--wp--style--root--padding-right) !important; min-height: 0 !important; padding-top: clamp(3rem, 6vw, 5rem) !important; padding-bottom: clamp(3rem, 6vw, 5rem) !important; }
.sp-hero--v1 .wp-block-cover__background { background: linear-gradient(90deg, rgba(9, 31, 23, .95) 0%, rgba(9, 31, 23, .88) 44%, rgba(9, 31, 23, .55) 70%, rgba(9, 31, 23, .25) 100%) !important; opacity: 1 !important; }
.sp-hero--v1 .wp-block-cover__image-background { object-position: 70% 60%; }
.sp-hero--v1 .wp-block-cover__inner-container { color: #fff; }
.sp-hero--v1 .wp-block-columns { gap: 2rem; align-items: center; }
@media (min-width: 782px) {
	.sp-hero--v1 .wp-block-columns { display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; }
	.sp-hero--v1 .wp-block-column:first-child { grid-column: 1 / span 6; }
	.sp-hero--v1 .wp-block-column:last-child { grid-column: 8 / span 5; }
}
@media (min-width: 782px) and (max-width: 1099px) {
	.sp-hero--v1 .wp-block-column:first-child { grid-column: 1 / span 6; }
	.sp-hero--v1 .wp-block-column:last-child { grid-column: 7 / span 6; }
}
.sp-hero--v1 h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 2.75rem); line-height: 1.12; letter-spacing: -.025em; margin: 1.5rem 0 2rem; max-width: 13em; }
.sp-hero--v1 .smc-status { padding: .4rem .9rem .4rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1rem; font-weight: 500; }
/* Dwie linie na telefonie: kropka przy pierwszej linii, zaokrąglenie jak karta. */
@media (max-width: 781px) {
	.sp-hero--v1 .smc-status { align-items: flex-start; border-radius: 1.25rem; }
	.sp-hero--v1 .smc-status .smc-dot { margin-top: calc((1lh - .625rem) / 2); }
}
.sp-hero--v1 .smc-status.is-open .smc-dot { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }
.sp-hero--v1 .smc-quick__all a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
.sp-hero--v1 .smc-quick__all a:hover { text-decoration-color: #fff; }
.sp-show-mobile { display: none !important; }
@media (max-width: 781px) {
	.sp-section--awaria { padding-top: 1.5rem; padding-bottom: 2.5rem; }
	.sp-hero--v1 .wp-block-cover__background { background: linear-gradient(180deg, rgba(9, 31, 23, .9), rgba(9, 31, 23, .94)) !important; }
	.sp-hero--v1 { padding-top: 1.75rem !important; padding-bottom: 2rem !important; }
	.sp-hero--v1 h1 { margin: 1rem 0 1.5rem; }
	.sp-hide-mobile { display: none !important; }
	.sp-show-mobile { display: block !important; }
}

/* V3 Słoneczny: pełne zdjęcie i biała karta */
.sp-hero--v3 { min-height: clamp(460px, 62vh, 620px) !important; }
.sp-hero--v3 .wp-block-cover__background { background: linear-gradient(0deg, rgba(20,16,10,.35), rgba(20,16,10,.05)) !important; opacity: 1 !important; }
.sp-hero--v3 .sp-hero__card { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); border-radius: var(--smc-theme-radius); padding: clamp(1.5rem, 4vw, 2.75rem); max-width: 640px; box-shadow: 0 18px 40px rgba(20,16,10,.18); }
.sp-hero--v3 .sp-hero__card h1 { color: var(--wp--preset--color--contrast); }
body.smc-v3 .sp-section--surface { background: var(--wp--preset--color--surface); }
body.smc-v3 .smc-tile__link { border: 0; background: var(--wp--preset--color--surface); }
body.smc-v3 .smc-tile__link:hover { box-shadow: 0 0 0 2px var(--wp--preset--color--primary); }
body.smc-v3 .sp-section--surface .smc-tile__link { background: var(--wp--preset--color--base); }
body.smc-v3 .smc-tile__icon { border-radius: 50%; }
.sp-quick { gap: var(--wp--preset--spacing--50, 2rem); }

/* V4 Nowoczesny: tekst i zdjęcie obok siebie, karta awarii w poziomie */
.sp-hero--v4 { background: var(--wp--preset--color--surface); padding-top: clamp(2rem, 5vw, 4rem) !important; padding-bottom: clamp(2rem, 5vw, 4rem) !important; }
.sp-hero--v4 .sp-eyebrow { display: inline-block; margin: 0 0 1rem; padding: .3rem .8rem; border-radius: 999px; background: var(--wp--preset--color--primary-tint); color: var(--wp--preset--color--primary-dark); font-weight: 700; font-size: 1rem; }
.sp-hero--v4 .sp-hero__img img { border-radius: calc(var(--smc-theme-radius) * 2); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
body.smc-v4 .sp-alertstrip .smc-awaria { display: grid; grid-template-columns: auto 1fr; gap: .5rem 2rem; align-items: center; }
body.smc-v4 .sp-alertstrip .smc-awaria__title { margin: 0; grid-row: span 2; }
body.smc-v4 .sp-alertstrip .smc-awaria__list { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
body.smc-v4 .sp-alertstrip .smc-awaria__alarm, body.smc-v4 .sp-alertstrip .smc-awaria__more { grid-column: 2; margin: 0; border: 0; padding: 0; }
body.smc-v4 .smc-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); gap: .75rem; }
body.smc-v4 .smc-tile__link { align-items: center; padding: 1rem 1.25rem; }
@media (max-width: 781px) {
	body.smc-v4 .sp-alertstrip .smc-awaria { grid-template-columns: 1fr; }
	body.smc-v4 .sp-alertstrip .smc-awaria__title { grid-row: auto; }
	body.smc-v4 .sp-alertstrip .smc-awaria__alarm, body.smc-v4 .sp-alertstrip .smc-awaria__more { grid-column: 1; }
	.sp-hero .wp-block-columns { gap: 2rem; }
}

/* ---------- Stopka ---------- */
.sp-footer-wrap { margin-block-start: 0 !important; }
.sp-footer { background: #0e1512; color: rgba(255, 255, 255, .88); padding-top: clamp(4rem, 7vw, 5rem); padding-bottom: 2rem; font-size: 1.0625rem; line-height: 1.6; }
.sp-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.sp-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.sp-footer__cols { gap: 2.5rem 2rem; }
@media (min-width: 782px) {
	.sp-footer__cols { display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; }
	.sp-footer__cols > .wp-block-column { flex-basis: auto !important; }
	.sp-footer__cols > .wp-block-column:nth-child(1) { grid-column: 1 / span 4; }
	.sp-footer__cols > .wp-block-column:nth-child(2) { grid-column: 5 / span 4; }
	.sp-footer__cols > .wp-block-column:nth-child(3) { grid-column: 9 / span 4; }
}
.sp-footer__h { color: #fff; font-size: 1.0625rem; line-height: 1.5; margin: 0 0 1.25rem; font-family: var(--wp--preset--font-family--body); font-weight: 700; letter-spacing: 0; }
.sp-footer__links { list-style: none; padding: 0; margin: 0; }
.sp-footer__links li { margin: 0 0 .75rem; }
.sp-footer__bottom { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 1rem; gap: .5rem 2rem; color: rgba(255, 255, 255, .72); }
.sp-footer__bottom p { margin: 0; }
.sp-footer__bottom { align-items: flex-start; }
.sp-footer__bottom .smc-footer-legal { flex: 1 1 100%; min-width: 0; }
@media (min-width: 782px) { .sp-footer__bottom { flex-wrap: nowrap !important; } .sp-footer__bottom .smc-footer-legal { flex: 1 1 0; } }
.sp-footer .smc-footer-data a { color: #fff; }
.sp-footer .smc-copy { color: #fff; border-color: rgba(255, 255, 255, .45); }
@media (max-width: 781px) {
	.sp-footer__cols { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
	.sp-footer__cols > .wp-block-column:first-child { grid-column: 1 / -1; }
	/* Stopka na telefonie: mniejszy tekst i odstępy. */
	.sp-footer { padding-top: 3rem; font-size: .9375rem; line-height: 1.5; }
	.sp-footer__h { margin-bottom: .875rem; font-size: 1rem; }
	.sp-footer__links li { margin-bottom: .5rem; }
	.sp-footer__bottom { margin-top: 2rem; font-size: .875rem; }
	.sp-footer .smc-brand--footer .smc-brand__name { font-size: 1.125rem; }
}

/* Strony z modułami: szerokość 1200 px, tekst wyrównany do lewej */
.sp-main--modul .wp-block-post-content > * { max-width: none; }
.sp-main--modul .wp-block-post-content > p, .sp-main--modul .wp-block-post-content > .wp-block-list { max-width: 48rem; }
.sp-main--modul .wp-block-post-content > .smc-awaria { max-width: 44rem; margin-bottom: 2.5rem; }

/* Wyniki wyszukiwania: data tylko przy ogłoszeniach */
.wp-block-post:not(.type-post) .wp-block-post-date { display: none; }

/* Strony działu z menu po lewej (O spółdzielni i podstrony) */
.sp-sekcja { margin-top: 2.5rem !important; }
.sp-sekcja .smc-sidenav { position: sticky; top: 2rem; }
.sp-sekcja .wp-block-post-content > * { max-width: 44rem; }
.sp-sekcja .wp-block-post-content > .wp-block-html, .sp-sekcja .wp-block-post-content > .smc-stats { max-width: none; }
@media (max-width: 900px) {
	.sp-sekcja .smc-split__aside { order: 2; padding-top: 2rem; border-top: 1px solid var(--wp--preset--color--line); }
	.sp-sekcja .smc-sidenav { position: static; }
}

/* =========================================================================
   Wersja 2 – Granat: IBM Plex Sans, ostre narożniki, tytuł sekcji nad treścią,
   treść w siatce 12 kolumn (3 × 4 albo 8 + 4)
   ========================================================================= */
body.smc-v2 {
	--wp--preset--color--surface: #F3F5F8;
	--wp--preset--color--contrast: #0F1A2B;
	--wp--preset--color--text: #323D4F;
	--wp--preset--color--muted: #5A6477;
	--wp--preset--color--primary: #1D3A63;
	--wp--preset--color--primary-dark: #132946;
	--wp--preset--color--primary-tint: #E6ECF5;
	--wp--preset--color--alert: #B42318;
	--wp--preset--color--alert-tint: #FDF0EE;
	--wp--preset--color--line: #DAE0E8;
	--wp--preset--font-family--body: "IBM Plex Sans", system-ui, sans-serif;
	--wp--preset--font-family--heading: "IBM Plex Sans", system-ui, sans-serif;
	--smc-theme-radius: 4px;
	--smc-radius: 4px;
	font-feature-settings: normal;
}
body.smc-v2 :where(.smc-acc__btn, .smc-menubtn, .smc-callnow, .smc-menu__close, .smc-copy, .smc-urgent__tag, .smc-switch--wide, .smc-menu__acc .smc-acc__item) { border-radius: 4px; }
body.smc-v2 .smc-acc__panel { border-radius: 6px; }
body.smc-v2 .smc-acc__item { border-radius: 4px; }
body.smc-v2 .wp-block-details summary::after { border-radius: 4px; }

/* Nagłówek: granatowy pasek menu */
body.smc-v2 .smc-nav { background: var(--wp--preset--color--primary-dark); border: 0; }
body.smc-v2 .smc-nav__list a { color: rgba(255, 255, 255, .86); margin-bottom: 0; }
body.smc-v2 .smc-nav__list a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .35); }
body.smc-v2 .smc-nav__list a[aria-current] { color: #fff; border-bottom-color: #fff; }

/* Otwarcie: tekst na 6 kolumnach, zdjęcie od 8. kolumny do krawędzi ekranu */
.sp-hero--v2 { position: relative; overflow: hidden; background: var(--wp--preset--color--base); padding: clamp(3rem, 6vw, 5rem) var(--wp--style--root--padding-right) clamp(3rem, 6vw, 5rem) var(--wp--style--root--padding-left) !important; --sp-w: min(1200px, 100% - 2 * var(--wp--style--root--padding-left)); --sp-img-col: 7; }
.sp-hero2__text { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; }
@media (max-width: 781px) { .sp-hero2__text { grid-template-columns: minmax(0, 1fr); } }
.sp-hero2__text > * { grid-column: 1 / span 6; margin: 0 !important; }
.sp-hero--v2 h1 { font-size: clamp(2rem, 4.2vw, 2.75rem); line-height: 1.12; letter-spacing: -.025em; }
.sp-hero2__lead { margin-top: 1rem !important; font-size: 1.25rem; line-height: 1.5; color: var(--wp--preset--color--muted); max-width: 32rem; }
.sp-hero--v2 .smc-quick { margin-top: 2.5rem !important; }
.sp-hero2__img { position: absolute; top: 0; bottom: 0; right: 0; left: calc((100% - var(--sp-w)) / 2 + (var(--sp-w) + 2rem) * var(--sp-img-col) / 12); margin: 0 !important; max-width: none !important; }
.sp-hero2__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.sp-hero--v2 .smc-quick__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; row-gap: 0; }
.sp-hero--v2 .smc-quick__list li { border-bottom: 1px solid var(--wp--preset--color--line); }
.sp-hero--v2 .smc-quick__list li:nth-child(-n+2) { border-top: 1px solid var(--wp--preset--color--line); }
.sp-hero--v2 .smc-quick__item { min-height: 4.5rem; padding: .75rem 0; gap: .875rem; border-radius: 0; background: none; }
.sp-hero--v2 .smc-quick__item:hover { transform: none; box-shadow: none; }
.sp-hero--v2 .smc-quick__icon { border-radius: 4px; background: var(--wp--preset--color--primary-tint); color: var(--wp--preset--color--primary); }
.sp-hero--v2 .smc-quick__chev { width: 1.125rem; height: 1.125rem; color: var(--wp--preset--color--muted); }
.sp-hero--v2 .smc-quick__all { margin-top: 1rem; }
@media (min-width: 782px) and (max-width: 1099px) {
	.sp-hero--v2 { --sp-img-col: 8; }
	.sp-hero2__text > * { grid-column: 1 / span 7; }
	.sp-hero--v2 .smc-quick__list { grid-template-columns: minmax(0, 1fr); }
	.sp-hero--v2 .smc-quick__list li:nth-child(2) { border-top: 0; }
}
@media (max-width: 781px) {
	.sp-hero--v2 { padding-top: 2rem !important; padding-bottom: 2.5rem !important; }
	.sp-hero2__text > * { grid-column: 1 / -1; }
	.sp-hero2__img { display: none; }
	.sp-hero--v2 .smc-quick { margin-top: 2rem !important; }
	.sp-hero--v2 .smc-quick__list { grid-template-columns: minmax(0, 1fr); }
	.sp-hero--v2 .smc-quick__list li:nth-child(2) { border-top: 0; }
	.sp-hero--v2 .smc-quick__item { min-height: 4rem; }
	.sp-hero--v2 .smc-quick__list li:nth-child(n+5) { display: none; }
}

/* Na teraz: granatowy pasek, trzy kolumny po 4 */
.sp-section--now { background: var(--wp--preset--color--primary-dark); color: rgba(255, 255, 255, .88); padding-top: 3rem; padding-bottom: 3rem; }
.smc-now { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; row-gap: 2rem; }
.smc-now__col { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.smc-now__col + .smc-now__col::before { content: ""; position: absolute; left: -1rem; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .16); }
.smc-now__h { margin: 0 0 .25rem !important; font-size: 1.0625rem !important; line-height: 1.5; font-weight: 700; letter-spacing: 0 !important; color: #fff; }
.smc-now__label { margin: 0 0 1rem; font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.smc-now .smc-status { gap: .5rem; font-weight: 400; }
.smc-now .smc-status.is-open .smc-dot { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }
.smc-now__call { display: inline-flex; align-items: center; gap: .625rem; min-height: 3.25rem; padding: 0 1.25rem; border-radius: 4px; background: var(--wp--preset--color--alert); color: #fff !important; font-size: 1.5rem; font-weight: 700; line-height: 1; text-decoration: none !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.smc-now__call:hover { background: #8f1c13; }
.smc-now__call .smc-icon { width: 1.375rem; height: 1.375rem; }
.smc-now__tel { margin: 0; }
.smc-now .smc-bigtel { color: #fff !important; }
.smc-now .smc-account { display: grid; justify-items: start; gap: .75rem; }
.smc-now .smc-account__num { font-size: 1.125rem; font-weight: 600; line-height: 1.3; color: #fff; font-variant-numeric: tabular-nums; }
.smc-now .smc-copy { min-height: 2.5rem; color: #fff; border-color: rgba(255, 255, 255, .4); }
.smc-now .smc-copy:hover { background: rgba(255, 255, 255, .1); }
.smc-now__more { margin: auto 0 0 !important; padding-top: 1rem; }
.smc-now__more a { color: #fff !important; font-size: 1rem; font-weight: 500; text-decoration: none; }
.smc-now__more a:hover { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 900px) {
	.smc-now { grid-template-columns: 1fr; row-gap: 0; }
	.smc-now__col { padding: 1.5rem 0; }
	.smc-now__col:first-child { padding-top: 0; }
	.smc-now__col:last-child { padding-bottom: 0; }
	.smc-now__col + .smc-now__col::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
	.sp-section--now { padding-top: 2rem; padding-bottom: 2rem; }
}

/* Tytuł sekcji nad treścią, odnośniki po prawej */
.sp-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.5rem !important; }
.sp-top > * { margin: 0 !important; }
.sp-top__text { max-width: 40rem; }
.sp-top__title { margin: 0 !important; }
.sp-top__lead { margin: .75rem 0 0 !important; color: var(--wp--preset--color--muted); }
.sp-top__links { display: flex; flex-wrap: wrap; gap: 0 2rem; }
.sp-top__links p { margin: 0 !important; }

/* Ogłoszenia: trzy równe kolumny */
.smc-newscards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; row-gap: 2.5rem; }
.smc-newscard { position: relative; }
.smc-newscard__img { display: grid; place-items: center; aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 1.25rem; border-radius: 4px; background: var(--wp--preset--color--primary-tint); color: var(--wp--preset--color--primary); }
.smc-newscard__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.smc-newscard__img .smc-icon { width: 2rem; height: 2rem; }
.smc-newscard .smc-news__meta { margin: 0 0 .5rem; gap: .25rem 1rem; }
.smc-newscard__title { margin: 0 0 .5rem; font-size: 1.25rem; line-height: 1.35; font-weight: 600 !important; letter-spacing: -.01em; }
.smc-newscard__title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.smc-newscard__title a::after { content: ""; position: absolute; inset: 0; }
.smc-newscard:hover .smc-newscard__title a { color: var(--wp--preset--color--primary); text-decoration: underline; text-underline-offset: .2em; }
.smc-newscard__excerpt { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--wp--preset--color--text); }
@media (max-width: 781px) {
	.smc-newscards { grid-template-columns: 1fr; row-gap: 0; border-top: 1px solid var(--wp--preset--color--line); }
	.smc-newscard { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
	.smc-newscard__img { grid-row: span 2; margin: 0; aspect-ratio: 1; }
	.smc-newscard .smc-news__meta { margin-bottom: .25rem; }
	.smc-newscard__title { margin: 0; font-size: 1.0625rem; }
	.smc-newscard__excerpt { display: none; }
}

/* Dokumenty i druki: druki na 8 kolumnach, kategorie na 4 */
.smc-docs3 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; row-gap: 3rem; align-items: start; }
.smc-docs3__main { grid-column: 1 / span 8; }
.smc-docs3__side { grid-column: 9 / span 4; }
.smc-docs3__h { margin: 0 0 1rem !important; font-size: 1.25rem !important; line-height: 1.3; letter-spacing: -.01em !important; }
.smc-docs3 .smc-doc { flex-direction: row; align-items: center; padding: 1rem 0; }
.smc-docs3 .smc-doc__desc { display: none; }
.smc-docs3__side ul { gap: 0; border-top: 1px solid var(--wp--preset--color--line); }
.smc-docs3__side a { min-height: 3.25rem; padding: .625rem 0; border-radius: 0; border-bottom: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--contrast) !important; }
.smc-docs3__side a:hover { background: none; }
.smc-docs3__side a:hover > span:first-child { color: var(--wp--preset--color--primary); text-decoration: underline; text-underline-offset: .2em; }
.smc-docs3__lock { width: 1rem; height: 1rem; margin-left: .5rem; vertical-align: -.1em; color: var(--wp--preset--color--muted); }
@media (max-width: 900px) {
	.smc-docs3 { grid-template-columns: minmax(0, 1fr); }
	.smc-docs3__main, .smc-docs3__side { grid-column: 1 / -1; }
}
@media (max-width: 781px) {
	.smc-docs3 .smc-doc { gap: 1rem; }
	.smc-docs3 .smc-doc__dl { padding: 0 .75rem; }
	.smc-docs3 .smc-doclist li:nth-child(n+4) { display: none; }
}

/* Częste pytania w dwóch kolumnach */
.sp-faq2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; align-items: start; }
.sp-faq2 > * { margin: 0 !important; }
.sp-faq2__col > * { margin: 0 !important; }
@media (max-width: 781px) {
	.sp-faq2 { grid-template-columns: 1fr; }
	.sp-faq2__col + .sp-faq2__col .wp-block-details:first-of-type { border-top: 0; }
}

/* Kontakt: trzy kolumny po 4 */
.smc-contact3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; row-gap: 2rem; }
.smc-contact3__col { display: grid; align-content: start; gap: 1.5rem; margin: 0; min-width: 0; }
.smc-contact3 dt, .smc-contact3 .smc-hours caption { margin: 0 0 .25rem; padding: 0; font-size: 1rem; line-height: 1.5; font-weight: 400; letter-spacing: 0; color: var(--wp--preset--color--muted); }
.smc-contact3 dd { margin: 0; color: var(--wp--preset--color--contrast); }
.smc-contact3 .smc-hours caption { margin-bottom: .5rem; }
.smc-contact3 .smc-hours th, .smc-contact3 .smc-hours td { padding: .375rem 0; border: 0; color: var(--wp--preset--color--contrast); }
@media (max-width: 781px) { .smc-contact3 { grid-template-columns: 1fr; } }

/* Stopka */
body.smc-v2 .sp-footer { background: var(--wp--preset--color--primary-dark); }
body.smc-v2 .smc-brand--footer .smc-brand__mark rect { fill: #fff; }
body.smc-v2 .smc-brand--footer .smc-brand__mark path { fill: var(--wp--preset--color--primary-dark); }

/* Podstrony: okruszki, tytuł i opis na szarym paśmie */
body.smc-v2 .sp-main:not(.sp-main--home) { padding-top: 0 !important; }
body.smc-v2 .sp-main:not(.sp-main--home) > .sp-crumbs,
body.smc-v2 .sp-main:not(.sp-main--home) > .sp-postmeta,
body.smc-v2 .sp-main:not(.sp-main--home) > .sp-title,
body.smc-v2 .sp-main:not(.sp-main--home) > .sp-lead,
body.smc-v2 .sp-main:not(.sp-main--home) > .wp-block-post-content > .sp-lead:first-child { background: var(--wp--preset--color--surface); box-shadow: 0 0 0 100vmax var(--wp--preset--color--surface); clip-path: inset(0 -100vmax); }
body.smc-v2 .sp-main:not(.sp-main--home) > .sp-crumbs { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 2rem; }
body.smc-v2 .sp-main:not(.sp-main--home) > .sp-crumbs ol { margin: 0; padding-bottom: 1rem; }
body.smc-v2 .sp-main:not(.sp-main--home) > .sp-title { margin-top: 0 !important; margin-bottom: 0 !important; padding-bottom: 3rem; }
body.smc-v2 .sp-main:not(.sp-main--home):has(> .wp-block-post-content > .sp-lead:first-child) > .sp-title, body.smc-v2 .sp-main:not(.sp-main--home) > .sp-title:has(+ .sp-lead) { padding-bottom: 1rem; }
body.smc-v2 .sp-main:not(.sp-main--home) > .sp-postmeta { margin-top: 0 !important; margin-bottom: 0 !important; padding-bottom: .5rem; }
body.smc-v2 .sp-main:not(.sp-main--home) > .sp-lead { margin-top: 0 !important; margin-bottom: 0 !important; padding-bottom: 3rem; }
body.smc-v2 .sp-main:not(.sp-main--home) > .sp-lead + * { margin-top: 3rem !important; }
body.smc-v2 .sp-main:not(.sp-main--home):has(> .wp-block-post-content > .sp-lead:first-child) > .wp-block-post-content { margin-top: 0 !important; }
body.smc-v2 .sp-main:not(.sp-main--home) > .wp-block-post-content > .sp-lead:first-child { margin: 0 0 3rem !important; padding-bottom: 3rem; }
body.smc-v2 .sp-main > .wp-block-post-content > .sp-lead:first-child + * { margin-top: 0 !important; }
body.smc-v2 .sp-main--modul .wp-block-post-content > .sp-lead:first-child + .smc-sections,
body.smc-v2 .sp-main--modul .wp-block-post-content > .sp-lead:first-child + .smc-docs-page { margin-top: 0 !important; }
body.smc-v2 .sp-main:not(.sp-main--home) .sp-lead { color: var(--wp--preset--color--muted); }
body.smc-v2 .sp-main:not(.sp-main--home) > .sp-title:not(:has(+ .sp-lead)) + * { margin-top: 3rem !important; }
body.smc-v2 .sp-main:not(.sp-main--home) > .wp-block-post-content > :first-child { margin-top: 0 !important; }
body.smc-v2 .sp-main:not(.sp-main--home):has(> .wp-block-post-content > .sp-lead:first-child) > .sp-title + * { margin-top: 0 !important; }

/* Ostre narożniki i granatowe ikony w modułach wtyczki */
body.smc-v2 :where(.smc-awaria__call, .smc-awaria__nums a, .smc-sidenav a, .smc-docs__filters select, .smc-doc__dl, .smc-doc__login, .smc-newsrow__img, .smc-badge, .smc-press__img img, .smc-press__thumb) { border-radius: 4px; }
body.smc-v2 .smc-awaria { border-radius: 6px; box-shadow: none; }
body.smc-v2 .smc-task__icon { border-radius: 4px; }
body.smc-v2 .sp-postcard:not(:has(.sp-postcard__img img))::before { border-radius: 4px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%231D3A63' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E"); }
