/* ============================================ */
/* === СТИЛИ КАТЕГОРИИ «ОГЭ / ЕГЭ» (/tests/exams/) === */
/* === Префикс: ex-                            === */
/* ============================================ */

/* ============================================ */
/* === АКЦЕНТНАЯ КАРТОЧКА (ПРОБНЫЙ ЭКЗАМЕН)   === */
/* ============================================ */
.service-card-featured {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.service-card-featured::before {
    content: '🏆 ФИНАЛЬНЫЙ ШАГ';
    position: absolute;
    top: 14px;
    right: -34px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 40px;
    transform: rotate(38deg);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}

.service-card-featured:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.22);
}

.service-card-featured .service-card-title {
    color: var(--primary);
}

.service-card-featured .service-card-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* ============================================ */
/* === БЛОК: КОМУ ПОДОЙДУТ === */
/* ============================================ */
.audience-block {
    padding: 60px 0;
    background: var(--bg);
}

.audience-block-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.audience-card-beginner {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.audience-card-beginner:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.audience-card-icon {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 16px;
}

.audience-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.audience-card-desc {
    font-size: 0.95rem;
    color: var(--light);
    line-height: 1.6;
    flex-grow: 1;
}

/* ============================================ */
/* === БЛОК: ПОШАГОВЫЙ ПЛАН === */
/* ============================================ */
.roadmap-section {
    padding: 60px 0;
    background: var(--white);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.roadmap-step {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.roadmap-step:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.roadmap-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 14px;
    box-shadow: 0 6px 14px rgba(124, 58, 237, 0.28);
}

.roadmap-step-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 10px;
}

.roadmap-step-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.roadmap-step-desc {
    font-size: 0.92rem;
    color: var(--light);
    line-height: 1.55;
}

/* ============================================ */
/* === БЛОК: СОВЕТЫ === */
/* ============================================ */
.tips-section {
    padding: 60px 0;
    background: var(--bg);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.tip-card {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.tip-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.tip-content {
    min-width: 0;
}

.tip-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.tip-text {
    font-size: 0.93rem;
    color: var(--light);
    line-height: 1.6;
}

/* ============================================ */
/* === АДАПТИВ === */
/* ============================================ */
@media (max-width: 1024px) {
    .audience-block-grid,
    .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .audience-block,
    .roadmap-section,
    .tips-section {
        padding: 40px 0;
    }

    .audience-block-grid,
    .roadmap-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 28px;
    }

    .tips-grid {
        gap: 14px;
        margin-top: 28px;
    }

    .audience-card-beginner {
        padding: 24px 22px;
    }

    .audience-card-icon {
        font-size: 2.4rem;
        margin-bottom: 12px;
    }

    .roadmap-step {
        padding: 22px 20px;
    }

    .tip-card {
        padding: 20px;
        gap: 14px;
    }

    .tip-icon {
        font-size: 1.7rem;
    }

    .service-card-featured::before {
        font-size: 0.62rem;
        padding: 3px 36px;
        top: 12px;
        right: -32px;
    }
}

@media (max-width: 480px) {
    .service-card-featured::before {
        content: '🏆 ФИНАЛ';
    }
}

/* ============================================ */
/* === СЕРВИС: ОГЭ: Грамматика (oge-grammar) === */
/* === Префикс: og-                           === */
/* ============================================ */

.og-app {
    max-width: 780px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.og-screen {
    padding: 48px 40px;
    opacity: 1;
}

@keyframes ogFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === СТАРТ === */
.og-start-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 16px;
}

.og-start-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.25;
}

.og-start-desc {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 24px;
}

.og-start-rules {
    background: var(--bg);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.og-start-rules h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.og-start-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.og-start-rules li {
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}

.og-start-rules li::before {
    content: '▸';
    position: absolute;
    left: 4px;
    color: var(--primary);
    font-weight: 700;
}

.og-btn-primary {
    display: block;
    width: 100%;
    padding: 18px 24px;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.og-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
}

/* === ВЫБОР ТЕКСТА === */
.og-choose-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.og-choose-sub {
    font-size: 1rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 28px;
}

.og-texts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.og-text-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.og-text-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.og-text-emoji {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.og-text-body {
    flex-grow: 1;
    min-width: 0;
}

.og-text-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.og-text-desc {
    font-size: 0.9rem;
    color: var(--light);
    line-height: 1.5;
    margin-bottom: 8px;
}

.og-text-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.og-text-chip {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--light);
}

.og-text-chip-easy {
    background: #D1FAE5;
    color: #065F46;
}

.og-text-chip-medium {
    background: #FEF3C7;
    color: #92400E;
}

.og-text-chip-hard {
    background: #FEE2E2;
    color: #991B1B;
}

/* === ИГРА === */
.og-game-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.og-game-progress {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
}

.og-game-score {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.og-progress-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 28px;
}

.og-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.35s ease;
    border-radius: 4px;
}

.og-question {
    font-size: 1.35rem;
    line-height: 1.5;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 20px;
    padding: 20px 24px;
    background: var(--bg);
    border-radius: 12px;
}

.og-question .og-blank {
    display: inline-block;
    min-width: 70px;
    border-bottom: 2px dashed var(--primary);
    color: var(--primary);
    font-weight: 800;
    padding: 0 8px;
    text-align: center;
}

.og-prompt-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--light);
    margin-bottom: 8px;
}

.og-prompt-word {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.og-input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.og-input {
    flex-grow: 1;
    font-family: inherit;
    font-size: 1.1rem;
    padding: 16px 20px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    transition: border-color 0.25s ease;
    color: var(--dark);
}

.og-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.og-input.og-correct {
    border-color: #10B981;
    background: #F0FDF4;
}

.og-input.og-wrong {
    border-color: #EF4444;
    background: #FEF2F2;
}

.og-speak-btn {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background: var(--bg);
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.og-speak-btn:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.08);
}

.og-feedback {
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    animation: ogFadeIn 0.3s ease;
}

.og-feedback-ok {
    background: #F0FDF4;
    border-left: 4px solid #10B981;
    color: #065F46;
}

.og-feedback-bad {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
    color: #991B1B;
}

.og-feedback-title {
    font-weight: 800;
    margin-bottom: 6px;
    display: block;
}

.og-feedback-answer {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
}

/* === РЕЗУЛЬТАТ === */
.og-result-emoji {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 12px;
}

.og-result-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.og-result-score {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--primary);
    text-align: center;
    margin-bottom: 4px;
}

.og-result-sub {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 24px;
}

.og-result-best {
    text-align: center;
    font-size: 0.95rem;
    color: var(--light);
    margin-bottom: 28px;
}

.og-result-best strong {
    color: var(--primary);
    font-weight: 800;
}

.og-breakdown {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.og-breakdown h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.og-breakdown-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.92rem;
    line-height: 1.5;
}

.og-breakdown-item:last-child {
    border-bottom: none;
}

.og-breakdown-item-ok {
    color: #065F46;
}

.og-breakdown-item-bad {
    color: #991B1B;
}

.og-breakdown-item strong {
    display: block;
    margin-bottom: 2px;
}

.og-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.og-btn {
    display: block;
    text-align: center;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: inherit;
    border: 2px solid transparent;
}

.og-btn-main {
    background: var(--primary);
    color: var(--white);
}

.og-btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.og-btn-outline {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}

.og-btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.og-btn-ghost {
    background: var(--bg);
    color: var(--dark);
    border-color: #E2E8F0;
}

.og-btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* === АДАПТИВ === */
@media (max-width: 640px) {
    .og-screen {
        padding: 32px 22px;
    }

    .og-start-title {
        font-size: 1.5rem;
    }

    .og-start-desc {
        font-size: 0.98rem;
    }

    .og-question {
        font-size: 1.1rem;
        padding: 16px 18px;
    }

    .og-prompt-word {
        font-size: 1.05rem;
        padding: 7px 12px;
    }

    .og-input {
        font-size: 1rem;
        padding: 14px 16px;
    }

    .og-speak-btn {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }

    .og-result-score {
        font-size: 2.1rem;
    }

    .og-result-actions {
        grid-template-columns: 1fr;
    }

    .og-choose-title {
        font-size: 1.35rem;
    }

    .og-text-card {
        padding: 18px;
        gap: 14px;
    }

    .og-text-emoji {
        font-size: 2rem;
    }

    .og-text-name {
        font-size: 1.05rem;
    }
}

/* ============================================ */
/* === СЕРВИС: ОГЭ: Word Formation (oge-word-formation) === */
/* === Префикс: ow-                           === */
/* ============================================ */

.ow-app {
    max-width: 780px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ow-screen {
    padding: 48px 40px;
    opacity: 1;
}

@keyframes owFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === СТАРТ === */
.ow-start-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 16px;
}

.ow-start-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.25;
}

.ow-start-desc {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 24px;
}

.ow-start-rules {
    background: var(--bg);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.ow-start-rules h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.ow-start-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ow-start-rules li {
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}

.ow-start-rules li::before {
    content: '▸';
    position: absolute;
    left: 4px;
    color: var(--primary);
    font-weight: 700;
}

.ow-btn-primary {
    display: block;
    width: 100%;
    padding: 18px 24px;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ow-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
}

/* === ВЫБОР ТЕКСТА === */
.ow-choose-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.ow-choose-sub {
    font-size: 1rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 28px;
}

.ow-texts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.ow-text-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.ow-text-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.ow-text-emoji {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.ow-text-body {
    flex-grow: 1;
    min-width: 0;
}

.ow-text-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.ow-text-desc {
    font-size: 0.9rem;
    color: var(--light);
    line-height: 1.5;
    margin-bottom: 8px;
}

.ow-text-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ow-text-chip {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--light);
}

.ow-text-chip-easy {
    background: #D1FAE5;
    color: #065F46;
}

.ow-text-chip-medium {
    background: #FEF3C7;
    color: #92400E;
}

.ow-text-chip-hard {
    background: #FEE2E2;
    color: #991B1B;
}

/* === ИГРА === */
.ow-game-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ow-game-progress {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
}

.ow-game-score {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.ow-progress-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 28px;
}

.ow-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.35s ease;
    border-radius: 4px;
}

.ow-question {
    font-size: 1.35rem;
    line-height: 1.5;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 20px;
    padding: 20px 24px;
    background: var(--bg);
    border-radius: 12px;
}

.ow-question .ow-blank {
    display: inline-block;
    min-width: 70px;
    border-bottom: 2px dashed var(--primary);
    color: var(--primary);
    font-weight: 800;
    padding: 0 8px;
    text-align: center;
}

.ow-prompt-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--light);
    margin-bottom: 8px;
}

.ow-prompt-word {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.ow-input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.ow-input {
    flex-grow: 1;
    font-family: inherit;
    font-size: 1.1rem;
    padding: 16px 20px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    transition: border-color 0.25s ease;
    color: var(--dark);
}

.ow-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.ow-input.ow-correct {
    border-color: #10B981;
    background: #F0FDF4;
}

.ow-input.ow-wrong {
    border-color: #EF4444;
    background: #FEF2F2;
}

.ow-speak-btn {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background: var(--bg);
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ow-speak-btn:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.08);
}

.ow-feedback {
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    animation: owFadeIn 0.3s ease;
}

.ow-feedback-ok {
    background: #F0FDF4;
    border-left: 4px solid #10B981;
    color: #065F46;
}

.ow-feedback-bad {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
    color: #991B1B;
}

.ow-feedback-title {
    font-weight: 800;
    margin-bottom: 6px;
    display: block;
}

.ow-feedback-answer {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
}

/* === РЕЗУЛЬТАТ === */
.ow-result-emoji {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 12px;
}

.ow-result-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.ow-result-score {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--primary);
    text-align: center;
    margin-bottom: 4px;
}

.ow-result-sub {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 24px;
}

.ow-result-best {
    text-align: center;
    font-size: 0.95rem;
    color: var(--light);
    margin-bottom: 28px;
}

.ow-result-best strong {
    color: var(--primary);
    font-weight: 800;
}

.ow-breakdown {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.ow-breakdown h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.ow-breakdown-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.92rem;
    line-height: 1.5;
}

.ow-breakdown-item:last-child {
    border-bottom: none;
}

.ow-breakdown-item-ok {
    color: #065F46;
}

.ow-breakdown-item-bad {
    color: #991B1B;
}

.ow-breakdown-item strong {
    display: block;
    margin-bottom: 2px;
}

.ow-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ow-btn {
    display: block;
    text-align: center;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: inherit;
    border: 2px solid transparent;
}

.ow-btn-main {
    background: var(--primary);
    color: var(--white);
}

.ow-btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.ow-btn-outline {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}

.ow-btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.ow-btn-ghost {
    background: var(--bg);
    color: var(--dark);
    border-color: #E2E8F0;
}

.ow-btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* === АДАПТИВ === */
@media (max-width: 640px) {
    .ow-screen {
        padding: 32px 22px;
    }

    .ow-start-title {
        font-size: 1.5rem;
    }

    .ow-start-desc {
        font-size: 0.98rem;
    }

    .ow-question {
        font-size: 1.1rem;
        padding: 16px 18px;
    }

    .ow-prompt-word {
        font-size: 1.05rem;
        padding: 7px 12px;
    }

    .ow-input {
        font-size: 1rem;
        padding: 14px 16px;
    }

    .ow-speak-btn {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }

    .ow-result-score {
        font-size: 2.1rem;
    }

    .ow-result-actions {
        grid-template-columns: 1fr;
    }

    .ow-choose-title {
        font-size: 1.35rem;
    }

    .ow-text-card {
        padding: 18px;
        gap: 14px;
    }

    .ow-text-emoji {
        font-size: 2rem;
    }

    .ow-text-name {
        font-size: 1.05rem;
    }
}

/* ============================================ */
/* === СЕРВИС: ОГЭ: Письмо (oge-writing)      === */
/* === Префикс: op-                           === */
/* ============================================ */

.op-app {
    max-width: 780px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.op-screen {
    padding: 48px 40px;
    opacity: 1;
}

@keyframes opFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === СТАРТ === */
.op-start-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 16px;
}

.op-start-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.25;
}

.op-start-desc {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 24px;
}

.op-start-rules {
    background: var(--bg);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.op-start-rules h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.op-start-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.op-start-rules li {
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}

.op-start-rules li::before {
    content: '▸';
    position: absolute;
    left: 4px;
    color: var(--primary);
    font-weight: 700;
}

.op-btn-primary {
    display: block;
    width: 100%;
    padding: 18px 24px;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.op-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
}

/* === ВЫБОР ПИСЬМА === */
.op-choose-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.op-choose-sub {
    font-size: 1rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 28px;
}

.op-texts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.op-text-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.op-text-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.op-text-emoji {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.op-text-body {
    flex-grow: 1;
    min-width: 0;
}

.op-text-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.op-text-desc {
    font-size: 0.9rem;
    color: var(--light);
    line-height: 1.5;
    margin-bottom: 8px;
}

.op-text-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.op-text-chip {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--light);
}

.op-text-chip-easy {
    background: #D1FAE5;
    color: #065F46;
}

.op-text-chip-medium {
    background: #FEF3C7;
    color: #92400E;
}

.op-text-chip-hard {
    background: #FEE2E2;
    color: #991B1B;
}

/* === ИГРА === */
.op-game-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.op-game-progress {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
}

.op-game-score {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.op-progress-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}

.op-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.35s ease;
    border-radius: 4px;
}

/* === СИТУАЦИЯ === */
.op-situation {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.op-situation-label {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary);
    margin-bottom: 8px;
}

.op-situation-text {
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.6;
    font-style: italic;
}

.op-situation-collapsed .op-situation-text {
    font-size: 0.88rem;
    max-height: 72px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* === ЧАСТЬ ПИСЬМА === */
.op-part-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
    line-height: 1.35;
}

.op-part-hint {
    font-size: 0.95rem;
    color: var(--light);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* === ВАРИАНТЫ === */
.op-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.op-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.5;
    width: 100%;
}

.op-option:hover:not(:disabled) {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.op-option:disabled {
    cursor: default;
}

.op-option-letter {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--light);
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.op-option:hover:not(:disabled) .op-option-letter {
    background: var(--primary);
    color: var(--white);
}

.op-option-text {
    flex-grow: 1;
    padding-top: 4px;
}

.op-option-correct {
    border-color: #10B981;
    background: #F0FDF4;
}

.op-option-correct .op-option-letter {
    background: #10B981;
    color: var(--white);
}

.op-option-wrong {
    border-color: #EF4444;
    background: #FEF2F2;
    opacity: 0.7;
}

.op-option-wrong .op-option-letter {
    background: #EF4444;
    color: var(--white);
}

/* === ОБРАТНАЯ СВЯЗЬ === */
.op-feedback {
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    animation: opFadeIn 0.3s ease;
}

.op-feedback-ok {
    background: #F0FDF4;
    border-left: 4px solid #10B981;
    color: #065F46;
}

.op-feedback-bad {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
    color: #991B1B;
}

.op-feedback-title {
    font-weight: 800;
    margin-bottom: 6px;
    display: block;
}

.op-feedback-answer {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.02rem;
}

/* === РЕЗУЛЬТАТ === */
.op-result-emoji {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 12px;
}

.op-result-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.op-result-score {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--primary);
    text-align: center;
    margin-bottom: 4px;
}

.op-result-sub {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 24px;
}

.op-result-best {
    text-align: center;
    font-size: 0.95rem;
    color: var(--light);
    margin-bottom: 28px;
}

.op-result-best strong {
    color: var(--primary);
    font-weight: 800;
}

.op-breakdown {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.op-breakdown h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.op-breakdown-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.92rem;
    line-height: 1.5;
}

.op-breakdown-item:last-child {
    border-bottom: none;
}

.op-breakdown-item-ok {
    color: #065F46;
}

.op-breakdown-item-bad {
    color: #991B1B;
}

.op-breakdown-item strong {
    display: block;
    margin-bottom: 4px;
}

/* === КНОПКИ === */
.op-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.op-btn {
    display: block;
    text-align: center;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: inherit;
    border: 2px solid transparent;
}

.op-btn-main {
    background: var(--primary);
    color: var(--white);
}

.op-btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.op-btn-outline {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}

.op-btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.op-btn-ghost {
    background: var(--bg);
    color: var(--dark);
    border-color: #E2E8F0;
}

.op-btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* === АДАПТИВ === */
@media (max-width: 640px) {
    .op-screen {
        padding: 32px 22px;
    }

    .op-start-title {
        font-size: 1.5rem;
    }

    .op-start-desc {
        font-size: 0.98rem;
    }

    .op-part-title {
        font-size: 1.1rem;
    }

    .op-part-hint {
        font-size: 0.9rem;
    }

    .op-option {
        padding: 14px 14px;
        font-size: 0.95rem;
        gap: 10px;
    }

    .op-option-letter {
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
    }

    .op-result-score {
        font-size: 2.1rem;
    }

    .op-result-actions {
        grid-template-columns: 1fr;
    }

    .op-choose-title {
        font-size: 1.35rem;
    }

    .op-text-card {
        padding: 18px;
        gap: 14px;
    }

    .op-text-emoji {
        font-size: 2rem;
    }

    .op-text-name {
        font-size: 1.05rem;
    }
}

/* ============================================ */
/* === СЕРВИС: ОГЭ: Устная часть (oge-speaking) === */
/* === Префикс: os-                          === */
/* ============================================ */

.os-app {
    max-width: 780px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.os-screen {
    padding: 48px 40px;
    opacity: 1;
}

@keyframes osFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === СТАРТ === */
.os-start-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 16px;
}

.os-start-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.25;
}

.os-start-desc {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 24px;
}

.os-start-rules {
    background: var(--bg);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.os-start-rules h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.os-start-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.os-start-rules li {
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}

.os-start-rules li::before {
    content: '▸';
    position: absolute;
    left: 4px;
    color: var(--primary);
    font-weight: 700;
}

.os-btn-primary {
    display: block;
    width: 100%;
    padding: 18px 24px;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.os-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
}

/* === ВЫБОР ТЕМЫ === */
.os-choose-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.os-choose-sub {
    font-size: 1rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 28px;
}

.os-texts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.os-text-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.os-text-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.os-text-emoji {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.os-text-body {
    flex-grow: 1;
    min-width: 0;
}

.os-text-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.os-text-desc {
    font-size: 0.9rem;
    color: var(--light);
    line-height: 1.5;
    margin-bottom: 8px;
}

.os-text-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.os-text-chip {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--light);
}

.os-text-chip-easy {
    background: #D1FAE5;
    color: #065F46;
}

.os-text-chip-medium {
    background: #FEF3C7;
    color: #92400E;
}

.os-text-chip-hard {
    background: #FEE2E2;
    color: #991B1B;
}

/* === ИГРА === */
.os-game-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.os-game-progress {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
}

.os-game-score {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.os-progress-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}

.os-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.35s ease;
    border-radius: 4px;
}

/* === ВОПРОС === */
.os-question-box {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-radius: 14px;
    padding: 24px 26px;
    margin-bottom: 24px;
}

.os-autoresponder {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.os-autoresponder-icon {
    font-size: 1.2rem;
}

.os-autoresponder-label {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary);
}

.os-question {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.45;
    margin-bottom: 16px;
}

.os-speak-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 24px;
    color: var(--primary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.os-speak-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* === ВАРИАНТЫ === */
.os-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.os-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.5;
    width: 100%;
}

.os-option:hover:not(:disabled) {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.os-option:disabled {
    cursor: default;
}

.os-option-letter {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--light);
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.os-option:hover:not(:disabled) .os-option-letter {
    background: var(--primary);
    color: var(--white);
}

.os-option-text {
    flex-grow: 1;
    padding-top: 4px;
}

.os-option-correct {
    border-color: #10B981;
    background: #F0FDF4;
}

.os-option-correct .os-option-letter {
    background: #10B981;
    color: var(--white);
}

.os-option-wrong {
    border-color: #EF4444;
    background: #FEF2F2;
    opacity: 0.7;
}

.os-option-wrong .os-option-letter {
    background: #EF4444;
    color: var(--white);
}

/* === ОБРАТНАЯ СВЯЗЬ === */
.os-feedback {
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    animation: osFadeIn 0.3s ease;
}

.os-feedback-ok {
    background: #F0FDF4;
    border-left: 4px solid #10B981;
    color: #065F46;
}

.os-feedback-bad {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
    color: #991B1B;
}

.os-feedback-title {
    font-weight: 800;
    margin-bottom: 6px;
    display: block;
}

.os-feedback-answer {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.02rem;
}

/* === РЕЗУЛЬТАТ === */
.os-result-emoji {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 12px;
}

.os-result-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.os-result-score {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--primary);
    text-align: center;
    margin-bottom: 4px;
}

.os-result-sub {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 24px;
}

.os-result-best {
    text-align: center;
    font-size: 0.95rem;
    color: var(--light);
    margin-bottom: 28px;
}

.os-result-best strong {
    color: var(--primary);
    font-weight: 800;
}

.os-breakdown {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.os-breakdown h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.os-breakdown-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.92rem;
    line-height: 1.5;
}

.os-breakdown-item:last-child {
    border-bottom: none;
}

.os-breakdown-item-ok {
    color: #065F46;
}

.os-breakdown-item-bad {
    color: #991B1B;
}

.os-breakdown-item strong {
    display: block;
    margin-bottom: 4px;
}

/* === КНОПКИ === */
.os-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.os-btn {
    display: block;
    text-align: center;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: inherit;
    border: 2px solid transparent;
}

.os-btn-main {
    background: var(--primary);
    color: var(--white);
}

.os-btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.os-btn-outline {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}

.os-btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.os-btn-ghost {
    background: var(--bg);
    color: var(--dark);
    border-color: #E2E8F0;
}

.os-btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* === АДАПТИВ === */
@media (max-width: 640px) {
    .os-screen {
        padding: 32px 22px;
    }

    .os-start-title {
        font-size: 1.5rem;
    }

    .os-start-desc {
        font-size: 0.98rem;
    }

    .os-question-box {
        padding: 20px 18px;
    }

    .os-question {
        font-size: 1.1rem;
    }

    .os-option {
        padding: 14px 14px;
        font-size: 0.95rem;
        gap: 10px;
    }

    .os-option-letter {
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
    }

    .os-result-score {
        font-size: 2.1rem;
    }

    .os-result-actions {
        grid-template-columns: 1fr;
    }

    .os-choose-title {
        font-size: 1.35rem;
    }

    .os-text-card {
        padding: 18px;
        gap: 14px;
    }

    .os-text-emoji {
        font-size: 2rem;
    }

    .os-text-name {
        font-size: 1.05rem;
    }
}

/* ============================================ */
/* === СЕРВИС: ОГЭ: Аудирование (oge-listening) === */
/* === Префикс: ol-                          === */
/* ============================================ */

.ol-app {
    max-width: 780px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ol-screen {
    padding: 48px 40px;
    opacity: 1;
}

@keyframes olFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === СТАРТ === */
.ol-start-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 16px;
}

.ol-start-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.25;
}

.ol-start-desc {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 24px;
}

.ol-start-rules {
    background: var(--bg);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.ol-start-rules h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.ol-start-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ol-start-rules li {
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}

.ol-start-rules li::before {
    content: '▸';
    position: absolute;
    left: 4px;
    color: var(--primary);
    font-weight: 700;
}

.ol-btn-primary {
    display: block;
    width: 100%;
    padding: 18px 24px;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ol-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
}

/* === ВЫБОР АУДИО === */
.ol-choose-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.ol-choose-sub {
    font-size: 1rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 28px;
}

.ol-texts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.ol-text-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.ol-text-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.ol-text-emoji {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.ol-text-body {
    flex-grow: 1;
    min-width: 0;
}

.ol-text-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.ol-text-desc {
    font-size: 0.9rem;
    color: var(--light);
    line-height: 1.5;
    margin-bottom: 8px;
}

.ol-text-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ol-text-chip {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--light);
}

.ol-text-chip-easy {
    background: #D1FAE5;
    color: #065F46;
}

.ol-text-chip-medium {
    background: #FEF3C7;
    color: #92400E;
}

.ol-text-chip-hard {
    background: #FEE2E2;
    color: #991B1B;
}

/* === ИГРА === */
.ol-game-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ol-game-progress {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
}

.ol-game-score {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.ol-progress-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}

.ol-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.35s ease;
    border-radius: 4px;
}

/* === ПЛЕЕР === */
.ol-player {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(6, 182, 212, 0.06) 100%);
    border-radius: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ol-player-icon {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.ol-player-info {
    flex-grow: 1;
    min-width: 0;
}

.ol-player-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.ol-player-sub {
    font-size: 0.88rem;
    color: var(--light);
    line-height: 1.4;
}

.ol-play-btn {
    flex-shrink: 0;
    padding: 12px 22px;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.ol-play-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(124, 58, 237, 0.3);
}

.ol-play-btn:disabled {
    background: #CBD5E1;
    cursor: default;
    color: #64748B;
}

/* === ВОПРОС === */
.ol-question {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.45;
    margin-bottom: 20px;
}

/* === ВАРИАНТЫ === */
.ol-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ol-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.5;
    width: 100%;
}

.ol-option:hover:not(:disabled) {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.ol-option:disabled {
    cursor: default;
}

.ol-option-letter {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--light);
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.ol-option:hover:not(:disabled) .ol-option-letter {
    background: var(--primary);
    color: var(--white);
}

.ol-option-text {
    flex-grow: 1;
    padding-top: 4px;
}

.ol-option-correct {
    border-color: #10B981;
    background: #F0FDF4;
}

.ol-option-correct .ol-option-letter {
    background: #10B981;
    color: var(--white);
}

.ol-option-wrong {
    border-color: #EF4444;
    background: #FEF2F2;
    opacity: 0.7;
}

.ol-option-wrong .ol-option-letter {
    background: #EF4444;
    color: var(--white);
}

/* === ОБРАТНАЯ СВЯЗЬ === */
.ol-feedback {
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    animation: olFadeIn 0.3s ease;
}

.ol-feedback-ok {
    background: #F0FDF4;
    border-left: 4px solid #10B981;
    color: #065F46;
}

.ol-feedback-bad {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
    color: #991B1B;
}

.ol-feedback-title {
    font-weight: 800;
    margin-bottom: 6px;
    display: block;
}

.ol-feedback-answer {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.02rem;
}

/* === СКРИПТ === */
.ol-script {
    background: var(--bg);
    border-radius: 12px;
    padding: 4px 20px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.ol-script-full {
    margin-bottom: 28px;
}

.ol-script summary {
    cursor: pointer;
    padding: 14px 0;
    font-weight: 700;
    color: var(--primary);
    user-select: none;
    list-style: none;
}

.ol-script summary::-webkit-details-marker {
    display: none;
}

.ol-script summary::before {
    content: '▸ ';
    display: inline-block;
    transition: transform 0.2s ease;
}

.ol-script[open] summary::before {
    transform: rotate(90deg);
}

.ol-script-text {
    padding: 0 0 18px;
    color: var(--dark);
    line-height: 1.7;
    font-style: italic;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 14px;
}

/* === РЕЗУЛЬТАТ === */
.ol-result-emoji {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 12px;
}

.ol-result-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.ol-result-score {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--primary);
    text-align: center;
    margin-bottom: 4px;
}

.ol-result-sub {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 24px;
}

.ol-result-best {
    text-align: center;
    font-size: 0.95rem;
    color: var(--light);
    margin-bottom: 28px;
}

.ol-result-best strong {
    color: var(--primary);
    font-weight: 800;
}

.ol-breakdown {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.ol-breakdown h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.ol-breakdown-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.92rem;
    line-height: 1.5;
}

.ol-breakdown-item:last-child {
    border-bottom: none;
}

.ol-breakdown-item-ok {
    color: #065F46;
}

.ol-breakdown-item-bad {
    color: #991B1B;
}

.ol-breakdown-item strong {
    display: block;
    margin-bottom: 4px;
}

/* === КНОПКИ === */
.ol-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ol-btn {
    display: block;
    text-align: center;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: inherit;
    border: 2px solid transparent;
}

.ol-btn-main {
    background: var(--primary);
    color: var(--white);
}

.ol-btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.ol-btn-outline {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}

.ol-btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.ol-btn-ghost {
    background: var(--bg);
    color: var(--dark);
    border-color: #E2E8F0;
}

.ol-btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* === АДАПТИВ === */
@media (max-width: 640px) {
    .ol-screen {
        padding: 32px 22px;
    }

    .ol-start-title {
        font-size: 1.5rem;
    }

    .ol-start-desc {
        font-size: 0.98rem;
    }

    .ol-player {
        padding: 16px 18px;
        gap: 12px;
    }

    .ol-player-icon {
        font-size: 2rem;
    }

    .ol-play-btn {
        width: 100%;
        margin-top: 4px;
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .ol-question {
        font-size: 1.05rem;
    }

    .ol-option {
        padding: 14px 14px;
        font-size: 0.95rem;
        gap: 10px;
    }

    .ol-option-letter {
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
    }

    .ol-result-score {
        font-size: 2.1rem;
    }

    .ol-result-actions {
        grid-template-columns: 1fr;
    }

    .ol-choose-title {
        font-size: 1.35rem;
    }

    .ol-text-card {
        padding: 18px;
        gap: 14px;
    }

    .ol-text-emoji {
        font-size: 2rem;
    }

    .ol-text-name {
        font-size: 1.05rem;
    }
}

/* ============================================ */
/* === СЕРВИС: ОГЭ: Чтение (oge-reading)      === */
/* === Префикс: or-                           === */
/* ============================================ */

.or-app {
    max-width: 780px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.or-screen {
    padding: 48px 40px;
    opacity: 1;
}

@keyframes orFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === СТАРТ === */
.or-start-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 16px;
}

.or-start-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.25;
}

.or-start-desc {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 24px;
}

.or-start-rules {
    background: var(--bg);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.or-start-rules h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.or-start-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.or-start-rules li {
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}

.or-start-rules li::before {
    content: '▸';
    position: absolute;
    left: 4px;
    color: var(--primary);
    font-weight: 700;
}

.or-btn-primary {
    display: block;
    width: 100%;
    padding: 18px 24px;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.or-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
}

/* === ВЫБОР ТЕКСТА === */
.or-choose-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.or-choose-sub {
    font-size: 1rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 28px;
}

.or-texts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.or-text-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.or-text-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.or-text-emoji {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.or-text-body {
    flex-grow: 1;
    min-width: 0;
}

.or-text-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.or-text-desc {
    font-size: 0.9rem;
    color: var(--light);
    line-height: 1.5;
    margin-bottom: 8px;
}

.or-text-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.or-text-chip {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--light);
}

.or-text-chip-easy {
    background: #D1FAE5;
    color: #065F46;
}

.or-text-chip-medium {
    background: #FEF3C7;
    color: #92400E;
}

.or-text-chip-hard {
    background: #FEE2E2;
    color: #991B1B;
}

/* === ИГРА === */
.or-game-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.or-game-progress {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
}

.or-game-score {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.or-progress-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}

.or-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.35s ease;
    border-radius: 4px;
}

/* === ТЕКСТ === */
.or-text-box {
    background: var(--bg);
    border-radius: 14px;
    padding: 4px 22px;
    margin-bottom: 24px;
    border: 2px solid transparent;
    transition: border-color 0.25s ease;
}

.or-text-box[open] {
    border-color: rgba(124, 58, 237, 0.2);
}

.or-text-box-full {
    margin-bottom: 28px;
}

.or-text-box summary {
    cursor: pointer;
    padding: 16px 0;
    user-select: none;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.or-text-box summary::-webkit-details-marker {
    display: none;
}

.or-text-box summary::before {
    content: '📖';
    flex-shrink: 0;
    margin-right: 8px;
}

.or-text-box-label {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    flex-grow: 1;
}

.or-text-box-hint {
    font-size: 0.82rem;
    color: var(--light);
    font-weight: 600;
    font-style: italic;
}

.or-text-content {
    padding: 0 0 20px;
    color: var(--dark);
    line-height: 1.75;
    font-size: 1.02rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 16px;
}

/* === ВОПРОС === */
.or-question {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.45;
    margin-bottom: 20px;
}

/* === ВАРИАНТЫ === */
.or-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.or-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.5;
    width: 100%;
}

.or-option:hover:not(:disabled) {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.or-option:disabled {
    cursor: default;
}

.or-option-letter {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--light);
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.or-option:hover:not(:disabled) .or-option-letter {
    background: var(--primary);
    color: var(--white);
}

.or-option-text {
    flex-grow: 1;
    padding-top: 4px;
}

.or-option-correct {
    border-color: #10B981;
    background: #F0FDF4;
}

.or-option-correct .or-option-letter {
    background: #10B981;
    color: var(--white);
}

.or-option-wrong {
    border-color: #EF4444;
    background: #FEF2F2;
    opacity: 0.7;
}

.or-option-wrong .or-option-letter {
    background: #EF4444;
    color: var(--white);
}

/* === ОБРАТНАЯ СВЯЗЬ === */
.or-feedback {
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    animation: orFadeIn 0.3s ease;
}

.or-feedback-ok {
    background: #F0FDF4;
    border-left: 4px solid #10B981;
    color: #065F46;
}

.or-feedback-bad {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
    color: #991B1B;
}

.or-feedback-title {
    font-weight: 800;
    margin-bottom: 6px;
    display: block;
}

.or-feedback-answer {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.02rem;
}

/* === РЕЗУЛЬТАТ === */
.or-result-emoji {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 12px;
}

.or-result-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.or-result-score {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--primary);
    text-align: center;
    margin-bottom: 4px;
}

.or-result-sub {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 24px;
}

.or-result-best {
    text-align: center;
    font-size: 0.95rem;
    color: var(--light);
    margin-bottom: 28px;
}

.or-result-best strong {
    color: var(--primary);
    font-weight: 800;
}

.or-breakdown {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.or-breakdown h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.or-breakdown-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.92rem;
    line-height: 1.5;
}

.or-breakdown-item:last-child {
    border-bottom: none;
}

.or-breakdown-item-ok {
    color: #065F46;
}

.or-breakdown-item-bad {
    color: #991B1B;
}

.or-breakdown-item strong {
    display: block;
    margin-bottom: 4px;
}

/* === КНОПКИ === */
.or-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.or-btn {
    display: block;
    text-align: center;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: inherit;
    border: 2px solid transparent;
}

.or-btn-main {
    background: var(--primary);
    color: var(--white);
}

.or-btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.or-btn-outline {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}

.or-btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.or-btn-ghost {
    background: var(--bg);
    color: var(--dark);
    border-color: #E2E8F0;
}

.or-btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* === АДАПТИВ === */
@media (max-width: 640px) {
    .or-screen {
        padding: 32px 22px;
    }

    .or-start-title {
        font-size: 1.5rem;
    }

    .or-start-desc {
        font-size: 0.98rem;
    }

    .or-text-box {
        padding: 4px 18px;
    }

    .or-text-content {
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .or-text-box summary {
        padding: 14px 0;
        gap: 6px;
    }

    .or-text-box-label {
        font-size: 0.95rem;
    }

    .or-text-box-hint {
        font-size: 0.75rem;
    }

    .or-question {
        font-size: 1.05rem;
    }

    .or-option {
        padding: 14px 14px;
        font-size: 0.95rem;
        gap: 10px;
    }

    .or-option-letter {
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
    }

    .or-result-score {
        font-size: 2.1rem;
    }

    .or-result-actions {
        grid-template-columns: 1fr;
    }

    .or-choose-title {
        font-size: 1.35rem;
    }

    .or-text-card {
        padding: 18px;
        gap: 14px;
    }

    .or-text-emoji {
        font-size: 2rem;
    }

    .or-text-name {
        font-size: 1.05rem;
    }
}

/* ============================================ */
/* === СЕРВИС: ОГЭ: Пробный экзамен (oge-mock) === */
/* === Префикс: om-                          === */
/* ============================================ */

.om-app {
    max-width: 820px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.om-screen {
    padding: 40px;
    opacity: 1;
}

@keyframes omFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === СТАРТ === */
.om-start-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 16px;
}

.om-start-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.25;
}

.om-start-desc {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 24px;
}

.om-start-rules {
    background: var(--bg);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.om-start-rules h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.om-start-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.om-start-rules li {
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.55;
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}

.om-start-rules li::before {
    content: '▸';
    position: absolute;
    left: 4px;
    color: var(--primary);
    font-weight: 700;
}

.om-btn-primary {
    display: block;
    width: 100%;
    padding: 18px 24px;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.om-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
}

/* === ТАЙМЕР === */
.om-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(6, 182, 212, 0.06) 100%);
    border-radius: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.om-timer-icon {
    font-size: 1.3rem;
}

.om-timer-label {
    font-size: 0.9rem;
    color: var(--light);
    font-weight: 600;
}

.om-timer-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    margin-right: auto;
}

.om-timer-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.06) 100%);
}

.om-timer-warning .om-timer-value {
    color: #D97706;
}

.om-timer-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.06) 100%);
}

.om-timer-danger .om-timer-value {
    color: #DC2626;
    animation: omPulse 1s ease-in-out infinite;
}

@keyframes omPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

.om-finish-btn {
    padding: 10px 18px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 24px;
    color: var(--dark);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.om-finish-btn:hover {
    border-color: #EF4444;
    color: #EF4444;
}

/* === ИГРА === */
.om-game-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.om-section-badge {
    font-size: 0.85rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    letter-spacing: 0.3px;
}

.om-game-progress {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--light);
}

.om-progress-bar {
    height: 6px;
    background: var(--bg);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 24px;
}

.om-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.35s ease;
    border-radius: 3px;
}

/* === АУДИО === */
.om-audio-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(6, 182, 212, 0.06) 100%);
    border-radius: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.om-audio-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    flex-grow: 1;
}

.om-play-btn {
    padding: 12px 22px;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.om-play-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(124, 58, 237, 0.3);
}

.om-play-btn:disabled {
    background: #CBD5E1;
    color: #64748B;
    cursor: default;
}

/* === ТЕКСТ === */
.om-text-box {
    background: var(--bg);
    border-radius: 12px;
    padding: 4px 22px;
    margin-bottom: 22px;
}

.om-text-box summary {
    cursor: pointer;
    padding: 14px 0;
    font-weight: 700;
    color: var(--primary);
    user-select: none;
    list-style: none;
    font-size: 0.95rem;
}

.om-text-box summary::-webkit-details-marker {
    display: none;
}

.om-text-box summary::before {
    content: '▸ ';
    display: inline-block;
    transition: transform 0.2s ease;
}

.om-text-box[open] summary::before {
    transform: rotate(90deg);
}

.om-text-content {
    padding: 0 0 18px;
    color: var(--dark);
    line-height: 1.7;
    font-size: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 14px;
}

/* === ВОПРОС === */
.om-question {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* === ВАРИАНТЫ === */
.om-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.om-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 18px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.5;
    width: 100%;
}

.om-option:hover:not(:disabled) {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.om-option:disabled {
    cursor: default;
}

.om-option-letter {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--light);
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.om-option:hover:not(:disabled) .om-option-letter {
    background: var(--primary);
    color: var(--white);
}

.om-option-text {
    flex-grow: 1;
    padding-top: 4px;
}

.om-option-correct {
    border-color: #10B981;
    background: #F0FDF4;
}

.om-option-correct .om-option-letter {
    background: #10B981;
    color: var(--white);
}

.om-option-wrong {
    border-color: #EF4444;
    background: #FEF2F2;
    opacity: 0.7;
}

.om-option-wrong .om-option-letter {
    background: #EF4444;
    color: var(--white);
}

/* === ОБРАТНАЯ СВЯЗЬ === */
.om-feedback {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.98rem;
    line-height: 1.6;
    animation: omFadeIn 0.3s ease;
}

.om-feedback-ok {
    background: #F0FDF4;
    border-left: 4px solid #10B981;
    color: #065F46;
}

.om-feedback-bad {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
    color: #991B1B;
}

.om-feedback-title {
    font-weight: 800;
    margin-bottom: 6px;
    display: block;
}

.om-feedback-answer {
    font-weight: 700;
    color: var(--primary);
}

/* === РЕЗУЛЬТАТ === */
.om-result-top {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 28px;
}

.om-result-grade {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    padding: 24px 16px;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.om-grade-number {
    font-size: 3.6rem;
    font-weight: 900;
    line-height: 1;
}

.om-grade-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.9;
    margin-top: 6px;
}

.om-result-info {
    min-width: 0;
}

.om-result-emoji {
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 8px;
}

.om-result-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.om-result-score {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1.1;
}

.om-result-sub {
    font-size: 0.95rem;
    color: var(--light);
    margin-bottom: 6px;
}

.om-result-best {
    font-size: 0.9rem;
    color: var(--light);
    margin: 0;
}

.om-result-best strong {
    color: var(--primary);
    font-weight: 800;
}

/* === СТАТИСТИКА ПО РАЗДЕЛАМ === */
.om-section-stats {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 20px;
}

.om-section-stats h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 14px;
}

.om-section-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 0.92rem;
    font-weight: 600;
}

.om-section-stat:last-child {
    margin-bottom: 0;
}

.om-section-ok {
    background: #F0FDF4;
    color: #065F46;
}

.om-section-mid {
    background: #FEF3C7;
    color: #92400E;
}

.om-section-bad {
    background: #FEF2F2;
    color: #991B1B;
}

.om-section-stat-name {
    font-weight: 700;
}

.om-section-stat-value {
    font-weight: 800;
    letter-spacing: 0.3px;
}

/* === РАЗБОР === */
.om-breakdown {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 24px;
}

.om-breakdown h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 14px;
}

.om-breakdown-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    line-height: 1.55;
}

.om-breakdown-item:last-child {
    border-bottom: none;
}

.om-breakdown-item-ok {
    color: #065F46;
}

.om-breakdown-item-bad {
    color: #991B1B;
}

.om-breakdown-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--dark);
}

.om-breakdown-skip {
    margin-top: 14px;
    padding: 12px 16px;
    background: #FEF3C7;
    border-left: 4px solid #F59E0B;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #92400E;
    font-weight: 600;
}

/* === КНОПКИ === */
.om-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.om-btn {
    display: block;
    text-align: center;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: inherit;
    border: 2px solid transparent;
}

.om-btn-main {
    background: var(--primary);
    color: var(--white);
}

.om-btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.om-btn-outline {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}

.om-btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.om-btn-ghost {
    background: var(--bg);
    color: var(--dark);
    border-color: #E2E8F0;
}

.om-btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* === АДАПТИВ === */
@media (max-width: 700px) {
    .om-screen {
        padding: 28px 20px;
    }

    .om-start-title {
        font-size: 1.5rem;
    }

    .om-timer {
        padding: 12px 16px;
        gap: 8px;
    }

    .om-timer-value {
        font-size: 1.15rem;
    }

    .om-finish-btn {
        width: 100%;
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .om-question {
        font-size: 1.05rem;
    }

    .om-option {
        padding: 13px 14px;
        font-size: 0.95rem;
        gap: 10px;
    }

    .om-option-letter {
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
    }

    .om-result-top {
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: center;
    }

    .om-result-grade {
        max-width: 160px;
        margin: 0 auto;
    }

    .om-grade-number {
        font-size: 3rem;
    }

    .om-result-score {
        font-size: 1.5rem;
    }

    .om-result-actions {
        grid-template-columns: 1fr;
    }
}

/* ============================================ */
/* === СЕРВИС: ЕГЭ: Аудирование (ege-listening) === */
/* === Префикс: el-                          === */
/* ============================================ */

.el-app {
    max-width: 780px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.el-screen {
    padding: 48px 40px;
    opacity: 1;
}

@keyframes elFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === СТАРТ === */
.el-start-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 16px;
}

.el-start-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.25;
}

.el-start-desc {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 24px;
}

.el-start-rules {
    background: var(--bg);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.el-start-rules h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.el-start-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.el-start-rules li {
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}

.el-start-rules li::before {
    content: '▸';
    position: absolute;
    left: 4px;
    color: var(--primary);
    font-weight: 700;
}

.el-btn-primary {
    display: block;
    width: 100%;
    padding: 18px 24px;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.el-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
}

/* === ВЫБОР АУДИО === */
.el-choose-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.el-choose-sub {
    font-size: 1rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 28px;
}

.el-texts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.el-text-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.el-text-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.el-text-emoji {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.el-text-body {
    flex-grow: 1;
    min-width: 0;
}

.el-text-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.el-text-desc {
    font-size: 0.9rem;
    color: var(--light);
    line-height: 1.5;
    margin-bottom: 8px;
}

.el-text-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.el-text-chip {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--light);
}

.el-text-chip-medium {
    background: #FEF3C7;
    color: #92400E;
}

.el-text-chip-hard {
    background: #FEE2E2;
    color: #991B1B;
}

/* === ИГРА === */
.el-game-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.el-game-progress {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
}

.el-game-score {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.el-progress-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}

.el-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.35s ease;
    border-radius: 4px;
}

/* === ПЛЕЕР === */
.el-player {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(6, 182, 212, 0.06) 100%);
    border-radius: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.el-player-icon {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.el-player-info {
    flex-grow: 1;
    min-width: 0;
}

.el-player-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.el-player-sub {
    font-size: 0.88rem;
    color: var(--light);
    line-height: 1.4;
}

.el-play-btn {
    flex-shrink: 0;
    padding: 12px 22px;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.el-play-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(124, 58, 237, 0.3);
}

.el-play-btn:disabled {
    background: #CBD5E1;
    cursor: default;
    color: #64748B;
}

/* === ВОПРОС === */
.el-question {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.45;
    margin-bottom: 20px;
}

/* === ВАРИАНТЫ === */
.el-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.el-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.5;
    width: 100%;
}

.el-option:hover:not(:disabled) {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.el-option:disabled {
    cursor: default;
}

.el-option-letter {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--light);
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.el-option:hover:not(:disabled) .el-option-letter {
    background: var(--primary);
    color: var(--white);
}

.el-option-text {
    flex-grow: 1;
    padding-top: 4px;
}

.el-option-correct {
    border-color: #10B981;
    background: #F0FDF4;
}

.el-option-correct .el-option-letter {
    background: #10B981;
    color: var(--white);
}

.el-option-wrong {
    border-color: #EF4444;
    background: #FEF2F2;
    opacity: 0.7;
}

.el-option-wrong .el-option-letter {
    background: #EF4444;
    color: var(--white);
}

/* === ОБРАТНАЯ СВЯЗЬ === */
.el-feedback {
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    animation: elFadeIn 0.3s ease;
}

.el-feedback-ok {
    background: #F0FDF4;
    border-left: 4px solid #10B981;
    color: #065F46;
}

.el-feedback-bad {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
    color: #991B1B;
}

.el-feedback-title {
    font-weight: 800;
    margin-bottom: 6px;
    display: block;
}

.el-feedback-answer {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.02rem;
}

/* === СКРИПТ === */
.el-script {
    background: var(--bg);
    border-radius: 12px;
    padding: 4px 20px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.el-script-full {
    margin-bottom: 28px;
}

.el-script summary {
    cursor: pointer;
    padding: 14px 0;
    font-weight: 700;
    color: var(--primary);
    user-select: none;
    list-style: none;
}

.el-script summary::-webkit-details-marker {
    display: none;
}

.el-script summary::before {
    content: '▸ ';
    display: inline-block;
    transition: transform 0.2s ease;
}

.el-script[open] summary::before {
    transform: rotate(90deg);
}

.el-script-text {
    padding: 0 0 18px;
    color: var(--dark);
    line-height: 1.7;
    font-style: italic;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 14px;
}

/* === РЕЗУЛЬТАТ === */
.el-result-emoji {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 12px;
}

.el-result-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.el-result-score {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--primary);
    text-align: center;
    margin-bottom: 4px;
}

.el-result-sub {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 24px;
}

.el-result-best {
    text-align: center;
    font-size: 0.95rem;
    color: var(--light);
    margin-bottom: 28px;
}

.el-result-best strong {
    color: var(--primary);
    font-weight: 800;
}

.el-breakdown {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.el-breakdown h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.el-breakdown-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.92rem;
    line-height: 1.5;
}

.el-breakdown-item:last-child {
    border-bottom: none;
}

.el-breakdown-item-ok {
    color: #065F46;
}

.el-breakdown-item-bad {
    color: #991B1B;
}

.el-breakdown-item strong {
    display: block;
    margin-bottom: 4px;
}

/* === КНОПКИ === */
.el-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.el-btn {
    display: block;
    text-align: center;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: inherit;
    border: 2px solid transparent;
}

.el-btn-main {
    background: var(--primary);
    color: var(--white);
}

.el-btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.el-btn-outline {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}

.el-btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.el-btn-ghost {
    background: var(--bg);
    color: var(--dark);
    border-color: #E2E8F0;
}

.el-btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* === АДАПТИВ === */
@media (max-width: 640px) {
    .el-screen {
        padding: 32px 22px;
    }

    .el-start-title {
        font-size: 1.5rem;
    }

    .el-start-desc {
        font-size: 0.98rem;
    }

    .el-player {
        padding: 16px 18px;
        gap: 12px;
    }

    .el-player-icon {
        font-size: 2rem;
    }

    .el-play-btn {
        width: 100%;
        margin-top: 4px;
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .el-question {
        font-size: 1.05rem;
    }

    .el-option {
        padding: 14px 14px;
        font-size: 0.95rem;
        gap: 10px;
    }

    .el-option-letter {
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
    }

    .el-result-score {
        font-size: 2.1rem;
    }

    .el-result-actions {
        grid-template-columns: 1fr;
    }

    .el-choose-title {
        font-size: 1.35rem;
    }

    .el-text-card {
        padding: 18px;
        gap: 14px;
    }

    .el-text-emoji {
        font-size: 2rem;
    }

    .el-text-name {
        font-size: 1.05rem;
    }
}

/* ============================================ */
/* === СЕРВИС: ЕГЭ: Чтение (ege-reading)      === */
/* === Префикс: er-                           === */
/* ============================================ */

.er-app {
    max-width: 820px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.er-screen {
    padding: 48px 40px;
    opacity: 1;
}

@keyframes erFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === СТАРТ === */
.er-start-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 16px;
}

.er-start-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.25;
}

.er-start-desc {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 24px;
}

.er-start-rules {
    background: var(--bg);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.er-start-rules h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.er-start-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.er-start-rules li {
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}

.er-start-rules li::before {
    content: '▸';
    position: absolute;
    left: 4px;
    color: var(--primary);
    font-weight: 700;
}

.er-btn-primary {
    display: block;
    width: 100%;
    padding: 18px 24px;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.er-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
}

/* === ВЫБОР ТЕКСТА === */
.er-choose-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.er-choose-sub {
    font-size: 1rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 28px;
}

.er-texts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.er-text-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.er-text-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.er-text-emoji {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.er-text-body {
    flex-grow: 1;
    min-width: 0;
}

.er-text-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.er-text-desc {
    font-size: 0.9rem;
    color: var(--light);
    line-height: 1.5;
    margin-bottom: 8px;
}

.er-text-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.er-text-chip {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--light);
}

.er-text-chip-medium {
    background: #FEF3C7;
    color: #92400E;
}

.er-text-chip-hard {
    background: #FEE2E2;
    color: #991B1B;
}

/* === ИГРА === */
.er-game-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.er-game-progress {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
}

.er-game-score {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.er-progress-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}

.er-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.35s ease;
    border-radius: 4px;
}

/* === ТЕКСТ === */
.er-text-box {
    background: var(--bg);
    border-radius: 14px;
    padding: 4px 22px;
    margin-bottom: 24px;
    border: 2px solid transparent;
    transition: border-color 0.25s ease;
}

.er-text-box[open] {
    border-color: rgba(124, 58, 237, 0.2);
}

.er-text-box-full {
    margin-bottom: 28px;
}

.er-text-box summary {
    cursor: pointer;
    padding: 16px 0;
    user-select: none;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.er-text-box summary::-webkit-details-marker {
    display: none;
}

.er-text-box summary::before {
    content: '📖';
    flex-shrink: 0;
    margin-right: 8px;
}

.er-text-box-label {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    flex-grow: 1;
}

.er-text-box-hint {
    font-size: 0.82rem;
    color: var(--light);
    font-weight: 600;
    font-style: italic;
}

.er-text-content {
    padding: 0 0 20px;
    color: var(--dark);
    line-height: 1.75;
    font-size: 1.02rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 16px;
}

/* === ВОПРОС === */
.er-question {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* === ВАРИАНТЫ === */
.er-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.er-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.5;
    width: 100%;
}

.er-option:hover:not(:disabled) {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.er-option:disabled {
    cursor: default;
}

.er-option-letter {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--light);
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.er-option:hover:not(:disabled) .er-option-letter {
    background: var(--primary);
    color: var(--white);
}

.er-option-text {
    flex-grow: 1;
    padding-top: 4px;
}

.er-option-correct {
    border-color: #10B981;
    background: #F0FDF4;
}

.er-option-correct .er-option-letter {
    background: #10B981;
    color: var(--white);
}

.er-option-wrong {
    border-color: #EF4444;
    background: #FEF2F2;
    opacity: 0.7;
}

.er-option-wrong .er-option-letter {
    background: #EF4444;
    color: var(--white);
}

/* === ОБРАТНАЯ СВЯЗЬ === */
.er-feedback {
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    animation: erFadeIn 0.3s ease;
}

.er-feedback-ok {
    background: #F0FDF4;
    border-left: 4px solid #10B981;
    color: #065F46;
}

.er-feedback-bad {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
    color: #991B1B;
}

.er-feedback-title {
    font-weight: 800;
    margin-bottom: 6px;
    display: block;
}

.er-feedback-answer {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.02rem;
}

/* === РЕЗУЛЬТАТ === */
.er-result-emoji {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 12px;
}

.er-result-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.er-result-score {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--primary);
    text-align: center;
    margin-bottom: 4px;
}

.er-result-sub {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 24px;
}

.er-result-best {
    text-align: center;
    font-size: 0.95rem;
    color: var(--light);
    margin-bottom: 28px;
}

.er-result-best strong {
    color: var(--primary);
    font-weight: 800;
}

.er-breakdown {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.er-breakdown h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.er-breakdown-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.92rem;
    line-height: 1.5;
}

.er-breakdown-item:last-child {
    border-bottom: none;
}

.er-breakdown-item-ok {
    color: #065F46;
}

.er-breakdown-item-bad {
    color: #991B1B;
}

.er-breakdown-item strong {
    display: block;
    margin-bottom: 4px;
}

/* === КНОПКИ === */
.er-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.er-btn {
    display: block;
    text-align: center;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: inherit;
    border: 2px solid transparent;
}

.er-btn-main {
    background: var(--primary);
    color: var(--white);
}

.er-btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.er-btn-outline {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}

.er-btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.er-btn-ghost {
    background: var(--bg);
    color: var(--dark);
    border-color: #E2E8F0;
}

.er-btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* === АДАПТИВ === */
@media (max-width: 640px) {
    .er-screen {
        padding: 32px 22px;
    }

    .er-start-title {
        font-size: 1.5rem;
    }

    .er-start-desc {
        font-size: 0.98rem;
    }

    .er-text-box {
        padding: 4px 18px;
    }

    .er-text-content {
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .er-text-box summary {
        padding: 14px 0;
        gap: 6px;
    }

    .er-text-box-label {
        font-size: 0.95rem;
    }

    .er-text-box-hint {
        font-size: 0.75rem;
    }

    .er-question {
        font-size: 1.05rem;
    }

    .er-option {
        padding: 14px 14px;
        font-size: 0.95rem;
        gap: 10px;
    }

    .er-option-letter {
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
    }

    .er-result-score {
        font-size: 2.1rem;
    }

    .er-result-actions {
        grid-template-columns: 1fr;
    }

    .er-choose-title {
        font-size: 1.35rem;
    }

    .er-text-card {
        padding: 18px;
        gap: 14px;
    }

    .er-text-emoji {
        font-size: 2rem;
    }

    .er-text-name {
        font-size: 1.05rem;
    }
}

/* ============================================ */
/* === СЕРВИС: ЕГЭ: Грамматика (ege-grammar)  === */
/* === Префикс: eg-                           === */
/* ============================================ */

.eg-app {
    max-width: 780px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.eg-screen {
    padding: 48px 40px;
    opacity: 1;
}

@keyframes egFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === СТАРТ === */
.eg-start-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 16px;
}

.eg-start-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.25;
}

.eg-start-desc {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 24px;
}

.eg-start-rules {
    background: var(--bg);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.eg-start-rules h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.eg-start-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eg-start-rules li {
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}

.eg-start-rules li::before {
    content: '▸';
    position: absolute;
    left: 4px;
    color: var(--primary);
    font-weight: 700;
}

.eg-btn-primary {
    display: block;
    width: 100%;
    padding: 18px 24px;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.eg-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
}

/* === ВЫБОР ТЕКСТА === */
.eg-choose-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.eg-choose-sub {
    font-size: 1rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 28px;
}

.eg-texts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.eg-text-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.eg-text-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.eg-text-emoji {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.eg-text-body {
    flex-grow: 1;
    min-width: 0;
}

.eg-text-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.eg-text-desc {
    font-size: 0.9rem;
    color: var(--light);
    line-height: 1.5;
    margin-bottom: 8px;
}

.eg-text-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.eg-text-chip {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--light);
}

.eg-text-chip-medium {
    background: #FEF3C7;
    color: #92400E;
}

.eg-text-chip-hard {
    background: #FEE2E2;
    color: #991B1B;
}

/* === ИГРА === */
.eg-game-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.eg-game-progress {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
}

.eg-game-score {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.eg-progress-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 28px;
}

.eg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.35s ease;
    border-radius: 4px;
}

.eg-question {
    font-size: 1.25rem;
    line-height: 1.55;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 20px;
    padding: 20px 24px;
    background: var(--bg);
    border-radius: 12px;
}

.eg-question .eg-blank {
    display: inline-block;
    min-width: 90px;
    border-bottom: 2px dashed var(--primary);
    color: var(--primary);
    font-weight: 800;
    padding: 0 8px;
    text-align: center;
}

.eg-prompt-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--light);
    margin-bottom: 8px;
}

.eg-prompt-word {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.eg-input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.eg-input {
    flex-grow: 1;
    font-family: inherit;
    font-size: 1.1rem;
    padding: 16px 20px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    transition: border-color 0.25s ease;
    color: var(--dark);
}

.eg-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.eg-speak-btn {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background: var(--bg);
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eg-speak-btn:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.08);
}

.eg-feedback {
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    animation: egFadeIn 0.3s ease;
}

.eg-feedback-ok {
    background: #F0FDF4;
    border-left: 4px solid #10B981;
    color: #065F46;
}

.eg-feedback-bad {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
    color: #991B1B;
}

.eg-feedback-title {
    font-weight: 800;
    margin-bottom: 6px;
    display: block;
}

.eg-feedback-answer {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
}

/* === РЕЗУЛЬТАТ === */
.eg-result-emoji {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 12px;
}

.eg-result-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.eg-result-score {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--primary);
    text-align: center;
    margin-bottom: 4px;
}

.eg-result-sub {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 24px;
}

.eg-result-best {
    text-align: center;
    font-size: 0.95rem;
    color: var(--light);
    margin-bottom: 28px;
}

.eg-result-best strong {
    color: var(--primary);
    font-weight: 800;
}

.eg-breakdown {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.eg-breakdown h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.eg-breakdown-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.92rem;
    line-height: 1.5;
}

.eg-breakdown-item:last-child {
    border-bottom: none;
}

.eg-breakdown-item-ok {
    color: #065F46;
}

.eg-breakdown-item-bad {
    color: #991B1B;
}

.eg-breakdown-item strong {
    display: block;
    margin-bottom: 2px;
}

.eg-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.eg-btn {
    display: block;
    text-align: center;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: inherit;
    border: 2px solid transparent;
}

.eg-btn-main {
    background: var(--primary);
    color: var(--white);
}

.eg-btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.eg-btn-outline {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}

.eg-btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.eg-btn-ghost {
    background: var(--bg);
    color: var(--dark);
    border-color: #E2E8F0;
}

.eg-btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* === АДАПТИВ === */
@media (max-width: 640px) {
    .eg-screen {
        padding: 32px 22px;
    }

    .eg-start-title {
        font-size: 1.5rem;
    }

    .eg-start-desc {
        font-size: 0.98rem;
    }

    .eg-question {
        font-size: 1.05rem;
        padding: 16px 18px;
    }

    .eg-prompt-word {
        font-size: 1.05rem;
        padding: 7px 12px;
    }

    .eg-input {
        font-size: 1rem;
        padding: 14px 16px;
    }

    .eg-speak-btn {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }

    .eg-result-score {
        font-size: 2.1rem;
    }

    .eg-result-actions {
        grid-template-columns: 1fr;
    }

    .eg-choose-title {
        font-size: 1.35rem;
    }

    .eg-text-card {
        padding: 18px;
        gap: 14px;
    }

    .eg-text-emoji {
        font-size: 2rem;
    }

    .eg-text-name {
        font-size: 1.05rem;
    }
}

/* ============================================ */
/* === СЕРВИС: ЕГЭ: Word Formation (ege-word-formation) === */
/* === Префикс: ew-                          === */
/* ============================================ */

.ew-app {
    max-width: 780px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ew-screen {
    padding: 48px 40px;
    opacity: 1;
}

@keyframes ewFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === СТАРТ === */
.ew-start-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 16px;
}

.ew-start-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.25;
}

.ew-start-desc {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto 24px;
}

.ew-start-rules {
    background: var(--bg);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.ew-start-rules h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.ew-start-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ew-start-rules li {
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}

.ew-start-rules li::before {
    content: '▸';
    position: absolute;
    left: 4px;
    color: var(--primary);
    font-weight: 700;
}

.ew-btn-primary {
    display: block;
    width: 100%;
    padding: 18px 24px;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ew-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
}

/* === ВЫБОР ТЕКСТА === */
.ew-choose-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.ew-choose-sub {
    font-size: 1rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 28px;
}

.ew-texts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.ew-text-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.ew-text-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.ew-text-emoji {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.ew-text-body {
    flex-grow: 1;
    min-width: 0;
}

.ew-text-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.ew-text-desc {
    font-size: 0.9rem;
    color: var(--light);
    line-height: 1.5;
    margin-bottom: 8px;
}

.ew-text-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ew-text-chip {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--light);
}

.ew-text-chip-medium {
    background: #FEF3C7;
    color: #92400E;
}

.ew-text-chip-hard {
    background: #FEE2E2;
    color: #991B1B;
}

/* === ИГРА === */
.ew-game-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ew-game-progress {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
}

.ew-game-score {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.ew-progress-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 28px;
}

.ew-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.35s ease;
    border-radius: 4px;
}

.ew-question {
    font-size: 1.25rem;
    line-height: 1.55;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 20px;
    padding: 20px 24px;
    background: var(--bg);
    border-radius: 12px;
}

.ew-question .ew-blank {
    display: inline-block;
    min-width: 90px;
    border-bottom: 2px dashed var(--primary);
    color: var(--primary);
    font-weight: 800;
    padding: 0 8px;
    text-align: center;
}

.ew-prompt-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--light);
    margin-bottom: 8px;
}

.ew-prompt-word {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.ew-input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.ew-input {
    flex-grow: 1;
    font-family: inherit;
    font-size: 1.1rem;
    padding: 16px 20px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    transition: border-color 0.25s ease;
    color: var(--dark);
}

.ew-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.ew-speak-btn {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background: var(--bg);
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ew-speak-btn:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.08);
}

.ew-feedback {
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    animation: ewFadeIn 0.3s ease;
}

.ew-feedback-ok {
    background: #F0FDF4;
    border-left: 4px solid #10B981;
    color: #065F46;
}

.ew-feedback-bad {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
    color: #991B1B;
}

.ew-feedback-title {
    font-weight: 800;
    margin-bottom: 6px;
    display: block;
}

.ew-feedback-answer {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
}

/* === РЕЗУЛЬТАТ === */
.ew-result-emoji {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 12px;
}

.ew-result-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.ew-result-score {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--primary);
    text-align: center;
    margin-bottom: 4px;
}

.ew-result-sub {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 24px;
}

.ew-result-best {
    text-align: center;
    font-size: 0.95rem;
    color: var(--light);
    margin-bottom: 28px;
}

.ew-result-best strong {
    color: var(--primary);
    font-weight: 800;
}

.ew-breakdown {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.ew-breakdown h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.ew-breakdown-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.92rem;
    line-height: 1.5;
}

.ew-breakdown-item:last-child {
    border-bottom: none;
}

.ew-breakdown-item-ok {
    color: #065F46;
}

.ew-breakdown-item-bad {
    color: #991B1B;
}

.ew-breakdown-item strong {
    display: block;
    margin-bottom: 2px;
}

.ew-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ew-btn {
    display: block;
    text-align: center;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: inherit;
    border: 2px solid transparent;
}

.ew-btn-main {
    background: var(--primary);
    color: var(--white);
}

.ew-btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.ew-btn-outline {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}

.ew-btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.ew-btn-ghost {
    background: var(--bg);
    color: var(--dark);
    border-color: #E2E8F0;
}

.ew-btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* === АДАПТИВ === */
@media (max-width: 640px) {
    .ew-screen {
        padding: 32px 22px;
    }

    .ew-start-title {
        font-size: 1.5rem;
    }

    .ew-start-desc {
        font-size: 0.98rem;
    }

    .ew-question {
        font-size: 1.05rem;
        padding: 16px 18px;
    }

    .ew-prompt-word {
        font-size: 1.05rem;
        padding: 7px 12px;
    }

    .ew-input {
        font-size: 1rem;
        padding: 14px 16px;
    }

    .ew-speak-btn {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }

    .ew-result-score {
        font-size: 2.1rem;
    }

    .ew-result-actions {
        grid-template-columns: 1fr;
    }

    .ew-choose-title {
        font-size: 1.35rem;
    }

    .ew-text-card {
        padding: 18px;
        gap: 14px;
    }

    .ew-text-emoji {
        font-size: 2rem;
    }

    .ew-text-name {
        font-size: 1.05rem;
    }
}

/* ============================================ */
/* === СЕРВИС: ЕГЭ: Эссе (ege-essay)          === */
/* === Префикс: ee-                           === */
/* ============================================ */

.ee-app {
    max-width: 820px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ee-screen {
    padding: 48px 40px;
    opacity: 1;
}

@keyframes eeFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === СТАРТ === */
.ee-start-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 16px;
}

.ee-start-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.25;
}

.ee-start-desc {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto 24px;
}

.ee-start-rules {
    background: var(--bg);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.ee-start-rules h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.ee-start-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ee-start-rules li {
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}

.ee-start-rules li::before {
    content: '▸';
    position: absolute;
    left: 4px;
    color: var(--primary);
    font-weight: 700;
}

.ee-btn-primary {
    display: block;
    width: 100%;
    padding: 18px 24px;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ee-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
}

/* === ВЫБОР ТЕМЫ === */
.ee-choose-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.ee-choose-sub {
    font-size: 1rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 28px;
}

.ee-texts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.ee-text-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.ee-text-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.ee-text-emoji {
    font-size: 2.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.ee-text-body {
    flex-grow: 1;
    min-width: 0;
}

.ee-text-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.ee-text-desc {
    font-size: 0.9rem;
    color: var(--light);
    line-height: 1.5;
    margin-bottom: 8px;
}

.ee-text-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ee-text-chip {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--light);
}

.ee-text-chip-medium {
    background: #FEF3C7;
    color: #92400E;
}

.ee-text-chip-hard {
    background: #FEE2E2;
    color: #991B1B;
}

/* === ИГРА === */
.ee-game-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ee-game-progress {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
}

.ee-game-score {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.ee-progress-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}

.ee-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.35s ease;
    border-radius: 4px;
}

/* === ТЕМА ПРОЕКТА === */
.ee-project {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.ee-project-label {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary);
    margin-bottom: 8px;
}

.ee-project-text {
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.6;
    font-style: italic;
}

.ee-project-collapsed .ee-project-text {
    font-size: 0.88rem;
    max-height: 96px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* === ЧАСТЬ === */
.ee-part-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
    line-height: 1.35;
}

.ee-part-hint {
    font-size: 0.95rem;
    color: var(--light);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* === ВАРИАНТЫ === */
.ee-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ee-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.5;
    width: 100%;
}

.ee-option:hover:not(:disabled) {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.ee-option:disabled {
    cursor: default;
}

.ee-option-letter {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--light);
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.ee-option:hover:not(:disabled) .ee-option-letter {
    background: var(--primary);
    color: var(--white);
}

.ee-option-text {
    flex-grow: 1;
    padding-top: 4px;
}

.ee-option-correct {
    border-color: #10B981;
    background: #F0FDF4;
}

.ee-option-correct .ee-option-letter {
    background: #10B981;
    color: var(--white);
}

.ee-option-wrong {
    border-color: #EF4444;
    background: #FEF2F2;
    opacity: 0.7;
}

.ee-option-wrong .ee-option-letter {
    background: #EF4444;
    color: var(--white);
}

/* === ОБРАТНАЯ СВЯЗЬ === */
.ee-feedback {
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    animation: eeFadeIn 0.3s ease;
}

.ee-feedback-ok {
    background: #F0FDF4;
    border-left: 4px solid #10B981;
    color: #065F46;
}

.ee-feedback-bad {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
    color: #991B1B;
}

.ee-feedback-title {
    font-weight: 800;
    margin-bottom: 6px;
    display: block;
}

.ee-feedback-answer {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.02rem;
}

/* === РЕЗУЛЬТАТ === */
.ee-result-emoji {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 12px;
}

.ee-result-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.ee-result-score {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--primary);
    text-align: center;
    margin-bottom: 4px;
}

.ee-result-sub {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    margin-bottom: 24px;
}

.ee-result-best {
    text-align: center;
    font-size: 0.95rem;
    color: var(--light);
    margin-bottom: 28px;
}

.ee-result-best strong {
    color: var(--primary);
    font-weight: 800;
}

.ee-breakdown {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.ee-breakdown h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.ee-breakdown-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.92rem;
    line-height: 1.55;
}

.ee-breakdown-item:last-child {
    border-bottom: none;
}

.ee-breakdown-item-ok {
    color: #065F46;
}

.ee-breakdown-item-bad {
    color: #991B1B;
}

.ee-breakdown-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--dark);
}

/* === СТРУКТУРА ЭССЕ === */
.ee-structure {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(6, 182, 212, 0.04) 100%);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.ee-structure h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 14px;
}

.ee-structure ol {
    padding-left: 22px;
    margin-bottom: 12px;
}

.ee-structure li {
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 6px;
}

.ee-structure li b {
    color: var(--primary);
}

.ee-structure-note {
    font-size: 0.88rem;
    color: var(--light);
    font-style: italic;
    line-height: 1.5;
}

/* === КНОПКИ === */
.ee-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ee-btn {
    display: block;
    text-align: center;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: inherit;
    border: 2px solid transparent;
}

.ee-btn-main {
    background: var(--primary);
    color: var(--white);
}

.ee-btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.ee-btn-outline {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}

.ee-btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.ee-btn-ghost {
    background: var(--bg);
    color: var(--dark);
    border-color: #E2E8F0;
}

.ee-btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* === АДАПТИВ === */
@media (max-width: 640px) {
    .ee-screen {
        padding: 32px 22px;
    }

    .ee-start-title {
        font-size: 1.5rem;
    }

    .ee-start-desc {
        font-size: 0.98rem;
    }

    .ee-project {
        padding: 14px 16px;
    }

    .ee-project-text {
        font-size: 0.9rem;
    }

    .ee-part-title {
        font-size: 1.1rem;
    }

    .ee-part-hint {
        font-size: 0.9rem;
    }

    .ee-option {
        padding: 14px 14px;
        font-size: 0.95rem;
        gap: 10px;
    }

    .ee-option-letter {
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
    }

    .ee-result-score {
        font-size: 2.1rem;
    }

    .ee-result-actions {
        grid-template-columns: 1fr;
    }

    .ee-choose-title {
        font-size: 1.35rem;
    }

    .ee-text-card {
        padding: 18px;
        gap: 14px;
    }

    .ee-text-emoji {
        font-size: 2rem;
    }

    .ee-text-name {
        font-size: 1.05rem;
    }

    .ee-structure {
        padding: 16px 18px;
    }
}

/* ============================================ */
/* === СЕРВИС: ЕГЭ: Пробный экзамен (ege-mock) === */
/* === Префикс: em-                          === */
/* ============================================ */

.em-app {
    max-width: 820px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.em-screen {
    padding: 40px;
    opacity: 1;
}

@keyframes emFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === СТАРТ === */
.em-start-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 16px;
}

.em-start-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.25;
}

.em-start-desc {
    font-size: 1.05rem;
    color: var(--light);
    text-align: center;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 24px;
}

.em-start-rules {
    background: var(--bg);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.em-start-rules h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.em-start-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.em-start-rules li {
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.55;
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}

.em-start-rules li::before {
    content: '▸';
    position: absolute;
    left: 4px;
    color: var(--primary);
    font-weight: 700;
}

.em-btn-primary {
    display: block;
    width: 100%;
    padding: 18px 24px;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.em-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
}

/* === ТАЙМЕР === */
.em-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(6, 182, 212, 0.06) 100%);
    border-radius: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.em-timer-icon {
    font-size: 1.3rem;
}

.em-timer-label {
    font-size: 0.9rem;
    color: var(--light);
    font-weight: 600;
}

.em-timer-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    margin-right: auto;
}

.em-timer-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.06) 100%);
}

.em-timer-warning .em-timer-value {
    color: #D97706;
}

.em-timer-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.06) 100%);
}

.em-timer-danger .em-timer-value {
    color: #DC2626;
    animation: emPulse 1s ease-in-out infinite;
}

@keyframes emPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

.em-finish-btn {
    padding: 10px 18px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 24px;
    color: var(--dark);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.em-finish-btn:hover {
    border-color: #EF4444;
    color: #EF4444;
}

/* === ИГРА === */
.em-game-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.em-section-badge {
    font-size: 0.85rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    letter-spacing: 0.3px;
}

.em-game-progress {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--light);
}

.em-progress-bar {
    height: 6px;
    background: var(--bg);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 24px;
}

.em-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.35s ease;
    border-radius: 3px;
}

/* === АУДИО === */
.em-audio-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(6, 182, 212, 0.06) 100%);
    border-radius: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.em-audio-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    flex-grow: 1;
}

.em-play-btn {
    padding: 12px 22px;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.em-play-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(124, 58, 237, 0.3);
}

.em-play-btn:disabled {
    background: #CBD5E1;
    color: #64748B;
    cursor: default;
}

/* === ТЕКСТ === */
.em-text-box {
    background: var(--bg);
    border-radius: 12px;
    padding: 4px 22px;
    margin-bottom: 22px;
}

.em-text-box summary {
    cursor: pointer;
    padding: 14px 0;
    font-weight: 700;
    color: var(--primary);
    user-select: none;
    list-style: none;
    font-size: 0.95rem;
}

.em-text-box summary::-webkit-details-marker {
    display: none;
}

.em-text-box summary::before {
    content: '▸ ';
    display: inline-block;
    transition: transform 0.2s ease;
}

.em-text-box[open] summary::before {
    transform: rotate(90deg);
}

.em-text-content {
    padding: 0 0 18px;
    color: var(--dark);
    line-height: 1.7;
    font-size: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 14px;
}

/* === ВОПРОС === */
.em-question {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* === ВАРИАНТЫ === */
.em-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.em-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 18px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.5;
    width: 100%;
}

.em-option:hover:not(:disabled) {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.em-option:disabled {
    cursor: default;
}

.em-option-letter {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--light);
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.em-option:hover:not(:disabled) .em-option-letter {
    background: var(--primary);
    color: var(--white);
}

.em-option-text {
    flex-grow: 1;
    padding-top: 4px;
}

.em-option-correct {
    border-color: #10B981;
    background: #F0FDF4;
}

.em-option-correct .em-option-letter {
    background: #10B981;
    color: var(--white);
}

.em-option-wrong {
    border-color: #EF4444;
    background: #FEF2F2;
    opacity: 0.7;
}

.em-option-wrong .em-option-letter {
    background: #EF4444;
    color: var(--white);
}

/* === ОБРАТНАЯ СВЯЗЬ === */
.em-feedback {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.98rem;
    line-height: 1.6;
    animation: emFadeIn 0.3s ease;
}

.em-feedback-ok {
    background: #F0FDF4;
    border-left: 4px solid #10B981;
    color: #065F46;
}

.em-feedback-bad {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
    color: #991B1B;
}

.em-feedback-title {
    font-weight: 800;
    margin-bottom: 6px;
    display: block;
}

.em-feedback-answer {
    font-weight: 700;
    color: var(--primary);
}

/* === РЕЗУЛЬТАТ === */
.em-result-top {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 28px;
}

.em-result-grade {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    padding: 28px 16px;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.em-grade-number {
    font-size: 3.6rem;
    font-weight: 900;
    line-height: 1;
}

.em-grade-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.9;
    margin-top: 6px;
}

.em-result-info {
    min-width: 0;
}

.em-result-emoji {
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 8px;
}

.em-result-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.em-result-score {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 6px;
    line-height: 1.2;
}

.em-result-sub {
    font-size: 0.95rem;
    color: var(--light);
    margin-bottom: 8px;
    line-height: 1.5;
}

.em-result-best {
    font-size: 0.9rem;
    color: var(--light);
    margin: 0;
}

.em-result-best strong {
    color: var(--primary);
    font-weight: 800;
}

/* === СТАТИСТИКА ПО РАЗДЕЛАМ === */
.em-section-stats {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 20px;
}

.em-section-stats h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 14px;
}

.em-section-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 0.92rem;
    font-weight: 600;
}

.em-section-stat:last-child {
    margin-bottom: 0;
}

.em-section-ok {
    background: #F0FDF4;
    color: #065F46;
}

.em-section-mid {
    background: #FEF3C7;
    color: #92400E;
}

.em-section-bad {
    background: #FEF2F2;
    color: #991B1B;
}

.em-section-stat-name {
    font-weight: 700;
}

.em-section-stat-value {
    font-weight: 800;
    letter-spacing: 0.3px;
}

/* === РАЗБОР === */
.em-breakdown {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 24px;
}

.em-breakdown h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 14px;
}

.em-breakdown-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    line-height: 1.55;
}

.em-breakdown-item:last-child {
    border-bottom: none;
}

.em-breakdown-item-ok {
    color: #065F46;
}

.em-breakdown-item-bad {
    color: #991B1B;
}

.em-breakdown-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--dark);
}

.em-breakdown-skip {
    margin-top: 14px;
    padding: 12px 16px;
    background: #FEF3C7;
    border-left: 4px solid #F59E0B;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #92400E;
    font-weight: 600;
}

/* === КНОПКИ === */
.em-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.em-btn {
    display: block;
    text-align: center;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: inherit;
    border: 2px solid transparent;
}

.em-btn-main {
    background: var(--primary);
    color: var(--white);
}

.em-btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.em-btn-outline {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}

.em-btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.em-btn-ghost {
    background: var(--bg);
    color: var(--dark);
    border-color: #E2E8F0;
}

.em-btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* === АДАПТИВ === */
@media (max-width: 700px) {
    .em-screen {
        padding: 28px 20px;
    }

    .em-start-title {
        font-size: 1.5rem;
    }

    .em-timer {
        padding: 12px 16px;
        gap: 8px;
    }

    .em-timer-value {
        font-size: 1.15rem;
    }

    .em-finish-btn {
        width: 100%;
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .em-question {
        font-size: 1.05rem;
    }

    .em-option {
        padding: 13px 14px;
        font-size: 0.95rem;
        gap: 10px;
    }

    .em-option-letter {
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
    }

    .em-result-top {
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: center;
    }

    .em-result-grade {
        max-width: 180px;
        margin: 0 auto;
    }

    .em-grade-number {
        font-size: 3rem;
    }

    .em-result-score {
        font-size: 1.15rem;
    }

    .em-result-actions {
        grid-template-columns: 1fr;
    }
}