/**
 * TorrentMac: футер — колонки ссылок + copyright / locale.
 */

.footer.tm-footer {
	background: #121212;
	border-top: 4px solid #000;
	color: #fff;
	padding-top: 0;
}

.footer.tm-footer a {
	color: #b0b0b0;
	text-decoration: none;
	transition: color 0.15s ease;
}

.footer.tm-footer a:hover,
.footer.tm-footer a:focus-visible {
	color: #fff;
	outline: none;
}

.footer.tm-footer #inner-footer {
	padding: 0;
}

.footer.tm-footer #inner-footer::before {
	content: none !important;
	display: none !important;
}

.footer.tm-footer .wrap,
.footer.tm-footer .col940 {
	padding-left: 0 !important;
	padding-right: 0 !important;
	width: 100% !important;
	float: none !important;
	display: block !important;
}

.footer.tm-footer .attribution {
	background: transparent;
	text-align: left;
	padding: 0;
	margin: 0;
}

.tm-footer__inner {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 28px;
	box-sizing: border-box;
}

.tm-footer__grid {
	display: grid;
	grid-template-columns: minmax(240px, 1.65fr) repeat(4, minmax(90px, 0.72fr));
	column-gap: 1.35rem;
	row-gap: 1.5rem;
	padding: 2.5rem 0 2rem;
	box-sizing: border-box;
}

.tm-footer__brand {
	min-width: 0;
	padding-right: 3.25rem;
	margin-right: 45px;
	border-right: 1px solid #2e2e2e;
}

.tm-footer__brand-main {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.tm-footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: #fff !important;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}

.tm-footer__logo-icon {
	font-size: 1.45rem;
	color: #f0f0f0;
}

.tm-footer__logo-text {
	letter-spacing: 0.01em;
}

.footer.tm-footer .attribution .tm-footer__tagline {
	margin: 0;
	max-width: 17em;
	padding: 0.7em 0.85em 0.7em 0.75em;
	border-left: 2px solid #c22;
	border-radius: 0 6px 6px 0;
	background: linear-gradient(90deg, rgba(194, 34, 34, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
	color: #9a9a9a;
	font-size: 0.84rem;
	line-height: 1.55;
}

.tm-footer__tagline-lead {
	display: inline;
	color: #d6d6d6;
	font-weight: 600;
}

.tm-footer__col {
	min-width: 0;
}

.tm-footer__heading {
	margin: 0 0 0.55rem;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.3;
}

.tm-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tm-footer__links li {
	display: block;
	margin: 0;
	padding: 0;
}

.tm-footer__links li::after {
	content: none !important;
	display: none !important;
}

.tm-footer__links li + li {
	margin-top: 0.35rem;
}

.tm-footer__links a {
	display: inline-block;
	font-size: 0.86rem;
	line-height: 1.35;
}

.tm-footer__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	flex-wrap: wrap;
	padding: 1.15rem 0 1.65rem;
	border-top: 1px solid #2a2a2a;
	box-sizing: border-box;
}

.tm-footer__copy {
	margin: 0;
	color: #7f7f7f;
	font-size: 0.86rem;
	line-height: 1.4;
}

.tm-footer__locale .tm-locale-switcher-wrap,
.tm-footer__locale {
	margin: 0;
}

.tm-footer__locale .tm-locale-switcher--footer {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	color: #ccc;
	font-size: 0.9rem;
}

.tm-footer__locale .tm-locale-switcher--footer a {
	color: #aaa;
	padding: 0.22em 0.6em;
	border: 1px solid #3a3a3a;
	border-radius: 4px;
	background: #1a1a1a;
	line-height: 1.2;
}

.tm-footer__locale .tm-locale-switcher--footer a.is-active {
	color: #111;
	background: #fff;
	border-color: #fff;
}

.tm-footer__locale .tm-locale-switcher--footer .tm-locale-sep,
.tm-footer__locale .tm-locale-switcher--footer .fa-globe {
	display: none;
}

@media (max-width: 1024px) {
	.tm-footer__inner {
		padding: 0 22px;
	}

	.tm-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 0.85rem;
		row-gap: 0.85rem;
		padding: 2rem 0 1.5rem;
	}

	.tm-footer__brand {
		grid-column: 1 / -1;
		padding: 0 0 1.35rem;
		margin: 0;
		border-right: none;
		border-bottom: 1px solid #2a2a2a;
	}

	.tm-footer__tagline {
		max-width: none;
	}

	.tm-footer__col {
		background: #181818;
		border: 1px solid #2a2a2a;
		border-radius: 8px;
		padding: 1rem 1rem 0.9rem;
		box-sizing: border-box;
		text-align: center;
	}

	.tm-footer__heading {
		text-align: center;
	}

	.tm-footer__links {
		text-align: center;
	}
}

@media (max-width: 767px) {
	.tm-footer__inner {
		padding: 0 16px;
	}

	.tm-footer__grid {
		padding: 1.75rem 0 1.25rem;
	}

	.tm-footer__brand {
		padding-bottom: 1.15rem;
	}

	.tm-footer__logo {
		font-size: 1.2rem;
	}

	.tm-footer__brand-main {
		gap: 1.25rem;
	}

	.footer.tm-footer .attribution .tm-footer__tagline {
		padding: 0.75em 0.9em;
		border-left-width: 3px;
		font-size: 0.82rem;
		line-height: 1.5;
	}

	.tm-footer__heading {
		margin-bottom: 0.6rem;
		font-size: 0.68rem;
	}

	.tm-footer__links li + li {
		margin-top: 0;
	}

	.tm-footer__links a {
		display: block;
		padding: 0.42em 0;
		font-size: 0.92rem;
		line-height: 1.35;
	}

	.tm-footer__links a:active {
		color: #fff;
	}

	.tm-footer__bar {
		flex-direction: column;
		align-items: stretch;
		gap: 0.9rem;
		padding: 1.1rem 0 1.5rem;
	}

	.tm-footer__copy {
		text-align: center;
		font-size: 0.8rem;
		line-height: 1.45;
	}

	.tm-footer__locale {
		display: flex;
		justify-content: center;
	}

	.tm-footer__locale .tm-locale-switcher--footer {
		gap: 0.5em;
	}

	.tm-footer__locale .tm-locale-switcher--footer a {
		min-width: 3em;
		padding: 0.45em 0.85em;
		text-align: center;
		font-size: 0.92rem;
	}
}

@media (max-width: 400px) {
	.tm-footer__grid {
		grid-template-columns: 1fr;
	}

	.tm-footer__col {
		padding: 0.95rem 0.95rem 0.85rem;
	}
}
