:root {
    --bg-deep: #050505;
    --bg-surface: #0a0b0e;
    --bg-glass: rgba(20, 21, 25, 0.6);
    --bg-glass-hover: rgba(30, 32, 40, 0.8);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    
    /* Neon Colors */
    --neon-amber: #ffaa00;
    --neon-cyan: #00f3ff;
    
    /* Glows & Shadows */
    --glow-amber: 0 0 15px rgba(255, 170, 0, 0.4);
    --glow-cyan: 0 0 15px rgba(0, 243, 255, 0.3);
    --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.9);
    --border-highlight: rgba(255, 255, 255, 0.08);
    
    --font-head: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    background: radial-gradient(circle at 50% -20%, #1f2129 0%, var(--bg-deep) 80%);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Ambient Background Light */
.ambient-light {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(255, 170, 0, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(0, 243, 255, 0.03) 0%, transparent 40%);
    pointer-events: none; z-index: -1;
}

/* --- HEADER --- */
.site-header {
    position: sticky; top: 20px;
    width: 90%; max-width: 1400px;
    margin: 0 auto;
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-highlight);
    border-radius: 20px;
    padding: 15px 30px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 1000;
}

.brand {
    font-family: var(--font-head);
    font-size: 1.8rem; font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
    display: flex; align-items: center; gap: 12px;
}

.brand-dot {
    width: 10px; height: 10px; background: var(--neon-amber);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--neon-amber);
    animation: pulse 2s infinite;
}

.main-nav ul {
    list-style: none; display: flex; gap: 5px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    font-family: var(--font-head);
    letter-spacing: 1px;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.02);
    text-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.nav-link.active::after {
    content: ''; position: absolute; bottom: 0; left: 20%; width: 60%; height: 2px;
    background: var(--neon-amber);
    box-shadow: 0 0 10px var(--neon-amber);
}

/* --- LAYOUT --- */
.container {
    max-width: 1200px; margin: 80px auto; padding: 0 20px;
}

.page-title-section {
    text-align: center; margin-bottom: 60px;
}

.big-title {
    font-family: var(--font-head);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 15px;
    background: linear-gradient(180deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(255,255,255,0.15));
}

.subtitle {
    color: var(--text-secondary); font-size: 1.2rem;
}

/* --- VOLUMETRIC CARDS --- */
.grid-3 {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px;
}

.glass-card {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Верхний блик для объема */
    border-bottom: 1px solid rgba(0, 0, 0, 0.5); /* Нижняя тень */
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: transform 0.1s; /* Для JS эффекта */
    transform-style: preserve-3d;
}

/* Эффект свечения внутри карточки */
.glass-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(255,170,0,0.05), transparent 40%);
    pointer-events: none;
}

.card-content {
    transform: translateZ(20px); /* Выдавливаем контент вперед */
}

.card-icon {
    font-size: 2.5rem; margin-bottom: 20px;
    color: var(--neon-amber);
    filter: drop-shadow(0 0 10px rgba(255,170,0,0.3));
}

.card-header {
    font-family: var(--font-head);
    font-size: 1.6rem; color: #fff; margin-bottom: 10px;
}

.card-text {
    color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 25px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--font-head);
    letter-spacing: 1px;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
}

.btn-glow {
    background: var(--neon-amber);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.2);
}

.btn-glow:hover {
    background: #ffb833;
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.5);
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}

.btn-glass:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

/* --- UTILS --- */
.status-badge {
    position: absolute; top: 20px; right: 20px;
    padding: 5px 12px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.75rem; font-weight: bold;
    color: #00ff88;
    box-shadow: 0 0 10px rgba(0,255,136,0.1);
}

code {
    display: block;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 6px;
    font-family: monospace;
    color: var(--neon-cyan);
    border: 1px dashed rgba(255,255,255,0.1);
    margin: 15px 0;
    word-break: break-all;
}

@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

/* Mobile */
@media (max-width: 900px) {
    .site-header { flex-direction: column; gap: 15px; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; }
    .big-title { font-size: 2.5rem; }
}
/* --- NEW FEATURES V2.5 --- */

/* 1. Tactical Grid Background Overlay */
.tactical-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none; z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

/* 2. Glitch Text Effect */
.glitch {
    position: relative;
    color: #fff;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-deep);
}
.glitch::before {
    left: 2px; text-shadow: -1px 0 var(--neon-red);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px; text-shadow: -1px 0 var(--neon-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(12px, 9999px, 5px, 0); }
    5% { clip: rect(65px, 9999px, 80px, 0); }
    10% { clip: rect(0px, 0px, 0px, 0); }
    100% { clip: rect(0px, 0px, 0px, 0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(0px, 0px, 0px, 0); }
    5% { clip: rect(10px, 9999px, 60px, 0); }
    10% { clip: rect(85px, 9999px, 140px, 0); }
    100% { clip: rect(0px, 0px, 0px, 0); }
}

/* 3. SEO Terminal Block */
.terminal-window {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    padding: 0;
    margin-top: 60px;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    overflow: hidden;
}
.terminal-header {
    background: #1a1a1a; padding: 5px 15px;
    display: flex; gap: 8px; border-bottom: 1px solid #333;
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; background: #555; }
.term-dot.red { background: #ff5555; }
.term-dot.yellow { background: #ffbd2e; }
.term-dot.green { background: #27c93f; }

.terminal-body {
    padding: 20px; color: #00ff88; font-size: 0.85rem; line-height: 1.5;
    max-height: 300px; overflow-y: auto;
}
.cmd-line::before { content: "> "; color: var(--neon-amber); }
.highlight { color: var(--neon-cyan); }
.dim { color: #555; }

/* 4. Stats Row */
.stats-row {
    display: flex; justify-content: space-around; flex-wrap: wrap;
    margin: 40px 0; gap: 20px;
}
.stat-item { text-align: center; }
.stat-num {
    font-family: var(--font-head); font-size: 2.5rem; font-weight: bold;
    color: #fff; text-shadow: 0 0 15px rgba(255,255,255,0.3);
}
.stat-label { color: var(--text-secondary); font-size: 0.9rem; letter-spacing: 1px; }
