:root {
	--bg: #180000;
	--bg-deep: #0f0000;
	--card: rgba(42, 15, 15, 0.82);
	--card-strong: rgba(55, 16, 16, 0.94);
	--text: #fff7f7;
	--muted: rgba(255, 239, 239, 0.72);
	--line: rgba(255, 255, 255, 0.08);
	--accent-1: #ff4d4d;
	--accent-2: #b30000;
	--accent-soft: rgba(255, 77, 77, 0.18);
	--shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
	--radius-xl: 28px;
	--radius-lg: 20px;
	--radius-md: 14px;
	--radius-sm: 10px;
	--container: 1120px;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

html,
body {
	height: 100%;
}

body {
	margin: 0;
	color: var(--text);
	background:
		radial-gradient(1100px 620px at 12% -6%, rgba(255, 97, 97, 0.22), transparent 58%),
		radial-gradient(820px 520px at 88% 4%, rgba(255, 255, 255, 0.08), transparent 44%),
		linear-gradient(180deg, #2a0202 0%, #1c0101 30%, var(--bg) 62%, var(--bg-deep) 100%);
	background-color: var(--bg-deep);
	background-repeat: no-repeat;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	position: relative;
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	background:
		radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.05), transparent 24%),
		radial-gradient(circle at 74% 12%, rgba(255, 77, 77, 0.08), transparent 18%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
	opacity: 1;
	pointer-events: none;
	z-index: -2;
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	background:
		linear-gradient(transparent 0, rgba(0, 0, 0, 0.05) 100%),
		repeating-linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.018) 0,
			rgba(255, 255, 255, 0.018) 1px,
			transparent 1px,
			transparent 120px
		);
	opacity: 0.18;
	pointer-events: none;
	z-index: -1;
}

body.page-loaded {
	opacity: 1;
	transform: none;
}

body.page-exit {
	opacity: 1;
	transform: none;
}


a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
}

button,
input,
textarea {
	font: inherit;
}

button {
	cursor: pointer;
}

.container {
	width: min(var(--container), calc(100% - 2rem));
	margin: 0 auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(18px);
	background: rgba(16, 0, 0, 0.72);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
	min-height: 84px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.brand-wrap {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	min-width: 0;
}

.brand-logo {
	width: 76px;
	height: auto;
	object-fit: contain;
	flex: 0 0 auto;
}

.brand {
	font-weight: 700;
	font-size: 1.02rem;
	white-space: nowrap;
}

.main-nav,
.site-nav {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
}

.main-nav a,
.site-nav a {
	color: var(--muted);
	padding: 0.7rem 0.95rem;
	border-radius: 999px;
	transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.site-nav a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
	transform: translateY(-1px);
}

.main-nav a.active,
.site-nav a.active {
	color: #fff;
	background: rgba(255, 77, 77, 0.14);
	box-shadow: inset 0 0 0 1px rgba(255, 77, 77, 0.2);
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
}

.hamburger {
	width: 18px;
	height: 2px;
	background: currentColor;
	display: block;
	position: relative;
}

.hamburger::before,
.hamburger::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: currentColor;
}

.hamburger::before {
	top: -6px;
}

.hamburger::after {
	top: 6px;
}

.hero {
	padding: 4rem 0 2rem;
	background: linear-gradient(180deg, rgba(255, 77, 77, 0.08), rgba(255, 77, 77, 0.02) 45%, transparent);
}

.hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
	gap: 2.5rem;
	align-items: center;
}

.hero-text {
	max-width: 640px;
}

.hero h1 {
	margin: 0 0 1rem;
	font-size: clamp(2.4rem, 4.6vw, 4.9rem);
	line-height: 0.96;
	letter-spacing: -0.055em;
	max-width: 12ch;
}

.hero p {
	margin: 0;
	max-width: 62ch;
	color: var(--muted);
	font-size: 1.05rem;
	line-height: 1.7;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 1.5rem;
}

.btn,
.button,
.btn-sm {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 1.15rem;
	border-radius: 999px;
	border: 1px solid transparent;
	transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn:hover,
.button:hover,
.btn-sm:hover {
	transform: translateY(-1px);
}

.btn-primary,
.button-primary {
	background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
	color: #fff;
	box-shadow: 0 16px 36px rgba(179, 0, 0, 0.26);
}

.btn-outline,
.button-secondary {
	background: rgba(255, 255, 255, 0.04);
	color: var(--text);
	border-color: rgba(255, 255, 255, 0.08);
}

.btn-sm {
	min-height: 40px;
	padding: 0 1rem;
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.08);
}

.hero-visual {
	position: relative;
	min-height: 360px;
}

.hero-visual::before {
	content: "";
	position: absolute;
	inset: 18px;
	border-radius: 34px;
	background:
		radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.16), transparent 30%),
		linear-gradient(180deg, rgba(255, 77, 77, 0.24), rgba(16, 0, 0, 0.18));
	filter: blur(0.2px);
}

.device-card {
	position: relative;
	z-index: 1;
	padding: 1rem;
	border-radius: 30px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: var(--shadow);
}

.device-screen {
	min-height: 320px;
	border-radius: 22px;
	overflow: hidden;
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 40%),
		linear-gradient(135deg, rgba(255, 77, 77, 0.62), rgba(79, 0, 0, 0.98));
}

.device-screen svg {
	width: 100%;
	height: 100%;
	display: block;
	opacity: 0.9;
}

.section-title {
	margin: 0;
	font-size: clamp(1.8rem, 3vw, 2.45rem);
	letter-spacing: -0.04em;
}

.section-sub {
	margin: 0.45rem 0 0;
	color: var(--muted);
	line-height: 1.65;
	max-width: 68ch;
}

.promo,
.products,
.contact,
.services {
	padding: 2.8rem 0;
}

.promo-grid,
.grid,
.services-grid {
	display: grid;
	gap: 1.25rem;
}

.promo-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 1.25rem;
}

.grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 1.25rem;
}

.services-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 1rem;
}

.card,
.service,
.contact-form,
.search-row {
	position: relative;
}

.card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	background: var(--card);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: transform 180ms ease, border-color 180ms ease;
}

.card:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 77, 77, 0.22);
}

.card-media,
.card-carousel {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.card-media {
	height: 180px;
}

.card h3 {
	margin: 1rem 1rem 0.4rem;
	font-size: 1.1rem;
	letter-spacing: -0.02em;
}

.card p {
	margin: 0;
	padding: 0 1rem 1rem;
	color: var(--muted);
	line-height: 1.65;
}

.card-actions {
	padding: 0 1rem 1rem;
	margin-top: auto;
}

.card-carousel {
	position: relative;
	height: 220px;
	overflow: hidden;
}

.card-track {
	display: flex;
	height: 100%;
	transition: transform 0.36s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.card-carousel .slide {
	flex: 0 0 100%;
	min-width: 100%;
	height: 100%;
	display: flex;
	align-items: flex-end;
	padding: 1rem;
	color: #fff;
	background-size: cover;
	background-position: center;
}

.slide-caption {
	background: rgba(0, 0, 0, 0.38);
	backdrop-filter: blur(6px);
	padding: 0.45rem 0.75rem;
	border-radius: 999px;
	font-weight: 600;
}

.card-prev,
.card-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	border-radius: 999px;
	border: 0;
	background: rgba(0, 0, 0, 0.42);
	color: #fff;
	display: grid;
	place-items: center;
	z-index: 2;
}

.card-prev {
	left: 10px;
}

.card-next {
	right: 10px;
}

.card-dots {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 12px;
	display: flex;
	gap: 6px;
	z-index: 2;
}

.card-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.18);
}

.card-dot.active {
	background: var(--accent-1);
}

.promo-card {
	min-height: 520px;
}

.promo-card .card-carousel {
	height: 420px;
}

.promo-card .slide-caption {
	font-size: 1.02rem;
}

.search-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin: 1rem 0 0;
}

.search-row .product-search {
	flex: 1 1 280px;
	min-width: 0;
	padding: 0.95rem 1rem;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
}

.search-row .product-search::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: rgba(255, 239, 239, 0.5);
}

.search-row .product-search:focus,
.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: rgba(255, 77, 77, 0.8);
	box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.15);
	background: rgba(0, 0, 0, 0.48);
}

.search-row .btn,
.search-row .button {
	min-width: 108px;
}

.section-head {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex-wrap: wrap;
}

.section-head .section-title {
	margin: 0;
}

.brand-wheel {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 120;
	width: 56px;
	height: 56px;
}

.brand-wheel-toggle {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 0;
	background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
	color: #fff;
	font-size: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}

.brand-items {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 0;
	height: 0;
	pointer-events: none;
}

.brand-item {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	display: grid;
	place-items: center;
	opacity: 0;
	transform: translate(-50%, -50%);
	transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.22s;
}

.brand-wheel.open .brand-item {
	opacity: 1;
	pointer-events: auto;
}

.section-head .brand-wheel {
	position: relative;
	right: auto;
	bottom: auto;
	margin-left: auto;
	width: auto;
	height: auto;
	display: flex;
	align-items: center;
}

.section-head .brand-items {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 0;
	height: 0;
}

.section-head .brand-item {
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.contact-form {
	max-width: 760px;
	display: grid;
	gap: 0.85rem;
	margin-top: 1.2rem;
}

.form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	border-radius: 14px;
	padding: 0.95rem 1rem;
}

.contact-form textarea {
	min-height: 160px;
	resize: vertical;
}

.form-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.muted {
	color: var(--muted);
}

.site-footer {
	margin-top: 3rem;
	padding: 1.3rem 0 1.8rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.foot-links a {
	color: var(--muted);
	margin-left: 1rem;
}

.foot-links a:hover {
	color: #fff;
}

body.nav-open {
	overflow: hidden;
}

@media (max-width: 980px) {
	.hero-inner {
		grid-template-columns: 1fr;
	}

	.hero-visual {
		min-height: 300px;
	}

	.grid,
	.promo-grid,
	.services-grid {
		grid-template-columns: 1fr;
	}

	.section-head .brand-wheel {
		margin-left: 0;
	}
}

@media (max-width: 700px) {
	.header-inner {
		min-height: 72px;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.main-nav,
	.site-nav {
		display: none;
		position: fixed;
		top: 72px;
		right: 12px;
		flex-direction: column;
		align-items: stretch;
		min-width: 220px;
		padding: 0.75rem;
		border-radius: 14px;
		background: rgba(27, 0, 0, 0.98);
		box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
		border: 1px solid rgba(255, 255, 255, 0.06);
	}

	.main-nav.open,
	.site-nav.open {
		display: flex;
	}

	.main-nav a,
	.site-nav a {
		padding: 0.75rem 0.95rem;
	}

	.hero {
		padding-top: 3rem;
	}

	.hero h1 {
		max-width: 100%;
	}

	.hero-visual {
		min-height: 240px;
	}

	.device-card {
		padding: 0.75rem;
		border-radius: 24px;
	}

	.device-screen {
		min-height: 220px;
	}

	.card-carousel {
		height: 190px;
	}

	.promo-card {
		min-height: auto;
	}

	.promo-card .card-carousel {
		height: 220px;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.form-actions {
		align-items: stretch;
	}

	.form-actions .btn,
	.form-actions .button {
		width: 100%;
	}

	.footer-inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.brand {
		font-size: 0.95rem;
	}

	.brand-wheel {
		right: 12px;
		bottom: 12px;
	}
}

@media (max-width: 480px) {
	.container {
		width: min(var(--container), calc(100% - 1.25rem));
	}

	.hero {
		padding-top: 2.4rem;
	}

	.hero h1 {
		font-size: clamp(2rem, 10vw, 3rem);
	}

	.hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hero-actions .btn,
	.hero-actions .button {
		width: 100%;
	}

	.hero-visual {
		display: none;
	}

	.search-row {
		flex-direction: column;
		align-items: stretch;
	}

	.search-row .btn,
	.search-row .button,
	.search-row .product-search {
		width: 100%;
	}

	.brand-logo {
		width: 60px;
	}
}


