.tractor-preloader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: radial-gradient(circle at top, #ffffff 0%, #eff6ff 70%);
	transition: opacity 0.45s ease, visibility 0.45s ease;
	overflow: hidden;
}

.tractor-preloader.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.progress-preloader {
	width: min(90vw, 460px);
	padding: 28px 26px;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 18px 50px rgba(30, 64, 175, 0.12);
	border: 1px solid rgba(37, 99, 235, 0.14);
}

.progress-preloader__label {
	font-size: 18px;
	font-weight: 600;
	color: #1e40af;
	margin-bottom: 14px;
}

.progress-preloader__bar {
	height: 8px;
	background: rgba(37, 99, 235, 0.12);
	border-radius: 999px;
	overflow: hidden;
}

.progress-preloader__line {
	display: block;
	width: 38%;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
	animation: tractor-progress-move 1.45s ease-in-out infinite;
}

.tractor-preloader__scene {
	position: relative;
	width: min(92vw, 720px);
	height: 280px;
	border-radius: 24px;
	overflow: hidden;
	background: linear-gradient(180deg, #c9f2ff 0%, #e8fbff 55%, #bfdbfe 56%, #60a5fa 100%);
	box-shadow: 0 20px 60px rgba(30, 64, 175, 0.15);
	border: 1px solid rgba(37, 99, 235, 0.15);
}

.tractor-preloader__cloud {
	position: absolute;
	top: 34px;
	width: 70px;
	height: 24px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.08));
	animation: tractor-cloud-move 18s linear infinite;
}

.tractor-preloader__cloud::before,
.tractor-preloader__cloud::after {
	content: "";
	position: absolute;
	background: inherit;
	border-radius: 50%;
}

.tractor-preloader__cloud::before {
	width: 28px;
	height: 28px;
	left: 12px;
	top: -12px;
}

.tractor-preloader__cloud::after {
	width: 22px;
	height: 22px;
	right: 10px;
	top: -8px;
}

.tractor-preloader__cloud--one {
	left: -90px;
	animation-delay: 0s;
}

.tractor-preloader__cloud--two {
	left: -220px;
	top: 66px;
	transform: scale(0.9);
	animation-delay: -6s;
}

.tractor-preloader__cloud--three {
	left: -350px;
	top: 46px;
	transform: scale(1.1);
	animation-delay: -11s;
}

.tractor-preloader__field {
	position: absolute;
	inset: auto 0 0 0;
	height: 120px;
	background: repeating-linear-gradient(
		-8deg,
		rgba(59, 130, 246, 0.22) 0 14px,
		rgba(96, 165, 250, 0.1) 14px 28px
	);
	animation: tractor-field-scroll 1.2s linear infinite;
}

.tractor-preloader__wrap {
	position: absolute;
	left: -190px;
	bottom: 58px;
	animation: tractor-drive 3.8s linear infinite;
}

.tractor-preloader__tractor {
	position: relative;
	width: 170px;
	height: 92px;
	animation: tractor-bounce 0.65s ease-in-out infinite;
}

.tractor-preloader__body {
	position: absolute;
	left: 48px;
	bottom: 28px;
	width: 96px;
	height: 40px;
	background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
	border: 3px solid #1d4ed8;
	border-radius: 12px;
}

.tractor-preloader__cabin {
	position: absolute;
	left: 40px;
	bottom: 56px;
	width: 54px;
	height: 34px;
	background: linear-gradient(180deg, #93c5fd 0%, #60a5fa 100%);
	border: 3px solid #1d4ed8;
	border-radius: 10px 10px 4px 4px;
}

.tractor-preloader__window {
	position: absolute;
	left: 8px;
	top: 6px;
	width: 34px;
	height: 17px;
	border-radius: 4px;
	background: linear-gradient(180deg, #d9f7ff 0%, #b9ecff 100%);
	border: 2px solid #0f766e;
}

.tractor-preloader__pipe {
	position: absolute;
	left: 48px;
	bottom: 74px;
	width: 8px;
	height: 24px;
	background: #1f2937;
	border-radius: 4px;
}

.tractor-preloader__pipe::after {
	content: "";
	position: absolute;
	top: -4px;
	left: -2px;
	width: 12px;
	height: 5px;
	background: #111827;
	border-radius: 8px;
}

.tractor-preloader__smoke {
	position: absolute;
	left: 46px;
	bottom: 102px;
	width: 10px;
	height: 10px;
	background: rgba(209, 213, 219, 0.8);
	border-radius: 50%;
	animation: tractor-smoke-up 1.2s ease-out infinite;
}

.tractor-preloader__smoke::before,
.tractor-preloader__smoke::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: rgba(229, 231, 235, 0.65);
}

.tractor-preloader__smoke::before {
	width: 8px;
	height: 8px;
	left: -7px;
	top: -2px;
}

.tractor-preloader__smoke::after {
	width: 7px;
	height: 7px;
	left: 8px;
	top: 0;
}

.tractor-preloader__wheel {
	position: absolute;
	border-radius: 50%;
	background: #111827;
	border: 4px solid #374151;
	animation: tractor-spin 0.8s linear infinite;
}

.tractor-preloader__wheel::before {
	content: "";
	position: absolute;
	inset: 7px;
	border-radius: 50%;
	border: 3px dashed #9ca3af;
}

.tractor-preloader__wheel--big {
	left: 18px;
	bottom: 2px;
	width: 58px;
	height: 58px;
}

.tractor-preloader__wheel--small {
	left: 112px;
	bottom: 8px;
	width: 42px;
	height: 42px;
}

.tractor-preloader__text {
	margin-top: 24px;
	font-size: 24px;
	font-weight: 700;
	color: #1e40af;
	letter-spacing: 0.02em;
}

.tractor-preloader__dots span {
	animation: tractor-dots 1.4s ease-in-out infinite;
}

.tractor-preloader__dots span:nth-child(2) {
	animation-delay: 0.2s;
}

.tractor-preloader__dots span:nth-child(3) {
	animation-delay: 0.4s;
}

.tractor-preloader__progress {
	margin-top: 12px;
	width: min(92vw, 420px);
	height: 8px;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.12);
	overflow: hidden;
}

.tractor-preloader__progress > span {
	display: block;
	width: 40%;
	height: 100%;
	background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
	border-radius: inherit;
	animation: tractor-progress-move 1.7s ease-in-out infinite;
}

body.is-preloader-active {
	overflow: hidden;
}

@keyframes tractor-drive {
	0% { transform: translateX(0); }
	100% { transform: translateX(920px); }
}

@keyframes tractor-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

@keyframes tractor-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-3px); }
}

@keyframes tractor-smoke-up {
	0% { transform: translateY(0) scale(0.9); opacity: 0.75; }
	100% { transform: translateY(-22px) scale(1.35); opacity: 0; }
}

@keyframes tractor-cloud-move {
	0% { transform: translateX(0); }
	100% { transform: translateX(900px); }
}

@keyframes tractor-field-scroll {
	0% { background-position-x: 0; }
	100% { background-position-x: 64px; }
}

@keyframes tractor-dots {
	0%, 100% { opacity: 0.25; }
	50% { opacity: 1; }
}

@keyframes tractor-progress-move {
	0% { transform: translateX(-120%); }
	100% { transform: translateX(380%); }
}

@media (prefers-reduced-motion: reduce) {
	.tractor-preloader__cloud,
	.tractor-preloader__field,
	.tractor-preloader__wrap,
	.tractor-preloader__tractor,
	.tractor-preloader__smoke,
	.tractor-preloader__wheel,
	.tractor-preloader__dots span,
	.tractor-preloader__progress > span,
	.progress-preloader__line {
		animation: none !important;
	}
}
