:root {
	--m3-primary: #1565C0;
	--m3-on-primary: #FFFFFF;
	--m3-surface: #FFFFFF;
	--m3-background: #FFFFFF;
	--m3-outline: #E0E0E0;
	--m3-error: #D32F2F;
	--m3-text: #263238;
	--m3-muted: #455A64;
	--m3-radius: 12px;
	--m3-shadow: 0 4px 12px rgba(0,0,0,0.15);
	--m3-input-bg: #F9FAFB;
	--m3-input-border: #E1E5EA;
	--gradient-primary: linear-gradient(135deg, #6B46F5 0%, #FF4081 100%);
}
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
body {
	font-family: 'Roboto', sans-serif;
	background: var(--m3-background);
	color: var(--m3-text);
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;
}
footer {
	width: 100%;
}
.logo {
	display: block;
	margin: 20px auto;
}
.m3-container {
	width: 100%;
	max-width: 600px;
}
.m3-card {
	background: var(--m3-surface);
	border-radius: var(--m3-radius);
	box-shadow: var(--m3-shadow);
	padding: 20px;
	margin-bottom: 16px;
}
.m3-event-header {
	position: relative;
	border-radius: var(--m3-radius);
	overflow: hidden;
	box-shadow: var(--m3-shadow);
}
.m3-event-avatar-top {
	border-radius: var(--m3-radius);
	display: block;
	max-width: 100%;
}
.m3-event-info {
	background: rgba(255,255,255,0.85);
	backdrop-filter: blur(8px);
	padding: 16px 0;
	display: grid;
	grid-template-columns: 125px 1fr;
	gap: 12px;
	align-items: center;
}
.m3-event-avatar {
	width:125px;
	/* height: 64px; */
	border-radius: 12px;
	/* border: 2px solid var(--m3-surface); */
	object-fit: cover;
	box-shadow: var(--m3-shadow);
	background: var(--m3-surface);
}
.m3-event-details {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.m3-event-details h1 {
	font-size: 18px;
	font-weight: 500;
	color: var(--m3-text);
}
.m3-meta {
	font-size: 13px;
	color: var(--m3-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.m3-meta span {
	display: flex;
	align-items: center;
	gap: 4px;
}
.m3-age {
	background: var(--m3-error);
	color: #fff;
	font-size: 11px;
	font-weight: 500;
	padding: 2px 6px;
	border-radius: 6px;
}
.m3-vk-link {
	font-size: 13px;
	color: var(--m3-primary);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 4px;
}
.m3-tickets h2 {
	font-size: 17px;
	font-weight: 500;
	margin-bottom: 12px;
}
.m3-tiles {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.m3-type {
	display: flex;
	align-items: left;
	justify-content: space-between;
	padding: 10px 15px;
	border: 2px solid var(--m3-outline);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.m3-type-info {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
}
.m3-name {
	font-weight: 400;
	font-size: 14px;
	white-space: nowrap;
	max-width: 200px;
	text-wrap: auto;
	flex: 1;
}
.m3-price {
	color: var(--m3-primary);
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
}
.m3-quota {
	font-size: 12px;
	color: var(--m3-muted);
	white-space: nowrap;
}
.m3-qty {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: 12px;
	flex-shrink: 0;
}
.m3-btn {
	width: 28px;
	height: 28px;
	border: none;
	/* border: 1px solid var(--m3-outline); */
	border-radius: 50%;
	background: #fff;
	color: var(--m3-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	/* box-shadow: 0 1px 3px rgba(0,0,0,0.1); */
}
.m3-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.m3-btn:active {
	background-color: #EEE;
}
.m3-btn i {
	font-size: 16px;
}
.m3-order {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px;
	border: 2px solid var(--m3-outline);
	border-radius: 8px;
	background: #fff;
	/* box-shadow: 0 2px 6px rgba(0,0,0,0.1); */
}
.m3-order .m3-summary {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13px;
	align-items: center;
}
.m3-order .m3-summary div {
	white-space: nowrap;
}
.m3-order .m3-total {
	font-weight: 700;
}
@media (max-width:480px) {
	.m3-tiles,
	.m3-order {
		flex-direction: column;
		gap: 10px;
	}
	.m3-type {
		flex-direction: column;
		align-items: center;
		gap: 8px;
	}
	.m3-qty {
		margin-left: 0;
	}
	.m3-type-info {
		flex-direction: column;
		gap: 4px;
		flex-flow: wrap;
	}
	.m3-order {
		text-align: center;
	}
}
form h2 {
	font-size: 17px;
	font-weight: 500;
	margin-bottom: 12px;
}
.m3-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.m3-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.m3-field.full {
	grid-column: 1/3;
}
.m3-field label {
	font-size: 13px;
	font-weight: 500;
}
.m3-field input {
	padding: 15px;
	border: 2px solid var(--m3-input-border);
	border-radius: 6px;
	background: var(--m3-input-bg);
	font-size: 14px;
	transition: border-color .2s, box-shadow .2s;
}
.m3-field input:focus {
	outline: none;
	border-color: var(--m3-primary);
	/* box-shadow: 0 0 0 3px rgba(21,101,192,0.2); */
}
.m3-field input.error {
	border: 2px solid var(--m3-error);
}
.m3-field input.error + .m3-hint {
	color: var(--m3-error);
}
.m3-hint {
	font-size: 11px;
	color: var(--m3-muted);
}
.m3-warning {
	grid-column: 1/3;
	display: flex;
	align-items: center;
	gap: 10px;
	/* background: #FFF4E5; */
	border: 2px solid #E0A800;
	color: #E0A800;
	padding: 10px;
	border-radius: 6px;
	font-size: 13px;
}
.m3-warning i {
	font-size: 14px;
}
.m3-agree {
	grid-column: 1/3;
	font-size: 11px;
	color: var(--m3-muted);
	margin-top: 4px;
	margin-bottom: 12px;
}
.m3-pay {
	grid-column: 1/3;
	font-size: 15px;
	font-weight: 500;
	border: none;
	border-radius: 6px;
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: center;
}
.loading-icon {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
	.m3-field {
		grid-column: 1 / 3;
	}
}

.tour-block {
	display: flex;
	gap: 40px;
	align-items: center;
}
.tour-datetime {
	background: var(--gradient-primary);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.tour-datetime div {
	font-size: 12px;
	color: #777;
}
.tour-city div {
	font-size: 12px;
	color: #777;
}
.tour-city {}
.tour-button {
	background: var(--gradient-primary);
	color: white;
	border: none;
	/* width: 100%; */
	padding: 7px 20px;
	border-radius: 30px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: 'Montserrat', sans-serif;
	position: relative;
	overflow: hidden;
	margin-left: auto;
	user-select: none;
}
.tour-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(107, 70, 245, 0.4);
}
