/* Подвал сайта (footer.php). Подключается из functions.php после style.css.
   В теме 1rem = 1px (html { font-size: 1px }). */

.footer_wrap {
	margin-top: 80rem;
	margin-bottom: 0;
	font-family: Geist, sans-serif;
}

.uk-footer {
	border-top: 1rem solid var(--color-dark-border);
	color: var(--color-white);
	font-size: 15rem;
	line-height: 1.5;
}

.uk-footer p {
	margin: 0;
}

/* .container несёт bootstrap-клирфикс ::before/::after — в grid/flex они становятся
   лишними ячейками и сдвигают колонки */
.uk-footer__inner::before,
.uk-footer__inner::after,
.uk-footer__bottom::before,
.uk-footer__bottom::after {
	content: none;
	display: none;
}

.uk-footer__inner {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 40rem;
	padding-top: 56rem;
	padding-bottom: 48rem;
}

.uk-footer .uk-footer__logo {
	font-family: "Noto serif", serif;
	font-size: 20rem;
	letter-spacing: 0.02em;
	color: var(--color-white);
	text-decoration: none;
}

.uk-footer .uk-footer__about {
	margin: 14rem 0 22rem;
	max-width: 300rem;
	color: #8f8b8a;
}

.uk-footer .uk-footer__tg {
	display: inline-flex;
	align-items: center;
	min-height: 44rem;
	padding: 0 18rem;
	border: 1rem solid #303030;
	border-radius: var(--border-radius);
	color: var(--color-white);
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.uk-footer .uk-footer__tg:hover,
.uk-footer .uk-footer__tg:focus-visible {
	border-color: var(--color-akcent);
	color: var(--color-akcent);
}

.uk-footer .uk-footer__title {
	margin-bottom: 12rem;
	font-family: "Noto serif", serif;
	font-size: 16rem;
	font-weight: 600;
	color: var(--color-white);
}

.uk-footer .uk-footer__list,
.uk-footer .uk-footer__legal {
	list-style: none;
	margin: 0;
	padding: 0;
}

.uk-footer .uk-footer__list li,
.uk-footer .uk-footer__legal li {
	margin: 0;
}

.uk-footer .uk-footer__list a {
	display: inline-block;
	padding: 5rem 0;
	color: #b5b1b0;
	text-decoration: none;
	transition: color 0.2s ease;
}

.uk-footer .uk-footer__list a:hover,
.uk-footer .uk-footer__list a:focus-visible,
.uk-footer .uk-footer__list .current-menu-item > a {
	color: var(--color-white);
}

.uk-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12rem 32rem;
	padding-top: 20rem;
	padding-bottom: 32rem;
	border-top: 1rem solid var(--color-dark-border);
	font-size: 13rem;
	color: #8f8b8a;
}

.uk-footer .uk-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 6rem 28rem;
}

.uk-footer .uk-footer__legal a {
	color: #8f8b8a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.uk-footer .uk-footer__legal a:hover,
.uk-footer .uk-footer__legal a:focus-visible {
	color: var(--color-white);
}

@media screen and (max-width: 1020px) {
	.uk-footer__inner {
		grid-template-columns: 1fr 1fr 1fr;
	}

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

@media screen and (max-width: 767px) {
	.footer_wrap {
		margin-top: 56rem;
	}

	.uk-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 32rem 20rem;
		padding-top: 40rem;
		padding-bottom: 32rem;
	}

	/* ссылки на телефоне не ниже 44px. Здесь именно px: на узких экранах тема
	   уменьшает html font-size (1rem < 1px), и 44rem дал бы ~33px */
	.uk-footer .uk-footer__list a,
	.uk-footer .uk-footer__legal a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 0;
	}

	.uk-footer .uk-footer__tg {
		min-height: 44px;
	}

	.uk-footer__bottom {
		flex-direction: column-reverse;
		align-items: flex-start;
		gap: 8rem;
	}

	.uk-footer .uk-footer__legal {
		flex-direction: column;
		gap: 0;
	}
}

/* сенсорные экраны любой ширины (планшеты): ссылки не ниже 44px */
@media (pointer: coarse) {
	.uk-footer .uk-footer__list a,
	.uk-footer .uk-footer__legal a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 0;
	}
}
