footer {
	background: #1e1e1e;
	color: white;
}

footer a {
	text-decoration: none;
}

.footer-section {
	max-width: 1112px;
	padding: 0 16px;
	margin: 0 auto;
	padding: 68px 16px;
	display: flex;
	gap: 20px;
}

.footer-logo {
	filter: invert(1) brightness(100);
	max-width: 280px;
}

.left {
	width: 25%;
	display: flex;
	flex-direction: column;
	gap: 40px;
}
.socials {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: -20px;
}

footer a {
	color: white;
}

.phone-link {
	display: block;
}

.phone-link svg {
	vertical-align: middle;
	margin-right: 6px;
}

.phone-link:not(:last-child) {
	margin-bottom: 20px;
}

.footer-link-block h2 {
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 32px;
}

.footer-link:not(:last-child) {
	margin-bottom: 20px;
	display: block;
}

.right {
	flex-grow: 1;
	display: flex;
	justify-content: flex-end;
	gap: 68px;
}

.footer-section:first-child {
	border-bottom: 1px solid #f6f6f6;
}

.footer-block {
	display: flex;
	flex-direction: row;
	gap: 20px;
	flex-grow: 1;
}

.footer-contacts {
	display: flex;
	gap: 20px;
}

.footer-contact {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 6px;
	text-align: center;
	font-size: 12px;
	transition: transform 200ms;
}

.footer-contact:hover {
	transform: scale(1.1);
}

.footer-block h2 {
	white-space: nowrap;
	color: rgba(255, 255, 255, 0.6);
}

.email-form {
	max-width: 1080px;
	margin: 0 auto;
	padding-bottom: 68px;
}

.email-form > input {
	display: block;
	width: 100%;
	background: transparent;
	border: 1px solid white;
	padding: 20px;
	color: white;
	font-size: 16px;
	font-family: inherit;
	transition: background-color 200ms;
}

.email-form > input:focus {
	background-color: rgba(255, 255, 255, 0.1);
	outline: 0;
}

.mobilefooter-only {
	display: none;
}

@media screen and (max-width: 1000px) {
	.footer-section {
		flex-direction: column;
	}

	.left {
		width: auto;
		align-items: center;
		text-align: center;
		margin-bottom: 40px;
	}

	.right {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.phones {
		display: flex;
		gap: 20px;
	}

	.footer-block {
		flex-direction: column;
		align-items: center;
	}

	.email-form.desktop {
		display: none;
	}

	.email-form.mobilefooter-only {
		display: block;
		max-width: none;
		padding-bottom: 32px;
		margin: 0;
		width: 100%;
	}

	.footer-contact {
		flex: 1 1 33.3%;
	}
}
