:root {
	color-scheme: light;
	font-family: Arial, Helvetica, sans-serif;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-width: 320px;
	background: #fff;
	color: #000;
}

body.is-locked {
	height: 100vh;
	overflow: hidden;
}

main {
	width: 100%;
}

.hero-title {
	width: min(900px, calc(100% - 24px));
	margin: 30px auto 15px;
}

.hero-title img {
	display: block;
	width: 100%;
	height: auto;
}

.video-container {
	position: relative;
	z-index: 2;
	width: 100%;
}

.video-container.is-fullscreen {
	position: fixed;
	inset: 0;
	z-index: 10000;
	width: 100vw;
	height: 100vh;
	background: #000;
}

#video {
	display: block;
	width: 100%;
	max-width: 900px;
	height: auto;
	margin: 0 auto;
	background: #000;
	pointer-events: none;
}

.video-container.is-fullscreen #video {
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: contain;
}

.video-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	width: min(80%, 420px);
	padding: 0;
	transform: translate(-50%, -50%);
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.video-overlay span {
	display: block;
	padding: 12px 20px;
	border: 2px solid #fff;
	border-radius: 8px;
	background: rgba(0, 207, 47, .8);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
}

.video-close {
	display: none;
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 4;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(0, 0, 0, .5);
	cursor: pointer;
}

.video-close::before,
.video-close::after {
	position: absolute;
	top: 18px;
	left: 8px;
	width: 22px;
	height: 3px;
	content: "";
	background: #fff;
}

.video-close::before {
	transform: rotate(45deg);
}

.video-close::after {
	transform: rotate(-45deg);
}

.video-container.is-fullscreen .video-close {
	display: block;
}

#order-form {
	width: min(600px, calc(100% - 24px));
	margin: 0 auto;
}

.order-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 auto 24px;
	padding: 16px;
	border-radius: 8px;
	background-image: linear-gradient(90deg, #3580ed 50%, transparent 50%), linear-gradient(90deg, #3580ed 50%, transparent 50%), linear-gradient(0deg, #3580ed 50%, transparent 50%), linear-gradient(0deg, #3580ed 50%, transparent 50%);
	background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
	background-position: 0 0, 10px 100%, 0 10px, 100% 0;
	background-size: 10px 2px, 10px 2px, 2px 10px, 2px 10px;
	font-size: 17px;
	animation: marching-ants 400ms infinite linear;
}

@keyframes marching-ants {
	to {
		background-position: 10px 0, 0 100%, 0 0, 100% 10px;
	}
}

.product-image {
	width: min(250px, 75vw);
	margin: 4px 0 16px;
}

.product-image img {
	display: block;
	width: 100%;
	height: auto;
}

.price-block,
.timer-block {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.discount,
.timer-block p {
	margin: 0 0 8px;
	font-weight: 700;
}

.discount {
	font-size: 21px;
}

.prices {
	display: flex;
	align-items: center;
	gap: 10px;
}

.old-price {
	font-size: 20px;
	text-decoration: line-through;
}

.new-price {
	color: #f20;
	font-size: 34px;
	font-weight: 700;
}

.timer-block {
	margin: 24px 0;
}

.timer {
	display: flex;
	gap: 8px;
	color: red;
	font-size: 30px;
	font-variant-numeric: tabular-nums;
}

.field {
	display: flex;
	width: min(300px, 100%);
	flex-direction: column;
	align-items: center;
	margin-bottom: 16px;
}

.field label {
	margin-bottom: 4px;
	font-size: 16px;
}

.field input {
	width: 100%;
	min-height: 42px;
	padding: 8px 10px;
	border: 1px solid rgba(53, 120, 229, .4);
	border-radius: 2px;
	background: #fff;
	font: inherit;
}

.submit-button {
	display: flex;
	width: min(300px, 100%);
	min-height: 46px;
	align-items: center;
	justify-content: center;
	margin-bottom: 4px;
	padding: 10px 12px;
	border: 1px solid #3580ed;
	background: #3580ed;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: transform .2s ease;
}

.submit-button:hover,
.submit-button:focus-visible {
	transform: scale(.97);
}

[hidden] {
	display: none !important;
}

@media (max-width: 600px) {
	.hero-title {
		width: calc(100% - 16px);
		margin-top: 16px;
	}

	.video-overlay {
		width: min(86%, 340px);
	}

	.video-overlay span {
		padding: 9px 12px;
		font-size: 16px;
	}

	#order-form {
		width: calc(100% - 16px);
	}

	.order-card {
		padding: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.order-card {
		animation: none;
	}

	.submit-button {
		transition: none;
	}
}
