/* Ассенизатор Алматы — услуги откачки */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
	--bg: #0f1419;
	--surface: #1a222d;
	--surface-2: #243040;
	--border: #2e3d52;
	--text: #f0f4f8;
	--muted: #94a3b8;
	--accent: #f59e0b;
	--accent-dim: rgba(245, 158, 11, 0.12);
	--red: #dc2626;
	--red-hover: #b91c1c;
	--wa: #22c55e;
	--radius: 14px;
	--header: 62px;
	--mobile-bar: 64px;
	--font: 'Inter', system-ui, sans-serif;
	--max: 1040px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }

body {
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
	line-height: 1.55;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	padding-bottom: var(--mobile-bar);
}

body.intro-active { overflow: hidden; }

@media (min-width: 769px) {
	body { padding-bottom: 0; }
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }

.wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 16px;
}

/* ===== INTRO ANIMATION ===== */
.intro {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #0a0e14;
	transition: opacity 0.6s ease, visibility 0.6s ease;
}

.intro.is-done {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.intro__sky {
	position: absolute;
	inset: 0 0 45%;
	background: linear-gradient(180deg, #1a2744 0%, #0f1419 100%);
}

.intro__road {
	position: absolute;
	left: 0;
	right: 0;
	top: 55%;
	height: 45%;
	background: #1e293b;
	border-top: 3px solid #334155;
	overflow: hidden;
}

.intro__lane {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 4px;
	transform: translateY(-50%);
	background: repeating-linear-gradient(
		90deg,
		#fbbf24 0,
		#fbbf24 40px,
		transparent 40px,
		transparent 80px
	);
	animation: lane-scroll 0.4s linear infinite;
}

@keyframes lane-scroll {
	to { background-position: -80px 0; }
}

.intro__truck-wrap {
	position: absolute;
	top: 28%;
	left: 0;
	width: min(420px, 72vw);
	animation: truck-drive 3s cubic-bezier(0.35, 0.05, 0.25, 1) forwards;
	will-change: transform;
}

@keyframes truck-drive {
	0%   { transform: translateX(-120vw); }
	100% { transform: translateX(120vw); }
}

.intro__truck {
	width: 100%;
	border-radius: 8px;
	filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}

.intro__dust {
	position: absolute;
	right: -10px;
	bottom: 18%;
	width: 60px;
	height: 20px;
	background: radial-gradient(ellipse, rgba(148, 163, 184, 0.5) 0%, transparent 70%);
	animation: dust-puff 0.3s ease-out infinite alternate;
	opacity: 0;
}

@keyframes dust-puff {
	from { opacity: 0.3; transform: scaleX(0.8); }
	to   { opacity: 0.7; transform: scaleX(1.2); }
}

.intro__brand {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 0 20px;
	margin-top: -18vh;
	animation: brand-in 0.8s ease 0.4s both;
}

@keyframes brand-in {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

.intro__logo {
	display: block;
	font-size: clamp(1.75rem, 6vw, 2.75rem);
	font-weight: 800;
	letter-spacing: 0.06em;
	color: var(--accent);
	text-shadow: 0 2px 20px rgba(245, 158, 11, 0.35);
}

.intro__slogan {
	margin-top: 10px;
	font-size: clamp(0.85rem, 3vw, 1.05rem);
	font-weight: 600;
	color: var(--muted);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.intro__skip {
	position: absolute;
	bottom: 24px;
	right: 24px;
	z-index: 3;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--border);
	color: var(--muted);
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 13px;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s;
}

.intro__skip:hover { background: rgba(255, 255, 255, 0.14); color: var(--text); }

@media (prefers-reduced-motion: reduce) {
	.intro__truck-wrap { animation: none; left: 50%; transform: translateX(-50%); }
	.intro__lane { animation: none; }
	.intro__dust { display: none; }
}

/* Кнопки */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 20px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
	font-family: inherit;
}
.btn--call { background: var(--red); color: #fff; }
.btn--call:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--lg { padding: 14px 24px; font-size: 16px; }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--block { width: 100%; }

/* Шапка */
.header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header);
	background: rgba(15, 20, 25, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}

.header__inner {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 16px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font-size: 15px;
	color: var(--muted);
	flex-shrink: 0;
}
.brand img { border-radius: 8px; object-fit: cover; }
.brand b { color: var(--text); font-weight: 700; }

.nav {
	display: flex;
	gap: 20px;
	margin-left: auto;
}
.nav a {
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	color: var(--muted);
	transition: color 0.2s;
}
.nav a:hover { color: var(--text); }

.header__call { margin-left: auto; }

.burger {
	display: none;
	margin-left: auto;
	width: 36px;
	height: 36px;
	background: none;
	border: none;
	cursor: pointer;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	padding: 6px;
}
.burger span {
	display: block;
	height: 2px;
	background: var(--text);
	border-radius: 2px;
	transition: transform 0.2s, opacity 0.2s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
	.burger { display: flex; }
	.header__call { display: none; }
	.nav {
		position: fixed;
		top: var(--header);
		left: 0;
		right: 0;
		background: var(--surface);
		border-bottom: 1px solid var(--border);
		flex-direction: column;
		padding: 16px;
		gap: 12px;
		transform: translateY(-120%);
		opacity: 0;
		pointer-events: none;
		transition: transform 0.25s, opacity 0.25s;
	}
	.nav.open {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}
}

/* Hero */
.hero {
	padding: 28px 0 40px;
	background: radial-gradient(ellipse at 20% 0%, rgba(245, 158, 11, 0.08) 0%, transparent 55%);
}

.hero__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	align-items: start;
}

@media (max-width: 768px) {
	.hero__grid { grid-template-columns: 1fr; gap: 24px; }
	.hero { padding-top: 28px; }
}

.badge {
	display: inline-block;
	padding: 6px 12px;
	background: var(--accent-dim);
	color: var(--accent);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 14px;
}

.hero h1 {
	font-size: clamp(1.75rem, 5vw, 2.5rem);
	font-weight: 800;
	line-height: 1.15;
	margin-bottom: 16px;
}

.hero__checks {
	list-style: none;
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px 20px;
	margin-bottom: 18px;
	padding: 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

@media (min-width: 520px) {
	.hero__checks { grid-template-columns: 1fr 1fr; }
}

.hero__checks li {
	position: relative;
	padding-left: 24px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
}

.hero__checks li::before {
	content: '✅';
	position: absolute;
	left: 0;
	top: 0;
	font-size: 13px;
	line-height: 1.35;
}

.lead {
	color: var(--muted);
	font-size: 16px;
	margin-bottom: 20px;
	max-width: 520px;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hero__photo {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.hero__photo img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
}
.hero__zoom {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	border: none;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 13px;
	cursor: pointer;
	font-family: inherit;
	backdrop-filter: blur(4px);
}

/* Blocks */
.block { padding: 56px 0; }
.block--gray { background: var(--surface); }
.block--accent {
	background: linear-gradient(135deg, var(--surface) 0%, #1e2a3a 100%);
	border-block: 1px solid var(--border);
}

.block__title {
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 800;
	margin-bottom: 8px;
}
.block__sub {
	color: var(--muted);
	margin-bottom: 28px;
	font-size: 16px;
}

/* Gallery */
.gallery {
	display: grid;
	grid-template-columns: 1fr 120px;
	gap: 12px;
	margin-bottom: 32px;
}

@media (max-width: 640px) {
	.gallery { grid-template-columns: 1fr; }
	.gallery__thumbs {
		display: flex;
		overflow-x: auto;
		gap: 8px;
		padding-bottom: 4px;
	}
	.gallery__thumbs .thumb {
		flex: 0 0 72px;
		height: 54px;
	}
}

.gallery__main {
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	background: #000;
}
.gallery__main img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
	cursor: zoom-in;
}

.gallery__thumbs {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background: none;
	opacity: 0.55;
	transition: opacity 0.2s, border-color 0.2s;
}
.thumb.is-active,
.thumb:hover {
	opacity: 1;
	border-color: var(--accent);
}
.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 4/3;
}

/* Equipment */
.equipment {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 24px;
	align-items: start;
	padding: 24px;
	background: var(--bg);
	border-radius: var(--radius);
	border: 1px solid var(--border);
}

@media (max-width: 640px) {
	.equipment { grid-template-columns: 1fr; }
}

.equipment__text h3 {
	font-size: 18px;
	margin-bottom: 10px;
}
.equipment__text p {
	color: var(--muted);
	font-size: 15px;
	margin-bottom: 10px;
}

.equipment__facts {
	list-style: none;
	min-width: 220px;
}
.equipment__facts li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
	font-size: 14px;
}
.equipment__facts li:last-child { border-bottom: none; }
.equipment__facts span { color: var(--muted); }
.equipment__facts strong { font-weight: 600; text-align: right; }

/* Contact */
.contact {
	display: flex;
	justify-content: center;
}

.contact__card {
	padding: 28px;
	background: var(--surface);
	border-radius: var(--radius);
	border: 1px solid var(--border);
}

.contact__card--solo {
	max-width: 480px;
	width: 100%;
}

.seller {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 24px 0;
}
.seller img { border-radius: 12px; object-fit: cover; }
.seller strong { display: block; font-size: 17px; }
.seller span { font-size: 14px; color: var(--muted); }

.contact__buttons { display: flex; flex-direction: column; gap: 10px; }

/* Footer */
.footer {
	padding: 28px 0;
	border-top: 1px solid var(--border);
	text-align: center;
	font-size: 14px;
	color: var(--muted);
}
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__brand {
	margin-top: 6px;
	font-size: 13px;
	color: var(--accent);
	font-weight: 600;
}

/* Mobile bar */
.mobile-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 90;
	display: flex;
	height: var(--mobile-bar);
	background: var(--surface);
	border-top: 1px solid var(--border);
	padding: 8px;
	gap: 8px;
}

@media (min-width: 769px) {
	.mobile-bar { display: none; }
}

.mobile-bar__btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	border-radius: 10px;
	color: #fff;
}
.mobile-bar__btn--call { background: var(--red); }
.mobile-bar__btn--wa { background: var(--wa); }

/* Lightbox */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(0, 0, 0, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
	max-width: 100%;
	max-height: 90vh;
	border-radius: 8px;
	object-fit: contain;
}
.lightbox__x {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #fff;
	font-size: 28px;
	cursor: pointer;
	border-radius: 8px;
	line-height: 1;
}
