/* /scope/ — панели разделов в стиле сайта (референс Bitrix, тёмный UI) */

.lx-scope-hub__intro {
	padding: 40px 0 12px;
}

.lx-scope-hub__intro .company-header h1 {
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 400;
	line-height: 1.2;
}

.lx-scope-hub__intro .company-header p {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 18px;
	line-height: 1.45;
}

.lx-scope-hub__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 28px;
}

.lx-scope-hub__nav-link {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.9);
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.lx-scope-hub__nav-link:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.28);
	color: #fff;
}

/* Панель раздела */
.lx-scope-panel.lx-home-bonuses {
	padding: 16px 0 20px;
	background: #000;
}

.lx-scope-panel.lx-home-bonuses:last-child {
	padding-bottom: 80px;
}

.lx-scope-panel__shell.lx-home-bonuses__shell {
	background: #0b0d10;
}

.lx-scope-panel__hero {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 28px 40px;
	align-items: center;
	margin-bottom: 36px;
}

.lx-scope-panel__badge {
	--lx-scope-accent: #1d49ff;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	padding: 8px 14px 8px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
}

.lx-scope-panel__badge-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: var(--lx-scope-accent);
	color: #fff;
}

.lx-scope-panel__badge-icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.lx-scope-panel__title {
	margin: 0 0 14px;
	color: #fff;
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 400;
	line-height: 1.15;
}

.lx-scope-panel__title a {
	color: inherit;
	text-decoration: none;
}

.lx-scope-panel__title a:hover {
	opacity: 0.92;
}

.lx-scope-panel__lead {
	margin: 0 0 24px;
	max-width: 34em;
	color: rgba(255, 255, 255, 0.72);
	font-size: 17px;
	line-height: 1.5;
}

.lx-scope-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.lx-scope-panel__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.lx-scope-panel__btn--solid {
	background: #fff;
	color: #0b0d10;
	border: 1px solid #fff;
}

.lx-scope-panel__btn--solid:hover {
	background: rgba(255, 255, 255, 0.92);
	color: #0b0d10;
}

.lx-scope-panel__btn--ghost {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.28);
}

.lx-scope-panel__btn--ghost:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.45);
	color: #fff;
}

.lx-scope-panel__hero-visual {
	position: relative;
	min-height: 240px;
}

.lx-scope-panel__visual-frame {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
	background: linear-gradient(160deg, #1d49ff 0%, #0b0d10 70%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	min-height: 280px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.lx-scope-panel__visual-frame img {
	display: block;
	width: 92%;
	max-width: 520px;
	height: auto;
	margin: 0 auto -8%;
	object-fit: contain;
	filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

/* Фичи — по 4 в ряд только на хабе */
.lx-scope-panel__features {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px 18px;
	margin-bottom: 28px;
}

.lx-scope-panel__feature {
	min-width: 0;
	padding-top: 14px;
}

.lx-scope-panel__feature-line {
	display: block;
	width: 100%;
	height: 2px;
	margin-bottom: 14px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.12);
}

.lx-scope-panel__feature.is-active .lx-scope-panel__feature-line,
.lx-scope-panel__feature:hover .lx-scope-panel__feature-line {
	background: #1d49ff;
}

.lx-scope-panel__feature-title {
	margin: 0 0 8px;
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.25;
}

.lx-scope-panel__feature-text {
	margin: 0;
	color: rgba(255, 255, 255, 0.65);
	font-size: 14px;
	line-height: 1.5;
}

/* Нижняя полоса иконок */
.lx-scope-panel__strip {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	padding: 18px 14px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.lx-scope-panel__strip-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 10px 8px;
	border-radius: 14px;
	text-decoration: none;
	color: #fff;
	transition: background 0.15s;
}

.lx-scope-panel__strip-item:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.lx-scope-panel__strip-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: #1d49ff;
	color: #fff;
}

.lx-scope-panel__strip-icon svg {
	width: 22px;
	height: 22px;
	display: block;
}

.lx-scope-panel__strip-label {
	text-align: center;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.25;
	color: rgba(255, 255, 255, 0.88);
}

.lx-scope-bonuses__empty {
	margin: 0;
	text-align: center;
	color: rgba(255, 255, 255, 0.65);
	font-size: 15px;
}

/* Страницы разделов /scope/messenger/ и т.п. — старая сетка карточек */
.lx-scope-bonuses__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
	position: relative;
	z-index: 1;
}

.lx-scope-bonuses--page.lx-home-bonuses {
	padding: 40px 0 80px;
}

.lx-scope-bonuses .company-header h1 {
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(28px, 3.5vw, 40px);
	font-weight: 400;
	line-height: 1.2;
}

.lx-scope-bonuses__back {
	position: relative;
	z-index: 1;
	margin: 28px 0 0;
	text-align: center;
}

.lx-scope-bonuses__back a {
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
	text-decoration: none;
}

.lx-scope-bonuses__back a:hover {
	color: #fff;
}

.lx-scope-bonuses .lx-scope-feature-card {
	min-height: 280px;
	height: 100%;
	padding-bottom: 28px;
	background-color: #1d49ff;
	background-image: url('/local/templates/luxe-crm/images/bonuses-bg.png');
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}

.lx-scope-bonuses .lx-scope-feature-card::after {
	background: #0b0d10;
	bottom: -16px;
	height: 32px;
	width: min(55%, 120px);
}

.lx-scope-bonuses .lx-scope-feature-card .lx-sol-card__top {
	padding-bottom: 8px;
	flex: 1 1 auto;
}

.lx-scope-bonuses .lx-scope-feature-card .lx-sol-card__title {
	font-size: clamp(18px, 1.4vw, 22px);
}

.lx-scope-bonuses .lx-scope-feature-card .lx-sol-card__desc {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 18px;
	flex: 1 1 auto;
}

.lx-scope-bonuses .lx-scope-feature-card .lx-sol-card__actions {
	max-width: none;
	margin-top: auto;
}

.lx-scope-bonuses .lx-scope-feature-card .lx-sol-card__btn {
	flex: 0 1 auto;
	min-width: 140px;
	text-align: center;
}

.lx-scope-bonuses .lx-scope-feature-card .lx-sol-card__btn--solid {
	background: #fff;
	color: #1d49ff;
}

.lx-scope-bonuses .lx-scope-feature-card .lx-sol-card__btn--solid:hover {
	background: rgba(255, 255, 255, 0.92);
	color: #1639d6;
}

@media (max-width: 1200px) {
	.lx-scope-panel__features {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1100px) {
	.lx-scope-panel__hero {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.lx-scope-panel__visual-frame {
		min-height: 220px;
	}

	.lx-scope-panel__features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lx-scope-panel__strip {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.lx-scope-bonuses__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.lx-scope-hub__intro {
		padding: 24px 0 8px;
	}

	.lx-scope-hub__nav {
		gap: 8px;
		margin-top: 20px;
	}

	.lx-scope-hub__nav-link {
		padding: 8px 12px;
		font-size: 13px;
	}

	.lx-scope-panel__features {
		grid-template-columns: 1fr;
	}

	.lx-scope-panel__strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lx-scope-panel__actions {
		flex-direction: column;
	}

	.lx-scope-panel__btn {
		width: 100%;
	}

	.lx-scope-bonuses__grid {
		grid-template-columns: 1fr;
		max-width: 420px;
		margin: 0 auto;
	}

	.lx-scope-bonuses .lx-scope-feature-card {
		min-height: 0;
	}
}
