﻿/* ==========================================================================
   Footer: brand, link columns, contact, legal bar, floating actions
   ========================================================================== */

.pr-footer {
	position: relative;
	overflow: hidden;
	padding: 72px 0 64px;
	background: var(--pr-black);
	color: rgba(255, 255, 255, 0.72);
}

.pr-footer::before {
	content: "";
	position: absolute;
	top: -220px;
	left: -80px;
	width: 560px;
	height: 560px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(18, 161, 91, 0.18), transparent 68%);
	pointer-events: none;
}

.pr-footer__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.45fr 0.9fr 1fr 1.2fr;
	gap: 44px;
	padding-bottom: 56px;
}

.pr-footer__brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--pr-white);
	text-decoration: none;
}

.pr-footer__brand:hover {
	color: var(--pr-white);
}

.pr-footer__mark {
	display: grid;
	place-items: center;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: linear-gradient(145deg, var(--pr-green-bright), var(--pr-green-dark));
	color: #04150c;
}

.pr-footer__mark .pr-icon {
	width: 24px;
	height: 24px;
	stroke-width: 2.6;
}

.pr-footer__brand span:last-child {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.pr-footer__brand strong {
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.pr-footer__brand small {
	margin-top: 3px;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.7rem;
}

.pr-footer__desc {
	max-width: 330px;
	margin: 20px 0 24px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.86rem;
	line-height: 1.65;
}

.pr-footer__social {
	display: flex;
	gap: 9px;
}

.pr-footer__social a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 11px;
	color: rgba(255, 255, 255, 0.72);
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pr-footer__social a:hover {
	border-color: var(--pr-green);
	background: rgba(18, 161, 91, 0.16);
	color: var(--pr-green-bright);
}

.pr-footer__social .pr-icon {
	width: 18px;
	height: 18px;
}

.pr-footer__title {
	margin: 4px 0 20px;
	color: var(--pr-white);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.pr-footer__links {
	display: grid;
	gap: 11px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pr-footer__links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.58);
	font-size: 0.85rem;
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
}

.pr-footer__links a::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(28, 198, 115, 0.55);
	flex: none;
	transition: background 0.2s ease;
}

.pr-footer__links a:hover {
	color: var(--pr-green-bright);
	transform: translateX(2px);
}

.pr-footer__links a:hover::before {
	background: var(--pr-green-bright);
}

.pr-footer__contact {
	display: grid;
	gap: 15px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pr-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	color: rgba(255, 255, 255, 0.58);
	font-size: 0.84rem;
	line-height: 1.55;
}

.pr-footer__contact .pr-icon {
	width: 17px;
	height: 17px;
	margin-top: 2px;
	color: var(--pr-green);
	flex: none;
}

.pr-footer__contact a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
}

.pr-footer__contact a:hover {
	color: var(--pr-green-bright);
}

.pr-footer__bottom {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.09);
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.42);
}

.pr-footer__bottom p {
	margin: 0;
}

.pr-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pr-footer__legal a {
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
}

.pr-footer__legal a:hover {
	color: var(--pr-green-bright);
}

/* Floating actions -------------------------------------------------------- */

.pr-to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 110;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--pr-line);
	border-radius: 50%;
	background: var(--pr-white);
	color: var(--pr-ink);
	box-shadow: var(--pr-shadow-sm);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.pr-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.pr-to-top:hover {
	background: var(--pr-green);
	color: #04150c;
}

.pr-to-top .pr-icon {
	width: 18px;
	height: 18px;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 980px) {
	.pr-footer__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 40px 32px;
	}
}

@media (max-width: 640px) {
	.pr-footer {
		padding-top: 56px;
	}

	.pr-footer__grid {
		grid-template-columns: 1fr;
		gap: 34px;
		padding-bottom: 40px;
	}

	.pr-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.pr-to-top {
		width: 42px;
		height: 42px;
	}
}
