/**
 * Блок «Предзаказ билета» (TicketOffer).
 * Макет: Figma «сайт-4444», node 3:223.
 */

.ticket-offer {
	/* Цвета из макета */
	--to-bg-1: #0f0a2e;
	--to-bg-2: #1e1b4b;
	--to-bg-3: #312e81;
	--to-violet: #7c3aed;
	--to-violet-light: #a78bfa;
	--to-violet-lighter: #c4b5fd;
	--to-text: #ffffff;
	--to-text-soft: #c3ccd8;
	--to-text-card: #f1f5f9;
	--to-text-muted: #94a3b8;
	--to-text-old: #64748b;
	--to-green-1: #9dce42;
	--to-green-2: #74a813;

	position: relative;
	box-sizing: border-box;
	overflow: hidden;
	isolation: isolate;

	/* Full-bleed: блок выходит за пределы контейнера темы на всю ширину экрана. */
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);

	padding: 96px 24px;
	background: linear-gradient(
		144.93deg,
		var(--to-bg-1) 0%,
		var(--to-bg-2) 40%,
		var(--to-bg-3) 70%,
		var(--to-bg-2) 100%
	);
	color: var(--to-text);
	font-family: Arimo, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.ticket-offer *,
.ticket-offer *::before,
.ticket-offer *::after {
	box-sizing: border-box;
}

/**
 * 100vw включает ширину вертикального скроллбара, поэтому без этого правила
 * может появиться горизонтальная прокрутка. `clip` (в отличие от `hidden`)
 * не создаёт контекст прокрутки — position: sticky в шапке темы продолжает работать.
 */
html:has(.ticket-offer) {
	overflow-x: clip;
}

/* --- Декоративные световые пятна --- */

.ticket-offer__glow {
	position: absolute;
	z-index: -1;
	display: block;
	border-radius: 50%;
	pointer-events: none;
}

.ticket-offer__glow--violet {
	top: -180px;
	left: -180px;
	width: 600px;
	height: 600px;
	background: rgba(124, 58, 237, 0.18);
	filter: blur(120px);
}

/* Привязан к правому нижнему углу, чтобы оставаться на месте при любой ширине экрана. */
.ticket-offer__glow--cyan {
	right: -100px;
	bottom: -140px;
	width: 500px;
	height: 500px;
	background: rgba(0, 184, 219, 0.12);
	filter: blur(100px);
}

/* --- Контейнер --- */

.ticket-offer__inner {
	position: relative;
	max-width: 1024px;
	margin: 0 auto;
	text-align: center;
}

/* --- Верхняя плашка --- */

.ticket-offer__eyebrow {
	display: inline-block;
	margin: 0;
	padding: 5px 20px;
	border: 1px solid rgba(167, 139, 250, 0.3);
	border-radius: 999px;
	background: rgba(167, 139, 250, 0.15);
	color: var(--to-violet-light);
	font-family: "Golos Text", Arimo, "Helvetica Neue", Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

/* --- Заголовок --- */

.ticket-offer__title {
	margin: 16px 0 0;
	color: var(--to-text);
	font-size: clamp(28px, 4.4vw, 45px);
	font-weight: 700;
	line-height: 1.14;
	text-wrap: balance;
}

.ticket-offer__title-accent {
	display: block;
	color: var(--to-violet-lighter);
}

/* --- Вводный абзац --- */

.ticket-offer__lead {
	max-width: 694px;
	margin: 16px auto 0;
	color: var(--to-text-soft);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.625;
}

/* --- Карточка --- */

.ticket-offer__card {
	position: relative;
	margin-top: 48px;
	padding: 32px;
	border: 1px solid rgba(167, 139, 250, 0.25);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.06);
	box-shadow:
		0 0 60px 0 rgba(124, 58, 237, 0.2),
		inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
	text-align: left;
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
}

.ticket-offer__card-grid {
	display: flex;
	align-items: center;
	gap: 32px;
}

.ticket-offer__content {
	flex: 1 1 auto;
	min-width: 0;
}

/* --- Плашки в карточке --- */

.ticket-offer__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	margin-bottom: 8px;
}

.ticket-offer__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 244px;
	padding: 4px 12px;
	border-radius: 999px;
	color: var(--to-text);
	font-family: "Golos Text", Arimo, "Helvetica Neue", Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
}

.ticket-offer__badge--discount {
	justify-content: flex-start;
	background: linear-gradient(174.4deg, var(--to-green-1) 0%, var(--to-green-2) 100%);
	filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

.ticket-offer__badge--ticket {
	border: 1px solid var(--to-text);
	box-shadow: 0 0 16px 0 rgba(245, 158, 11, 0.5);
}

/* --- Тексты карточки --- */

.ticket-offer__card-title {
	margin: 0;
	color: var(--to-text-card);
	font-size: clamp(24px, 3vw, 35.625px);
	font-weight: 700;
	line-height: 1.5;
}

.ticket-offer__card-note {
	max-width: 480px;
	margin: 0;
	color: var(--to-text-muted);
	font-size: 16.647px;
	font-weight: 400;
	line-height: 1.428;
}

/* --- Цена --- */

.ticket-offer__price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0 20px;
	margin: 16px 0 24px;
	font-weight: 700;
}

.ticket-offer__price-old {
	color: var(--to-text-old);
	font-size: 26.759px;
	line-height: 1.333;
	text-decoration: line-through;
	text-decoration-skip-ink: none;
}

.ticket-offer__price-new {
	color: var(--to-text);
	font-size: clamp(40px, 5.5vw, 62.437px);
	line-height: 1;
}

/* --- Кнопка --- */

.ticket-offer__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 16px 32px;
	border-radius: 999px;
	background: linear-gradient(172.15deg, var(--to-violet) 0%, #9b5de5 100%);
	box-shadow:
		0 8px 32px 0 rgba(124, 58, 237, 0.6),
		0 0 0 1px rgba(167, 139, 250, 0.3);
	color: var(--to-text);
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ticket-offer__button:hover,
.ticket-offer__button:focus-visible {
	color: var(--to-text);
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow:
		0 12px 40px 0 rgba(124, 58, 237, 0.75),
		0 0 0 1px rgba(167, 139, 250, 0.5);
}

.ticket-offer__button:focus-visible {
	outline: 2px solid var(--to-violet-lighter);
	outline-offset: 3px;
}

/* --- Круг со скидкой --- */

.ticket-offer__circle {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 274px;
	height: 274px;
	padding: 24px;
	border: 2.854px solid rgba(167, 139, 250, 0.4);
	border-radius: 50%;
	background: linear-gradient(
		135deg,
		rgba(124, 58, 237, 0.25) 0%,
		rgba(104, 43, 203, 0.325) 50%,
		rgba(91, 33, 182, 0.4) 100%
	);
	box-shadow: 0 0 57px 0 rgba(124, 58, 237, 0.3);
	text-align: center;
}

.ticket-offer__circle-icon {
	display: block;
	width: 111.797px;
	height: 111.797px;
	margin-bottom: -14px;
	opacity: 0.6;
}

.ticket-offer__circle-icon svg {
	display: block;
	width: 111.797px;
	height: 111.797px;
}

.ticket-offer__circle-label {
	color: var(--to-violet-lighter);
	font-family: "Golos Text", Arimo, "Helvetica Neue", Arial, sans-serif;
	font-size: 24.881px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 2.4881px;
}

.ticket-offer__circle-value {
	color: #e2e8f0;
	font-size: 57.545px;
	font-weight: 700;
	line-height: 1.2;
}

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

@media (max-width: 900px) {
	.ticket-offer {
		padding: 64px 20px;
	}

	.ticket-offer__card-grid {
		flex-direction: column-reverse;
		align-items: center;
		gap: 24px;
	}

	.ticket-offer__content {
		width: 100%;
		text-align: center;
	}

	.ticket-offer__badges,
	.ticket-offer__price {
		justify-content: center;
	}

	.ticket-offer__badge--discount {
		justify-content: center;
	}

	.ticket-offer__card-note {
		margin-inline: auto;
	}
}

@media (max-width: 480px) {
	.ticket-offer {
		padding: 48px 16px;
	}

	.ticket-offer__card {
		padding: 24px 20px;
	}

	.ticket-offer__badge {
		min-width: 0;
		width: 100%;
	}

	.ticket-offer__button {
		width: 100%;
		padding: 16px 20px;
		font-size: 14px;
	}

	.ticket-offer__circle {
		width: 220px;
		height: 220px;
	}

	.ticket-offer__circle-icon,
	.ticket-offer__circle-icon svg {
		width: 88px;
		height: 88px;
	}

	.ticket-offer__circle-label {
		font-size: 20px;
		letter-spacing: 2px;
	}

	.ticket-offer__circle-value {
		font-size: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ticket-offer__button {
		transition: none;
	}

	.ticket-offer__button:hover,
	.ticket-offer__button:focus-visible {
		transform: none;
	}
}
