.rcesd-site-footer {
	--rcesd-footer-bg: #053a22;
	--rcesd-footer-bar: #032816;
	--rcesd-footer-accent: #1f9d4a;
	position: relative;
	direction: rtl;
	color: #fff;
	font-family: "Yekan Bakh", Tahoma, sans-serif;
	background:
		linear-gradient(118deg, #042c1a 0%, #064528 42%, #075533 72%, #04321e 100%);
	overflow: hidden;
}

.rcesd-site-footer *,
.rcesd-site-footer *::before,
.rcesd-site-footer *::after {
	box-sizing: border-box;
}

.rcesd-site-footer__bg {
	position: absolute;
	inset: 0 auto 0 0;
	width: min(520px, 48vw);
	height: 100%;
	background-position: left bottom;
	background-repeat: no-repeat;
	background-size: contain;
	opacity: 0.22;
	pointer-events: none;
	z-index: 0;
	-webkit-mask-image: linear-gradient(90deg, #000 35%, transparent 92%);
	mask-image: linear-gradient(90deg, #000 35%, transparent 92%);
}

.rcesd-site-footer__main {
	position: relative;
	z-index: 1;
	padding: 52px 0 40px;
}

.rcesd-site-footer__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.15fr 0.9fr 1.15fr;
	gap: 36px;
	align-items: center;
}

.rcesd-site-footer__heading {
	position: relative;
	margin: 0 0 18px;
	padding-inline-start: 14px;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.4;
}

.rcesd-site-footer__heading::before {
	content: "";
	position: absolute;
	top: 4px;
	inset-inline-start: 0;
	width: 4px;
	height: 18px;
	border-radius: 999px;
	background: #fff;
}

.rcesd-site-footer__contacts {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 14px;
}

.rcesd-site-footer__contacts li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.92);
}

.rcesd-site-footer__contacts a {
	color: inherit;
	text-decoration: none;
}

.rcesd-site-footer__contacts a:hover {
	color: #fff;
	text-decoration: underline;
}

.rcesd-site-footer__ico {
	flex: none;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	color: #fff;
}

.rcesd-site-footer__col--links {
	padding-inline-start: 28px;
	border-inline-start: 1px solid rgba(255, 255, 255, 0.28);
}

.rcesd-site-footer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 12px;
}

.rcesd-site-footer__menu a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.92);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	line-height: 1.6;
	transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.rcesd-site-footer__menu a::before {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 5px 7px 5px 0;
	border-color: transparent #fff transparent transparent;
	transform: rotate(-20deg);
	opacity: 0.9;
	transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.rcesd-site-footer__menu a:hover {
	color: #fff;
	transform: translateX(6px);
	opacity: 1;
}

.rcesd-site-footer__menu a:hover::before {
	opacity: 1;
	border-color: transparent #8dffb0 transparent transparent;
	transform: rotate(-20deg) scale(1.15);
}

.rcesd-site-footer__col--brand {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	min-height: 100%;
	margin-inline-end: -12px;
}

.rcesd-site-footer__brand {
	display: inline-flex;
	align-items: center;
	color: #fff;
	text-decoration: none;
	max-width: 100%;
}

.rcesd-site-footer__logo {
	display: block;
	width: auto;
	height: 128px;
	max-width: 300px;
	object-fit: contain;
}

.rcesd-site-footer__bar {
	position: relative;
	z-index: 1;
	background: rgba(0, 0, 0, 0.28);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rcesd-site-footer__bar-inner {
	min-height: 52px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.rcesd-site-footer__legal {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
}

.rcesd-site-footer__legal li {
	display: inline-flex;
	align-items: center;
}

.rcesd-site-footer__legal li:not(:last-child)::after {
	content: "|";
	margin: 0 10px;
	color: rgba(255, 255, 255, 0.45);
}

.rcesd-site-footer__legal a {
	color: rgba(255, 255, 255, 0.88);
	font-size: 13px;
	text-decoration: none;
}

.rcesd-site-footer__legal a:hover {
	color: #fff;
}

.rcesd-site-footer__copy {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 13px;
	line-height: 1.6;
}

.rcesd-site-footer__top {
	position: absolute;
	z-index: 2;
	left: max(20px, calc((100% - 1240px) / 2));
	right: auto;
	bottom: 34px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--rcesd-footer-accent);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.rcesd-site-footer__top:hover {
	transform: translateY(-2px);
	background: #24b056;
}

@media (max-width: 980px) {
	.rcesd-site-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 28px;
	}

	.rcesd-site-footer__col--brand {
		grid-column: 1 / -1;
	}

	.rcesd-site-footer__col--links {
		padding-inline-start: 0;
		border-inline-start: 0;
	}

	.rcesd-site-footer__logo {
		height: 110px;
		max-width: 260px;
	}

	.rcesd-site-footer__top {
		left: 16px;
		right: auto;
		bottom: 20px;
	}
}

@media (max-width: 640px) {
	.rcesd-site-footer__main {
		padding: 36px 0 28px;
	}

	.rcesd-site-footer__grid {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.rcesd-site-footer__bar-inner {
		flex-direction: column;
		align-items: flex-start;
		padding-block: 16px 18px;
		padding-inline-start: 56px;
	}

	.rcesd-site-footer__logo {
		height: 96px;
		max-width: 220px;
	}

	.rcesd-site-footer__bg {
		width: 70%;
		opacity: 0.14;
	}
}
