/* ===================================================================
   Energo Exam — фирменный стиль (энергичный оранжевый, прямые углы)
   Палитра: основной #f39c12, тёмный #e67e22, hover #d68910
   =================================================================== */

/* --- Корневой контейнер --- */
.energo-exam-root {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.5;
}

/* --- Карточка: прямые углы, лёгкая тень --- */
.ee-card {
    background: #ffffff;
    border: 1px solid #e2e6ea;
    border-radius: 0;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #f39c12; /* фирменная оранжевая полоса сверху */
}

.ee-row {
    margin-bottom: 16px;
}

/* --- Подписи к полям --- */
.ee-label {
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    color: #2c3e50;
    letter-spacing: 0.2px;
}

/* --- Селекты и числовые поля --- */
.ee-select,
.ee-pct input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfd6dc;
    border-radius: 0;
    font-size: 14px;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ee-select:focus,
.ee-pct input[type="number"]:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
}

.ee-pct input[type="number"] {
    width: 80px;
    text-align: center;
}

/* --- Строчная раскладка (чекбоксы/радио в ряд) --- */
.ee-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.ee-inline label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 0;
    transition: background 0.15s;
}

.ee-inline label:hover {
    background: #fff8ec;
}

/* --- Кнопки: прямые углы, оранжевая основная --- */
.ee-btn {
    background: #f39c12;
    color: #ffffff;
    border: 0;
    border-radius: 0;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.05s;
    text-transform: none;
}

.ee-btn:hover {
    background: #d68910;
}

.ee-btn:active {
    transform: translateY(1px);
}

.ee-btn.gray {
    background: #6c757d;
    color: #ffffff;
}

.ee-btn.gray:hover {
    background: #5a6268;
}

/* --- Строки разделов (чекбоксы тем билета) --- */
.ee-sec {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid #e2e6ea;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.ee-sec:hover {
    background: #fff8ec;
    border-color: #f39c12;
}

.ee-sec input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #f39c12;
}

/* --- Поле ввода процентов под разделом --- */
.ee-pct {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #fff8ec;
    border-radius: 0;
    border-left: 3px solid #f39c12;
}

/* --- Таймер --- */
.ee-timer {
    font-size: 20px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 0;
    background: #fff8ec;
    color: #e67e22;
    display: inline-block;
    margin-bottom: 16px;
    border: 1px solid #f39c12;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.ee-timer.danger {
    background: #fdecec;
    color: #c0392b;
    border-color: #c0392b;
    animation: ee-pulse 1s ease-in-out infinite;
}

@keyframes ee-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

/* --- Текст вопроса --- */
.ee-q {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.6;
    padding-bottom: 14px;
    border-bottom: 2px solid #f39c12; /* оранжевая черта вместо серой */
    color: #2c3e50;
}

/* --- Варианты ответов --- */
.ee-opt {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid #dfe4e8;
    border-radius: 0;
    margin-bottom: 10px;
    cursor: pointer;
    background: #ffffff;
    transition: border-color 0.2s, background 0.2s;
}

.ee-opt:hover {
    background: #fff8ec;
    border-color: #f39c12;
}

.ee-opt input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #f39c12;
    flex-shrink: 0;
}

.ee-opt input:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.ee-opt span {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

/* --- Правильный ответ (зелёный) --- */
.ee-ok {
    background: #c9f0d8;
    border-color: #1e8449;
    border-left: 5px solid #1e8449;
}

.ee-ok span {
    color: #0b4f2c;
    font-weight: 700;
}

/* --- Неправильный ответ (красный) --- */
.ee-bad {
    background: #ffd6d1;
    border-color: #b03a2e;
    border-left: 5px solid #b03a2e;
}

.ee-bad span {
    color: #6b1c14;
    font-weight: 700;
}

/* --- Серый приглушённый текст --- */
.ee-muted {
    color: #66707a;
    font-size: 13px;
}

/* --- Сводка выбранных разделов (процент от 100%) --- */
.ee-sum {
    font-weight: 700;
    margin: 12px 0;
    padding: 10px 14px;
    background: #fff8ec;
    border-radius: 0;
    text-align: center;
    border-left: 4px solid #f39c12;
    color: #2c3e50;
}

.ee-sum.bad {
    background: #fdf2f2;
    color: #c0392b;
    border-left-color: #c0392b;
}

/* --- Прогресс-бар --- */
.ee-progress {
    width: 100%;
    height: 8px;
    background: #e2e6ea;
    border-radius: 0;
    margin-bottom: 16px;
    overflow: hidden;
}

.ee-progress-bar {
    height: 100%;
    background: #f39c12;
    border-radius: 0;
    transition: width 0.3s ease;
}

/* --- Спиннер загрузки --- */
.ee-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.ee-spinner::before {
    content: '';
    width: 48px;
    height: 48px;
    border: 4px solid #e2e6ea;
    border-top-color: #f39c12;
    border-radius: 50%;
    animation: ee-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes ee-spin {
    to { transform: rotate(360deg); }
}

.ee-spinner-text {
    font-size: 16px;
    color: #66707a;
    font-weight: 600;
}

/* --- Экран результата --- */
.ee-result {
    text-align: center;
    padding: 30px 20px;
}

.ee-result-score {
    font-size: 56px;
    font-weight: 700;
    margin: 16px 0;
    letter-spacing: -1px;
}

.ee-result-score.pass {
    color: #27ae60;
}

.ee-result-score.fail {
    color: #c0392b;
}

.ee-result-details {
    font-size: 16px;
    color: #495057;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ===== Панель версии экзаменатора ===== */
.ee-version {
    margin: 16px auto 0;
    padding: 10px 14px;
    border: 1px dashed #d1d5db;
    border-radius: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    background: #f9fafb;
    border-left: 3px solid #f39c12;
}

.ee-version b {
    color: #2c3e50;
    font-weight: 700;
}

/* ===== Адаптив для мобильных ===== */
@media (max-width: 600px) {
    .energo-exam-root {
        padding: 12px;
    }
    .ee-card {
        padding: 16px;
    }
    .ee-btn {
        width: 100%;
    }
    .ee-inline {
        flex-direction: column;
        align-items: stretch;
    }
    .ee-pct {
        flex-direction: column;
        align-items: stretch;
    }
    .ee-pct input[type="number"] {
        width: 100%;
    }
    .ee-version {
        font-size: 11px;
        padding: 8px 10px;
    }
    .ee-timer {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    .ee-q {
        font-size: 16px;
    }
    .ee-result-score {
        font-size: 48px;
    }
}

/* ===== Добавлено в версии 1.3.0 ===== */
.ee-result .ee-q {
    border-bottom: 2px solid #f39c12;
    text-align: center;
}
.ee-kinds {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 12px 0 18px;
    font-size: 14px;
}
.ee-kinds span {
    padding: 6px 12px;
    border: 1px solid #e2e6ea;
    background: #fff8ec;
}
.ee-kinds b { color: #2c3e50; }
.ee-version small { display: block; margin-top: 4px; }
@media (max-width: 600px) {
    .ee-kinds { flex-direction: column; }
}

/* ===================================================================
   Оформление в стиле сайта energo73.ru: Lato, акцент #f9ae40, прямые углы
   =================================================================== */
.energo-exam-root{
    font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #2b2b2b;
    max-width: 880px;
    padding: 8px;
}
.ee-card{
    overflow-wrap:anywhere;
    background:#fff;
    border:1px solid #e6e6e6;
    border-top:3px solid #f9ae40;
    border-radius:0;
    padding:26px 26px 22px;
    box-shadow:0 10px 30px -18px rgba(0,0,0,.25);
}

/* --- шаги --- */
.ee-step{border-top:1px solid #efefef;padding-top:20px;margin-top:20px}
.ee-step:first-child{border-top:0;padding-top:0;margin-top:0;margin-bottom:0}
.ee-step-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:12px}
.ee-step-num{flex:none;width:26px;height:26px;background:#f9ae40;color:#1a1a1a;
    font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center;margin-top:1px}
.ee-step-titles{display:flex;flex-direction:column;gap:3px;min-width:0}
.ee-label{display:block;font-weight:700;font-size:18px;line-height:1.25;color:#1f1f1f;letter-spacing:0}
.ee-hint{display:block;font-size:12.5px;color:#8a8a8a;line-height:1.4;font-weight:400}

/* --- селекты --- */
.ee-select{
    width:100%;
    min-height:52px;
    padding:13px 16px;
    font-size:16px;
    font-family:inherit;
    color:#1f1f1f;
    background:#fff;
    border:1px solid #cfcfcf;
    border-radius:0;
    appearance:none;
    background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 14px center;
    background-size:18px;
    cursor:pointer;
    transition:border-color .2s;
}
.ee-select:hover{border-color:#f9ae40}
.ee-select:focus{outline:none;border-color:#f9ae40;box-shadow:0 0 0 3px rgba(249,174,64,.18)}

/* --- фильтры в две колонки --- */
.ee-filters{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.ee-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.ee-field-label{font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:#8a8a8a}

/* --- чипы объёма --- */
.ee-chips{display:flex;flex-wrap:wrap;gap:10px}
.ee-chip{display:inline-flex;align-items:center;gap:8px;padding:12px 16px;border:1px solid #cfcfcf;
    background:#fff;cursor:pointer;font-size:15px;transition:border-color .2s,background .2s;line-height:1}
.ee-chip input{accent-color:#f9ae40;margin:0}
.ee-chip:hover{border-color:#f9ae40}
.ee-chip.is-on{border-color:#f9ae40;background:#fdf6e9}

/* --- разделы --- */
.ee-btn.ee-btn-ghost{background:#fff;color:#1f1f1f;border:1px solid #cfcfcf;box-shadow:none;margin-top:2px}
.ee-btn.ee-btn-ghost:hover{background:#fdf6e9;border-color:#f9ae40;color:#1f1f1f}
.ee-sections{margin-top:16px;border-top:1px dashed #e2e2e2;padding-top:16px}
.ee-sections-tools{display:flex;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.ee-sec{display:flex;align-items:flex-start;gap:10px;padding:7px 0;font-size:14px;line-height:1.45;cursor:pointer}
.ee-sec input{accent-color:#f9ae40;margin-top:3px;flex:none}
.ee-sec:hover{color:#000}
.ee-muted{color:#8a8a8a;font-size:12.5px}

/* --- проценты --- */
.ee-pct-box{margin-top:22px;border-top:1px dashed #e2e2e2;padding-top:18px}
.ee-pct-title{font-size:16px;margin-bottom:4px}
.ee-pct{display:flex;align-items:center;gap:10px;margin-top:8px}
.ee-pct input[type="number"]{width:86px;min-height:42px;padding:8px 10px;border:1px solid #cfcfcf;
    border-radius:0;font-size:15px;font-family:inherit}
.ee-pct input[type="number"]:focus{outline:none;border-color:#f9ae40}
.ee-pct span{font-size:13.5px;color:#555}
.ee-sum{margin-top:12px;font-size:14px;color:#2b2b2b;font-weight:700}
.ee-sum.bad{color:#c0392b}

/* --- кнопки --- */
.ee-btn{
    display:inline-flex;align-items:center;justify-content:center;gap:8px;
    background:#f9ae40;color:#1a1a1a;border:0;border-radius:0;padding:14px 22px;
    font-size:15px;font-weight:700;font-family:inherit;cursor:pointer;
    transition:background .2s,transform .1s;
}
.ee-btn:hover{background:#f5a02c}
.ee-btn:active{transform:translateY(1px)}
.ee-btn.gray{background:#f1f1f1;color:#2b2b2b;font-weight:600;padding:10px 16px;font-size:13.5px}
.ee-btn.gray:hover{background:#e8e8e8}
.ee-btn-start{width:100%;margin-top:26px;padding:19px 24px;font-size:18px;letter-spacing:.02em}
.ee-btn-start:hover{background:#f5a02c}

/* --- блок поддержки --- */
.ee-support{margin-top:26px;border-top:1px solid #efefef;padding:22px 0 6px}
.ee-support-title{font-size:17px;font-weight:700;color:#1f1f1f;margin-bottom:8px}
.ee-support-text{margin:0 0 8px;font-size:14px;line-height:1.6;color:#4a4a4a}

.ee-support-thanks{margin:0 0 14px;font-size:14px;line-height:1.6;color:#2b2b2b;font-weight:600}
.ee-support-note{margin:0 0 14px;font-size:12px;line-height:1.55;color:#8a8a8a;
    border-left:2px solid #f9ae40;padding-left:10px}


/* «Следующий вопрос» — тот же зелёный, что у поддержки проекта (закрепляем привычку) */
.ee-btn.ee-btn-next{background:#27ae60;color:#fff;border:0}
.ee-btn.ee-btn-next:hover{background:#219150;color:#fff}

/* кнопка поддержки — зелёная, ведёт на страницу перевода */
.ee-btn.ee-btn-support{
    display:inline-flex;align-items:center;justify-content:center;
    background:#27ae60;color:#fff;border:0;padding:15px 30px;font-size:16px;font-weight:700;
    text-decoration:none;margin-top:4px;transition:background .2s,transform .1s;
}
.ee-btn.ee-btn-support:hover{background:#219150;color:#fff}
.ee-btn.ee-btn-support:active{transform:translateY(1px)}
.ee-btn.ee-btn-support[disabled]{opacity:.5;cursor:not-allowed}
.ee-support-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px;justify-content:center}
.ee-support-link{display:inline-block;padding:10px 16px;border:1px solid #cfcfcf;color:#1f1f1f;
    text-decoration:none;font-size:14px;transition:border-color .2s,background .2s}
.ee-support-link:hover{border-color:#f9ae40;background:#fdf6e9}

@media(max-width:640px){
    .ee-card{padding:20px 16px 18px}
    .ee-label{font-size:16px}
    .ee-select{min-height:48px;font-size:15px;padding:12px 14px}
    .ee-filters{grid-template-columns:1fr;gap:12px}
    .ee-btn-start{padding:16px 18px;font-size:16px}
    .ee-chip{padding:10px 13px;font-size:14px}
    .ee-step{padding-top:16px;margin-top:16px}
}
