:root {
	--color-bg: #000000;
	--color-text: #ffffff;
	--color-accent: #FFD000;
	--color-accent-hover: #E6BF00;
	--color-surface: #0f0f0f;
	--color-muted: #9aa0a6;
}

body {
	font-family: Arial, sans-serif;
	text-align: center;
	background: var(--color-bg);
	color: var(--color-text);
	margin: 0;
	padding: 0;
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; }

.header {
	display: flex;
	justify-content: center; /* Центрируем пункты меню */
	align-items: center;
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-accent);
	padding: 15px 20px;
	position: sticky;
	top: 0;
	width: 100%;
position: sticky; top: 0; z-index: 9999;}

.logo {
	height: 40px;
	position: absolute;
	left: 20px; /* Логотип остается слева */
}

nav {
	display: flex;
	gap: 20px;
}

nav a {
	color: var(--color-text);
	text-decoration: none;
color: var(--color-text);}

nav a:hover {
	color: var(--color-accent);
}

main {
	padding: 50px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* Burger toggle hidden by default (desktop) */
.menu-toggle { display: none; }

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

.section {
	padding: 40px 0;
}

.hero {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	align-items: center;
	gap: 32px;
}

@media (max-width: 900px) {
	.hero {
		grid-template-columns: 1fr;
		justify-items: center;
	}
	/* Center carousel block under text on mobile */
	.carousel { margin-left: 0; }
}

.hero-text h1 {
	font-size: 42px;
	line-height: 1.15;
	margin: 0 0 12px 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.hero-text { text-align: left; }

.hero-text p.lead {
	font-size: 18px;
	color: var(--color-text);
	opacity: 0.9;
	margin: 0 0 8px 0;
}

.cta-group {
	display: flex;
	gap: 12px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.cta-group { justify-content: flex-start; }

.btn {
	display: inline-block;
	padding: 12px 18px;
	border-radius: 8px;
	font-weight: bold;
	text-decoration: none;
	transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
	background: var(--color-accent);
	color: #000000;
}

.btn-primary:hover { background: var(--color-accent-hover); }

.btn-secondary {
	background: transparent;
	color: var(--color-accent);
	outline: 1px solid var(--color-accent);
}

.btn-secondary:hover {
	color: #000000;
	background: var(--color-accent);
}

/* На десктопе располагаем карусель справа от текста */
@media (min-width: 768px) {
	.content {
		display: flex;
		align-items: center;
		justify-content: center;
		max-width: 900px;
		margin: 0 auto;
		text-align: left;
	}

	.text {
		flex: 1;
	}

	.carousel {
		flex: 1;
		margin-left: 20px;
	}
}

.download {
	background: #FFD000;
	color: #000000;
	padding: 10px 20px;
	border: none;
	cursor: pointer;
	font-size: 18px;
}

.download:hover {
	background: #E6BF00;
}

.carousel {
	position: relative;
	width: 100%;
	max-width: 360px;
	margin: 20px auto 0;
}

.carousel img {
	width: 100%;
	border-radius: 10px;
	border: 2px solid var(--color-accent);
}

.prev, .next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 208, 0, 0.85);
	color: #000000;
	border: none;
	padding: 10px;
	cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }


@media (max-width: 768px) {
	.carousel, .slider, .carousel-container {
		margin-left: auto;
		margin-right: auto;
		display: block;
		text-align: center;
	}

	/* Prevent logo overlapping menu */
	.logo { position: static; left: auto; height: 36px; }

	/* Show burger, hide nav by default */
	.menu-toggle {
		display: inline-block;
		position: absolute;
		right: 20px;
		top: 50%;
		transform: translateY(-50%);
		background: transparent;
		color: var(--color-text);
		border: 1px solid var(--color-accent);
		padding: 6px 10px;
		border-radius: 8px;
		font-size: 18px;
		line-height: 1;
	}

	.header nav { display: none; }
	body.menu-open .header nav {
		display: block;
		position: absolute;
		top: 60px;
		left: 0;
		right: 0;
		background: var(--color-surface);
		border-top: 1px solid var(--color-accent);
		padding: 12px 20px;
	}

	body.menu-open .header nav a {
		display: block;
		padding: 10px 0;
	}

	/* Center hero text and CTAs on mobile */
	.hero-text { text-align: center; padding-left: 0; padding-right: 0; }
	.cta-group { justify-content: center; }
}

h1, h2, h3 {
	color: var(--color-accent);
}

.features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

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

.feature-card {
	background: var(--color-surface);
	border: 1px solid rgba(255, 208, 0, 0.3);
	border-radius: 12px;
	padding: 18px;
	text-align: left;
	transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.feature-card h3 { margin: 0 0 8px 0; }
.feature-card p { margin: 0; color: var(--color-text); opacity: 0.9; }

.footer {
	border-top: 1px solid var(--color-accent);
	margin-top: 40px;
	padding: 20px 0;
	color: var(--color-muted);
}
