/* Site footer — four link groups + brand/contact block, payment + social bar,
   legal line. Mobile: brand block full width, link groups in two columns. */
.site-footer {
	background: #F5F5EF;
	color: #263728;
	border-top: 1px solid #E3E6DC;
	font-size: 14px;
	line-height: 20px;
}

.site-footer__inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 64px 60px 40px;
	display: grid;
	grid-template-columns: 1.6fr repeat(4, 1fr);
	gap: 40px;
	box-sizing: border-box;
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 300px;
}

.site-footer__logo {
	width: 36px;
	height: 36px;
	display: block;
}

.site-footer__tagline {
	margin: 0;
	font-size: 15px;
	line-height: 24px;
	font-weight: 400;
	color: #263728;
}

.site-footer__contact {
	font-style: normal;
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: #535B51;
}

.site-footer__contact a {
	color: #263728;
	text-decoration: none;
	font-weight: 500;
}

.site-footer__contact a:hover {
	color: #4F7A21;
}

.site-footer__head {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 20px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #263728;
}

.site-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.site-footer__links a {
	color: #535B51;
	text-decoration: none;
	font-weight: 400;
	display: inline-block;
	padding: 2px 0;
	transition: color .15s ease;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
	color: #4F7A21;
}

.site-footer__bar {
	max-width: 1320px;
	margin: 0 auto;
	padding: 24px 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	border-top: 1px solid #DCE0D6;
	box-sizing: border-box;
}

.site-footer__payments,
.site-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.site-footer__payments img {
	display: block;
	width: 38px;
	height: 24px;
	border-radius: 4px;
	background: #fff;
	filter: grayscale(1);
	opacity: .7;
}

.site-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 9999px;
	transition: background .15s ease;
}

.site-footer__social a:hover {
	background: #E6F4D7;
}

.site-footer__legal {
	border-top: 1px solid #DCE0D6;
	background: #EFF0E8;
}

.site-footer__legal p {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 60px;
	font-size: 13px;
	line-height: 20px;
	color: #6B7266;
	text-align: center;
}

.site-footer__legal p:first-child {
	padding-top: 16px;
}

.site-footer__legal p:last-child {
	padding-bottom: 16px;
}

@media (max-width: 1024px) {
	.site-footer__inner {
		grid-template-columns: repeat(4, 1fr);
		gap: 40px 24px;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
		max-width: 420px;
	}
}

@media (max-width: 768px) {
	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 32px 24px;
		padding: 40px 20px 24px;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}

	.site-footer__links a {
		padding: 6px 0;
	}

	.site-footer__bar {
		padding: 20px;
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.site-footer__legal p {
		padding-left: 20px;
		padding-right: 20px;
		text-align: left;
	}
}
