/* Strefa Pożarowa — uzupełnienie theme.json (to, czego nie da się ustawić w panelu Style) */

/* Tekst justowany w akapitach (wyśrodkowane zostają wyśrodkowane) */
.entry-content p:not(.has-text-align-center):not(.has-text-align-right):not(.is-style-kicker),
.editor-styles-wrapper p:not(.has-text-align-center):not(.has-text-align-right):not(.is-style-kicker) {
	text-align: justify; hyphens: auto;
}
/* …ale nie w wąskich kafelkach — tam justowanie robi dziury między słowami */
:where(.is-style-kafelek, .is-style-kafelek-ciemny) p:not(.has-text-align-center):not(.has-text-align-right) { text-align: left !important; }

/* Nadtytuł sekcji */
.is-style-kicker {
	font-size: .8rem !important; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
	color: var(--wp--preset--color--ember); margin-bottom: .4rem !important;
}

/* Kafelki */
.wp-block-group.is-style-kafelek {
	background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px; padding: 28px; box-shadow: 0 18px 44px -30px rgba(20,22,27,.28);
	transition: transform .2s, box-shadow .2s;
}
.wp-block-group.is-style-kafelek:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -26px rgba(20,22,27,.35); }
.wp-block-group.is-style-kafelek-ciemny {
	background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
	border-radius: 16px; padding: 28px;
}
.is-style-kafelek > :first-child, .is-style-kafelek-ciemny > :first-child { margin-top: 0; }
.is-style-kafelek h3, .is-style-kafelek-ciemny h3 { margin-bottom: .4em; }
.is-style-kafelek .wp-block-image img { border-radius: 10px; }

/* Ciemne sekcje: nagłówki i linki jasne */
.has-dark-background-color :where(h1,h2,h3,h4) { color: #fff; }
.has-dark-background-color { color: #c9ccd3; }
.has-dark-background-color a:where(:not(.wp-element-button)) { color: #fff; }
.has-dark-background-color .is-style-outline .wp-element-button { color: #fff; border-color: rgba(255,255,255,.4); }

/* Przycisk „obrys" */
.is-style-outline .wp-element-button { background: transparent; color: var(--wp--preset--color--ink); border: 1.5px solid var(--wp--preset--color--line); }
.is-style-outline .wp-element-button:hover { border-color: var(--wp--preset--color--ember); color: var(--wp--preset--color--ember); background: transparent; }

/* Liczby w hero */
.statystyka .wp-block-heading { font-size: 2.2rem; color: var(--wp--preset--color--ember) !important; margin: 0; }

/* Lista z ptaszkami */
.is-style-ptaszki { list-style: none; padding-left: 0; }
.is-style-ptaszki li { position: relative; padding-left: 1.9em; margin-bottom: .55em; }
.is-style-ptaszki li::before {
	content: ""; position: absolute; left: 0; top: .35em; width: 1.05em; height: 1.05em; border-radius: 50%;
	background: var(--wp--preset--color--ember) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/80% no-repeat;
}

/* Nagłówek strony */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
.site-header { background: rgba(250,248,244,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--wp--preset--color--line); }
.site-header .wp-block-site-logo img { height: auto; }
.site-header .wp-block-navigation a:hover { color: var(--wp--preset--color--ember); }
.site-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--ember); }
@media (max-width: 781px) {
	.site-header { backdrop-filter: none; background: var(--wp--preset--color--paper); }
	.site-header .naglowek-tel { display: none; }
	.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; }
}

/* Stopka */
.site-footer a { color: #c9ccd3; }
.site-footer a:hover { color: #fff; }

/* Wideo w bazie wiedzy */
.wp-block-embed iframe { border-radius: 12px; }
.wp-block-post-template .wp-block-post-featured-image img { border-radius: 12px; aspect-ratio: 16/9; object-fit: cover; }

/* Formularz kontaktowy */
.strefa-form { display: grid; gap: 14px; }
.strefa-form label { display: grid; gap: 6px; font-weight: 500; color: var(--wp--preset--color--ink); font-size: .95rem; }
.strefa-form small { font-weight: 400; color: var(--wp--preset--color--muted); }
.strefa-form input, .strefa-form select, .strefa-form textarea {
	font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px; background: #fff; color: var(--wp--preset--color--ink); width: 100%; box-sizing: border-box;
}
.strefa-form input:focus, .strefa-form select:focus, .strefa-form textarea:focus { outline: 2px solid var(--wp--preset--color--ember); outline-offset: 1px; }
.strefa-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.strefa-form__hp { position: absolute; left: -9999px; }
.strefa-form button { justify-self: start; border: 0; cursor: pointer; }
.strefa-form__note { font-size: .85rem; color: var(--wp--preset--color--muted); }
.strefa-form__ok, .strefa-form__err { padding: 12px 16px; border-radius: 10px; }
.strefa-form__ok { background: #e8f5ec; color: #1d6b37; }
.strefa-form__err { background: #fdecec; color: var(--wp--preset--color--ember-dark); }
@media (max-width: 600px) { .strefa-form__row { grid-template-columns: 1fr; } }

/* Telefon: brak poziomego przewijania */
html, body { overflow-x: clip; }
h1, h2 { overflow-wrap: anywhere; hyphens: none; }
