.site-footer {
	position: relative;
	width: min(100%, var(--hf-site-width));
	max-width: var(--hf-site-width);
	margin: calc(var(--hf-section-end-space) + var(--hf-footer-wave-height)) auto 0;
	background: transparent;
}

.hf-site-footer {
	position: relative;
	background-color: var(--hf-brand-red);
	background-image: url("../images/about-wall-texture.webp");
	background-position: center;
	background-size: cover;
	color: #fff;
}

.hf-site-footer::before {
	position: absolute;
	right: 0;
	top: calc(1px - var(--hf-footer-wave-height));
	left: 0;
	height: var(--hf-footer-wave-height);
	background-color: var(--hf-brand-red);
	background-image: url("../images/about-wall-texture.webp");
	background-position: center top;
	background-size: cover;
	-webkit-mask: url("../images/header-wave-red.png") center bottom / 100% 100% no-repeat;
	mask: url("../images/header-wave-red.png") center bottom / 100% 100% no-repeat;
	content: "";
	transform: scaleY(-1);
	pointer-events: none;
}

.hf-site-footer__inner {
	display: grid;
	grid-template-areas: "logo address contact legal social";
	grid-template-columns: 110px minmax(150px, 1.15fr) minmax(170px, 1.3fr) auto auto;
	align-items: start;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	width: min(calc(100% - 3rem), 900px);
	margin-inline: auto;
	padding: 1.35rem 0 1.6rem;
	font-size: 0.76rem;
	line-height: 1.45;
}

.hf-site-footer a {
	color: #fff;
	text-decoration: none;
}

.hf-site-footer a:hover,
.hf-site-footer a:focus-visible {
	color: #fff;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.24em;
}

.hf-site-footer a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.hf-site-footer__logo {
	grid-area: logo;
	display: block;
	width: 100px;
	line-height: 0;
}

.hf-site-footer__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.hf-site-footer__address {
	grid-area: address;
	margin: 0;
	font-style: normal;
}

.hf-site-footer__address strong,
.hf-site-footer__address span,
.hf-site-footer__contact strong,
.hf-site-footer__contact span,
.hf-site-footer__contact a,
.hf-site-footer__legal a {
	display: block;
}

.hf-site-footer__contact {
	grid-area: contact;
}

.hf-site-footer__contact strong {
	margin-top: 0.25rem;
}

.hf-site-footer__legal {
	grid-area: legal;
}

.hf-site-footer__social {
	grid-area: social;
	display: flex;
	gap: 0.7rem;
}

.hf-site-footer__social a {
	display: block;
	width: 24px;
	height: 24px;
	line-height: 0;
}

.hf-site-footer__social svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.hf-site-footer__social rect,
.hf-site-footer__social circle:not(.hf-site-footer__social-dot) {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.hf-site-footer__social-dot {
	fill: currentColor;
}

@media (max-width: 768px) {
	.site-footer {
		margin-top: calc(var(--hf-section-end-space) + var(--hf-footer-wave-height));
	}

	.hf-site-footer {
		--hf-footer-wave-height: clamp(22px, 7vw, 34px);
	}

	.hf-site-footer__inner {
		grid-template-areas:
			"logo social"
			"address contact"
			"legal legal";
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.4rem 1.5rem;
		width: min(calc(100% - 3rem), 540px);
		padding-top: 1.5rem;
		font-size: 0.8rem;
	}

	.hf-site-footer__social {
		justify-content: flex-end;
	}

	.hf-site-footer__legal {
		display: flex;
		gap: 1.25rem;
	}
}

@media (max-width: 420px) {
	.hf-site-footer__inner {
		grid-template-areas:
			"logo social"
			"address address"
			"contact contact"
			"legal legal";
	}
}
