/* Футер (bottom.tpl и bottom.new_year.tpl): бренд + соцсети, колонки ссылок из меню движка, счётчики site_stats, нижняя строка.
   Префикс ftr-. Тот же визуальный язык, что у шапки (css/header.css). */

.ftr {
	--ftr-line: rgba(255, 255, 255, .07);
	--ftr-text: #c9c9d1;
	--ftr-muted: #8e8e98;
	--ftr-accent: #da9256;
	--ftr-accent-hi: #eda162;

	position: relative;
	margin-top: 40px;
	padding: 44px 0 0;
	border-top: 1px solid var(--ftr-line);
	background: linear-gradient(180deg, rgba(24, 24, 27, .92) 0%, #141416 100%);
	font-family: Montserrat, sans-serif;
}

/* тонкая акцентная линия сверху по центру */
.ftr::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 50%;
	width: 220px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, var(--ftr-accent), transparent);
	transform: translateX(-50%);
}

/* ширина как у основной сетки страницы (у .wapper .container — 1300) */
.ftr > .container {
	max-width: 1300px;
}

.ftr__top {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
	gap: 48px;
}

/* ---------- бренд ---------- */

.ftr__logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none !important;
}

.ftr__logo img {
	width: 52px;
	height: 52px;
}

.ftr__logo span {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.ftr__logo b {
	color: #fff;
	font-family: 'Exo 2', Montserrat, sans-serif;
	font-size: 22px;
	font-weight: 900;
	font-style: italic;
	letter-spacing: .5px;
}

.ftr__logo small {
	color: var(--ftr-muted);
	font-size: 12px;
	font-weight: 600;
}

.ftr__about {
	max-width: 420px;
	margin: 16px 0 20px;
	color: var(--ftr-muted);
	font-size: 13px;
	line-height: 1.65;
}

.ftr__social {
	display: flex;
	gap: 8px;
}

.ftr__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--ftr-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, .03);
	color: var(--ftr-text) !important;
	font-size: 20px;
	text-decoration: none !important;
	transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.ftr__social a:hover {
	border-color: rgba(218, 146, 86, .45);
	background: rgba(218, 146, 86, .1);
	color: var(--ftr-accent-hi) !important;
	transform: translateY(-2px);
}

/* ---------- колонки ссылок ---------- */

.ftr__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.ftr__col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 9px;
}

.ftr__title {
	margin-bottom: 6px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .8px;
	text-transform: uppercase;
}

.ftr__col a {
	color: var(--ftr-muted) !important;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none !important;
	transition: color .15s ease, transform .15s ease;
}

.ftr__col a:hover {
	color: #fff !important;
	transform: translateX(3px);
}

/* ---------- счётчики (модуль site_stats) ---------- */

.ftr .ftr__stats.bottom_stats {
	width: auto;
	margin: 36px 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.ftr__stats .stats_mini_block {
	border: 1px solid var(--ftr-line);
	border-radius: 14px;
	background: #1e1e21 !important; /* у блока инлайн-фон картинкой back_stats.png */
	transition: border-color .2s ease;
}

.ftr__stats a:hover .stats_mini_block {
	border-color: rgba(218, 146, 86, .35);
}

.ftr__stats .stats_icon {
	background: rgba(218, 146, 86, .14);
	color: var(--ftr-accent-hi);
}

/* ---------- нижняя строка ---------- */

.ftr__bottom {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 32px;
	padding: 18px 0 22px;
	border-top: 1px solid var(--ftr-line);
	color: var(--ftr-muted);
	font-size: 12.5px;
}

.ftr__copy a {
	color: var(--ftr-text) !important;
}

.ftr__age {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ftr__age b {
	padding: 3px 7px;
	border-radius: 7px;
	background: rgba(255, 96, 84, .16);
	color: #ff7a70;
	font-size: 11px;
	font-weight: 800;
}

.ftr__up {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	padding: 8px 14px;
	border: 1px solid var(--ftr-line);
	border-radius: 10px;
	background: rgba(255, 255, 255, .03);
	color: var(--ftr-text);
	font-family: Montserrat, sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	transition: color .2s ease, border-color .2s ease;
}

.ftr__up i {
	font-size: 17px;
}

.ftr__up:hover {
	border-color: rgba(218, 146, 86, .45);
	color: var(--ftr-accent-hi);
}

/* ---------- баннер про куки ---------- */

.ftr-cookie {
	position: fixed;
	left: 50%;
	bottom: 20px;
	z-index: 9998;
	align-items: center;
	gap: 14px;
	width: calc(100% - 24px);
	max-width: 520px;
	padding: 14px 16px;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 16px;
	background: #232327;
	box-shadow: 0 14px 40px rgba(0, 0, 0, .55);
	transform: translateX(-50%);
}

.ftr-cookie > i {
	color: var(--ftr-accent-hi, #eda162);
	font-size: 24px;
}

.ftr-cookie span {
	flex: 1;
	color: #a3a3ad;
	font-size: 12.5px;
	line-height: 1.5;
}

.ftr-cookie a {
	color: #fff !important;
	white-space: nowrap;
}

.ftr-cookie button {
	flex: 0 0 auto;
	height: 36px;
	padding: 0 18px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(23deg, #995d2b 0%, #da9256 55%, #eda162 100%);
	color: #fff;
	font-family: Montserrat, sans-serif;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

/* ---------- адаптив ---------- */

@media (max-width: 991px) {
	.ftr {
		margin-top: 28px;
		padding-top: 32px;
	}

	.ftr__top {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.ftr__bottom {
		flex-wrap: wrap;
		gap: 10px 16px;
	}

	/* над нижней панелью вкладок (css/header.css) */
	body:has(.hdr-tabs) .ftr-cookie {
		bottom: calc(80px + env(safe-area-inset-bottom));
	}
}

@media (max-width: 599px) {
	.ftr__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ftr__col:last-child {
		grid-column: 1 / -1;
	}

	.ftr__up {
		margin-left: 0;
	}
}
