/**
 * NOVA GLASS DESIGN SYSTEM - CORE & GLOBAL STYLES
 * Theme: Samodvizhec / Nova Glass
 * Version: 2026.1.0
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Syne:wght@700;800&display=swap&subset=cyrillic,cyrillic-ext,latin');

:root {
	/* Backgrounds & Ambient Fields */
	--ng-bg: #f0f4f9;
	--ng-bg-subtle: #f8fafc;
	--ng-bg-surface: #ffffff;
	--ng-bg-gradient: linear-gradient(135deg, #eef4fc 0%, #f8fafc 40%, #e8f0fe 75%, #f1f5f9 100%);
	--ng-bg-dark-card: #0f172a;

	/* Frosted Glass Layers */
	--ng-glass-bg: rgba(255, 255, 255, 0.78);
	--ng-glass-bg-hover: rgba(255, 255, 255, 0.92);
	--ng-glass-bg-subtle: rgba(255, 255, 255, 0.58);
	--ng-glass-border: rgba(255, 255, 255, 0.88);
	--ng-glass-border-subtle: rgba(255, 255, 255, 0.55);
	--ng-glass-blur: blur(24px) saturate(180%);
	--ng-glass-blur-sm: blur(14px) saturate(160%);

	/* Shadows & Specular Highlights */
	--ng-shadow-glass: 0 16px 40px -8px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
	--ng-shadow-glass-hover: 0 24px 50px -10px rgba(56, 189, 248, 0.20), 0 8px 20px -4px rgba(15, 23, 42, 0.05);
	--ng-shadow-inner: inset 0 1px 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 1px 0 rgba(255, 255, 255, 0.35);
	--ng-glow-cyan: 0 8px 30px rgba(56, 189, 248, 0.35);
	--ng-glow-blue: 0 8px 30px rgba(96, 165, 250, 0.30);

	/* Typography & Colors */
	--ng-text-primary: #0f172a;
	--ng-text-secondary: #334155;
	--ng-text-muted: #64748b;
	--ng-text-light: #94a3b8;
	--ng-text-white: #ffffff;

	/* Accents & Gradients */
	--ng-accent-cyan: #38bdf8;
	--ng-accent-blue: #60a5fa;
	--ng-accent-indigo: #818cf8;
	--ng-accent-teal: #2dd4bf;
	--ng-btn-grad: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
	--ng-btn-grad-hover: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);

	/* Corner Radii */
	--ng-radius-xs: 8px;
	--ng-radius-sm: 14px;
	--ng-radius-md: 20px;
	--ng-radius-lg: 28px;
	--ng-radius-xl: 36px;
	--ng-radius-pill: 9999px;

	/* Springs & Timing */
	--ng-spring: cubic-bezier(0.16, 1, 0.3, 1);
	--ng-ease: cubic-bezier(0.4, 0, 0.2, 1);

	/* Layout */
	--ng-container-max: 1240px;
	--ng-container-pad: clamp(16px, 4vw, 32px);
}

/* Reset & Base Setup */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	font-size: 16px;
	overflow-x: hidden !important;
	max-width: 100vw;
}

body {
	font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background: var(--ng-bg-gradient);
	color: var(--ng-text-secondary);
	line-height: 1.65;
	overflow-x: hidden !important;
	max-width: 100vw;
	min-height: 100vh;
	position: relative;
	letter-spacing: -0.01em;
}

/* Ambient Canvas Background */
.ng-ambient-canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: 0;
	opacity: 0.6;
}

.ng-ambient-glow {
	position: fixed;
	width: 600px;
	height: 600px;
	border-radius: 50%;
	filter: blur(120px);
	pointer-events: none;
	z-index: 0;
	opacity: 0.25;
	transition: transform 0.8s var(--ng-spring);
}
.ng-glow-1 {
	top: -150px;
	right: -100px;
	background: radial-gradient(circle, #38bdf8 0%, #60a5fa 70%, transparent 100%);
}
.ng-glow-2 {
	bottom: 10%;
	left: -150px;
	background: radial-gradient(circle, #818cf8 0%, #38bdf8 70%, transparent 100%);
}

/* Container */
.ng-container {
	width: 100%;
	max-width: var(--ng-container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(20px, 4vw, 40px);
	padding-right: clamp(20px, 4vw, 40px);
	position: relative;
	z-index: 1;
}

@media (max-width: 480px) {
	.ng-container {
		padding-left: 12px !important;
		padding-right: 12px !important;
	}
}

/* Common Section Wrapper & Headers */
.ng-section {
	padding: clamp(40px, 6vw, 80px) 0;
	position: relative;
}

.ng-section-header {
	text-align: center;
	max-width: 780px;
	margin: 0 auto clamp(32px, 5vw, 60px) auto;
}

.ng-section-tag {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ng-accent-cyan);
	margin-bottom: 12px;
}

.ng-section-title {
	font-size: clamp(2rem, 4vw, 3.2rem);
	font-weight: 800;
	line-height: 1.15;
	margin-bottom: 16px;
	color: var(--ng-text-primary);
}

.ng-section-subtitle {
	font-size: clamp(1rem, 1.8vw, 1.2rem);
	color: var(--ng-text-secondary);
	line-height: 1.6;
}

/* Typography Presets */
h1, h2, h3, h4, h5, h6 {
	color: var(--ng-text-primary);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

/* 3D Liquid Chrome Typography */
.ng-chrome-title {
	font-family: 'Syne', 'Inter', sans-serif;
	font-size: clamp(2rem, 7.5vw, 5.2rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.08;
	text-transform: uppercase;
	color: #0f172a;
	background: linear-gradient(180deg, #0f172a 0%, #1e293b 35%, #334155 70%, #0284c7 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 2px 10px rgba(56, 189, 248, 0.25));
	position: relative;
	display: inline-block;
	word-break: normal;
}

.ng-chrome-title-light {
	font-family: 'Syne', 'Inter', sans-serif;
	font-size: clamp(2.8rem, 7vw, 5.2rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.05;
	text-transform: uppercase;
	color: #ffffff;
	background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 40%, #93c5fd 80%, #60a5fa 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 4px 15px rgba(56, 189, 248, 0.4));
}

/* Frosted Glass Card Architecture */
.ng-glass-card {
	background: var(--ng-glass-bg);
	backdrop-filter: var(--ng-glass-blur);
	-webkit-backdrop-filter: var(--ng-glass-blur);
	border: 1px solid var(--ng-glass-border);
	border-radius: var(--ng-radius-lg);
	box-shadow: var(--ng-shadow-glass), var(--ng-shadow-inner);
	transition: transform 0.45s var(--ng-spring), box-shadow 0.45s var(--ng-spring), background 0.3s var(--ng-ease);
	position: relative;
	overflow: hidden;
	z-index: 1;
}

.ng-glass-card:hover {
	background: var(--ng-glass-bg-hover);
	box-shadow: var(--ng-shadow-glass-hover), var(--ng-shadow-inner);
}

/* Dynamic Specular Glare Effect */
.ng-glass-card::after {
	content: '';
	position: absolute;
	top: var(--glare-y, -100%);
	left: var(--glare-x, -100%);
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(56, 189, 248, 0.15) 35%, transparent 70%);
	transform: translate(-50%, -50%);
	border-radius: 50%;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 2;
}

.ng-glass-card:hover::after {
	opacity: 1;
}

/* Status Pill Badge */
.ng-pill-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 18px;
	background: var(--ng-glass-bg);
	backdrop-filter: var(--ng-glass-blur-sm);
	-webkit-backdrop-filter: var(--ng-glass-blur-sm);
	border: 1px solid var(--ng-glass-border);
	border-radius: var(--ng-radius-pill);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--ng-text-primary);
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04), var(--ng-shadow-inner);
}

.ng-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ng-accent-cyan);
	box-shadow: 0 0 10px var(--ng-accent-cyan);
	animation: ng-pulse 2s infinite ease-in-out;
}

@keyframes ng-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.3); opacity: 0.6; }
}

/* Global Buttons */
.ng-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 28px;
	border-radius: var(--ng-radius-pill);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: none;
	outline: none;
	max-width: 100%;
	box-sizing: border-box;
	text-align: center;
	transition: all 0.35s var(--ng-spring);
	position: relative;
	overflow: hidden;
}

@media (max-width: 640px) {
	.ng-btn {
		white-space: normal;
		padding: 13px 18px;
		font-size: 0.9rem;
		line-height: 1.35;
	}
	.ng-btn-lg {
		padding: 15px 20px;
		font-size: 0.95rem;
	}
}

.ng-btn-primary {
	background: var(--ng-btn-grad);
	color: var(--ng-text-white);
	box-shadow: 0 8px 24px rgba(56, 189, 248, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.ng-btn-primary:hover {
	background: var(--ng-btn-grad-hover);
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(56, 189, 248, 0.52), inset 0 1px 1px rgba(255, 255, 255, 0.6);
	color: #ffffff;
}

.ng-btn-glass {
	background: var(--ng-glass-bg);
	backdrop-filter: var(--ng-glass-blur-sm);
	-webkit-backdrop-filter: var(--ng-glass-blur-sm);
	border: 1px solid var(--ng-glass-border);
	color: var(--ng-text-primary);
	box-shadow: var(--ng-shadow-glass), var(--ng-shadow-inner);
}

.ng-btn-glass:hover {
	background: var(--ng-glass-bg-hover);
	transform: translateY(-2px);
	box-shadow: var(--ng-shadow-glass-hover), var(--ng-shadow-inner);
	color: var(--ng-accent-cyan);
}

.ng-btn-sm {
	padding: 9px 20px;
	font-size: 0.88rem;
}

.ng-btn-lg {
	padding: 16px 36px;
	font-size: 1.05rem;
}

/* ==========================================================================
   GLOBAL STICKY HEADER
   ========================================================================== */
.ng-header-sticky {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	transition: all 0.4s var(--ng-spring);
	padding: 18px 0;
}

.ng-header-sticky.is-scrolled {
	padding: 10px 0;
	background: rgba(240, 244, 249, 0.88);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.85);
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.ng-header-sticky .ng-container {
	padding-left: 20px;
	padding-right: 20px;
}

.ng-header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
}

.ng-header-left {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

@media (max-width: 1320px) {
	.ng-header-badge {
		display: none;
	}
}

.ng-logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
}

.ng-logo-img {
	height: 36px;
	width: auto;
	display: block;
}

/* Navigation Links */
.ng-nav-menu {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	background: var(--ng-glass-bg-subtle);
	backdrop-filter: var(--ng-glass-blur-sm);
	-webkit-backdrop-filter: var(--ng-glass-blur-sm);
	padding: 5px 12px;
	border-radius: var(--ng-radius-pill);
	border: 1px solid var(--ng-glass-border);
	box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03), var(--ng-shadow-inner);
}

.ng-nav-link {
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--ng-text-secondary);
	transition: all 0.25s ease;
	position: relative;
	padding: 4px 5px;
	white-space: nowrap;
	text-decoration: none;
}

.ng-nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0%;
	height: 2px;
	background: var(--ng-btn-grad);
	border-radius: 2px;
	transition: width 0.3s var(--ng-spring);
}

.ng-nav-link:hover {
	color: var(--ng-text-primary);
}

.ng-nav-link:hover::after {
	width: 100%;
}

.ng-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.ng-header-actions .ng-btn {
	white-space: nowrap;
	padding: 10px 20px;
	font-size: 0.88rem;
}

/* Mobile Hamburger */
.ng-burger-btn {
	display: none;
	background: var(--ng-glass-bg);
	border: 1px solid var(--ng-glass-border);
	width: 44px;
	height: 44px;
	border-radius: 12px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	padding: 0;
	box-shadow: var(--ng-shadow-glass);
}

.ng-burger-bar {
	width: 20px;
	height: 2px;
	background: var(--ng-text-primary);
	border-radius: 2px;
	transition: all 0.3s var(--ng-spring);
}

.ng-burger-btn.is-active .ng-burger-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.ng-burger-btn.is-active .ng-burger-bar:nth-child(2) {
	opacity: 0;
}
.ng-burger-btn.is-active .ng-burger-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Canvas & Ambient Glows */
.ng-ambient-canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
	max-width: 100vw;
}

.ng-ambient-glow {
	position: fixed;
	border-radius: 50%;
	filter: blur(120px);
	pointer-events: none;
	z-index: 0;
	max-width: 100vw;
	max-height: 100vh;
	overflow: hidden;
}

.ng-glow-1 {
	top: -100px;
	left: 50%;
	transform: translateX(-50%);
	width: min(500px, 90vw);
	height: min(500px, 90vw);
	background: radial-gradient(circle, var(--ng-glow-cyan) 0%, rgba(56, 189, 248, 0) 70%);
}

.ng-glow-2 {
	top: 40%;
	right: 0;
	width: min(400px, 70vw);
	height: min(400px, 70vw);
	background: radial-gradient(circle, var(--ng-glow-blue) 0%, rgba(96, 165, 250, 0) 70%);
}

@media (max-width: 768px) {
	.ng-ambient-glow {
		display: none !important;
	}
}

/* Mobile Navigation Drawer */
.ng-mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: min(320px, 85vw);
	max-width: 100vw;
	height: 100vh;
	background: rgba(240, 245, 252, 0.95);
	backdrop-filter: blur(28px) saturate(190%);
	-webkit-backdrop-filter: blur(28px) saturate(190%);
	border-left: 1px solid var(--ng-glass-border);
	box-shadow: -10px 0 40px rgba(15, 23, 42, 0.12);
	z-index: 1001;
	padding: 30px 24px;
	display: none;
	flex-direction: column;
	justify-content: space-between;
	transform: translateX(100%);
	transition: transform 0.4s var(--ng-spring);
	box-sizing: border-box;
	overflow-y: auto;
}

.ng-mobile-drawer.is-open {
	display: flex;
	transform: translateX(0);
}

.ng-mobile-menu {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 40px;
}

.ng-mobile-link {
	text-decoration: none;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--ng-text-primary);
	display: block;
	padding: 10px 0;
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
	transition: color 0.2s ease, transform 0.2s ease;
}

.ng-mobile-link:hover {
	color: var(--ng-accent-cyan);
	transform: translateX(6px);
}

.ng-drawer-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.35);
	backdrop-filter: blur(4px);
	z-index: 1000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}
.ng-drawer-backdrop.is-visible {
	opacity: 1;
	pointer-events: auto;
}

/* ==========================================================================
   GLOBAL FOOTER
   ========================================================================== */
.ng-footer {
	position: relative;
	z-index: 1;
	margin-top: 80px;
	padding-bottom: 30px;
}

.ng-footer-card {
	padding: clamp(32px, 5vw, 60px) clamp(24px, 4vw, 50px);
	border-radius: var(--ng-radius-xl);
}

.ng-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.5fr;
	gap: 40px;
	margin-bottom: 40px;
}

.ng-footer-brand p {
	margin-top: 14px;
	font-size: 0.95rem;
	color: var(--ng-text-secondary);
	max-width: 320px;
	line-height: 1.6;
}

.ng-footer-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ng-text-primary);
	margin-bottom: 18px;
	letter-spacing: -0.01em;
}

.ng-footer-links {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ng-footer-link {
	text-decoration: none;
	font-size: 0.92rem;
	color: var(--ng-text-secondary);
	transition: color 0.2s ease, transform 0.2s ease;
	display: inline-block;
}

.ng-footer-link:hover {
	color: var(--ng-accent-cyan);
	transform: translateX(4px);
}

.ng-footer-contact-item {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	font-size: 0.92rem;
	color: var(--ng-text-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.ng-footer-contact-item:hover {
	color: var(--ng-accent-cyan);
}

.ng-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 28px;
	border-top: 1px solid rgba(15, 23, 42, 0.08);
	font-size: 0.88rem;
	color: var(--ng-text-muted);
	flex-wrap: wrap;
	gap: 16px;
}

.ng-back-to-top {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--ng-glass-bg);
	border: 1px solid var(--ng-glass-border);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--ng-text-primary);
	transition: all 0.3s var(--ng-spring);
	box-shadow: var(--ng-shadow-glass);
}

.ng-back-to-top:hover {
	background: var(--ng-btn-grad);
	color: #ffffff;
	transform: translateY(-3px);
	box-shadow: var(--ng-glow-cyan);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1100px) {
	.ng-nav-menu, .ng-header-badge {
		display: none;
	}
	.ng-burger-btn {
		display: flex;
	}
	.ng-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 30px;
	}
}

@media (max-width: 640px) {
	.ng-header-sticky {
		padding: 10px 0;
	}
	.ng-logo-img {
		height: 28px;
	}
	.ng-header-actions .ng-btn {
		display: none;
	}
	.ng-footer-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.ng-footer-bottom {
		flex-direction: column;
		text-align: center;
		justify-content: center;
	}
}

/* ==========================================================================
   CONTEXTUAL TEXT LINKS
   ========================================================================== */
.ng-text-link {
	color: var(--ng-accent-cyan);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	text-decoration-color: rgba(56, 189, 248, 0.4);
	transition: all 0.25s ease;
	display: inline;
}

.ng-text-link:hover {
	color: #0284c7;
	text-decoration-color: var(--ng-accent-cyan);
	text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

