.footer {
	padding-top: 40px;
	background-color: var(--ui-secondary);
}

.footer a {
	text-decoration: none;
}

.footer a:hover {
	color: var(--ui-state-hover);
}

.footer__logo-block {
	margin-bottom: 40px;
}

.footer__logo {
	display: block;
	margin-bottom: 10px;
}

.footer__contacts {
	display: block;
	margin-bottom: 40px;
}

.footer__contacts a,
.footer__address-street {
	display: block;
	color: var(--text-white);
}

.footer__phone,
.footer__address-city {
	margin-bottom: 8px;
}

.footer__address-city {
	display: block;
	color: var(--text-secondary);
}

.footer__bottom {
	padding: 8px 0;
	border-top: solid 1px #3C3A3A;
}

.footer__bottom a {
	color: var(--ui-text-secondary);
}

.footer__policies,
footer a {
	transition: color .4s;
}

.footer__menu-block {
	max-width: 960px;
}

.footer__menu-block a {
	color: var(--ui-text-white);
}

.footer__menu-block a:not(:last-child) {
	margin-bottom: 6px;
}

.footer__menu-top {
	margin-bottom: 8px;
	max-height: 320px;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	column-gap: 16px;
}

.footer__menu-top > div {
	width: calc((100% - 8px * 3)/3);
}

.footer__menu-bot {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	padding: 24px 0;
	border-top: solid 1px #3C3A3A;
}

.footer__socials .socials-block > a {
	color: var(--ui-primary);
}

.footer__socials .socials-block > a:hover {
	color: var(--ui-state-hover);
}

.footer__address .icon,
.footer__contacts .icon {
	margin-right: 8px;
	font-size: 20px;
	color: var(--ui-primary);
}

.footer__menu-head {
	margin-bottom: 8px;
}

.footer__menu-sub {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.footer__menu-sub-links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}


@media (max-width: 1199px) {
	.footer__menu-top {
		max-height: 660px;
	}

	.footer__menu-top > div {
		width: 50%;
	}

	.footer__menu-top > div {
		order: 2;
	}

	.footer__menu-top > div:first-child {
		order: -1;
	}

	.footer__menu-top > div:nth-child(3) {
		order: 1;
	}

	.footer__menu-top > div:last-child {
		order: 0;
	}
	
	.footer__menu-bot {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer__menu-bot > div:last-child {
		margin-top: 28px;
	}
}

@media (min-width: 576px) {
	.footer__menu-sub {
		height: auto !important;
	}
}

@media (max-width: 575px) {
	.footer__menu-head {
		display: flex;
		align-items: center;
		width: 100%;
		margin-bottom: 0;
		padding: 16px 0;
		border-bottom: solid 1px #3C3A3A;
	}

	.footer__menu-head a {
		font-size: 22px;
		font-weight: 600;
		line-height: 32px;
	}

	.footer__menu-head.collapsable::after {
		content: '\e94d';
		margin-left: auto;
		font-family: 'icomoon' !important;
		font-size: 32px;
		color: var(--ui-text-white);
	}

	.footer__menu-head.menu-sub-collapse.collapsable::after {
		content: '\e94b';
	}

	.footer__menu-sub {
		height: 0;
		overflow: hidden;

		margin-bottom: 0;
		transition: height .4s ease-in-out;
	}

	.footer__menu-sub-links {
		padding: 16px;
	}

	.footer__policies-block {
		display: block;
	}

	.footer__menu-top {
		max-height: none;
		gap: 0;
	}

	.footer__menu-top > div {
		width: 100%;
	}

	.footer__menu-bot {
		display: block;
		border-top: none;
	}

	.footer__menu-bot > div {
		margin-bottom: 32px;
	}

	.footer__menu-bot > div:last-child {
		margin-bottom: 8px;
	}
}