/* ===== Proste Popupy – baza ===== */
.pp-popup{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;opacity:0;transition:opacity .25s ease}
.pp-popup[hidden]{display:none}
.pp-popup.pp-open{opacity:1}
.pp-popup *,.pp-popup *::before,.pp-popup *::after{box-sizing:border-box}
.pp-overlay{position:absolute;inset:0;background:rgba(0,0,0,.6)}
.pp-box{position:relative;width:100%;max-height:calc(100vh - 32px);overflow:auto;padding:0;box-shadow:0 20px 60px rgba(0,0,0,.3);font-size:16px;line-height:1.55;transform:translateY(14px) scale(.98);transition:transform .3s ease}
.pp-popup.pp-open .pp-box{transform:none}
.pp-box:focus{outline:none}
.pp-body{padding:36px 28px 28px}
.pp-close{position:absolute;z-index:2;top:10px;right:10px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;padding:0;margin:0;border:0;border-radius:50%;background:rgba(127,127,127,.15);color:inherit;font-size:22px;line-height:1;cursor:pointer;box-shadow:none}
.pp-close:hover,.pp-close:focus{background:rgba(127,127,127,.3)}
.pp-title{margin:0 0 12px;padding:0;font-size:1.5em;line-height:1.25;color:inherit}
.pp-content{margin:0 0 20px}
.pp-content>:first-child{margin-top:0}
.pp-content>:last-child{margin-bottom:0}
.pp-content img{max-width:100%;height:auto}
.pp-body>:last-child{margin-bottom:0}
.pp-box .pp-btn{display:inline-block;padding:12px 28px;border:0;border-radius:8px;font:inherit;font-weight:600;line-height:1.2;text-decoration:none;cursor:pointer}
.pp-box .pp-btn:hover{filter:brightness(1.1)}
.pp-img{position:relative;overflow:hidden}
.pp-img img{display:block;width:100%;height:100%;object-fit:cover}
.pp-img-ph{display:none}
.pp-noimg .pp-img{display:none}
.pp-layout-center:not(.pp-noimg) .pp-close,.pp-layout-corner:not(.pp-noimg) .pp-close{background:rgba(255,255,255,.9);color:#222}

/* ===== 1. Klasyczny – okno na środku, obrazek u góry ===== */
.pp-layout-center .pp-img{height:200px}

/* ===== 2. Z obrazkiem – obrazek z lewej, tekst z prawej ===== */
.pp-layout-split .pp-box{display:grid;grid-template-columns:42% 1fr}
.pp-layout-split .pp-img{min-height:320px}
.pp-layout-split .pp-body{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:44px 36px}
.pp-layout-split .pp-box[style*="text-align:center"] .pp-body{align-items:center}
.pp-layout-split .pp-title{font-size:1.75em}
.pp-layout-split.pp-noimg .pp-box{grid-template-columns:1fr}

/* ===== 3. Pasek na dole – nie blokuje strony ===== */
.pp-layout-bar{inset:auto 0 0 0;padding:0;display:block}
.pp-layout-bar .pp-overlay,.pp-layout-bar .pp-img{display:none}
.pp-layout-bar .pp-box{max-width:none!important;border-radius:0!important;box-shadow:0 -6px 24px rgba(0,0,0,.18);transform:translateY(100%);text-align:left!important}
.pp-layout-bar .pp-body{display:flex;align-items:center;gap:8px 24px;flex-wrap:wrap;max-width:1200px;margin:0 auto;padding:16px 60px 16px 24px}
.pp-layout-bar .pp-title{margin:0;font-size:1.15em}
.pp-layout-bar .pp-content{flex:1 1 240px;margin:0;opacity:.9}
.pp-layout-bar .pp-content p{margin:0}
.pp-layout-bar .pp-btn{flex:none;padding:10px 22px}
.pp-layout-bar .pp-close{top:50%;margin-top:-16px}

/* ===== 4. Okienko w rogu – wysuwa się z prawego dołu ===== */
.pp-layout-corner{inset:auto 20px 20px auto;padding:0;display:block;width:calc(100% - 40px)}
.pp-layout-corner .pp-overlay{display:none}
.pp-layout-corner .pp-box{margin-left:auto;max-height:calc(100vh - 40px);box-shadow:0 10px 40px rgba(0,0,0,.22);transform:translateX(40px);font-size:15px}
.pp-layout-corner .pp-img{height:150px}
.pp-layout-corner .pp-body{padding:26px 22px 22px}
.pp-layout-corner .pp-title{font-size:1.25em;padding-right:24px}
.pp-layout-corner .pp-content{margin-bottom:16px}
.pp-layout-corner .pp-btn{padding:10px 22px}

/* ===== Telefony ===== */
@media (max-width:640px){
	.pp-layout-split .pp-box{grid-template-columns:1fr}
	.pp-layout-split .pp-img{min-height:0;height:170px}
	.pp-layout-split .pp-body{padding:28px 22px 24px}
	.pp-layout-bar .pp-body{padding:14px 52px 14px 16px}
	.pp-layout-bar .pp-btn{width:100%;text-align:center}
	.pp-layout-corner{inset:auto 10px 10px 10px;width:auto}
	.pp-layout-corner .pp-box{transform:translateY(40px)}
}
