/**
 * Баннер «Создавайте тактические схемы» (главная, только админы).
 * .home-tb-banner__inner — position:relative; доска — absolute, от верха до низа (object-fit: contain).
 */

.home-tb-banner {
	padding: 32px 0 12px;
}

.home-tb-banner__inner {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	box-shadow: 0 10px 48px rgba(12, 28, 24, 0.22);
	min-height: clamp(280px, 30vw, 360px);
	background: #061a18;
	box-sizing: border-box;
}

.home-tb-banner__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: url("../img/home-tactic-banner/bg.png");
	background-repeat: no-repeat;
	background-size: cover;
	background-position: 52% 42%;
	pointer-events: none;
}

.home-tb-banner__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		118deg,
		rgba(6, 22, 28, 0.55) 0%,
		rgba(6, 28, 24, 0.12) 42%,
		transparent 62%,
		rgba(4, 18, 16, 0.25) 100%
	);
	pointer-events: none;
}

/* Иллюстрация: по высоте баннера (top/bottom 0), без max-width */
.home-tb-banner__board {
	position: absolute;
	z-index: 1;
	top: 0;
	bottom: 0;
	right: clamp(0px, 1.5vw, 20px);
	left: auto;
	width: auto;
	max-height: 100%;
	height: auto;
	display: block;
	object-fit: contain;
	object-position: right center;
	pointer-events: none;
}

.home-tb-banner__layout {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(240px, 1fr) minmax(160px, 0.42fr);
	column-gap: clamp(16px, 3vw, 36px);
	align-items: center;
	padding: 40px clamp(24px, 4vw, 56px) 40px clamp(24px, 4vw, 56px);
	box-sizing: border-box;
	min-height: clamp(280px, 30vw, 360px);
}

.home-tb-banner__text {
	max-width: 460px;
	padding-right: 8px;
}

.home-tb-banner__aside {
	min-width: 0;
	min-height: 1px;
	pointer-events: none;
}

.home-tb-banner__title {
	margin: 0 0 18px;
	font-family: "Nexa Bold", sans-serif;
	font-weight: 700;
	font-size: clamp(26px, 3.2vw, 40px);
	line-height: 1.12;
	letter-spacing: 0.01em;
	color: #ffffff;
}

.home-tb-banner__title-line {
	display: block;
}

.home-tb-banner__copy {
	margin: 0 0 26px;
	font-family: "Nexa Book", sans-serif;
	font-weight: 300;
	font-size: clamp(13px, 1.35vw, 15px);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.94);
}

.home-tb-banner__cta-wrap {
	margin-top: 4px;
}

.home-tb-banner__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 32px;
	border-radius: 999px;
	background: #ffffff;
	font-family: "Nexa Bold", sans-serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	color: #079e6c;
	text-decoration: none;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
	transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.home-tb-banner__cta:hover {
	color: #067a56;
	background: #f4fffb;
}

.home-tb-banner__cta:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.home-tb-banner__inner {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.home-tb-banner__layout {
		order: 1;
		grid-template-columns: 1fr;
		min-height: 0;
		padding: 32px 24px 20px;
	}

	.home-tb-banner__aside {
		display: none;
	}

	.home-tb-banner__text {
		max-width: none;
		padding-right: 0;
	}

	.home-tb-banner__board {
		order: 2;
		position: relative;
		top: auto;
		bottom: auto;
		right: auto;
		max-width: min(100%, 420px);
		width: 100%;
		height: auto;
		max-height: 260px;
		margin: 0 auto;
		object-fit: contain;
		object-position: center center;
	}
}

@media (max-width: 780px) {
	.home-tb-banner {
		padding: 24px 0 8px;
	}

	.home-tb-banner__inner {
		border-radius: 16px;
	}

	.home-tb-banner__layout {
		padding: 28px 20px 16px;
	}

	.home-tb-banner__board {
		max-height: 220px;
		max-width: 100%;
	}
}
