
    :root {
        --primary: #00f0ff; /* Кибер-голубой */
        --danger: #ff003c; /* Неоновый красный (для тревоги реактора) */
        --bg-dark: #02050a;
        --radius: 12px;
        /* Мягкие цвета для текста */
        --text-main: #d1d8e0;
        --text-muted: #a5b1bd;
    }
    
    * { box-sizing: border-box; margin: 0; padding: 0; }
    
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    body {
        background: radial-gradient(circle at 50% 0%, #061121 0%, #000000 78%);
        background-color: var(--bg-dark);
        font-family: 'Montserrat', sans-serif;
        color: var(--text-main);
        min-height: 100vh;
    }
    
    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }
    
    /* ===== ОПТИМИЗИРОВАННЫЙ ФОН ===== */
    .bg-grad {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
        background: radial-gradient(circle at 20% 30%, rgba(0,240,255,0.06), transparent 50%),
                    radial-gradient(circle at 80% 60%, rgba(0,100,255,0.06), transparent 60%);
    }
    
    /* Легкий Canvas-снег */
    #particles-js {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
    }
    
    .scanlines {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none;
        background: linear-gradient(rgba(0,0,0,0) 50%, rgba(0, 240, 255, 0.03) 50%);
        background-size: 100% 4px;
    }
    
    /* ===== LAYOUT ===== */
    .main-container {
        position: relative; z-index: 10; max-width: 1200px; margin: 0 auto;
        padding: 40px 20px 120px 20px; display: flex; flex-direction: column;
        overflow: hidden;
    }

    /* ===== HERO GRID ===== */
    .hero-grid { 
        display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
        margin-bottom: 70px; width: 100%; 
    }
    
    .hero-text { display: flex; flex-direction: column; justify-content: flex-start; }
    .hero-media { display: flex; flex-direction: column; gap: 20px; width: 100%; overflow: hidden; }
    
    .hero-subtitle { 
        color: var(--primary); font-size: 0.9rem; font-weight: 700; letter-spacing: 2px;
        text-transform: uppercase; margin-bottom: 15px; font-family: 'Share Tech Mono', monospace; 
    }
    
    /* ===== МАССИВНЫЙ ЗАГОЛОВОК (ВОССТАНОВЛЕННЫЙ) ===== */
    .quest-title {
        font-family: 'Russo One', sans-serif; 
        text-transform: uppercase; line-height: 1.05;
        margin: 0 0 25px 0; text-align: left;
    }
    
    .line-cyan {
        font-size: clamp(32px, 4vw, 50px); color: var(--text-main);
        text-shadow: 0 0 15px rgba(0, 240, 255, 0.5); display: block;
    }
    
    .line-red {
        font-size: clamp(38px, 5.5vw, 75px);
        background: linear-gradient(to bottom, #00f0ff, #0088ff);
        -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 0 20px rgba(0, 150, 255, 0.5)); 
        display: block; margin-top: 5px;
    }
    
    /* badges */
    .specs-row { display: flex; gap: 10px; margin-bottom: 25px; flex-wrap: wrap; }
    .spec-badge {
        background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(0,240,255,0.2); color: var(--text-main);
        padding: 10px 14px; border-radius: 6px; font-family: 'Share Tech Mono', monospace; font-size: 0.85rem;
    }
    .spec-badge strong { color: var(--primary); font-weight: 700; }
    
    /* MATTE GLASS blocks */
    .frost {
        background: rgba(4, 8, 16, 0.6); border: 1px solid rgba(0, 240, 255, 0.15); border-radius: var(--radius);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.5), inset 0 0 20px rgba(0, 240, 255, 0.05);
    }
    
    .description { padding: 25px; font-size: 1rem; line-height: 1.7; color: var(--text-muted); }
    .description b { color: var(--danger); font-weight: 600; }
    
    /* ===== КНОПКА ТРЕЙЛЕРА ===== */
    .btn-trailer {
        display: flex; justify-content: center; align-items: center;
        width: 100%; padding: 18px 30px; margin-top: 20px;
        background: rgba(4, 8, 16, 0.6);
        border: 1px solid rgba(0, 150, 255, 0.4);
        border-radius: var(--radius);
        cursor: pointer; transition: 0.3s ease;
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        text-decoration: none;
    }
    
    .btn-trailer-text {
        font-family: 'Russo One', sans-serif;
        font-size: 1.4rem;
        text-transform: uppercase; letter-spacing: 2px;
        background: linear-gradient(to bottom, #00f0ff, #0088ff);
        -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        text-shadow: 0 0 25px rgba(0, 150, 255, 0.4);
    }
    
    .btn-trailer:hover {
        border-color: #00f0ff;
        box-shadow: 0 0 30px rgba(0, 150, 255, 0.4), inset 0 0 15px rgba(0, 240, 255, 0.1);
        transform: translateY(-2px);
    }
    
    .btn-desktop { display: flex; }
    .btn-mobile { display: none; }
    
    /* ===== 4-ROW HUD PANEL ===== */
    .hud-container {
        display: flex; flex-direction: column; gap: 10px; padding: 15px; width: 100%; max-width: 100%; overflow: hidden;
    }
    
    .hud-row {
        display: flex; align-items: center; justify-content: space-between; width: 100%;
    }
    
    .hud-stats-row { 
        padding-bottom: 10px; border-bottom: 1px solid rgba(0,240,255,0.1); flex-wrap: wrap; gap: 10px;
    }
    
    .hud-left { display: flex; align-items: center; gap: 10px; }
    .live-dot { 
        width: 10px; height: 10px; border-radius: 50%; background: var(--danger);
        box-shadow: 0 0 15px var(--danger); animation: livePulse 1.2s infinite; 
    }
    
    @keyframes livePulse { 
        0%, 100% { transform: scale(1); opacity: 1; } 
        50% { transform: scale(0.75); opacity: 0.5; } 
    }
    
    .hud-left span { font-family: 'Orbitron', sans-serif; font-weight: 900; letter-spacing: 1px; color: var(--danger); }
    .hud-stats { display: flex; gap: 8px; font-family: 'Share Tech Mono', monospace; font-size: 0.85rem; flex-wrap: wrap; }
    .hud-pill { padding: 5px 10px; border-radius: 4px; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); }
    .hud-pill b { color: var(--primary); font-weight: 700; }
    .hud-pill.drop b { color: var(--danger); }
    
    .hud-chat-row {
        font-family: 'Share Tech Mono', monospace; font-size: 0.85rem; color: var(--text-muted); padding: 2px 5px;
        display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;
    }
    
    .chat-user { color: var(--primary); font-weight: bold; }
    .chat-sys { color: var(--danger); font-weight: bold; text-shadow: 0 0 5px var(--danger); }
    
    .hud-tg-link {
        margin-top: 5px; padding: 12px 15px; background: rgba(0, 240, 255, 0.05); border: 1px solid rgba(0, 240, 255, 0.3);
        border-radius: 6px; transition: 0.3s; font-family: 'Orbitron', sans-serif; text-transform: uppercase; font-size: 0.85rem;
        cursor: pointer;
    }
    
    .hud-tg-link:hover { 
        background: rgba(0, 240, 255, 0.15); box-shadow: 0 0 15px rgba(0,240,255,0.2); border-color: var(--primary); 
    }
    
    .tg-left { 
        display: flex; align-items: center; gap: 10px; font-weight: bold; color: var(--text-main); 
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .tg-left.pulse-icon { color: var(--primary); font-size: 1.1rem; animation: blink 1.5s infinite; }
    .tg-right { font-family: 'Share Tech Mono'; color: var(--primary); opacity: 0.8; letter-spacing: 1px; flex-shrink: 0; }
    
    @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
    
    /* sliders */
    .slider-wrapper {
        position: relative; border-radius: var(--radius); overflow: hidden;
        border: 1px solid rgba(0,240,255,0.2); box-shadow: 0 20px 50px rgba(0,0,0,0.5);
        background: #000; width: 100%; min-height: 350px; touch-action: pan-y;
    }
    
    .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease-in-out; z-index: 1; }
    .slide.active { opacity: 1; z-index: 2; }
    .slide img { width: 100%; height: 100%; object-fit: cover; }
    
    .slider-nav {
        position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between;
        transform: translateY(-50%); z-index: 10; pointer-events: none; padding: 0 10px;
    }
    
    .nav-arrow {
        pointer-events: auto; cursor: pointer; width: 40px; height: 40px; background: rgba(0,0,0,0.6);
        color: var(--primary); border: 1px solid var(--primary); border-radius: 50%;
        display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: .25s;
        backdrop-filter: blur(4px);
    }
    
    .nav-arrow:hover { background: var(--primary); color: #000; box-shadow: 0 0 15px var(--primary); }
    
    /* ===== СИСТЕМНЫЙ ТЕРМИНАЛ ===== */
    .terminal-section { margin-bottom: 70px; width: 100%; }
    .command-terminal {
        width: 100%; border-radius: var(--radius); overflow: hidden;
        border: 1px solid rgba(0, 240, 255, 0.2);
        box-shadow: 0 15px 40px rgba(0,0,0,0.5), inset 0 0 20px rgba(0, 240, 255, 0.05);
        display: flex; flex-direction: column;
        background: rgba(4, 8, 16, 0.6);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    }
    
    .terminal-header {
        display: flex; justify-content: space-between; padding: 12px 20px;
        background: rgba(0, 240, 255, 0.1); color: var(--primary);
        font-family: 'Orbitron', sans-serif; font-size: 0.85rem; letter-spacing: 1px;
        border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    }
    
    .terminal-map-view {
        position: relative; overflow: hidden; width: 100%;
        background: #000; border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    }
    
    .map-frame { width: 100%; position: relative; }
    .map-image { width: 100%; display: block; object-fit: contain; }
    .map-grid {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background-image: linear-gradient(rgba(0, 240, 255, 0.1) 1px, transparent 1px),
                          linear-gradient(90deg, rgba(0, 240, 255, 0.1) 1px, transparent 1px);
        background-size: 80px 80px; pointer-events: none; z-index: 2;
    }
    
    .satellite-focus {
        position: absolute; width: 100px; height: 100px; border: 2px dashed rgba(0, 240, 255, 0.6);
        box-shadow: 0 0 15px rgba(0, 240, 255, 0.2); z-index: 3;
        animation: satelliteRoam 15s infinite ease-in-out;
    }
    
    .satellite-focus::after {
        content: "SCANNING..."; position: absolute; top: -20px; left: 0;
        font-size: 10px; color: var(--primary); background: rgba(0,0,0,0.8); padding: 2px 4px;
        font-family: 'Share Tech Mono';
    }
    
    .terminal-console {
        position: relative; min-height: 160px; height: auto; background: rgba(2, 5, 10, 0.9);
        padding: 15px 20px 25px 20px; text-align: left; display: flex; flex-direction: column; overflow: hidden;
    }
    
    .console-label { 
        color: #555; font-size: 0.75rem; margin-bottom: 8px; font-family: 'Orbitron', sans-serif; letter-spacing: 1px;
    }
    
    .log-text { 
        color: var(--primary); font-size: 0.9rem; line-height: 1.6; font-family: 'Share Tech Mono', monospace; text-shadow: 0 0 4px var(--primary); 
    }
    
    .cursor { 
        display: inline-block; width: 8px; height: 15px; background: var(--primary);
        animation: blink 1s infinite; vertical-align: middle; 
    }
    
    .target-marker {
        position: absolute; width: 8px; height: 8px; background: var(--danger);
        border-radius: 50%; box-shadow: 0 0 10px var(--danger); border: 1px solid #fff;
        animation: pulseRed 2s infinite; z-index: 4; transform: translate(-50%, -50%);
    }
    
    .target-cross {
        position: absolute; width: 14px; height: 14px; z-index: 4;
        animation: blink 0.5s infinite; transform: translate(-50%, -50%);
    }
    
    .target-cross::before, .target-cross::after {
        content: ''; position: absolute; top: 50%; left: 50%; width: 100%; height: 2px; background: var(--danger);
        box-shadow: 0 0 8px var(--danger);
    }
    
    .target-cross::before { transform: translate(-50%, -50%) rotate(45deg); }
    .target-cross::after { transform: translate(-50%, -50%) rotate(-45deg); }
    
    @keyframes pulseRed { 
        0% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 
        100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; } 
    }
    
    @keyframes satelliteRoam { 
        0% { top: 10%; left: 10%; } 
        25% { top: 50%; left: 30%; } 
        50% { top: 30%; left: 70%; } 
        75% { top: 60%; left: 60%; } 
        100% { top: 10%; left: 10%; } 
    }
    
    /* ===== SECTIONS =====*/
    .details-section, .characters-section { margin-bottom: 70px; width: 100%; }
    
    .section-title {
        font-family: 'Orbitron', sans-serif; font-size: 1.4rem; margin: 40px 0 25px 0; text-transform: uppercase; letter-spacing: 2px;
        border-left: 4px solid var(--primary); padding-left: 15px; color: #fff;
    }
    
    .details-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
    .split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
    .detail-card { padding: 30px; }
    
    .detail-heading { 
        color: var(--primary); font-family: 'Orbitron', sans-serif; font-size: 1.1rem;
        margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; 
    }
    
    .detail-text { font-size: 1rem; line-height: 1.65; color: var(--text-muted); margin-bottom: 15px; }
    .detail-list { list-style: none; padding: 0; }
    .detail-list li { margin-bottom: 12px; padding-left: 20px; position: relative; color: var(--text-muted); line-height: 1.6; }
    .detail-list li::before { 
        content: '>'; font-family: 'Share Tech Mono'; color: var(--primary);
        font-weight: bold; position: absolute; left: 0; top: 0; font-size: 1.1rem; 
    }
    .detail-list strong { color: var(--text-main); font-weight: 600; }
    
    /* ВТОРОЙ СЛАЙДЕР НА ВСЮ ШИРИНУ */
    #infoSlider { max-width: 100%; width: 100%; aspect-ratio: 16/9; margin: 40px 0; min-height: auto; height: auto; }
    
    /* ===== Characters ===== */
    .chars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
    .char-card { padding: 20px; text-align: center; cursor: pointer; transition: .3s; position: relative; overflow: hidden; }
    
    .char-card:hover { 
        transform: translateY(-6px); border-color: var(--primary); 
        box-shadow: 0 15px 40px rgba(0,0,0,0.4), inset 0 0 15px rgba(0,240,255,0.1); 
    }
    
    .char-portrait {
        width: 120px; height: 120px; margin: 0 auto 15px auto; border-radius: 15px; overflow: hidden; position: relative;
        border: 2px solid rgba(0,240,255,0.3); box-shadow: 0 0 20px rgba(0,240,255,0.1);
        background: #000; transition: .3s;
    }
    
    .char-card:hover .char-portrait { 
        border-color: var(--primary); box-shadow: 0 0 25px rgba(0,240,255,0.4); filter: brightness(1.2);
    }
    
    .char-portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%) contrast(1.1); }
    
    .char-name { 
        font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 1.1rem;
        letter-spacing: 1px; margin-bottom: 5px; text-transform: uppercase; color: #fff;
    }
    
    .char-role { font-family: 'Share Tech Mono', monospace; font-size: 0.85rem; color: var(--primary); text-transform: uppercase; }
    
    /* modals */
    .modal-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(2,5,10,0.95);
        z-index: 9999; display: none; justify-content: center; align-items: center;
        backdrop-filter: blur(8px);
    }
    
    .char-modal-content { width: 90%; max-width: 650px; padding: 35px; position: relative; display: flex; gap: 25px; }
    .modal-img-box img { width: 160px; height: 160px; border-radius: 12px; object-fit: cover; border: 1px solid var(--primary); }
    .modal-text h3 { font-family: 'Orbitron', sans-serif; color: var(--primary); margin: 0 0 10px 0; font-size: 1.6rem; letter-spacing: 1px; }
    .modal-text p { font-size: 0.95rem; line-height: 1.6; color: var(--text-muted); white-space: pre-wrap; }
    
    .close-modal {
        position: absolute; top: 15px; right: 15px; z-index: 3; width: 35px; height: 35px; border-radius: 8px;
        display: flex; align-items: center; justify-content: center; border: 1px solid rgba(0,240,255,0.3); background: rgba(0,0,0,0.5);
        cursor: pointer; color: var(--primary); font-family: 'Share Tech Mono'; font-size: 1.2rem; transition: 0.2s;
    }
    
    .close-modal:hover { border-color: var(--primary); color: #fff; box-shadow: 0 0 15px rgba(0,240,255,0.5); }
    
    /* ===== РАДАР ===== */
    .flight-tracker { position: fixed; z-index: 999; border: 1px solid rgba(0, 229, 255, 0.3); background: rgba(4, 8, 16, 0.85); backdrop-filter: blur(10px); }
    .ft-line { background: rgba(255,255,255,0.05); border-radius: 10px; position: relative; }
    .ft-fill { position: absolute; border-radius: 10px; box-shadow: 0 0 15px var(--cyan); background: var(--cyan); transition: 0.1s linear; }
    .ft-icon { font-family: 'Share Tech Mono', monospace; font-size: 11px; font-weight: bold; color: var(--cyan); letter-spacing: 1px; text-transform: uppercase; text-shadow: 0 0 10px rgba(0,229,255,0.4); }
    .ft-plane { position: absolute; font-size: 24px; filter: drop-shadow(0 0 15px var(--cyan)); z-index: 2; }
    .ft-status { font-family: 'Russo One', sans-serif; font-size: 14px; color: #fff; text-shadow: 0 0 10px var(--cyan); margin-top: 5px; letter-spacing: 1px;}
    
    @media (min-width: 769px) {
        .flight-tracker { top: 50%; left: 20px; transform: translateY(-50%); padding: 35px 12px; border-radius: 50px; display: flex; flex-direction: column; align-items: center; gap: 15px; }
        .ft-line { width: 4px; height: 350px; order: 2; margin: 15px 0; }
        .ft-icon.start { order: 1; }
        .ft-icon.end { order: 3; }
        .ft-status { order: 4; writing-mode: vertical-rl; transform: rotate(180deg); margin-top: 20px; }
        .ft-fill { width: 100%; top: 0; left: 0; background: linear-gradient(to bottom, var(--cyan), var(--gold)); }
        .ft-plane { bottom: -18px; left: 50%; transform: translateX(-50%) rotate(180deg); }
    }
    
    /* ===== MOBILE OPTIMIZATION ===== */
    @media (max-width: 900px) {
        .flight-tracker { display: none !important; }
        
        .frost {
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            background: rgba(4, 8, 16, 0.95) !important;
            box-shadow: 0 5px 20px rgba(0,0,0,0.6) !important;
        }
        
        /* ПЕРЕСТАНОВКА БЛОКОВ (ИЗОБРАЖЕНИЕ ВЫШЕ ТЕКСТА) */
        .hero-grid { 
            display: flex; 
            flex-direction: column; 
            gap: 20px; 
        }
        
        .hero-text, .hero-media { display: contents; }
        
        .hero-subtitle { order: 1; text-align: center; margin-bottom: 0; }
        .quest-title { order: 2; text-align: center; margin-bottom: 0; }
        .specs-row { order: 3; justify-content: center; margin-bottom: 0; }
        
        #heroSlider { order: 4; min-height: 250px; aspect-ratio: 16/9; width: 100%; }
        #hudBar { order: 5; width: 100%; }
        
        .description { order: 6; text-align: center; margin-bottom: 0; }
        
        /* Кнопки в мобильной версии */
        .btn-mobile { order: 7; display: flex !important; margin-top: 10px; }
        .btn-desktop { display: none !important; }
        
        .btn-trailer { background: rgba(4, 8, 16, 0.95); backdrop-filter: none; -webkit-backdrop-filter: none; }
        .btn-trailer-text { font-size: 1.2rem; }
        
        /* Оригинальные мобильные размеры шрифта */
        .line-cyan { font-size: 8vw; }
        .line-red { font-size: 11vw; }
        
        .hud-stats-row { justify-content: center; }
        .tg-left { font-size: 0.75rem; }
        .terminal-console { min-height: 140px; height: auto; }
        .details-grid, .split-grid { grid-template-columns: 1fr; }
        .char-modal-content { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
        .modal-text h3 { font-size: 1.3rem; }
    }
