/* /sales/ — макет: слайдер + действующие + прошедшие */

.sales-hub {
	padding: 0 70px 48px;
}

.sales-hub__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
	grid-template-rows: 1fr 1fr;
	gap: 20px;
	align-items: stretch;
}

.sales-hub__hero {
	grid-row: 1 / 3;
	min-height: 440px;
}

.sales-hub__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 210px;
	padding: 22px 24px 18px;
	border-radius: 18px;
	background: #0b0d10;
    border-top: 1px solid #2828284a;
    border-bottom: 1px solid #2828284a;
}

.sales-hub__badge {
	display: inline-flex;
	align-self: flex-start;
	margin-bottom: 16px;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	background: #0e5c5c;
}

/* Hero slider */
.sales-hub-slider {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 440px;
	border-radius: 18px;
	overflow: hidden;
	background: #0b0d10;
}

.sales-hub-slider__slides {
	position: relative;
	flex: 1;
	min-height: 0;
}

.sales-hub-slider__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: 28px 30px 72px;
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.45s ease, visibility 0.45s ease;
	pointer-events: none;
}

.sales-hub-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 1;
}

.sales-hub-slider__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.sales-hub-slider__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8, 10, 14, 0.2) 0%, rgba(8, 10, 14, 0.92) 100%);
}

.sales-hub-slider__title {
	position: relative;
	z-index: 2;
	margin: 0;
	max-width: 90%;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.25;
	color: #fff;
}

.sales-hub-slider__footer {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 24px 22px;
}

.sales-hub-slider__progress {
	display: flex;
	flex: 1;
	gap: 6px;
	height: 3px;
}

.sales-hub-slider__progress-seg {
	flex: 1;
	height: 100%;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.25);
	transition: background 0.3s ease;
}

.sales-hub-slider__progress-seg.is-active {
	background: #fff;
}

.sales-hub-slider__nav {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

/* Panels */
.sales-hub-panel {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.sales-hub-panel__track {
	position: relative;
	flex: 1;
	min-height: 120px;
}

.sales-hub-active-card,
.sales-hub-past-card {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
	pointer-events: none;
}

.sales-hub-active-card.is-active,
.sales-hub-past-card.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 1;
}

.sales-hub-active-card__badge {
	display: inline-block;
	margin-bottom: 8px;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	background: var(--theme-base-color, #00ceff);
}

.sales-hub-active-card__period {
	margin-bottom: 8px;
}

.sales-hub-active-card__title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
}

.sales-hub-active-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.sales-hub-active-card__title a:hover {
	color: var(--theme-base-color, #00ceff);
}

.sales-hub-active-card__text {
	margin: 0;
	line-height: 1.5;
}

.sales-hub-past-card {
	display: flex;
	align-items: stretch;
	gap: 16px;
	text-decoration: none;
	color: inherit;
}

.sales-hub-past-card__text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
}

.sales-hub-past-card__title {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	transition: color 0.2s ease;
}

.sales-hub-past-card:hover .sales-hub-past-card__title {
	color: var(--theme-base-color, #00ceff);
}

.sales-hub-past-card__thumb {
	flex-shrink: 0;
	width: 120px;
	height: 88px;
	border-radius: 12px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #0b0d10;
}

.sales-hub-panel__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 14px;
}

.sales-hub-panel__link {
	font-size: 14px;
	font-weight: 500;
	color: var(--theme-base-color, #00ceff);
	text-decoration: none;
}

.sales-hub-panel__link:hover {
	text-decoration: underline;
}

.sales-hub-panel__nav {
	display: flex;
	gap: 8px;
}

.sales-hub-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.sales-hub-btn:hover {
	border-color: var(--theme-base-color, #00ceff);
	background: rgba(0, 206, 255, 0.08);
}

.sales-hub-btn--round {
	width: 36px;
	height: 36px;
	border-radius: 50%;
}

.sales-hub-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-height: 160px;
	border-radius: 18px;
	background: var(--card_bg_black, #13151a);
	border: 1px dashed rgba(255, 255, 255, 0.12);
}

.sales-hub-empty--hero {
	min-height: 440px;
}

.sales-hub-empty__text {
	margin: 0;
	font-size: 15px;
	color: #6e788a;
}

.sales-page-wrapper .sales-hub-full {
	padding: 0 70px 60px;
}

.sales-page-wrapper .sales-hub-full__title {
	margin: 0 0 24px;
	font-size: 22px;
	font-weight: 600;
}

@media (max-width: 1199px) {
	.sales-hub,
	.sales-page-wrapper .sales-hub-full {
		padding-left: 40px;
		padding-right: 40px;
	}

	.sales-hub__grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}

	.sales-hub__hero {
		grid-row: auto;
		min-height: 360px;
	}

	.sales-hub-slider {
		min-height: 360px;
	}

	.sales-hub-slider__title {
		font-size: 22px;
	}
}

@media (max-width: 767px) {
	.sales-hub,
	.sales-page-wrapper .sales-hub-full {
		padding-left: 16px;
		padding-right: 16px;
	}

	.sales-hub-slider__title {
		font-size: 18px;
	}

	.sales-hub-past-card__thumb {
		width: 96px;
		height: 72px;
	}
}
