/* Strona główna z bloków Gutenberga - kolory z palety Blocksy (bez zmian) */
.wm-home{--c1:var(--theme-palette-color-1,#19bc9c);--c3:var(--theme-palette-color-3,#365951);--c4:var(--theme-palette-color-4,#192c27);--c5:var(--theme-palette-color-5,#E6F0EE);--c6:var(--theme-palette-color-6,#F2F7F6);--r:12px;color:var(--c4);padding:24px 0 48px}
.wm-home>*{max-width:1290px;margin-left:auto!important;margin-right:auto!important;padding-left:20px;padding-right:20px;box-sizing:border-box}
.wm-home>*+*{margin-top:34px!important}
.wm-home a{text-decoration:none}
.wm-home h2,.wm-home h3{margin:0;color:var(--c4)}
.wm-home .wp-block-post-template{list-style:none;margin:0;padding:0}
.wm-home .wp-block-post-featured-image{margin:0;overflow:hidden}
.wm-home .wp-block-post-featured-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.wm-home .wp-block-post-featured-image:hover img{transform:scale(1.04)}
.wm-home .wp-block-post-title a{color:inherit}
.wm-home .wp-block-post-title a:hover{color:var(--c1)}

/* Etykieta kategorii */
.wm-home .wm-badge{margin:0;font-size:0}
.wm-home .wm-badge a,.wm-home p.wm-badge{display:inline-block;background:var(--c1);color:#fff!important;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:4px 9px;border-radius:5px;line-height:1.2;margin:0 4px 4px 0}
.wm-home p.wm-badge{width:auto;align-self:flex-start}
.wm-home .wm-badge .wp-block-post-terms__separator{display:none}
.wm-home .wm-badge a+a{display:none}

/* Data */
.wm-home .wm-date{font-size:13px;color:var(--c3);margin:0}
.wm-home .wm-date::before{content:"";display:inline-block;width:14px;height:14px;margin-right:6px;vertical-align:-2px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center/contain no-repeat}

/* Nagłówki sekcji */
.wm-home .wm-head{margin-bottom:16px;gap:12px;align-items:center}
.wm-home .wm-head h2{font-size:22px;font-weight:700;border-left:4px solid var(--c1);padding-left:12px;line-height:1.2}
.wm-home .wm-more{margin:0;font-size:13px;font-weight:600;white-space:nowrap}
.wm-home .wm-more a{color:var(--c1)}

/* Reklamy */
.wm-home .wm-ad{text-align:center}
.wm-home .wm-ad__label{font-size:10px!important;letter-spacing:.08em;text-transform:uppercase;color:var(--c3);opacity:.7;margin:0 0 4px!important}
.wm-home .wm-ad__ph{max-width:970px;min-height:90px;margin:0 auto;gap:8px 18px;align-items:center;border-radius:var(--r);border:2px dashed color-mix(in srgb,var(--c1) 45%,transparent);background:linear-gradient(135deg,var(--c6),var(--c5));padding:10px 20px}
.wm-home .wm-ad__title{margin:0;font-size:clamp(16px,2vw,22px);font-weight:600}
.wm-home .wm-ad__title a{color:var(--c4)}
.wm-home .wm-ad__size{margin:0;background:var(--c1);color:#fff;font-weight:700;font-size:14px;padding:4px 14px;border-radius:6px}
.wm-home .wm-ad__cover{border-radius:var(--r);overflow:hidden;margin:0 auto;text-align:left}
.wm-home .wm-ad__cover .wp-block-cover__background{opacity:1!important;background:linear-gradient(90deg,rgba(25,44,39,.92),rgba(25,44,39,.5) 45%,rgba(25,44,39,0) 80%)!important}
.wm-home .wm-ad__cover .wm-ad__title{color:#fff;font-size:clamp(22px,3vw,32px);line-height:1.15;margin-bottom:14px}
.wm-home .wm-ad__btn .wp-block-button__link{background:var(--c1);color:#fff;font-weight:700;padding:6px 18px;border-radius:6px;font-size:15px}
.wm-home .wm-ad--srodek{max-width:1010px}
.wm-home .wm-ad--srodek .wm-ad__cover{padding-left:6%}
.wm-home .wm-ad--bok .wm-ad__cover{text-align:center;padding-top:40px;max-width:300px}
.wm-home .wm-ad--bok .wm-ad__cover .wp-block-cover__background{background:linear-gradient(180deg,rgba(25,44,39,.88),rgba(25,44,39,.25) 50%,rgba(25,44,39,0))!important}
.wm-home .wm-ad--bok .wm-ad__title{font-size:28px}
.wm-home .wm-col--ad .wm-ad{position:sticky;top:100px}

/* Hero */
.wm-home .wm-hero{gap:14px;margin-bottom:0}
.wm-home .wm-hero__cover{border-radius:var(--r);overflow:hidden;padding:22px;height:100%}
.wm-home .wm-hero__main .wm-hero__cover{min-height:440px;padding:30px}
.wm-home .wm-hero__cover .wp-block-cover__background{opacity:1!important;background:linear-gradient(180deg,rgba(10,25,22,0) 30%,rgba(10,25,22,.88))!important}
.wm-home .wm-hero__cover img{transition:transform .5s}
.wm-home .wm-hero__cover:hover img{transform:scale(1.04)}
.wm-home .wm-hero__cover .wp-block-cover__inner-container{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.wm-home .wm-hero__cover .wp-block-cover__inner-container>*{margin:0!important;max-width:none}
.wm-home .wm-hero__title{font-size:clamp(26px,3vw,38px)!important;line-height:1.12;color:#fff}
.wm-home .wm-hero__title a,.wm-home .wm-hero__cover .wp-block-post-title a{color:#fff}
.wm-home .wm-hero__cover .wp-block-post-title{font-size:19px;line-height:1.3;color:#fff}
.wm-home .wm-hero__ex{font-size:15px;color:#fff;opacity:.92;max-width:560px}
.wm-home .wm-hero__cover .wm-date{color:#fff;opacity:.9}
.wm-home .wm-q--side .wp-block-post-template{display:grid;gap:14px;height:100%}
.wm-home .wm-hero__side .wm-hero__cover{min-height:213px!important}

/* Karty: Najnowsze */
.wm-home .wm-cards .wp-block-post-template{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.wm-home .wm-card{background:#fff;border-radius:var(--r);overflow:hidden;box-shadow:0 2px 14px rgba(25,44,39,.07);height:100%;padding-bottom:16px}
.wm-home .wm-card>*{margin:0}
.wm-home .wm-card .wm-badge{position:relative;margin:-34px 0 0 14px;min-height:30px}
.wm-home .wm-card .wp-block-post-title{font-size:19px;line-height:1.3;padding:8px 16px 10px}
.wm-home .wm-card .wm-date{padding:0 16px}

/* Kolumny */
.wm-home .wm-cols{gap:28px}
.wm-home .wm-col>.wm-head:not(:first-child){margin-top:34px}
.wm-home .wm-row{display:grid!important;grid-template-columns:150px 1fr;gap:14px;align-items:start;margin-bottom:14px}
.wm-home .wm-rows--sm .wm-row{grid-template-columns:110px 1fr}
.wm-home .wm-row .wp-block-post-featured-image{border-radius:8px}
.wm-home .wm-row__body>*{margin:0 0 6px}
.wm-home .wm-row .wp-block-post-title{font-size:15px;line-height:1.35}
.wm-home .wm-row .wm-badge a{font-size:10px;padding:3px 7px}

/* Najczęściej czytane */
.wm-home .wm-pop .wp-block-post-template{counter-reset:pop}
.wm-home .wm-pop li{counter-increment:pop;display:flex;gap:14px;align-items:center;padding:10px 0;border-bottom:1px solid var(--c5)}
.wm-home .wm-pop li::before{content:counter(pop);flex:0 0 32px;height:32px;border-radius:50%;background:var(--c5);color:var(--c4);font-weight:700;display:grid;place-items:center}
.wm-home .wm-pop__item>*{margin:0}
.wm-home .wm-pop .wp-block-post-title{font-size:14px;line-height:1.35;margin-bottom:4px}
.wm-home .wm-pop .wm-date{font-size:12px}

/* Firmy */
.wm-home .wm-firms .wp-block-post-template{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.wm-home .wm-firm{background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 2px 12px rgba(25,44,39,.07);height:100%;padding-bottom:10px}
.wm-home .wm-firm>*{margin:0}
.wm-home .wm-firm .wp-block-post-featured-image{background:var(--c6)}
.wm-home .wm-firm .wm-badge{position:relative;margin:-26px 0 0 8px;min-height:22px}
.wm-home .wm-firm .wm-badge a{font-size:9px;padding:3px 6px}
.wm-home .wm-firm .wp-block-post-title{font-size:13px;line-height:1.3;padding:8px 10px 0}

/* CTA */
.wm-home .wm-cta{background:var(--c5);border-radius:var(--r);padding:26px 34px!important;gap:20px 28px;max-width:1250px}
.wm-home .wm-cta__txt{flex:1 1 420px}
.wm-home .wm-cta__txt>*{margin:0}
.wm-home .wm-cta h2{font-size:22px;margin-bottom:6px}
.wm-home .wm-cta p{font-size:14px;color:var(--c3)}
.wm-home .wm-cta .wp-block-button__link{background:var(--c1);color:#fff;border:2px solid var(--c1);border-radius:8px;font-weight:600;padding:11px 22px}
.wm-home .wm-cta .is-style-outline .wp-block-button__link{background:#fff;color:var(--c1)}

@media (max-width:1100px){
	.wm-home .wm-cols{flex-wrap:wrap!important}
	.wm-home .wm-cols>.wp-block-column{flex-basis:calc(50% - 14px)!important}
	.wm-home .wm-col--ad{flex-basis:100%!important}
	.wm-home .wm-col--ad .wm-ad{position:static}
	.wm-home .wm-ad--bok .wm-ad__cover{margin:0 auto}
}
@media (max-width:781px){
	.wm-home .wm-cards .wp-block-post-template{grid-template-columns:1fr}
	.wm-home .wm-cols>.wp-block-column{flex-basis:100%!important}
	.wm-home .wm-hero__main .wm-hero__cover{min-height:340px}
	.wm-home .wm-cta{padding:22px!important}
}
@media (max-width:520px){
	.wm-home>*{padding-left:16px;padding-right:16px}
	.wm-home .wm-firms .wp-block-post-template{grid-template-columns:1fr 1fr}
	.wm-home .wm-row{grid-template-columns:110px 1fr}
	.wm-home .wm-head h2{font-size:19px}
}

/* Animacje i efekty najechania */
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.wm-home .wm-card,.wm-home .wm-firm{transition:transform .35s cubic-bezier(.2,.7,.3,1),box-shadow .35s}
.wm-home .wm-card:hover,.wm-home .wm-firm:hover{transform:translateY(-6px);box-shadow:0 14px 34px rgba(25,44,39,.14)}
.wm-home .wm-head h2{position:relative}
.wm-home .wm-pop li::before{transition:background .4s,color .4s,transform .4s}
.wm-home .wm-pop.is-in li::before{background:var(--c1);color:#fff}
.wm-home .wm-pop li:hover::before{transform:scale(1.15) rotate(-8deg)}
.wm-home .wm-ad__ph{transition:border-color .3s,transform .3s}
.wm-home .wm-ad__ph:hover{border-color:var(--c1);transform:scale(1.01)}
.wm-home .wp-block-button__link{transition:transform .25s,box-shadow .25s,opacity .2s}
.wm-home .wp-block-button__link:hover{transform:translateY(-2px);box-shadow:0 8px 18px color-mix(in srgb,var(--c1) 35%,transparent)}
.wm-home .wm-badge a{transition:filter .2s}
.wm-home .wm-badge a:hover{filter:brightness(1.1)}
@media (prefers-reduced-motion:reduce){.wm-home *{transition:none!important}}

/* Układ v2: firmy na całą szerokość do reklamy bocznej, dwie kategorie po 5 */
.wm-home .wm-cols-in{gap:28px;margin-bottom:0}
.wm-home .wm-biz{margin-top:34px}
.wm-home .wm-biz .wm-firms .wp-block-post-template{grid-template-columns:repeat(4,1fr);gap:16px}
.wm-home .wm-biz .wm-firm .wp-block-post-title{font-size:14px}
.wm-home .wm-cols2{gap:28px}
.wm-home .wm-cols2 .wm-row{grid-template-columns:120px 1fr;padding-bottom:12px;border-bottom:1px solid var(--c5)}
.wm-home .wm-ad__baner{margin:0 auto}
.wm-home .wm-ad__baner img{width:300px;max-width:100%;height:auto;border-radius:var(--r);box-shadow:0 6px 24px rgba(25,44,39,.12)}
.wm-home .wm-ad--dol .wm-ad__cover{padding-left:6%}
@media (max-width:1100px){.wm-home .wm-biz .wm-firms .wp-block-post-template{grid-template-columns:repeat(2,1fr)}}

/* Reklama: strony internetowe Paweł Deluga */
.wm-home .wm-pdpromo{margin-top:34px;background:var(--c6);border:1px solid var(--c5);border-radius:var(--r);padding:16px 24px 24px}
.wm-home .wm-pdpromo .wm-ad__label{text-align:left}
.wm-home .wm-pdpromo__cols{gap:28px;margin:0}
.wm-home .wm-pdpromo__img{margin:0}
.wm-home .wm-pdpromo__img img{border-radius:10px;width:100%;height:auto}
.wm-home .wm-pdpromo__text h3{font-size:22px;margin-bottom:10px}
.wm-home .wm-pdpromo__text p{font-size:14px;color:var(--c3);margin:0 0 12px}
.wm-home .wm-checks{list-style:none;padding:0;margin:0 0 16px;display:grid;grid-template-columns:1fr 1fr;gap:6px 18px;font-size:14px}
.wm-home .wm-checks li{position:relative;padding-left:24px}
.wm-home .wm-checks li::before{content:"✓";position:absolute;left:0;top:0;width:17px;height:17px;border-radius:50%;background:var(--c1);color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center}
.wm-home .wm-pdpromo .wp-block-button__link{background:var(--c1);color:#fff;border:2px solid var(--c1);border-radius:8px;font-weight:600;padding:10px 20px}
.wm-home .wm-pdpromo .is-style-outline .wp-block-button__link{background:#fff;color:var(--c1)}
@media (max-width:600px){.wm-home .wm-checks{grid-template-columns:1fr}}

/* Wyrównanie kafelków: równe wysokości, data zawsze na dole */
.wm-home .wm-cards .wp-block-post-template>li,.wm-home .wm-firms .wp-block-post-template>li{display:flex}
.wm-home .wm-card{display:flex;flex-direction:column;width:100%}
.wm-home .wm-card .wp-block-post-featured-image{flex:0 0 auto;aspect-ratio:16/9}
.wm-home .wm-card .wp-block-post-title{min-height:calc(3 * 1.3em + 18px);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.wm-home .wm-card .wm-date{margin-top:auto}
.wm-home .wm-row .wp-block-post-title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.wm-home .wm-rows .wm-row{min-height:100px;align-items:center}
.wm-home .wm-rows--sm .wm-row{min-height:86px}
.wm-home .wm-row .wp-block-post-featured-image{aspect-ratio:3/2;height:auto}
.wm-home .wm-pop li{min-height:64px}
.wm-home .wm-pop .wp-block-post-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wm-home .wm-cols2 .wp-block-column{display:flex;flex-direction:column}

/* Firmy: większe, poziome kafelki 2 x 2 z wyraźną ramką */
.wm-home .wm-biz .wm-firms .wp-block-post-template{grid-template-columns:repeat(2,1fr);gap:18px}
.wm-home .wm-firm{display:grid;grid-template-columns:42% 1fr;grid-template-rows:auto 1fr;align-items:start;width:100%;min-height:150px;padding:0;border:1px solid var(--c5);border-radius:var(--r);box-shadow:0 4px 18px rgba(25,44,39,.08);background:#fff}
.wm-home .wm-firm .wp-block-post-featured-image{grid-row:1/3;height:100%;aspect-ratio:auto!important;background:#fff;border-right:1px solid var(--c5)}
.wm-home .wm-firm .wp-block-post-featured-image img{object-fit:contain;padding:12px;box-sizing:border-box;height:100%!important}
.wm-home .wm-firm .wm-badge{position:static;margin:16px 16px 0!important;min-height:0}
.wm-home .wm-firm .wm-badge a{font-size:10px;padding:4px 8px}
.wm-home .wm-firm .wp-block-post-title{font-size:16px!important;line-height:1.3;padding:8px 16px 16px;align-self:start}
.wm-home .wm-firm:hover{border-color:var(--c1)}
@media (max-width:600px){.wm-home .wm-biz .wm-firms .wp-block-post-template{grid-template-columns:1fr}}

/* Reklamy Google */
.wm-home .wm-adsense{min-height:100px;max-width:970px;margin:0 auto}
.wm-home .wm-ad--bok .wm-adsense{min-height:250px}

/* Ramki CTA nad reklamą boczną */
.wm-home .wm-side-cta{background:#fff;border:1px solid var(--c5);border-radius:var(--r);padding:18px;margin-bottom:16px;box-shadow:0 2px 12px rgba(25,44,39,.06)}
.wm-home .wm-side-cta>*{margin:0 0 10px}
.wm-home .wm-side-cta h3{font-size:17px}
.wm-home .wm-side-cta p{font-size:13px;color:var(--c3)}
.wm-home .wm-side-cta .wp-block-buttons{margin:0}
.wm-home .wm-side-cta .wp-block-button{width:100%}
.wm-home .wm-side-cta .wp-block-button__link{display:block;width:100%;text-align:center;background:var(--c1);color:#fff;border:2px solid var(--c1);border-radius:8px;font-weight:600;padding:9px 16px}
.wm-home .wm-side-cta .is-style-outline .wp-block-button__link{background:#fff;color:var(--c1)}
.wm-home .wm-side-cta--firma{background:var(--c6)}
.wm-home .wm-col--ad .wm-ad{position:static}

/* Firmy: logo zawsze mieści się w okienku */
.wm-home .wm-firm{grid-template-columns:180px 1fr;grid-template-rows:auto auto;align-content:center;min-height:150px;overflow:hidden}
.wm-home .wm-firm .wp-block-post-featured-image{grid-row:1/3;width:180px!important;height:150px!important;min-height:150px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.wm-home .wm-firm .wp-block-post-featured-image a{display:flex;width:100%;height:100%;align-items:center;justify-content:center}
.wm-home .wm-firm .wp-block-post-featured-image img{width:100%!important;height:100%!important;max-width:100%;max-height:100%;object-fit:contain!important;padding:14px;box-sizing:border-box;transform:none!important}
@media (max-width:420px){.wm-home .wm-firm{grid-template-columns:120px 1fr}.wm-home .wm-firm .wp-block-post-featured-image{width:120px!important;height:120px!important;min-height:120px}}

/* Bez schodków: równe wysokości w każdym rzędzie */
.wm-home .wm-cards .wp-block-post-template,.wm-home .wm-firms .wp-block-post-template{grid-auto-rows:1fr;align-items:stretch}
.wm-home .wm-badge{height:auto;white-space:nowrap;overflow:hidden}
.wm-home .wm-card .wm-badge{height:30px;min-height:30px}
.wm-home .wm-card .wp-block-post-title{height:calc(3 * 1.3em + 18px);min-height:0}
.wm-home .wm-rows .wm-row{height:110px;min-height:0;overflow:hidden;align-items:center;box-sizing:border-box}
.wm-home .wm-rows--sm .wm-row{height:92px}
.wm-home .wm-row .wp-block-post-featured-image{height:100%;max-height:100px}
.wm-home .wm-rows--sm .wm-row .wp-block-post-featured-image{max-height:80px}
.wm-home .wm-pop li{height:86px;min-height:0;box-sizing:border-box}
.wm-home .wm-firm{height:100%}
.wm-home .wm-firm .wp-block-post-title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.wm-home .wm-cols-in>.wp-block-column{display:flex;flex-direction:column}
.wm-home .wm-card .wm-date{margin-top:0!important}
.wm-home .wm-cards .wp-block-post-template{grid-auto-rows:auto;align-items:start}
.wm-home .wm-card .wp-block-post-title{overflow:hidden}
/* firma bez zdjęcia: szare okienko zamiast pustki */
.wm-home .wm-firm:not(:has(.wp-block-post-featured-image))::before{content:"";grid-row:1/3;width:180px;height:150px;background:var(--c6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319bc9c' stroke-width='1.5'%3E%3Cpath d='M3 9l1.5-5h15L21 9M3 9a3 3 0 006 0 3 3 0 006 0 3 3 0 006 0M5 12v8h14v-8M10 20v-5h4v5'/%3E%3C/svg%3E") center/48px no-repeat;border-right:1px solid var(--c5)}
.wm-home .wm-firm{height:152px}
.wm-home .wm-firms .wp-block-post-template{grid-auto-rows:152px}
.wm-home .wm-firms li{height:152px;overflow:hidden}
.wm-home .wm-firm{grid-template-rows:auto 1fr;align-content:start;padding-top:0}
.wm-home .wm-firm{grid-template-rows:auto auto;align-content:center;row-gap:8px}
.wm-home .wm-firm .wm-badge{margin:0 16px!important;position:static!important;height:24px;min-height:24px}
.wm-home .wm-firm .wp-block-post-title{padding:0 16px!important;margin:0!important}

/* Baner boczny (Pilnujemy Limitu) jedzie razem z przewijaniem */
.wm-home .wm-cols{align-items:stretch!important}
.wm-home .wm-col--ad{align-self:stretch!important;display:block}
.wm-home .wm-col--ad .wm-ad--bok{position:-webkit-sticky!important;position:sticky!important;top:110px;z-index:2}

/* karty: etykieta na krawędzi zdjęcia, tytuł z odstępem od zdjęcia */
.wm-home .wm-card .wm-badge{margin:-15px 0 0 16px!important;height:30px;min-height:30px;position:relative;z-index:2}
.wm-home .wm-card .wp-block-post-title{padding:12px 16px 10px!important}

/* ---------- Telefon: poprawki ---------- */
.wm-home .wm-row{grid-template-columns:150px minmax(0,1fr)}
.wm-home .wm-row .wp-block-post-featured-image{width:100%!important;max-width:100%;min-width:0}
.wm-home .wm-row .wp-block-post-featured-image a{display:block;width:100%;height:100%}
.wm-home .wm-row .wp-block-post-featured-image img{width:100%!important;height:100%!important;object-fit:cover}
.wm-home .wm-row__body{min-width:0}
@media (max-width:781px){
	.wm-home{padding-top:12px}
	.wm-home>*+*{margin-top:26px!important}
	.wm-home .wm-hero{gap:12px!important}
	.wm-home .wm-hero__side .wm-hero__cover{min-height:190px!important}
	.wm-home .wm-cols-in{gap:26px!important}
	.wm-home .wm-ad--srodek,.wm-home .wm-ad--dol{padding-left:16px;padding-right:16px}
	.wm-home .wm-adsense{min-height:90px}
	.wm-home .wm-head h2{font-size:19px}
	.wm-home .wm-more{font-size:12px}
	.wm-home .wm-cta h2{font-size:19px}
	.wm-home .wm-cta__btns,.wm-home .wm-cta__btns .wp-block-button{width:100%}
	.wm-home .wm-cta .wp-block-button__link{display:block;text-align:center}
	.wm-home .wm-col--ad .wm-ad--bok{position:static!important}
	.wm-home .wm-pdpromo{padding:14px 16px 20px}
	.wm-home .wm-pdpromo__text h3{font-size:19px}
}
@media (max-width:520px){
	.wm-home .wm-row,.wm-home .wm-rows--sm .wm-row,.wm-home .wm-cols2 .wm-row{grid-template-columns:104px minmax(0,1fr);gap:12px;height:auto;min-height:84px}
	.wm-home .wm-row .wp-block-post-featured-image{aspect-ratio:4/3!important;height:auto!important;max-height:none}
	.wm-home .wm-row .wp-block-post-title{font-size:14px}
	.wm-home .wm-pop li{height:auto;min-height:72px}
	.wm-home .wm-cards .wp-block-post-template{grid-auto-rows:auto}
	.wm-home .wm-card .wp-block-post-title{height:auto;min-height:0}
	.wm-home .wm-firm{grid-template-columns:110px minmax(0,1fr)}
	.wm-home .wm-firm .wp-block-post-featured-image,.wm-home .wm-firm:not(:has(.wp-block-post-featured-image))::before{width:110px!important;height:150px!important}
	.wm-home .wm-firm .wp-block-post-title{font-size:14.5px!important}
}

/* ---------- Portal ogólnopolski: układ wg projektu ---------- */
.wm-home .wm-cards--4 .wp-block-post-template{grid-template-columns:repeat(4,1fr)}
.wm-home .wm-cards--1 .wp-block-post-template{grid-template-columns:1fr;margin-bottom:14px}
.wm-home .wm-cards--1 .wm-card .wp-block-post-title{font-size:17px}
.wm-home .wm-cards--4 .wm-card .wp-block-post-title{font-size:16px}
.wm-home .wm-cols4{gap:24px}
.wm-home .wm-cols4>.wp-block-column{flex:1 1 0;min-width:0}
.wm-home .wm-cols4 .wm-head h2,.wm-home .wm-cols-in--3 .wm-head h2{font-size:19px}
.wm-home .wm-cols-in--3{gap:24px}
.wm-home .wm-cols-in--3>.wp-block-column{flex:1 1 0;min-width:0}
.wm-home .wm-rows--sm .wm-row{grid-template-columns:96px minmax(0,1fr);height:auto;min-height:76px}
.wm-home .wm-rows--sm .wm-row .wp-block-post-title{font-size:14px}
.wm-home .wm-video{margin-top:34px}
.wm-home .wm-cards--video .wm-card{padding-bottom:12px}
.wm-home .wm-cards--video .wp-block-post-featured-image{position:relative}
.wm-home .wm-cards--video .wp-block-post-featured-image::after{content:"";position:absolute;left:50%;top:50%;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;background:rgba(0,0,0,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/22px no-repeat;pointer-events:none;transition:transform .3s,background-color .3s}
.wm-home .wm-cards--video .wm-card:hover .wp-block-post-featured-image::after{transform:scale(1.12);background-color:var(--c1)}
.wm-home .wm-cards--video .wm-card .wp-block-post-title{font-size:14px;height:auto;padding:10px 14px 0!important;-webkit-line-clamp:2}
.wm-home .wm-ad--srodek .wm-ad__ph{min-height:150px}
/* portale */
.wm-home .wm-portals__cols{gap:28px;margin:0}
.wm-home .wm-cities{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.wm-home .wm-city{border-radius:var(--r);overflow:hidden;padding:14px 16px;margin:0}
.wm-home .wm-city .wp-block-cover__background{opacity:1!important;background:linear-gradient(180deg,rgba(10,25,22,0) 35%,rgba(10,25,22,.8))!important}
.wm-home .wm-city img{transition:transform .5s}
.wm-home .wm-city:hover img{transform:scale(1.06)}
.wm-home .wm-city__name{margin:0;font-size:20px;font-weight:700}
.wm-home .wm-city__name a{color:#fff}
.wm-home .wm-city__name a::after{content:"";position:absolute;inset:0}
.wm-home .wm-city__name a::before{content:"→";position:absolute;right:14px;bottom:14px;width:30px;height:30px;border-radius:50%;background:var(--c1);color:#fff;font-size:16px;display:grid;place-items:center}
.wm-home .wm-topics{display:grid;grid-template-columns:repeat(5,1fr);gap:0;border:1px solid var(--c5);border-radius:var(--r);background:#fff;overflow:hidden}
.wm-home .wm-topic{margin:0;border-right:1px solid var(--c5)}
.wm-home .wm-topic:last-child{border-right:0}
.wm-home .wm-topic a{display:flex;flex-direction:column;align-items:center;gap:8px;padding:18px 8px;font-size:13px;font-weight:600;color:var(--c4);text-align:center;transition:background .25s,color .25s}
.wm-home .wm-topic a:hover{background:var(--c6);color:var(--c1)}
.wm-home .wm-topic a::before{content:"";width:30px;height:30px;background:var(--c1);-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat}
.wm-home .wm-topic--news{--i: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.6'%3E%3Crect x='3' y='4' width='14' height='16' rx='2'/%3E%3Cpath d='M17 8h3v10a2 2 0 01-2 2M6 8h8M6 12h8M6 16h5'/%3E%3C/svg%3E")}
.wm-home .wm-topic--pol{--i: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.6'%3E%3Cpath d='M3 21h18M4 10h16M12 3l9 5H3zM6 10v8M10 10v8M14 10v8M18 10v8'/%3E%3C/svg%3E")}
.wm-home .wm-topic--biz{--i: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.6'%3E%3Cpath d='M3 20h18M5 16l4-5 4 3 6-8M15 6h4v4'/%3E%3C/svg%3E")}
.wm-home .wm-topic--zdr{--i: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.6'%3E%3Cpath d='M12 20s-8-4.5-8-10.5A4.5 4.5 0 0112 7a4.5 4.5 0 018 2.5C20 15.5 12 20 12 20z'/%3E%3Cpath d='M6 12h3l1.5-2.5L13 15l1.5-3H18'/%3E%3C/svg%3E")}
.wm-home .wm-topic--lud{--i: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.6'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6M15 14.5c3 0 6 2 6 5.5'/%3E%3C/svg%3E")}
.wm-home .wm-cta{background:linear-gradient(120deg,var(--c6),var(--c5))}
@media (max-width:1100px){
	.wm-home .wm-cols4{flex-wrap:wrap!important}
	.wm-home .wm-cols4>.wp-block-column{flex:1 1 calc(50% - 12px)!important}
	.wm-home .wm-cards--4 .wp-block-post-template{grid-template-columns:repeat(2,1fr)}
	.wm-home .wm-cols-in--3{flex-wrap:wrap!important}
	.wm-home .wm-cols-in--3>.wp-block-column{flex:1 1 calc(50% - 12px)!important}
	.wm-home .wm-portals__cols{flex-wrap:wrap!important}
	.wm-home .wm-portals__cols>.wp-block-column{flex-basis:100%!important}
}
@media (max-width:781px){
	.wm-home .wm-cols4>.wp-block-column,.wm-home .wm-cols-in--3>.wp-block-column{flex-basis:100%!important}
	.wm-home .wm-topics{grid-template-columns:repeat(3,1fr)}
	.wm-home .wm-topic{border-bottom:1px solid var(--c5)}
}
@media (max-width:520px){
	.wm-home .wm-cards--4 .wp-block-post-template{grid-template-columns:1fr}
	.wm-home .wm-cities{grid-template-columns:1fr}
	.wm-home .wm-topics{grid-template-columns:repeat(2,1fr)}
}
.wm-home .wm-city .wp-block-cover__inner-container{position:static!important;width:100%}
.wm-home .wm-city__name{padding-right:44px}
.wm-home .wm-cols4 .wm-head,.wm-home .wm-cols-in--3 .wm-head{flex-wrap:nowrap}
.wm-home .wm-cols4 .wm-head h2,.wm-home .wm-cols-in--3 .wm-head h2{font-size:17px;white-space:nowrap}
.wm-home .wm-cols4 .wm-more,.wm-home .wm-cols-in--3 .wm-more{font-size:12px}
@media (min-width:1101px){.wm-home .wm-cols-in--3 .wm-head h2{font-size:16px}}

/* Kafelki miast: nazwa nad zdjęciem */
.wm-home .wm-city .wp-block-cover__inner-container{position:static!important}
.wm-home .wm-city__name{position:relative;z-index:2;padding-right:44px}
.wm-home .wm-city__name a::before{right:0;bottom:-2px}
.wm-home .wm-city__name a::after{position:absolute;inset:-200px -20px -20px -20px}
.wm-home .wm-city__name a{text-shadow:0 2px 8px rgba(0,0,0,.45)}

/* Bez schodków: wiersze w kolumnach zawsze tej samej wysokości */
.wm-home .wm-cols4 .wm-rows--sm .wm-row,.wm-home .wm-cols-in--3 .wm-rows--sm .wm-row{height:104px!important;min-height:0;margin-bottom:12px;overflow:hidden;align-items:center}
.wm-home .wm-cols4 .wm-rows--sm .wm-row .wp-block-post-featured-image,.wm-home .wm-cols-in--3 .wm-rows--sm .wm-row .wp-block-post-featured-image{height:72px!important;max-height:72px;aspect-ratio:auto!important}
.wm-home .wm-cols4 .wm-rows--sm .wm-row .wp-block-post-title,.wm-home .wm-cols-in--3 .wm-rows--sm .wm-row .wp-block-post-title{font-size:13.5px;line-height:1.3;height:calc(3 * 1.3em);-webkit-line-clamp:3}
.wm-home .wm-pop li{height:94px!important}
@media (max-width:520px){.wm-home .wm-cols4 .wm-rows--sm .wm-row,.wm-home .wm-cols-in--3 .wm-rows--sm .wm-row{height:auto!important}}

/* Ramka: artykuł sponsorowany */
.wm-home .wm-side-cta--artykul{background:linear-gradient(135deg,var(--c6),var(--c5));border-color:color-mix(in srgb,var(--c1) 35%,transparent)}

/* Felieton: autor ze zdjęciem (jak w projekcie) */
.wm-home .wm-card--op .wm-author{display:flex;align-items:center;gap:10px;padding:0 16px 8px;margin:0}
.wm-home .wm-card--op .wm-author .wp-block-post-author__avatar{margin:0}
.wm-home .wm-card--op .wm-author img{width:44px;height:44px;border-radius:50%;border:2px solid var(--c5);display:block}
.wm-home .wm-card--op .wp-block-post-author__name{font-size:13px;font-weight:600;color:var(--c3)}
.wm-home .wm-card--op .wp-block-post-author__content{display:flex;flex-direction:column}
.wm-home .wm-cards--big .wm-card .wp-block-post-title{font-size:17px;height:auto;min-height:calc(2 * 1.3em + 22px)}
.wm-home .wm-cards--big .wp-block-post-template{margin-bottom:0}

/* Miejsca na reklamy między sekcjami */
.wm-home .wm-adslot{text-align:center;max-width:1010px}
.wm-home .wm-adslot--bok{max-width:300px;padding:0!important;margin-top:16px!important}
.wm-home .wm-adslot__ph{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 18px;min-height:120px;border-radius:var(--r);border:2px dashed color-mix(in srgb,var(--c1) 45%,transparent);background:linear-gradient(135deg,var(--c6),var(--c5));padding:12px 20px;transition:border-color .3s}
.wm-home .wm-adslot--bok .wm-adslot__ph{min-height:600px;flex-direction:column}
.wm-home .wm-adslot__ph:hover{border-color:var(--c1)}
.wm-home .wm-adslot__t{font-size:clamp(16px,2vw,22px);font-weight:600;color:var(--c4)}
.wm-home .wm-adslot__s{background:var(--c1);color:#fff;font-weight:700;font-size:14px;padding:4px 14px;border-radius:6px}
.wm-home .wm-adslot__w{margin:0 auto}
.wm-home .wm-adslot__w>*{margin-left:auto;margin-right:auto}

/* Tematy portalu: ta sama wysokość co kafelki miast */
.wm-home .wm-portals__cols>.wp-block-column{display:flex;flex-direction:column}
.wm-home .wm-topics{flex:1;align-items:stretch}
.wm-home .wm-topic,.wm-home .wm-topic a{height:100%}
.wm-home .wm-topic a{justify-content:center;min-height:130px;box-sizing:border-box}
.wm-home .wm-cities{flex:1}

/* Sekcja 1 bez schodków: duży kafelek = dwa małe + odstęp */
@media (min-width:782px){
	.wm-home .wm-hero{align-items:stretch!important}
	.wm-home .wm-hero__main .wm-hero__cover{height:440px;min-height:440px!important;box-sizing:border-box}
	.wm-home .wm-q--side .wp-block-post-template{display:grid;grid-template-rows:1fr 1fr;gap:14px;height:440px}
	.wm-home .wm-hero__side .wm-hero__cover{height:213px;min-height:213px!important;box-sizing:border-box;overflow:hidden}
	.wm-home .wm-hero__side .wp-block-post-title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
	.wm-home .wm-hero__main .wm-hero__title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
}

.wm-home .wm-q--side .wp-block-post-template>li{margin:0!important}

/* Opinie / Zdrowie / Kultura: równe kafelki */
.wm-home .wm-cols-in--3{align-items:stretch!important}
.wm-home .wm-cards--big .wm-card{height:350px;display:flex;flex-direction:column}
.wm-home .wm-cards--big .wm-card .wp-block-post-title{height:calc(2 * 1.3em)!important;min-height:0!important;-webkit-line-clamp:2;box-sizing:content-box}
.wm-home .wm-cards--big .wm-card .wm-date{margin-top:auto!important}
@media (max-width:520px){.wm-home .wm-cards--big .wm-card{height:auto}}

.wm-home .wm-col--main .wm-adslot{margin:28px auto 0!important;padding:0!important}
.wm-home .wm-col--main .wm-video{margin-top:28px}

/* Reklamy na szerokość sekcji */
.wm-home .wm-adslot{max-width:1290px!important;width:100%}
.wm-home .wm-adslot--bok{max-width:300px!important}
.wm-home .wm-adslot__ph{min-height:150px}

.wm-home .wm-cards--big .wm-card .wp-block-post-title{display:-webkit-box!important;-webkit-box-orient:vertical;overflow:hidden!important;padding-bottom:0!important;margin-bottom:10px!important}
.wm-home .wm-adslot--bok img{display:block;margin:0 auto}

@media (min-width:1101px){.wm-home .wm-col--ad .wm-adslot--bok{position:sticky;top:110px;z-index:2}}

.wm-home .wm-adslot .wm-adsense{min-height:120px;max-width:none;margin:0}

/* Reklama Google: napis tuż nad reklamą, pusta jednostka się chowa */
.wm-home .wm-adslot .wm-ad__label{margin:0 0 2px!important;line-height:1.2}
.wm-home .wm-adslot .wm-adsense{min-height:0!important}
.wm-home .wm-adslot ins.adsbygoogle{margin:0 auto!important}
.wm-home .wm-adslot ins.adsbygoogle[data-ad-status^="unfill"]{display:none!important}
.wm-home .wm-adslot:has(ins.adsbygoogle[data-ad-status^="unfill"]){display:none}

/* Reklama nad Wideo: nie wychodzi poza lewą kolumnę */
.wm-home .wm-col--main{min-width:0}
.wm-home .wm-col--main .wm-adslot{max-width:100%!important;width:100%;overflow:hidden;box-sizing:border-box}
.wm-home .wm-col--main .wm-adslot ins.adsbygoogle,.wm-home .wm-col--main .wm-adslot iframe{max-width:100%!important}
.wm-home .wm-col--ad{position:relative;z-index:3}

/* Wideo: równe kafelki, tytuł zawsze 2 linie */
.wm-home .wm-cards--video .wp-block-post-template{grid-auto-rows:1fr!important;align-items:stretch!important}
.wm-home .wm-cards--video .wp-block-post-template>li{display:flex}
.wm-home .wm-cards--video .wm-card{height:100%;display:flex;flex-direction:column}
.wm-home .wm-cards--video .wm-card .wp-block-post-title{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden!important;line-height:1.35!important;height:calc(2 * 1.35em)!important;min-height:0!important;box-sizing:content-box;margin:0!important}
.wm-home .wm-cards--video .wp-block-post-template{grid-auto-rows:auto!important;align-items:start!important}
.wm-home .wm-cards--video .wm-card{height:auto!important}

/* Reklama nad Wideo: stały rozmiar dopasowany do lewej kolumny (bez data-ad-format) */
.wm-ad-kolumna{width:300px;height:250px}
@media (min-width:500px){.wm-ad-kolumna{width:468px;height:200px}}
@media (min-width:800px){.wm-ad-kolumna{width:728px;height:250px}}
@media (min-width:1101px) and (max-width:1199px){.wm-ad-kolumna{width:728px;height:250px}}

/* Podstrona: wszystkie portale miejskie */
.wm-portale-page .wm-lead{font-size:16px;color:var(--c3);margin:0 0 22px;max-width:760px}
.wm-home .wm-cities--all{grid-template-columns:repeat(4,1fr);gap:16px}
.wm-home .wm-cities--all .wm-city{min-height:160px!important}
@media (max-width:1100px){.wm-home .wm-cities--all{grid-template-columns:repeat(3,1fr)}}
@media (max-width:781px){.wm-home .wm-cities--all{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.wm-home .wm-cities--all{grid-template-columns:1fr}}

.wm-portale-page .wm-page-title{font-size:clamp(26px,3vw,36px);margin:0 0 10px!important;border-left:5px solid var(--c1);padding-left:14px}

/* ===== Podstrona: Nasze portale miejskie ===== */
.wm-portale-page{padding-top:28px}
.wm-portale-page .wm-phead{position:relative;overflow:hidden;border-radius:20px;padding:clamp(28px,5vw,56px)!important;background:radial-gradient(120% 140% at 100% 0,#1d3d35 0,var(--c4) 60%);color:rgba(255,255,255,.85);max-width:1250px}
.wm-portale-page .wm-phead::after{content:"";position:absolute;right:-60px;top:-60px;width:320px;height:320px;border-radius:50%;background:var(--c1);opacity:.18;filter:blur(10px)}
.wm-portale-page .wm-phead>*{position:relative;z-index:1;margin:0}
.wm-portale-page .wm-phead__eyebrow{display:inline-block;background:var(--c1);color:#fff;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:5px 12px;border-radius:999px;margin-bottom:14px!important}
.wm-portale-page .wm-phead__title{color:#fff!important;font-size:clamp(30px,4vw,48px)!important;line-height:1.1;margin-bottom:12px!important}
.wm-portale-page .wm-phead__lead{font-size:17px;max-width:640px;margin-bottom:26px!important}
.wm-portale-page .wm-phead__stats{display:flex;flex-wrap:wrap;gap:14px}
.wm-portale-page .wm-stat{margin:0;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:12px 18px;display:flex;flex-direction:column;min-width:140px}
.wm-portale-page .wm-stat strong{color:#fff;font-size:26px;line-height:1.1}
.wm-portale-page .wm-stat span{font-size:12px;opacity:.8}
.wm-portale-page .wm-pgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;max-width:1250px}
.wm-portale-page .wm-pcard{background:#fff;border:1px solid var(--c5);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 4px 18px rgba(25,44,39,.06);transition:transform .3s,box-shadow .3s,border-color .3s;margin:0!important}
.wm-portale-page .wm-pcard:hover{transform:translateY(-6px);box-shadow:0 16px 36px rgba(25,44,39,.14);border-color:var(--c1)}
.wm-portale-page .wm-pcard__img{margin:0!important;aspect-ratio:16/9;overflow:hidden}
.wm-portale-page .wm-pcard__img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.wm-portale-page .wm-pcard:hover .wm-pcard__img img{transform:scale(1.05)}
.wm-portale-page .wm-pcard__body{padding:18px 20px 20px;display:flex;flex-direction:column;flex:1}
.wm-portale-page .wm-pcard__body>*{margin:0}
.wm-portale-page .wm-pcard__reg{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--c1);margin-bottom:6px!important}
.wm-portale-page .wm-pcard__name{font-size:24px!important;line-height:1.2;margin-bottom:8px!important}
.wm-portale-page .wm-pcard__name a{color:var(--c4)}
.wm-portale-page .wm-pcard__desc{font-size:14px;color:var(--c3);margin-bottom:16px!important}
.wm-portale-page .wm-pcard__go{margin-top:auto!important}
.wm-portale-page .wm-pcard__go a{display:inline-flex;align-items:center;gap:6px;background:var(--c1);color:#fff!important;font-weight:600;font-size:14px;padding:10px 18px;border-radius:999px;transition:background .2s}
.wm-portale-page .wm-pcard__go a:hover{background:var(--c4)}
.wm-portale-page .wm-pcard--soon{border:2px dashed color-mix(in srgb,var(--c1) 45%,transparent);background:linear-gradient(135deg,var(--c6),var(--c5));box-shadow:none;justify-content:center}
.wm-portale-page .wm-pcard--soon .wm-pcard__go a{background:#fff;color:var(--c1)!important;border:2px solid var(--c1)}
.wm-portale-page .wm-pcard--soon .wm-pcard__go a:hover{background:var(--c1);color:#fff!important}
@media (max-width:1000px){.wm-portale-page .wm-pgrid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.wm-portale-page .wm-pgrid{grid-template-columns:1fr}.wm-portale-page .wm-stat{min-width:0;flex:1}}

/* portale: wyśrodkowanie i marginesy */
.wm-portale-page{padding:28px 0 60px!important}
.wm-portale-page>.wm-phead,.wm-portale-page>.wm-pgrid{box-sizing:border-box;width:calc(100% - 40px)!important;max-width:1250px!important;margin-left:auto!important;margin-right:auto!important;padding-left:0;padding-right:0}
.wm-portale-page>.wm-phead{margin-bottom:28px!important;padding:clamp(28px,5vw,56px)!important}
.wm-portale-page .wm-pgrid{align-items:stretch}

.wm-portale-page .wm-pcard__img a{display:block}
.wm-portale-page .wm-pcard__img img{display:block;width:100%!important;height:auto!important;aspect-ratio:16/9;object-fit:cover}

.wm-portale-page .wm-pcard{padding:0!important;gap:0!important}
.wm-portale-page .wm-pcard__img,.wm-portale-page .wm-pcard__img a{width:100%!important;max-width:none!important;margin:0!important}
.wm-portale-page .wm-pcard__img img{border-radius:0!important}

.wm-portale-page>.wm-phead,.wm-portale-page>.wm-pgrid{max-width:1290px!important}

.wm-portale-page .wm-pcard::before,.wm-portale-page .wm-pcard::after{content:none!important;display:none!important}

/* Najczęściej czytane: równe wiersze, bez nachodzenia */
.wm-home .wm-col--pop{display:flex!important;flex-direction:column}
.wm-home .wm-col--pop>.wm-pop{flex:1;display:flex;flex-direction:column;margin-top:0}
.wm-home .wm-pop .wp-block-post-template{flex:1;display:grid!important;grid-template-rows:repeat(5,minmax(78px,1fr));margin:0!important;padding:0}
.wm-home .wm-pop li{height:auto!important;min-height:0!important;margin:0!important;overflow:hidden}
.wm-home .wm-pop__item{min-width:0;flex:1}
.wm-home .wm-pop .wp-block-post-title{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical;overflow:hidden;max-height:2.7em;font-size:14px!important;line-height:1.35!important}
.wm-home .wm-pop .wm-date{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:781px){.wm-home .wm-pop .wp-block-post-template{grid-template-rows:none;grid-auto-rows:auto}}
@media (min-width:782px){.wm-home .wm-col--pop>.wm-pop{flex:1 1 0;min-height:430px;contain:size}.wm-home .wm-pop .wp-block-post-template{height:100%;grid-template-rows:repeat(5,minmax(0,1fr))}}

/* portale: nagłówek na całą szerokość jak inne podstrony */
.wm-portale-page{padding-top:0!important}
.wm-portale-page>.wm-phead{width:100%!important;max-width:none!important;border-radius:0!important;margin:0 0 36px!important;background:linear-gradient(120deg,var(--c4) 0%,#1d3d35 100%)!important;padding:64px max(20px,calc((100% - 1290px)/2)) 60px!important}
