@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Share+Tech+Mono&display=swap');

:root {
    --primary: #ff0000;
    --dark: #050505;
    --panel: #111;
    --text: #ddd;
}

body {
    background-color: var(--dark);
    color: var(--text);
    font-family: 'Share Tech Mono', monospace; /* Техно-шрифт */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Эффект старого монитора */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Канвас для снега */
#snow-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

h1, h2, h3 {
    font-family: 'Creepster', cursive;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
    letter-spacing: 2px;
}

/* Header */
header {
    height: 85vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: inset 0 -100px 100px #050505;
}

/* Глитч эффект для заголовка */
.glitch {
    font-size: 6rem;
    position: relative;
    animation: glitch-anim 3s infinite;
}

@keyframes glitch-anim {
    0% { text-shadow: 2px 0 #fff, -2px 0 #ff0000; }
    2% { text-shadow: 2px 0 #fff, -2px 0 #ff0000; transform: skewX(10deg); }
    4% { text-shadow: 2px 0 #fff, -2px 0 #ff0000; transform: skewX(-10deg); }
    5% { text-shadow: none; transform: none; }
    100% { text-shadow: none; transform: none; }
}

/* Кнопки */
.btn {
    background: transparent;
    color: var(--primary);
    padding: 12px 25px;
    text-decoration: none;
    font-size: 1.1rem;
    border: 1px solid var(--primary);
    transition: 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary);
}

.btn-vt {
    border-color: #4CAF50;
    color: #4CAF50;
    font-size: 0.9rem;
    padding: 8px 15px;
}
.btn-vt:hover { background: #4CAF50; color: #000; box-shadow: 0 0 15px #4CAF50; }

/* Контейнер */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 5;
}

/* Версии */
.version-card {
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid #333;
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(5px);
    transition: 0.3s;
    position: relative;
}

.version-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.version-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Переключатель снега (внизу слева) */
.snow-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    background: rgba(0,0,0,0.7);
    border: 1px solid #333;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    transition: 0.3s;
}
.snow-toggle:hover { border-color: #fff; }
.switch {
    width: 30px; height: 16px; background: #333; border-radius: 10px; position: relative;
}
.switch.active { background: var(--primary); }
.switch::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 12px; height: 12px; background: #fff; border-radius: 50%;
    transition: 0.3s;
}
.switch.active::after { left: 16px; }

/* MODAL - УСТАНОВЩИК */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.installer-window {
    width: 500px;
    background: #0f0f0f;
    border: 2px solid var(--primary);
    box-shadow: 0 0 30px rgba(255,0,0,0.2);
    font-family: 'Share Tech Mono', monospace;
}
.installer-header {
    background: var(--primary);
    color: #000;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}
.installer-body {
    padding: 30px;
    text-align: center;
}
.progress-bar {
    width: 100%;
    height: 20px;
    background: #222;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}
.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: width 0.1s linear;
}
.console-text {
    text-align: left;
    color: #666;
    font-size: 0.8rem;
    margin-top: 10px;
    height: 60px;
    overflow: hidden;
}

footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid #222;
    color: #555;
    font-family: 'Creepster', cursive;
    position: relative;
    z-index: 5;
}