/* ===== ЭКРАН ЗАГРУЗКИ ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-logo {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 40px;
    animation: loadingPulse 2s ease-in-out infinite;
}

.loading-logo span {
    color: #667eea;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 30px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-status {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    min-height: 24px;
    transition: opacity 0.3s;
}

.loading-progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease;
}

.loading-checkmark {
    display: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #16a34a;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: popIn 0.4s ease;
}

.loading-checkmark.active {
    display: flex;
}

.loading-checkmark svg {
    width: 30px;
    height: 30px;
    fill: white;
}

@keyframes popIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* ===== ОБЩИЕ СТИЛИ ===== */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-gray: #64748b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: white;
    line-height: 1.6;
}

.btn {
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: none;
    font-family: inherit;
}

.btn-outline {
    background: white;
    color: var(--text-dark);
    border: 2px solid #e2e8f0;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}