:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-cyan: #00f2ff;
    --accent-magenta: #ff0099;
    --accent-purple: #bd00ff;
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 3D & BACKGROUND */
#canvas-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: #050505; /* Fallback */
}

.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAA5OTkAAAAAAAAAAABMTExERERmZmUZhPpMAAAAACHRSTlMAMwAqzMzMzsirfdoAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAA6SURBVDjLY2AYBcMIMIwCIwCjgI4owCigIwowCuiIAoyCgqIAA4OikiEDA0VJBgYGSQYGBklG8SgYBQAAqI0E8X3f7ioAAAAASUVORK5CYII=');
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

/* STICKY FOOTER LAYOUT */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

main { flex: 1; }

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

/* UTILS */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* HEADER */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 101; /* Чтобы точно кликалось поверх всего */
    position: relative;
}

/* Стили для ссылки внутри логотипа */
.logo a {
    text-decoration: none; /* Убираем подчеркивание */
    color: var(--text-main); /* Белый цвет */
    transition: opacity 0.3s;
    cursor: pointer;
}

.logo a:hover {
    opacity: 0.8; /* Легкий эффект при наведении */
}

.logo .dot {
    color: var(--accent-cyan); /* Цвет точки сохраняется */
}
.desktop-nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.95rem;
    transition: 0.3s;
}
.desktop-nav a:hover { color: white; }

/* HERO */
.hero { padding: 120px 0 80px; }

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

h1 {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.badge-new {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.stat-item { display: flex; flex-direction: column; }
.stat-num { font-size: 1.5rem; font-weight: bold; color: white; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }

/* QUIZ CARD */
.quiz-card { padding: 35px; min-height: 400px; position: relative; }
.quiz-step { display: none; animation: fadeIn 0.4s ease; }
.quiz-step.active { display: block; }

.options-grid { display: grid; gap: 15px; margin-top: 20px; }

.quiz-option {
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    color: white;
    text-align: left;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}
.quiz-option:hover {
    background: var(--accent-cyan);
    color: black;
    box-shadow: 0 0 15px rgba(0,242,255,0.4);
}

.input-group { margin-bottom: 15px; }
input {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    outline: none;
}
input:focus { border-color: var(--accent-magenta); }

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    font-size: 1.1rem;
    transition: transform 0.2s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(189,0,255,0.5); }
.btn-small {
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid white;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s;
}
.btn-small:hover { background: white; color: black; }

/* CALCULATOR */
.section { padding: 80px 0; }
.calculator-box { padding: 50px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 40px; }

.neon-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 5px;
    outline: none;
}
.neon-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--accent-magenta);
    cursor: pointer;
    box-shadow: 0 0 15px var(--accent-magenta);
}

.result-number { font-size: 3rem; font-weight: 800; color: var(--accent-cyan); margin: 10px 0; font-family: var(--font-heading); }

/* REVIEWS & ABOUT */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.glow-img { width: 100%; border-radius: 20px; box-shadow: 0 0 30px rgba(0,242,255,0.1); }
.check-list { list-style: none; margin-top: 20px; }
.check-list li { margin-bottom: 10px; padding-left: 25px; position: relative; }
.check-list li:before { content: '✓'; color: var(--accent-cyan); position: absolute; left: 0; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.review-card { padding: 30px; }
.stars { color: #FFD700; margin-bottom: 15px; }
.author { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.avatar { width: 40px; height: 40px; background: var(--accent-purple); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }

/* FOOTER */
footer {
    border-top: 1px solid var(--glass-border);
    background: #020202;
    padding-top: 50px;
    margin-top: auto; /* Sticky trick */
}
.footer-content {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
}
.footer-col.links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.footer-col.links a:hover { color: var(--accent-cyan); }
.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.8rem;
    color: #555;
}

/* SUCCESS ANIMATION */
.success-content { text-align: center; padding: 40px 0; }
.checkmark-circle { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; background: rgba(0,242,255,0.2); display: flex; align-items: center; justify-content: center; }
.checkmark-svg { width: 40px; height: 40px; stroke: var(--accent-cyan); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; animation: draw 0.6s forwards; }

@keyframes draw { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 100 0; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* MOBILE */
@media (max-width: 768px) {
    .hero-grid, .split-layout, .calc-grid, .footer-content { grid-template-columns: 1fr; }
    h1 { font-size: 2.8rem; }
    .nav-flex { flex-direction: column; gap: 15px; }
    .desktop-nav a { margin: 0 10px; }
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 20px; left: 20px; right: 20px;
    background: rgba(20,20,20,0.95);
    border: 1px solid var(--accent-cyan);
    padding: 15px 25px;
    border-radius: 12px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 999;
    display: none; /* Hide by default, JS shows it */
}
#cookie-banner a { color: var(--accent-cyan); }