/* ============================================================
   NEXUS G3 | GLOBAL VARIABLES & BASE STYLES
   ============================================================ */

:root { 
    --font-main: 1rem; 
    --font-label: 0.95rem; 
    --font-title: 0.85rem; 
    --font-schedule: 1.15rem;

    --nexus-blue: #2563eb;
    --nexus-blue2: #1d4ed8;
    --nexus-dark: #0f172a;

    --soft-bg: #f1f5f9;
    --glass: rgba(255,255,255,0.75);
    --glass-border: rgba(148,163,184,0.35);
    --shadow-xl: 0 25px 60px rgba(0,0,0,0.14);
    --shadow-md: 0 12px 28px rgba(0,0,0,0.10);

    --good: #10b981;
    --warn: #f59e0b;
    --bad: #ef4444;
    --info: #0ea5e9;

    --radius-lg: 18px;
    --radius-xl: 24px;
}

body { 
    font-family: 'Inter', sans-serif; 
    background:
        radial-gradient(1200px 600px at 10% 10%, rgba(37,99,235,0.12), transparent 60%),
        radial-gradient(900px 500px at 90% 20%, rgba(14,165,233,0.10), transparent 55%),
        radial-gradient(1100px 700px at 40% 90%, rgba(225,29,72,0.06), transparent 55%),
        var(--soft-bg);
    height: 100vh; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    margin: 0; 
    font-size: var(--font-main); 
}

/* Эффект зернистости на фоне */
body::before{
    content:"";
    position:fixed; inset:0;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
    pointer-events:none;
    mix-blend-mode: multiply;
}

/* ==========================================
   WIZARD UI (СУФЛЕР)
   ========================================== */
.wizard-step { display: none; animation: fadeIn 0.4s; }
.wizard-step.active { display: block; }

.script-box {
    background: linear-gradient(to right, #e0f2fe, #f0f9ff);
    border-left: 5px solid #0284c7;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.1);
}

.script-action {
    color: #0284c7; font-size: 0.75rem; text-transform: uppercase; 
    font-weight: 900; letter-spacing: 1px; margin-bottom: 8px;
}

.script-text { font-size: 1.15rem; font-weight: 600; color: #0f172a; line-height: 1.4; }
.script-text i { color: #0ea5e9; font-style: normal; font-weight: 800; }

/* Навигация визарда */
.step-nav { 
    display: flex; 
    justify-content: space-between; 
    margin-top: 30px; 
    border-top: 1px solid #e2e8f0; 
    padding-top: 20px;
}

.btn-nav { 
    font-weight: 800; 
    padding: 12px 24px; 
    border-radius: 12px; 
    font-size: 1rem; 
    transition: 0.2s; 
    cursor: pointer; 
}

.btn-back { background: #f1f5f9; color: #475569; border: none; }
.btn-back:hover { background: #e2e8f0; }

.btn-next { 
    background: #2563eb; 
    color: white; 
    border: none; 
    box-shadow: 0 8px 16px rgba(37,99,235,0.2); 
}
.btn-next:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px rgba(37,99,235,0.3); 
}

/* Вспомогательные элементы */
.warranty-alert { 
    display: none; 
    background: #fee2e2; 
    border-left: 5px solid #dc2626; 
    padding: 15px; 
    border-radius: 8px; 
    margin-top: 15px; 
}

.progress-bar-custom { height: 6px; background: #e2e8f0; border-radius: 3px; margin-bottom: 20px; overflow: hidden; }
.progress-fill { height: 100%; background: #0ea5e9; width: 0%; transition: width 0.3s ease; }

#loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    display: none; flex-direction: column; align-items: center; justify-content: center;
    z-index: 9999; color: white;
}