/*
 * Stopka — wygląd z kfb_v16_5.html (.footer …).
 */

.site-footer.footer {
	margin: 12px;
	background: var(--color-footer-bg);
	border-radius: 16px;
	padding: 60px 68px 32px;
	position: relative;
	overflow: hidden;
	color: var(--color-white);
}

.site-footer .footer-hallmark {
	position: absolute;
	inset: -80px;
	pointer-events: none;
	opacity: 0.04;
}

.site-footer .site-container {
	position: relative;
	z-index: 1;
	max-width: 1488px;
	margin: 0 auto;
}

/* ─── Główna siatka: kolumny + social (jak .footer-top z v16) ─── */

.site-footer .footer-main {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.site-footer .footer-content-wrapper.footer-top {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 48px;
	margin-bottom: 48px;
	position: relative;
	align-items: flex-start;
}

.site-footer .footer-columns-wrapper {
	width: 100%;
	min-width: 0;
}

.site-footer .footer-columns {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 48px;
}

.site-footer .footer-column--1 {
	min-width: 0;
	max-width: 220px;
}

.site-footer .footer-right-wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	flex-shrink: 0;
}

/* Kolumny — tytuły jak .f-col-title + blok kfb-s/footer-column-heading */

.site-footer .f-col-title,
.site-footer .footer-column .widget-title,
.site-footer .footer-column-heading {
	margin: 0 0 14px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-white-30);
	border: none;
	padding: 0;
	background: none;
}

.site-footer .footer-column-heading-edit-wrap h4 {
	margin: 0;
}

.site-footer .footer-column ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer .footer-column ul li {
	margin: 0 0 10px;
}

.site-footer .footer-column a {
	font-size: 13px;
	color: var(--color-white-50);
	text-decoration: none;
	transition: color 0.2s;
}

.site-footer .footer-column a:hover {
	color: var(--color-white);
}

.site-footer .footer-column p {
	font-size: 12px;
	color: var(--color-white-35);
	line-height: 1.6;
	margin: 0 0 8px;
}

.site-footer .footer-column p:last-child {
	margin-bottom: 0;
}

/* Bloki Gutenberg w kolumnach */

.site-footer .footer-column .wp-block-navigation {
	margin: 0;
	font-size: 13px;
}

.site-footer .footer-column .wp-block-navigation ul {
	display: block;
}

.site-footer .footer-column .wp-block-navigation .wp-block-navigation-item {
	margin: 0 0 10px;
}

.site-footer .footer-column .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--color-white-50);
	padding: 0;
}

.site-footer .footer-column .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--color-white);
}

.site-footer .footer-column .wp-block-heading {
	color: var(--color-white);
	margin-top: 0;
}

/* Z HTML v16: .footer-logo + .footer-tagline (np. widget „Niestandardowy HTML”) */

.site-footer .footer-logo {
	font-family: var(--font-heading, "Rubik", sans-serif);
	font-weight: 700;
	font-size: 18px;
	color: var(--color-white);
	margin-bottom: 10px;
}

.site-footer .footer-logo span {
	color: var(--color-orange-2);
}

.site-footer .footer-tagline {
	font-size: 12px;
	color: var(--color-white-35);
	line-height: 1.6;
	margin: 0;
}

/* ─── Social (.footer-socials / .soc-btn z v16) ─── */

.site-footer .footer-social.footer-socials,
.site-footer .footer-socials {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	align-items: center;
}

.site-footer .footer-social-widget {
	display: contents;
}

.site-footer .footer-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--color-white-15);
	transition: border-color 0.2s, background 0.2s;
	box-sizing: border-box;
	padding: 0;
	overflow: hidden;
}

.site-footer .footer-socials a:hover {
	border-color: var(--color-orange);
	background: var(--color-orange);
}

.site-footer .footer-socials img,
.site-footer .footer-socials .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.site-footer .footer-socials .wp-block-image {
	margin: 0;
	width: 36px;
	height: 36px;
	display: inline-flex;
	border-radius: 50%;
	overflow: hidden;
}

.site-footer .footer-socials .wp-block-image a {
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 50%;
}

.site-footer .footer-socials .wp-block-image a:hover {
	border: none;
	background: transparent;
}

/* ─── Dolny pasek (.footer-bottom) ─── */

.site-footer .footer-bottom {
	border-top: 1px solid var(--color-white-07);
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	position: relative;
}

.site-footer .footer-copy.site-info,
.site-footer .footer-copy {
	font-size: 12px;
	color: var(--color-white-25);
	margin: 0;
}

.site-footer .footer-copy p {
	margin: 0;
}

.site-footer .footer-legal,
.site-footer .footer-legal-widget {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	margin: 0;
}

.site-footer .footer-legal a,
.site-footer .footer-legal-widget a {
	font-size: 12px;
	color: var(--color-white-30);
	text-decoration: none;
	transition: color 0.2s;
}

.site-footer .footer-legal a:hover,
.site-footer .footer-legal-widget a:hover {
	color: var(--color-white-60);
}

.site-footer .footer-legal .wp-block-navigation,
.site-footer .footer-legal-widget .wp-block-navigation {
	margin: 0;
	font-size: 12px;
}

.site-footer .footer-legal .wp-block-navigation ul,
.site-footer .footer-legal-widget .wp-block-navigation ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	gap: 20px;
	align-items: center;
}

.site-footer .footer-legal .wp-block-navigation .wp-block-navigation-item__content,
.site-footer .footer-legal-widget .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--color-white-30);
	padding: 0;
}

.site-footer .footer-legal .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--color-white-60);
}

.site-footer .footer-sep {
	color: var(--color-white-15);
}

@media (max-width: 900px) {
	.site-footer.footer {
		padding: 48px 24px 28px;
		margin: 12px 8px 8px;
	}

	.site-footer .footer-content-wrapper.footer-top {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.site-footer .footer-right-wrapper {
		align-items: flex-start;
		width: 100%;
	}

	.site-footer .footer-socials {
		justify-content: flex-start;
	}

	.site-footer .footer-columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px;
	}

	.site-footer .footer-column--1 {
		max-width: none;
	}

	.site-footer .footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.site-footer .footer-bottom .footer-legal {
		order: 1;
	}

	.site-footer .footer-bottom .site-info {
		order: 2;
	}
}

@media (max-width: 540px) {
	.site-footer .footer-columns {
		grid-template-columns: 1fr;
	}
}
