/*
 * KingPUR Classic — dodatki do arkusza app.css
 * (style przeniesione z poprzedniej wersji strony znajdują się w app.css).
 */

/* ---------- Slider: techniczne klasy rotacji (reszta stylów w app.css) ---------- */

.mySwiper .kingpur-slider-ready {
	will-change: transform;
}

/* ---------- Ogólna treść stron (edytor WordPressa) ---------- */

.page-content {
	max-width: 1250px;
	margin: 0 auto;
	padding: 50px 5vw;
	color: #686868;
}

.page-content h1 {
	border-bottom: 1px solid #686868;
	padding-bottom: 20px;
	margin-bottom: 20px;
}

.page-content p {
	margin: 0 0 1em;
}

.page-content h2 {
	margin: 1.2em 0 0.5em;
}

.page-content ul,
.page-content ol {
	margin: 0 0 1em;
	padding-left: 1.4em;
}

/* ---------- Nagłówek archiwum / bloga ---------- */

.kingpur-archive-head {
	text-align: center;
	padding-bottom: 0;
}

.kingpur-archive-head h1 {
	border-bottom: none;
}

.kingpur-archive-head p {
	color: #686868;
}

/* ---------- Paginacja ---------- */

.kingpur-pagination {
	max-width: 1250px;
	margin: 50px auto;
	text-align: center;
}

.kingpur-pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.kingpur-pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	padding: 8px 12px;
	background: #f8c822;
	color: #fff;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
}

.kingpur-pagination .page-numbers.current {
	background: #5d5d5d;
}

.kingpur-pagination .page-numbers.dots {
	background: transparent;
	color: #5d5d5d;
}

/* ---------- Formularz kontaktowy (Contact Form 7) ---------- */

.kingpur-form {
	max-width: 700px;
	margin: 0 auto 50px;
	background: rgba(93, 93, 93, 0.85);
	padding: 30px;
	border-radius: 12px;
}

.kingpur-form .wpcf7-form label,
.kingpur-form p {
	color: #fff;
	display: block;
	margin-bottom: 12px;
	font-size: 15px;
}

.kingpur-form input[type="text"],
.kingpur-form input[type="email"],
.kingpur-form input[type="tel"],
.kingpur-form textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #f8c822;
	border-radius: 8px;
	font: inherit;
	background: #fff;
}

.kingpur-form input[type="submit"],
.kingpur-form button[type="submit"] {
	background: #f8c822;
	color: #fff;
	font-weight: 700;
	border: 0;
	border-radius: 8px;
	padding: 12px 30px;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.kingpur-form input[type="submit"]:hover {
	transform: scale(1.02);
}

.kingpur-form .wpcf7-not-valid-tip,
.kingpur-form .wpcf7-response-output {
	color: #fff;
	font-size: 14px;
}

/* ---------- Treść pod certyfikatami (strona O firmie) ---------- */

#firm .certs-extra {
	max-width: 1250px;
	margin: 50px auto 0;
}

#firm .certs-extra p {
	margin: 0 0 1em;
}

/* ---------- Strona 404 ---------- */

.not-found {
	text-align: center;
	padding: 100px 10vw;
}

.not-found .btn {
	margin: 50px auto 0;
	display: block;
	width: fit-content;
}

/* ---------- Dostępność: widoczny fokus ---------- */

a:focus-visible,
button:focus-visible {
	outline: 3px solid #f8c822;
	outline-offset: 2px;
}

/* ============================================================
   Design refresh v1.1 — subtelne odświeżenie (te same kolory
   i fonty; dodane cienie, rogi, mikrointerakcje, karty).
   ============================================================ */

:root {
	--kp-yellow: #f8c822;
	--kp-gray: #5d5d5d;
	--kp-radius: 14px;
	--kp-shadow-sm: 0 2px 10px rgba(35, 35, 35, 0.08);
	--kp-shadow-md: 0 10px 30px rgba(35, 35, 35, 0.14);
	--kp-shadow-lg: 0 18px 45px rgba(35, 35, 35, 0.22);
}

::selection {
	background: var(--kp-yellow);
	color: #fff;
}

/* ---------- Pasek górny i nawigacja: miękkie cienie + blur ---------- */

.top-bar {
	backdrop-filter: blur(4px);
}

#nav {
	box-shadow: var(--kp-shadow-sm) !important;
}

#nav .r-menu a {
	transition: color 0.2s ease;
}

/* ---------- Hero slider: lepsza czytelność ---------- */

.mySwiper .content {
	border-radius: var(--kp-radius);
	box-shadow: var(--kp-shadow-lg);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.mySwiper .content h1,
.mySwiper .content span {
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* ---------- Przyciski: uniesienie i cień na hover ---------- */

.btn {
	box-shadow: 0 6px 16px rgba(248, 200, 34, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 12px 26px rgba(248, 200, 34, 0.45);
	filter: brightness(1.03);
}

/* ---------- Siatka wpisów: karty z cieniem ---------- */

.post-grid .list-posts .list-item,
.post-grid .list-posts a {
	border-radius: 10px;
	overflow: hidden;
	box-shadow: var(--kp-shadow-sm);
}

.post-grid .list-posts .list-item:hover,
.post-grid .list-posts a:hover {
	transform: translateY(-3px) scale(1.01);
	box-shadow: var(--kp-shadow-md);
}

.post-grid .first-post {
	border-radius: var(--kp-radius);
	overflow: hidden;
	box-shadow: var(--kp-shadow-md);
}

.post-grid .first-post .title {
	border-radius: var(--kp-radius) 0 0 0;
}

/* ---------- Sekcje korzyści/Dlaczego: złagodzone cienie ikon ---------- */

#benefits .col .flex img,
.why .item img {
	transition: transform 0.25s ease;
}

#benefits .col .flex:hover img,
.why .item:hover img {
	transform: scale(1.12);
}

/* ============================================================
   Nowe bloki: strony usług / landing pages
   ============================================================ */

/* ---------- Hero strony usługi ---------- */

.kp-intro {
	max-width: 900px;
	margin: 0 auto;
	padding: 44px 5vw 6px;
	font-size: 18px;
	line-height: 1.7;
	color: #686868;
}

.kp-hero {
	position: relative;
	padding: 90px 5vw 70px;
	background: linear-gradient(rgba(28, 28, 28, 0.72), rgba(28, 28, 28, 0.55)),
		url('../img/ocieplenie.jpg') center 30% / cover no-repeat;
	color: #fff;
}

.kp-hero h1 {
	max-width: 900px;
	margin: 0 0 14px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.kp-hero .kp-lead {
	max-width: 780px;
	font-size: 20px;
	line-height: 1.6;
	opacity: 0.95;
}

.kp-hero .kp-hero-cta {
	margin-top: 26px;
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	align-items: center;
}

.kp-hero .kp-note {
	font-size: 13px;
	opacity: 0.85;
}

/* ---------- Breadcrumb ---------- */

.kp-breadcrumbs {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 18px;
}

.kp-breadcrumbs a {
	color: var(--kp-yellow);
	text-decoration: none;
}

.kp-breadcrumbs a:hover {
	text-decoration: underline;
}

/* ---------- Karty usług / korzyści ---------- */

.kp-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
	max-width: 1250px;
	margin: 0 auto;
	padding: 10px 5vw 40px;
	list-style: none;
}

.kp-card {
	background: #fff;
	border-radius: var(--kp-radius);
	box-shadow: var(--kp-shadow-sm);
	padding: 28px 24px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	border-top: 4px solid var(--kp-yellow);
}

.kp-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--kp-shadow-md);
}

.kp-card .kp-card-icon {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: rgba(248, 200, 34, 0.16);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.kp-card .kp-card-icon img {
	width: 28px;
	height: 28px;
}

.kp-card h3 {
	font-size: 19px;
	margin: 0 0 8px;
	color: #4a4a4a;
}

.kp-card p {
	font-size: 15px;
	color: #6d6d6d;
	margin: 0;
}

.kp-card a.kp-card-link {
	display: inline-block;
	margin-top: 12px;
	color: #b98f00;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}

.kp-card a.kp-card-link::after {
	content: ' →';
	transition: margin-left 0.2s ease;
}

.kp-card a.kp-card-link:hover::after {
	margin-left: 4px;
}

/* ---------- Nagłówek sekcji ---------- */

.kp-section-head {
	max-width: 1250px;
	margin: 0 auto;
	padding: 40px 5vw 8px;
}

.kp-section-head h2 {
	border-bottom: 3px solid var(--kp-yellow);
	display: inline-block;
	padding-bottom: 8px;
}

/* ---------- Proces realizacji (kroki) ---------- */

.kp-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	max-width: 1250px;
	margin: 0 auto;
	padding: 20px 5vw 40px;
	list-style: none;
	counter-reset: kp-step;
}

.kp-step {
	position: relative;
	background: #fff;
	border-radius: var(--kp-radius);
	box-shadow: var(--kp-shadow-sm);
	padding: 26px 22px 22px;
	counter-increment: kp-step;
}

.kp-step::before {
	content: counter(kp-step);
	position: absolute;
	top: -16px;
	left: 22px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--kp-yellow);
	color: #fff;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--kp-shadow-sm);
}

.kp-step h3 {
	font-size: 17px;
	margin: 6px 0 6px;
	color: #4a4a4a;
}

.kp-step p {
	font-size: 14px;
	color: #6d6d6d;
	margin: 0;
}

.kp-steps-wrap {
	padding-top: 26px;
}

/* ---------- FAQ (details/summary) ---------- */

.kp-faq {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px 5vw 50px;
}

.kp-faq details {
	background: #fff;
	border-radius: 12px;
	box-shadow: var(--kp-shadow-sm);
	margin-bottom: 12px;
	overflow: hidden;
}

.kp-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 18px 52px 18px 22px;
	font-weight: 600;
	color: #4a4a4a;
	position: relative;
}

.kp-faq summary::-webkit-details-marker {
	display: none;
}

.kp-faq summary::after {
	content: '+';
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 24px;
	font-weight: 400;
	color: var(--kp-yellow);
	transition: transform 0.25s ease;
}

.kp-faq details[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}

.kp-faq details p {
	padding: 0 22px 18px;
	margin: 0;
	color: #6d6d6d;
	font-size: 15px;
}

/* ---------- Pas CTA ---------- */

.kp-cta {
	background: linear-gradient(100deg, #5d5d5d 0%, #454545 60%, #3a3a3a 100%);
	color: #fff;
	padding: 56px 5vw;
	text-align: center;
}

.kp-cta h2 {
	margin: 0 0 8px;
}

.kp-cta p {
	opacity: 0.9;
	margin: 0 0 24px;
}

.kp-cta .kp-cta-actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

.kp-cta .kp-cta-phone {
	font-size: 26px;
	font-weight: 700;
	color: var(--kp-yellow);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.kp-cta .kp-cta-phone:hover {
	color: #ffdd55;
}

/* ---------- Siatka usług na stronie Oferta ---------- */

.kp-services {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
	max-width: 1250px;
	margin: 0 auto 20px;
	padding: 30px 5vw 10px;
}

a.kp-service-card {
	display: block;
	background: #fff;
	border-radius: var(--kp-radius);
	box-shadow: var(--kp-shadow-sm);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	border: 0;
}

a.kp-service-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--kp-shadow-md);
}

a.kp-service-card .kp-service-icon {
	background: linear-gradient(135deg, rgba(248, 200, 34, 0.18), rgba(248, 200, 34, 0.05));
	padding: 26px 24px 12px;
}

a.kp-service-card .kp-service-icon img {
	width: 34px;
	height: 34px;
}

a.kp-service-card .kp-service-body {
	padding: 4px 24px 24px;
}

a.kp-service-card h3 {
	font-size: 18px;
	margin: 0 0 8px;
	color: #4a4a4a;
}

a.kp-service-card p {
	font-size: 14px;
	color: #6d6d6d;
	margin: 0 0 10px;
}

a.kp-service-card .kp-service-more {
	font-size: 14px;
	font-weight: 600;
	color: #b98f00;
}

a.kp-service-card .kp-service-more::after {
	content: ' →';
}

/* ---------- Kolumna usług w stopce ---------- */

footer .f-col h3 {
	font-size: 24px;
	font-weight: 300;
}

footer .f-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

footer .f-col ul li {
	padding: 4px 0;
}

footer .f-col ul a {
	font-size: 16px;
	text-decoration: none;
}

footer .f-col ul a::before {
	content: '› ';
	color: var(--kp-yellow);
}

/* ---------- Animacja pojawiania się sekcji ---------- */

.kp-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

.kp-reveal.kp-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.kp-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.btn:hover,
	.kp-card:hover,
	a.kp-service-card:hover,
	.post-grid .list-posts .list-item:hover {
		transform: none;
	}
}

/* ---------- Drobne poprawki ---------- */

main > .page-content:first-child {
	padding-top: 60px;
}

.kingpur-pagination .page-numbers {
	box-shadow: var(--kp-shadow-sm);
}

/* ---------- Galeria realizacji ---------- */

.kp-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 22px;
	max-width: 1250px;
	margin: 25px auto;
	padding: 0 5vw;
}

.kp-gallery-item {
	position: relative;
	display: block;
	border-radius: var(--kp-radius);
	overflow: hidden;
	box-shadow: var(--kp-shadow-sm);
	aspect-ratio: 4 / 3;
	background: #eee;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kp-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.kp-gallery-item:hover {
	transform: translateY(-4px);
	box-shadow: var(--kp-shadow-md);
}

.kp-gallery-item:hover img {
	transform: scale(1.05);
}

.kp-gallery-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 26px 16px 12px;
	background: linear-gradient(transparent, rgba(20, 20, 20, 0.85));
	color: #fff;
}

.kp-gallery-caption h3 {
	font-size: 15px;
	margin: 0 0 2px;
	color: #fff;
}

.kp-gallery-caption p {
	font-size: 12.5px;
	margin: 0;
	opacity: 0.85;
	color: #fff;
}

.kp-gallery-more {
	text-align: center;
	padding: 10px 5vw 40px;
}

.kp-gallery-single {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* ---------- Lightbox ---------- */

.kp-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(15, 15, 15, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 30px;
	cursor: zoom-out;
}

.kp-lightbox img {
	max-width: min(1200px, 100%);
	max-height: 100%;
	border-radius: 8px;
	box-shadow: var(--kp-shadow-lg);
}

/* ---------- Opinie ---------- */

.kp-reviews {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	max-width: 1250px;
	margin: 25px auto;
	padding: 0 5vw;
}

.kp-review {
	background: #fff;
	border-radius: var(--kp-radius);
	box-shadow: var(--kp-shadow-sm);
	padding: 26px 24px;
	border-left: 4px solid var(--kp-yellow);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.kp-review-stars {
	font-size: 20px;
	letter-spacing: 2px;
	color: #d9d9d9;
}

.kp-review-stars span.is-on {
	color: var(--kp-yellow);
}

.kp-review-text {
	font-size: 15.5px;
	line-height: 1.65;
	color: #565656;
	margin: 0;
	flex: 1;
}

.kp-review-author {
	margin: 0;
	font-size: 13.5px;
	font-weight: 600;
	color: #8a8a8a;
}

/* ---------- Formularz wyceny — rozszerzenia ---------- */

.kingpur-form h2 {
	color: #fff;
	margin: 0 0 6px;
}

.kingpur-form .kingpur-form-sub {
	margin: 0 0 18px;
	opacity: 0.9;
	font-size: 14.5px;
}

.kingpur-form select {
	width: 100%;
	padding: 12px;
	border: 1px solid #f8c822;
	border-radius: 8px;
	font: inherit;
	background: #fff;
}

.kingpur-form .kp-rodo label {
	font-size: 13px;
	line-height: 1.5;
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.kingpur-form .kp-rodo input[type="checkbox"] {
	margin-top: 4px;
	flex: 0 0 auto;
}

.kp-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 1px;
	width: 1px;
	opacity: 0;
}

.kp-form-success,
.kp-form-error {
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 18px;
	font-size: 15px;
	line-height: 1.5;
}

.kp-form-success {
	background: #2e7d32;
	color: #fff;
}

.kp-form-success a,
.kp-form-error a {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
}

.kp-form-error {
	background: #b23c3c;
	color: #fff;
}

/* Galeria „O firmie" (zdjęcia firmy z albumu FB) */
.kp-about-gallery {
	padding: 40px 24px 56px;
	max-width: 1180px;
	margin: 0 auto;
}

.kp-about-gallery .kp-gallery {
	margin-bottom: 8px;
}

/* v1.4 — karty blogowe, opinie ze źródłem, pojedynczy wpis */

.kp-blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 26px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px 40px;
}

.kp-post-card {
	background: #fff;
	border-radius: var(--kp-radius);
	box-shadow: var(--kp-shadow-sm);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease;
}

.kp-post-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--kp-shadow-md);
}

.kp-post-card-img {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.kp-post-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.kp-post-card:hover .kp-post-card-img img {
	transform: scale(1.05);
}

.kp-post-card-date {
	position: absolute;
	left: 12px;
	bottom: 12px;
	background: var(--kp-yellow);
	color: #1c1c1c;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
}

.kp-post-card-body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.kp-post-card-body h3 {
	font-size: 19px;
	line-height: 1.35;
	color: #1c1c1c;
}

.kp-post-card-body p {
	font-size: 15px;
	line-height: 1.55;
	color: var(--kp-gray);
	flex: 1;
}

.kp-post-card-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #1c1c1c;
	font-weight: 700;
	font-size: 14px;
}

.kp-post-card-more svg {
	transition: transform .25s ease;
}

.kp-post-card:hover .kp-post-card-more svg {
	transform: translateX(4px);
}

.kp-post-card:hover .kp-post-card-more {
	color: #b58b00;
}

/* Opinie — badge źródła i link do Google */
.kp-review-source {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 9px;
	background: #f1f3f4;
	border-radius: 999px;
	color: #5f6368;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	vertical-align: middle;
}

.kp-reviews-more {
	text-align: center;
	margin: 26px auto 8px;
}

/* Pojedynczy wpis bloga */
.kp-post-hero {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 300px;
	background-size: cover;
	background-position: center;
	padding: 60px 24px 40px;
}

.kp-post-hero h1 {
	color: #fff;
	max-width: 900px;
	margin: 0 auto;
	font-size: clamp(26px, 4vw, 40px);
}

.kp-post-hero .kp-breadcrumbs {
	max-width: 900px;
	margin: 0 auto 10px;
}

.kp-post-body {
	max-width: 820px;
	margin: 0 auto;
	padding: 34px 24px 50px;
}

.kp-post-meta {
	display: flex;
	gap: 10px;
	align-items: center;
	color: #9a9a9a;
	font-size: 14px;
	margin-bottom: 18px;
}

.kp-post-cta {
	display: inline-block;
	margin-top: 10px;
	background: var(--kp-yellow);
	color: #1c1c1c;
	font-weight: 700;
	padding: 12px 22px;
	border-radius: 999px;
	text-decoration: none;
	transition: filter .2s ease;
}

.kp-post-cta:hover {
	filter: brightness(1.06);
}

@media (max-width: 640px) {
	.kp-blog-grid {
		grid-template-columns: 1fr;
	}
}
