:root {
    --primary: #2c3e50;
    --bg: #f0f2f5;
    --blue: #3498db;
    --gold: #f1c40f;
    --green: #2ecc71;
}

body { font-family: 'Segoe UI', sans-serif; background: var(--bg); margin: 0; padding-top: 70px; }


.container { max-width: 1400px; margin: 0 auto; padding: 20px; }

/* Карточки итогов */
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 25px; }
.stat-card { padding: 25px; border-radius: 15px; color: white; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.stat-card h4 { margin: 0; font-size: 14px; opacity: 0.9; text-transform: uppercase; }
.stat-card p { margin: 10px 0 0 0; font-size: 36px; font-weight: bold; }

.blue { background: var(--blue); }
.gold { background: var(--gold); color: #2c3e50; }
.green { background: var(--green); }

/* Сетка */
.main-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.card { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.card h3 { border-bottom: 2px solid #eee; padding-bottom: 10px; color: var(--primary); margin-top: 0; }

/* Форма */
.form-group { display: flex; flex-direction: column; gap: 10px; }
input, select { padding: 10px; border: 1px solid #ddd; border-radius: 6px; }
.btn-save { background: var(--primary); color: white; border: none; padding: 12px; border-radius: 6px; cursor: pointer; font-weight: bold; }

/* Таблица рейтинга */
table { width: 100%; border-collapse: collapse; }
th { background: #f8f9fa; padding: 12px; border: 1px solid #eee; text-align: left; }
td { padding: 12px; border: 1px solid #eee; }

/* Цвет рейтинга */
.high-score { color: #27ae60; font-weight: bold; }
.low-score { color: #e74c3c; font-weight: bold; }

.lang-btn { background: #e67e22; border: none; color: white; padding: 5px 12px; border-radius: 4px; cursor: pointer; }
/* Стили для полосок рейтинга */
.rating-item {
    margin-bottom: 20px;
}
.rating-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}
.progress-bg {
    background: #e9ecef;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.progress-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s ease-in-out;
}

/* Цвета в зависимости от успеха */
.bg-high { background: #2ecc71; } /* Зеленый (80-100%) */
.bg-mid { background: #f1c40f; }  /* Желтый (50-79%) */
.bg-low { background: #e74c3c; }  /* Красный (0-49%) */

.hint { font-size: 11px; color: #7f8c8d; margin-top: 5px; }
.btn-save:hover { background: #34495e; }
/* КРАСИВЫЙ НАВБАР */
.navbar { 
    background: #2c3e50; 
    height: 60px; 
    display: flex; 
    align-items: center; 
    padding: 0 30px; 
    color: white; 
    box-shadow: 0 3px 10px rgba(0,0,0,0.2); 
    position: fixed; top: 0; width: 100%; z-index: 1000;
}
.nav-logo { font-size: 20px; font-weight: 900; letter-spacing: 1px; }
.nav-logo span { color: #3498db; }

.nav-links { display: flex; gap: 10px; margin-left: 40px; flex: 1; }

.nav-btn {
    text-decoration: none;
    color: #bdc3c7;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-btn:hover { color: white; background: rgba(255,255,255,0.1); }
.nav-btn.active { 
    color: white; 
    background: #3498db; 
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.4); 
}

.nav-actions { display: flex; gap: 10px; align-items: center; margin-right: 40px;}

.lang-btn, .print-btn, .reset-btn {
    border: none; padding: 8px 15px; border-radius: 6px; 
    cursor: pointer; font-weight: bold; transition: 0.2s; color: white;
}
.lang-btn { background: #e67e22; }
.print-btn { background: #27ae60; }
.reset-btn { background: #e74c3c; }

@media print {
    .navbar, .card:last-child { display: none !important; }
    body { padding-top: 0; }
    .container { width: 100%; max-width: 100%; }
}