/* =========================================================
   Pisz Mazury — stopka (mobile first)
   Kolory i zmienne dziedziczone z header.css
   ========================================================= */

.pm-footer {
	margin-top: 48px;
	background: var(--pm-navy);
	color: rgba(255, 255, 255, .78);
	font-size: 15px;
	line-height: 1.6;
}
.pm-footer a {
	color: rgba(255, 255, 255, .78);
	text-decoration: none;
}
.pm-footer a:hover { color: #fff; }

/* ---------------------------------------------------------
   Pasek partnerów (nad stopką)
   --------------------------------------------------------- */
.pm-partners {
	background: var(--pm-white);
	border-top: 1px solid var(--pm-line);
	border-bottom: 1px solid var(--pm-line);
	padding: 18px 0;
}
.pm-partners__label {
	margin: 0 0 12px;
	font-size: 12px;
	color: var(--pm-muted);
}
.pm-partners__items {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 28px;
}
.pm-partners__item img {
	display: block;
	max-height: 40px;
	width: auto;
	filter: grayscale(1);
	opacity: .72;
	transition: filter .2s, opacity .2s;
}
.pm-partners__item:hover img { filter: none; opacity: 1; }

/* ---------------------------------------------------------
   Siatka kolumn
   --------------------------------------------------------- */
.pm-footer__grid {
	display: grid;
	gap: 32px;
	padding-top: 34px;
	padding-bottom: 34px;
}

.pm-footer__title {
	margin: 0 0 14px;
	padding-bottom: 10px;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.pm-footer__logo img,
.pm-footer__logo .custom-logo {
	display: block;
	height: 54px;
	width: auto;
	background: #fff;
	padding: 8px 12px;
	border-radius: var(--pm-radius);
}
.pm-footer__about {
	margin: 16px 0 18px;
	max-width: 46ch;
	font-size: 14.5px;
}

.pm-footer__social {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.pm-footer__social a {
	display: grid;
	place-items: center;
	width: 40px; height: 40px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 50%;
	color: #fff;
	transition: background .15s, border-color .15s;
}
.pm-footer__social a:hover { background: var(--pm-reed); border-color: var(--pm-reed); }
.pm-footer__social .pm-icon { width: 19px; height: 19px; }

/* Listy linków */
.pm-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.pm-footer__list li + li { margin-top: 2px; }
.pm-footer__list a {
	display: block;
	padding: 7px 0 7px 14px;
	position: relative;
}
.pm-footer__list a::before {
	content: "";
	position: absolute;
	left: 0; top: 50%;
	width: 5px; height: 1px;
	background: var(--pm-reed);
	transform: translateY(-50%);
	transition: width .15s;
}
.pm-footer__list a:hover::before { width: 9px; }

/* Kontakt */
.pm-footer__contact {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
}
.pm-footer__contact li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
}
.pm-footer__contact .pm-icon { width: 18px; height: 18px; color: var(--pm-reed); }

/* Blok reklamowy */
.pm-promo {
	padding: 18px;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: var(--pm-radius);
}
.pm-promo__title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
}
.pm-promo__text {
	margin: 0 0 14px;
	font-size: 14px;
}
.pm-promo__btn {
	display: inline-block;
	padding: 10px 18px;
	background: var(--pm-reed);
	color: #fff !important;
	font-weight: 600;
	border-radius: var(--pm-radius);
	transition: background .15s;
}
.pm-promo__btn:hover { background: #267a4c; }

.pm-footer__tip {
	margin: 18px 0 0;
	font-size: 14px;
}
.pm-footer__tip a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------------------------------------------------------
   Pasek dolny
   --------------------------------------------------------- */
.pm-footer__bar {
	background: var(--pm-navy-deep);
	font-size: 13.5px;
}
.pm-footer__bar-inner {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 16px;
	padding-bottom: 16px;
}
.pm-footer__copy { margin: 0; color: rgba(255, 255, 255, .6); }
.pm-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ---------------------------------------------------------
   Powrót na górę
   --------------------------------------------------------- */
.pm-totop {
	position: fixed;
	right: 14px;
	bottom: 14px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 46px; height: 46px;
	border: 0;
	border-radius: 50%;
	background: var(--pm-reed);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(12, 42, 69, .32);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.pm-totop.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-delay: 0s;
}
.pm-totop .pm-icon { width: 22px; height: 22px; }
.is-menu-open .pm-totop { display: none; }

/* =========================================================
   Komputer
   ========================================================= */
@media (min-width: 700px) {
	.pm-footer__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 36px 40px;
	}
	.pm-footer__bar-inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

@media (min-width: 1000px) {
	.pm-footer { margin-top: 64px; }
	.pm-footer__grid {
		grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
		gap: 48px;
		padding-top: 48px;
		padding-bottom: 44px;
	}
	.pm-partners { padding: 22px 0; }
	.pm-totop { right: 24px; bottom: 24px; width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
	.pm-totop, .pm-partners__item img, .pm-footer__list a::before { transition: none; }
}
