/* Футер 16bitcs (статистика + нижняя полоса) */

.b16-footer {
	margin-top: auto;
	padding: 14px 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Статистика — сетка 5×2 */
.b16-footer-stats__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
}

.b16-stat-card {
	display: block;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.04);
	background: rgba(255, 255, 255, 0.02);
	overflow: hidden;
	text-decoration: none !important;
	color: inherit;
	transition: background 0.18s ease, border-color 0.18s ease;
}

.b16-stat-card:hover {
	transform: none;
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: none;
	background: rgba(255, 255, 255, 0.04);
	text-decoration: none;
	color: inherit;
}

.b16-stat-card__body {
	padding: 14px 16px;
	min-height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.b16-stat-card__text {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.b16-stat-card__label {
	font-size: 11px;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.45);
}

.b16-stat-card__value {
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	color: #7c83ff;
}

.b16-stat-card__icon {
	flex-shrink: 0;
	font-size: 26px;
	color: rgba(255, 255, 255, 0.22);
	transform: rotate(8deg);
}

.b16-stat-card__icon i {
	font-weight: 300;
}

/* Нижняя полоса */
.b16-footer-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	padding: 16px 18px;
	border-radius: 16px;
	background: #1a1a1f;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.b16-footer-bar__left {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 1 1 220px;
}

.b16-footer-bar__logo {
	flex-shrink: 0;
	text-decoration: none !important;
}

.b16-footer-bar__logo-img {
	display: block;
	width: 36px;
	height: 36px;
	object-fit: contain;
	object-position: center center;
	border-radius: 10px;
}

.b16-footer-bar__logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(135deg, #7c5cff 0%, #5f65dc 100%);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: -0.03em;
	box-shadow: 0 3px 12px rgba(124, 92, 255, 0.24);
}

.b16-footer-bar__copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 12px;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.45);
}

.b16-footer-bar__copy a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
}

.b16-footer-bar__top {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 18px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, #6d73ee 0%, #5f65dc 100%);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: filter 0.15s, transform 0.15s;
	flex-shrink: 0;
}

.b16-footer-bar__top:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.b16-footer-bar__top i {
	font-size: 16px;
}

.b16-footer-bar__links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 18px;
	flex: 1 1 280px;
	justify-content: flex-end;
}

.b16-footer-bar__links a {
	font-size: 12px;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.45);
	text-decoration: none;
	transition: color 0.15s;
}

.b16-footer-bar__links a:hover {
	color: #9aa0ff;
	text-decoration: none;
}

.b16-footer__gcms {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.35);
	text-align: center;
	padding-top: 4px;
}

.b16-footer__gcms #copyright {
	margin: 0;
}

.b16-footer__gcms #copyright a {
	color: rgba(255, 255, 255, 0.45);
	text-decoration: none;
}

.b16-footer__gcms #copyright a:hover {
	color: #9aa0ff;
}

@media (max-width: 1399.98px) {
	.b16-footer-stats__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991.98px) {
	.b16-footer {
		display: none !important;
	}

	.b16-footer-bar {
		display: none !important;
	}
}

@media (max-width: 575.98px) {
	.b16-footer-stats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.b16-stat-card__body {
		padding: 12px;
		min-height: 64px;
	}

	.b16-stat-card__value {
		font-size: 18px;
	}

	.b16-stat-card__icon {
		font-size: 22px;
	}
}
