/* ============================================ */
/* === СТИЛИ КАТЕГОРИИ «ПИСЬМО» === */
/* ============================================ */
/* Префиксы:                                      */
/*   sp-  — Spelling                              */
/*   ca-  — Capital Letters                       */
/*   pu-  — Punctuation                           */
/*   er-  — Common Mistakes                       */
/*   lw-  — Linking Words                         */
/*   fi-  — Formal vs Informal                    */
/*   co-  — Sentence Combining                    */
/*   po-  — Paragraph Order                       */
/*   be-  — Business Email                        */
/*   cv-  — Cover Letter                          */
/*   pr-  — Paraphrasing                          */
/*   es-  — Essay Structure                       */
/* ============================================ */

/* ============================================ */
/* === ОБЩИЕ БЛОКИ КАТЕГОРИИ === */
/* (дублируют beginner/style.css — можно позже   */
/*  вынести в /tests/catalog.css)                */
/* ============================================ */

/* Блок: кому подходит */
.audience-block {
    padding: 60px 0;
    background: var(--white);
}

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

.audience-card-beginner {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.audience-card-beginner:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

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

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

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

/* Блок: пошаговый план */
.roadmap-section {
    padding: 60px 0;
    background: var(--bg);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
}

.roadmap-step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

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

.roadmap-step-num {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.roadmap-step-icon {
    font-size: 2.2rem;
    line-height: 1;
    margin: 10px 0 14px;
}

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

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

/* Блок: советы */
.tips-section {
    padding: 60px 0;
    background: var(--white);
}

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

.tip-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.04) 0%, rgba(6, 182, 212, 0.04) 100%);
    border-radius: var(--radius);
    padding: 24px 26px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateX(4px);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
}

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

.tip-content {
    flex-grow: 1;
}

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

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

/* Сетка сервисов в 2 колонки */
.services-list-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.services-list-2col .service-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 24px;
    align-items: flex-start;
}

.services-list-2col .service-card-icon {
    font-size: 2.6rem;
    margin-bottom: 14px;
    line-height: 1;
}

.services-list-2col .service-card-content {
    flex-grow: 1;
    width: 100%;
}

.services-list-2col .service-card-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.services-list-2col .service-card-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 14px;
}

.services-list-2col .service-card-features {
    margin-bottom: 16px;
    gap: 8px;
}

.services-list-2col .service-card-feature {
    font-size: 0.8rem;
}

.services-list-2col .service-card-action {
    width: 100%;
    margin-top: auto;
    padding-top: 12px;
}

.services-list-2col .service-card-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.95rem;
    border-radius: 10px;
}

/* Кнопка популярного */
.popular-card-btn {
    display: block;
    margin-top: 12px;
    padding: 10px 16px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.popular-card:hover .popular-card-btn {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.popular-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F0F4FF 100%);
}

.popular-section .popular-grid {
    grid-template-columns: repeat(3, 1fr);
}

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

    .popular-section .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .services-list-2col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .popular-section .popular-grid {
        grid-template-columns: 1fr;
    }
}

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

    .audience-block,
    .roadmap-section,
    .tips-section {
        padding: 40px 0;
    }

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

/* ============================================ */
/* === ЗАГОТОВКИ ДЛЯ 12 СЕРВИСОВ === */
/* Префиксы sp-, ca-, pu-, er-, lw-, fi-,      */
/* co-, po-, be-, cv-, pr-, es-                 */
/* будут добавлены вместе с сервисами           */
/* ============================================ */

/* ============================================ */
/* === СЕРВИС: ПРАВОПИСАНИЕ (sp-) === */
/* ============================================ */

.sp-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.sp-screen {
    display: none;
    animation: spFadeIn 0.4s ease;
}

.sp-screen.active {
    display: block;
}

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

/* ============================================ */
/* === СТАРТОВЫЙ ЭКРАН === */
/* ============================================ */
.sp-start {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.sp-start-icon { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.sp-start-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.2; }
.sp-start-desc { font-size: 1.1rem; color: var(--light); line-height: 1.6; max-width: 620px; margin: 0 auto 32px; }

.sp-rules {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    text-align: left;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.sp-rule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.5;
}

.sp-rule:last-child { margin-bottom: 0; }
.sp-rule-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.3; }

.sp-start-btn {
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

/* ============================================ */
/* === ВЫБОР УРОВНЯ === */
/* ============================================ */
.sp-levels-header {
    text-align: center;
    margin-bottom: 32px;
}

.sp-levels-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.sp-levels-subtitle {
    font-size: 1.05rem;
    color: var(--light);
}

.sp-levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 32px;
}

.sp-level-card {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    padding: 32px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.sp-level-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.sp-level-icon { font-size: 2.5rem; line-height: 1; }
.sp-level-name { font-size: 1.15rem; font-weight: 800; color: var(--dark); line-height: 1.3; }
.sp-level-count { font-size: 0.85rem; color: var(--light); line-height: 1.4; }

/* ============================================ */
/* === ЭКРАН ИГРЫ === */
/* ============================================ */
.sp-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sp-game-progress {
    font-weight: 600;
    color: var(--light);
    font-size: 0.95rem;
}
.sp-game-progress strong { color: var(--primary); }

.sp-game-level {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #D1FAE5;
    color: #065F46;
}

.sp-game-score {
    font-weight: 600;
    color: var(--light);
    font-size: 0.95rem;
}
.sp-game-score strong { color: #10B981; }

.sp-progress-bar {
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 32px;
}

.sp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.4s ease;
}

/* Карточка задания */
.sp-task-card {
    background: linear-gradient(135deg, #E0E7FF 0%, #F5F3FF 100%);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.sp-task-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.sp-task-translation {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 12px;
}

.sp-task-hint {
    font-size: 0.9rem;
    color: var(--light);
    font-style: italic;
}

/* Варианты */
.sp-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.sp-option {
    padding: 20px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.sp-option:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

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

.sp-option.correct {
    background: #F0FDF4;
    border-color: #22C55E;
    color: #166534;
}

.sp-option.wrong {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #991B1B;
}

/* Обратная связь */
.sp-feedback {
    margin-top: 24px;
    padding: 22px 24px;
    border-radius: 10px;
    text-align: left;
    animation: spFadeIn 0.3s ease;
}

.sp-feedback.correct {
    background: #F0FDF4;
    border-left: 4px solid #22C55E;
}

.sp-feedback.wrong {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
}

.sp-feedback-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.sp-feedback.correct .sp-feedback-title { color: #166534; }
.sp-feedback.wrong .sp-feedback-title   { color: #991B1B; }

.sp-feedback-text {
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.6;
}

.sp-feedback-text strong {
    color: var(--primary);
    font-weight: 700;
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
}

.sp-hint {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--dark);
    line-height: 1.5;
}

.sp-next-wrapper {
    margin-top: 20px;
    text-align: center;
}

.sp-next-wrapper .btn { min-width: 240px; }

/* ============================================ */
/* === ЭКРАН РЕЗУЛЬТАТА === */
/* ============================================ */
.sp-result-card {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.sp-result-emoji { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.sp-result-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 24px; }

.sp-result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
}

.sp-result-stat { text-align: center; }
.sp-result-stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.sp-result-stat-label { font-size: 0.85rem; color: var(--light); font-weight: 500; }

.sp-result-record {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.sp-result-message {
    font-size: 1.05rem;
    color: var(--light);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 32px;
}

.sp-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 520px;
    margin: 0 auto;
}

.sp-result-actions .btn { width: 100%; min-width: 0; }

/* ============================================ */
/* === АДАПТИВ === */
/* ============================================ */
@media (max-width: 768px) {
    .sp-start,
    .sp-result-card { padding: 36px 24px; }
    .sp-start-title,
    .sp-result-title { font-size: 1.6rem; }
    .sp-levels-title { font-size: 1.4rem; }

    .sp-levels-grid { grid-template-columns: 1fr; gap: 12px; }
    .sp-level-card { padding: 24px 18px; }
    .sp-level-icon { font-size: 2rem; }

    .sp-task-card { padding: 28px 20px; }
    .sp-task-translation { font-size: 1.5rem; }

    .sp-options { grid-template-columns: 1fr; }
    .sp-option { padding: 16px 18px; font-size: 1.05rem; }

    .sp-result-stats { grid-template-columns: 1fr; gap: 12px; }
    .sp-result-actions { grid-template-columns: 1fr; max-width: 100%; }
}

/* ============================================ */
/* === СЕРВИС: ЗАГЛАВНЫЕ БУКВЫ (ca-) === */
/* ============================================ */

.ca-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.ca-screen {
    display: none;
    animation: caFadeIn 0.4s ease;
}

.ca-screen.active {
    display: block;
}

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

/* Стартовый экран */
.ca-start {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.ca-start-icon { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.ca-start-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.2; }
.ca-start-desc { font-size: 1.1rem; color: var(--light); line-height: 1.6; max-width: 620px; margin: 0 auto 32px; }

.ca-rules {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    text-align: left;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.ca-rule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.5;
}

.ca-rule:last-child { margin-bottom: 0; }
.ca-rule-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.3; }

.ca-start-btn {
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

/* Выбор уровня */
.ca-levels-header { text-align: center; margin-bottom: 32px; }
.ca-levels-title { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.ca-levels-subtitle { font-size: 1.05rem; color: var(--light); }

.ca-levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 32px;
}

.ca-level-card {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    padding: 32px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.ca-level-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.ca-level-icon { font-size: 2.5rem; line-height: 1; }
.ca-level-name { font-size: 1.15rem; font-weight: 800; color: var(--dark); line-height: 1.3; }
.ca-level-count { font-size: 0.85rem; color: var(--light); line-height: 1.4; }

/* Игра */
.ca-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ca-game-progress { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.ca-game-progress strong { color: var(--primary); }

.ca-game-level {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #D1FAE5;
    color: #065F46;
}

.ca-game-score { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.ca-game-score strong { color: #10B981; }

.ca-progress-bar {
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 32px;
}

.ca-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.4s ease;
}

/* Карточка задания */
.ca-task-card {
    background: linear-gradient(135deg, #E0E7FF 0%, #F5F3FF 100%);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.ca-task-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.ca-task-context {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.ca-task-hint {
    font-size: 0.9rem;
    color: var(--light);
    font-style: italic;
}

/* Варианты */
.ca-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.ca-option {
    padding: 20px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.ca-option:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

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

.ca-option.correct {
    background: #F0FDF4;
    border-color: #22C55E;
    color: #166534;
}

.ca-option.wrong {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #991B1B;
}

/* Обратная связь */
.ca-feedback {
    margin-top: 24px;
    padding: 22px 24px;
    border-radius: 10px;
    text-align: left;
    animation: caFadeIn 0.3s ease;
}

.ca-feedback.correct {
    background: #F0FDF4;
    border-left: 4px solid #22C55E;
}

.ca-feedback.wrong {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
}

.ca-feedback-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ca-feedback.correct .ca-feedback-title { color: #166534; }
.ca-feedback.wrong .ca-feedback-title   { color: #991B1B; }

.ca-feedback-text {
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.6;
}

.ca-feedback-text strong {
    color: var(--primary);
    font-weight: 700;
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
}

.ca-hint {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--dark);
    line-height: 1.5;
}

.ca-next-wrapper { margin-top: 20px; text-align: center; }
.ca-next-wrapper .btn { min-width: 240px; }

/* Результат */
.ca-result-card {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.ca-result-emoji { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.ca-result-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 24px; }

.ca-result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
}

.ca-result-stat { text-align: center; }
.ca-result-stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.ca-result-stat-label { font-size: 0.85rem; color: var(--light); font-weight: 500; }

.ca-result-record {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.ca-result-message {
    font-size: 1.05rem;
    color: var(--light);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 32px;
}

.ca-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 520px;
    margin: 0 auto;
}

.ca-result-actions .btn { width: 100%; min-width: 0; }

/* Адаптив */
@media (max-width: 768px) {
    .ca-start,
    .ca-result-card { padding: 36px 24px; }
    .ca-start-title,
    .ca-result-title { font-size: 1.6rem; }
    .ca-levels-title { font-size: 1.4rem; }

    .ca-levels-grid { grid-template-columns: 1fr; gap: 12px; }
    .ca-level-card { padding: 24px 18px; }
    .ca-level-icon { font-size: 2rem; }

    .ca-task-card { padding: 28px 20px; }
    .ca-task-context { font-size: 1.3rem; }

    .ca-options { grid-template-columns: 1fr; }
    .ca-option { padding: 16px 18px; font-size: 1.1rem; }

    .ca-result-stats { grid-template-columns: 1fr; gap: 12px; }
    .ca-result-actions { grid-template-columns: 1fr; max-width: 100%; }
}

/* ============================================ */
/* === СЕРВИС: ПУНКТУАЦИЯ (pu-) === */
/* ============================================ */

.pu-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.pu-screen {
    display: none;
    animation: puFadeIn 0.4s ease;
}

.pu-screen.active {
    display: block;
}

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

.pu-start {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.pu-start-icon { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.pu-start-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.2; }
.pu-start-desc { font-size: 1.1rem; color: var(--light); line-height: 1.6; max-width: 620px; margin: 0 auto 32px; }

.pu-rules {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    text-align: left;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.pu-rule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.5;
}

.pu-rule:last-child { margin-bottom: 0; }
.pu-rule-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.3; }

.pu-start-btn { max-width: 400px; margin: 0 auto; display: block; }

.pu-levels-header { text-align: center; margin-bottom: 32px; }
.pu-levels-title { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.pu-levels-subtitle { font-size: 1.05rem; color: var(--light); }

.pu-levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 32px;
}

.pu-level-card {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    padding: 32px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.pu-level-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.pu-level-icon { font-size: 2.5rem; line-height: 1; }
.pu-level-name { font-size: 1.15rem; font-weight: 800; color: var(--dark); line-height: 1.3; }
.pu-level-count { font-size: 0.85rem; color: var(--light); line-height: 1.4; }

.pu-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pu-game-progress { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.pu-game-progress strong { color: var(--primary); }

.pu-game-level {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #D1FAE5;
    color: #065F46;
}

.pu-game-score { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.pu-game-score strong { color: #10B981; }

.pu-progress-bar {
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 32px;
}

.pu-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.4s ease;
}

.pu-task-card {
    background: linear-gradient(135deg, #E0E7FF 0%, #F5F3FF 100%);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.pu-task-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.pu-task-context {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 12px;
    font-style: italic;
}

.pu-task-hint { font-size: 0.9rem; color: var(--light); font-style: italic; }

.pu-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.pu-option {
    padding: 20px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-align: left;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

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

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

.pu-option.correct {
    background: #F0FDF4;
    border-color: #22C55E;
    color: #166534;
}

.pu-option.wrong {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #991B1B;
}

.pu-feedback {
    margin-top: 24px;
    padding: 22px 24px;
    border-radius: 10px;
    text-align: left;
    animation: puFadeIn 0.3s ease;
}

.pu-feedback.correct { background: #F0FDF4; border-left: 4px solid #22C55E; }
.pu-feedback.wrong { background: #FEF2F2; border-left: 4px solid #EF4444; }

.pu-feedback-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.pu-feedback.correct .pu-feedback-title { color: #166534; }
.pu-feedback.wrong .pu-feedback-title { color: #991B1B; }

.pu-feedback-text { font-size: 1rem; color: var(--dark); line-height: 1.6; }

.pu-feedback-text strong {
    color: var(--primary);
    font-weight: 700;
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
}

.pu-hint {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--dark);
    line-height: 1.5;
}

.pu-next-wrapper { margin-top: 20px; text-align: center; }
.pu-next-wrapper .btn { min-width: 240px; }

.pu-result-card {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.pu-result-emoji { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.pu-result-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 24px; }

.pu-result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
}

.pu-result-stat { text-align: center; }
.pu-result-stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.pu-result-stat-label { font-size: 0.85rem; color: var(--light); font-weight: 500; }

.pu-result-record {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.pu-result-message {
    font-size: 1.05rem;
    color: var(--light);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 32px;
}

.pu-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 520px;
    margin: 0 auto;
}

.pu-result-actions .btn { width: 100%; min-width: 0; }

@media (max-width: 768px) {
    .pu-start,
    .pu-result-card { padding: 36px 24px; }
    .pu-start-title,
    .pu-result-title { font-size: 1.6rem; }
    .pu-levels-title { font-size: 1.4rem; }

    .pu-levels-grid { grid-template-columns: 1fr; gap: 12px; }
    .pu-level-card { padding: 24px 18px; }
    .pu-level-icon { font-size: 2rem; }

    .pu-task-card { padding: 28px 20px; }
    .pu-task-context { font-size: 1.2rem; }

    .pu-option { padding: 16px 18px; font-size: 1rem; }

    .pu-result-stats { grid-template-columns: 1fr; gap: 12px; }
    .pu-result-actions { grid-template-columns: 1fr; max-width: 100%; }
}

/* ============================================ */
/* === СЕРВИС: ТИПИЧНЫЕ ОШИБКИ (er-) === */
/* ============================================ */

.er-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.er-screen {
    display: none;
    animation: erFadeIn 0.4s ease;
}

.er-screen.active {
    display: block;
}

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

.er-start {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.er-start-icon { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.er-start-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.2; }
.er-start-desc { font-size: 1.1rem; color: var(--light); line-height: 1.6; max-width: 620px; margin: 0 auto 32px; }

.er-rules {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    text-align: left;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.er-rule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.5;
}

.er-rule:last-child { margin-bottom: 0; }
.er-rule-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.3; }

.er-start-btn { max-width: 400px; margin: 0 auto; display: block; }

.er-levels-header { text-align: center; margin-bottom: 32px; }
.er-levels-title { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.er-levels-subtitle { font-size: 1.05rem; color: var(--light); }

.er-levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 32px;
}

.er-level-card {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    padding: 32px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.er-level-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.er-level-icon { font-size: 2.5rem; line-height: 1; }
.er-level-name { font-size: 1.15rem; font-weight: 800; color: var(--dark); line-height: 1.3; }
.er-level-count { font-size: 0.85rem; color: var(--light); line-height: 1.4; }

.er-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.er-game-progress { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.er-game-progress strong { color: var(--primary); }

.er-game-level {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #D1FAE5;
    color: #065F46;
}

.er-game-score { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.er-game-score strong { color: #10B981; }

.er-progress-bar {
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 32px;
}

.er-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.4s ease;
}

.er-task-card {
    background: linear-gradient(135deg, #E0E7FF 0%, #F5F3FF 100%);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.er-task-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.er-task-context {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 12px;
    font-style: italic;
}

.er-task-hint { font-size: 0.9rem; color: var(--light); font-style: italic; }

.er-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.er-option {
    padding: 20px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-align: left;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

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

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

.er-option.correct {
    background: #F0FDF4;
    border-color: #22C55E;
    color: #166534;
}

.er-option.wrong {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #991B1B;
}

.er-feedback {
    margin-top: 24px;
    padding: 22px 24px;
    border-radius: 10px;
    text-align: left;
    animation: erFadeIn 0.3s ease;
}

.er-feedback.correct { background: #F0FDF4; border-left: 4px solid #22C55E; }
.er-feedback.wrong { background: #FEF2F2; border-left: 4px solid #EF4444; }

.er-feedback-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.er-feedback.correct .er-feedback-title { color: #166534; }
.er-feedback.wrong .er-feedback-title { color: #991B1B; }

.er-feedback-text { font-size: 1rem; color: var(--dark); line-height: 1.6; }

.er-feedback-text strong {
    color: var(--primary);
    font-weight: 700;
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
}

.er-hint {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--dark);
    line-height: 1.5;
}

.er-next-wrapper { margin-top: 20px; text-align: center; }
.er-next-wrapper .btn { min-width: 240px; }

.er-result-card {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.er-result-emoji { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.er-result-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 24px; }

.er-result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
}

.er-result-stat { text-align: center; }
.er-result-stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.er-result-stat-label { font-size: 0.85rem; color: var(--light); font-weight: 500; }

.er-result-record {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.er-result-message {
    font-size: 1.05rem;
    color: var(--light);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 32px;
}

.er-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 520px;
    margin: 0 auto;
}

.er-result-actions .btn { width: 100%; min-width: 0; }

@media (max-width: 768px) {
    .er-start,
    .er-result-card { padding: 36px 24px; }
    .er-start-title,
    .er-result-title { font-size: 1.6rem; }
    .er-levels-title { font-size: 1.4rem; }

    .er-levels-grid { grid-template-columns: 1fr; gap: 12px; }
    .er-level-card { padding: 24px 18px; }
    .er-level-icon { font-size: 2rem; }

    .er-task-card { padding: 28px 20px; }
    .er-task-context { font-size: 1.2rem; }

    .er-option { padding: 16px 18px; font-size: 1rem; }

    .er-result-stats { grid-template-columns: 1fr; gap: 12px; }
    .er-result-actions { grid-template-columns: 1fr; max-width: 100%; }
}

/* ============================================ */
/* === СЕРВИС: СВЯЗКИ В ТЕКСТЕ (lw-) === */
/* ============================================ */

.lw-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.lw-screen {
    display: none;
    animation: lwFadeIn 0.4s ease;
}

.lw-screen.active {
    display: block;
}

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

.lw-start {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.lw-start-icon { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.lw-start-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.2; }
.lw-start-desc { font-size: 1.1rem; color: var(--light); line-height: 1.6; max-width: 620px; margin: 0 auto 32px; }

.lw-rules {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    text-align: left;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.lw-rule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.5;
}

.lw-rule:last-child { margin-bottom: 0; }
.lw-rule-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.3; }

.lw-start-btn { max-width: 400px; margin: 0 auto; display: block; }

.lw-levels-header { text-align: center; margin-bottom: 32px; }
.lw-levels-title { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.lw-levels-subtitle { font-size: 1.05rem; color: var(--light); }

.lw-levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 32px;
}

.lw-level-card {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    padding: 32px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.lw-level-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.lw-level-icon { font-size: 2.5rem; line-height: 1; }
.lw-level-name { font-size: 1.15rem; font-weight: 800; color: var(--dark); line-height: 1.3; }
.lw-level-count { font-size: 0.85rem; color: var(--light); line-height: 1.4; }

.lw-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.lw-game-progress { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.lw-game-progress strong { color: var(--primary); }

.lw-game-level {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #D1FAE5;
    color: #065F46;
}

.lw-game-score { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.lw-game-score strong { color: #10B981; }

.lw-progress-bar {
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 32px;
}

.lw-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.4s ease;
}

.lw-task-card {
    background: linear-gradient(135deg, #E0E7FF 0%, #F5F3FF 100%);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.lw-task-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.lw-sentence {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.7;
    margin-bottom: 16px;
}

.lw-gap {
    display: inline-block;
    padding: 2px 16px;
    min-width: 90px;
    border-bottom: 3px solid var(--primary);
    color: var(--primary);
    text-align: center;
    font-weight: 800;
    transition: all 0.3s ease;
}

.lw-gap-filled {
    background: rgba(34, 197, 94, 0.15);
    color: #166534;
    border-bottom-color: #22C55E;
    border-radius: 6px;
    padding: 4px 16px;
}

.lw-translation {
    font-size: 1rem;
    color: var(--light);
    font-style: italic;
    line-height: 1.5;
}

.lw-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.lw-option {
    padding: 20px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-align: center;
    line-height: 1.4;
}

.lw-option:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

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

.lw-option.correct {
    background: #F0FDF4;
    border-color: #22C55E;
    color: #166534;
}

.lw-option.wrong {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #991B1B;
}

.lw-feedback {
    margin-top: 24px;
    padding: 22px 24px;
    border-radius: 10px;
    text-align: left;
    animation: lwFadeIn 0.3s ease;
}

.lw-feedback.correct { background: #F0FDF4; border-left: 4px solid #22C55E; }
.lw-feedback.wrong { background: #FEF2F2; border-left: 4px solid #EF4444; }

.lw-feedback-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.lw-feedback.correct .lw-feedback-title { color: #166534; }
.lw-feedback.wrong .lw-feedback-title { color: #991B1B; }

.lw-feedback-text { font-size: 1rem; color: var(--dark); line-height: 1.6; }

.lw-feedback-text strong {
    color: var(--primary);
    font-weight: 700;
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
}

.lw-hint {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--dark);
    line-height: 1.5;
}

.lw-next-wrapper { margin-top: 20px; text-align: center; }
.lw-next-wrapper .btn { min-width: 240px; }

.lw-result-card {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.lw-result-emoji { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.lw-result-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 24px; }

.lw-result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
}

.lw-result-stat { text-align: center; }
.lw-result-stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.lw-result-stat-label { font-size: 0.85rem; color: var(--light); font-weight: 500; }

.lw-result-record {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.lw-result-message {
    font-size: 1.05rem;
    color: var(--light);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 32px;
}

.lw-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 520px;
    margin: 0 auto;
}

.lw-result-actions .btn { width: 100%; min-width: 0; }

@media (max-width: 768px) {
    .lw-start,
    .lw-result-card { padding: 36px 24px; }
    .lw-start-title,
    .lw-result-title { font-size: 1.6rem; }
    .lw-levels-title { font-size: 1.4rem; }

    .lw-levels-grid { grid-template-columns: 1fr; gap: 12px; }
    .lw-level-card { padding: 24px 18px; }
    .lw-level-icon { font-size: 2rem; }

    .lw-task-card { padding: 28px 20px; }
    .lw-sentence { font-size: 1.1rem; }

    .lw-options { grid-template-columns: 1fr; }
    .lw-option { padding: 16px 18px; font-size: 1rem; }

    .lw-result-stats { grid-template-columns: 1fr; gap: 12px; }
    .lw-result-actions { grid-template-columns: 1fr; max-width: 100%; }
}

/* ============================================ */
/* === СЕРВИС: FORMAL vs INFORMAL (fi-) === */
/* ============================================ */

.fi-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.fi-screen {
    display: none;
    animation: fiFadeIn 0.4s ease;
}

.fi-screen.active {
    display: block;
}

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

.fi-start {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.fi-start-icon { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.fi-start-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.2; }
.fi-start-desc { font-size: 1.1rem; color: var(--light); line-height: 1.6; max-width: 620px; margin: 0 auto 32px; }

.fi-rules {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    text-align: left;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.fi-rule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.5;
}

.fi-rule:last-child { margin-bottom: 0; }
.fi-rule-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.3; }

.fi-start-btn { max-width: 400px; margin: 0 auto; display: block; }

.fi-levels-header { text-align: center; margin-bottom: 32px; }
.fi-levels-title { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.fi-levels-subtitle { font-size: 1.05rem; color: var(--light); }

.fi-levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 32px;
}

.fi-level-card {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    padding: 32px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.fi-level-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.fi-level-icon { font-size: 2.5rem; line-height: 1; }
.fi-level-name { font-size: 1.15rem; font-weight: 800; color: var(--dark); line-height: 1.3; }
.fi-level-count { font-size: 0.85rem; color: var(--light); line-height: 1.4; }

.fi-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.fi-game-progress { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.fi-game-progress strong { color: var(--primary); }

.fi-game-level {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #D1FAE5;
    color: #065F46;
}

.fi-game-score { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.fi-game-score strong { color: #10B981; }

.fi-progress-bar {
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 32px;
}

.fi-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.4s ease;
}

.fi-task-card {
    background: linear-gradient(135deg, #E0E7FF 0%, #F5F3FF 100%);
    border-radius: var(--radius);
    padding: 32px 32px 28px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.fi-situation-label {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(124, 58, 237, 0.12);
    color: var(--primary);
    margin-bottom: 16px;
}

.fi-situation {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.fi-task-hint {
    font-size: 0.9rem;
    color: var(--light);
    font-style: italic;
}

.fi-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.fi-option {
    padding: 20px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: left;
    line-height: 1.5;
}

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

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

.fi-option.correct {
    background: #F0FDF4;
    border-color: #22C55E;
    color: #166534;
}

.fi-option.wrong {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #991B1B;
}

.fi-feedback {
    margin-top: 24px;
    padding: 22px 24px;
    border-radius: 10px;
    text-align: left;
    animation: fiFadeIn 0.3s ease;
}

.fi-feedback.correct { background: #F0FDF4; border-left: 4px solid #22C55E; }
.fi-feedback.wrong { background: #FEF2F2; border-left: 4px solid #EF4444; }

.fi-feedback-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.fi-feedback.correct .fi-feedback-title { color: #166534; }
.fi-feedback.wrong .fi-feedback-title { color: #991B1B; }

.fi-feedback-text { font-size: 1rem; color: var(--dark); line-height: 1.6; }

.fi-feedback-text strong {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.02rem;
}

.fi-hint {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--dark);
    line-height: 1.5;
}

.fi-next-wrapper { margin-top: 20px; text-align: center; }
.fi-next-wrapper .btn { min-width: 240px; }

.fi-result-card {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.fi-result-emoji { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.fi-result-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 24px; }

.fi-result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
}

.fi-result-stat { text-align: center; }
.fi-result-stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.fi-result-stat-label { font-size: 0.85rem; color: var(--light); font-weight: 500; }

.fi-result-record {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.fi-result-message {
    font-size: 1.05rem;
    color: var(--light);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 32px;
}

.fi-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 520px;
    margin: 0 auto;
}

.fi-result-actions .btn { width: 100%; min-width: 0; }

@media (max-width: 768px) {
    .fi-start,
    .fi-result-card { padding: 36px 24px; }
    .fi-start-title,
    .fi-result-title { font-size: 1.6rem; }
    .fi-levels-title { font-size: 1.4rem; }

    .fi-levels-grid { grid-template-columns: 1fr; gap: 12px; }
    .fi-level-card { padding: 24px 18px; }
    .fi-level-icon { font-size: 2rem; }

    .fi-task-card { padding: 24px 20px; }
    .fi-situation { font-size: 1.1rem; }

    .fi-option { padding: 16px 18px; font-size: 1rem; }

    .fi-result-stats { grid-template-columns: 1fr; gap: 12px; }
    .fi-result-actions { grid-template-columns: 1fr; max-width: 100%; }
}

/* ============================================ */
/* === СЕРВИС: ОБЪЕДИНЕНИЕ ПРЕДЛОЖЕНИЙ (co-) === */
/* ============================================ */

.co-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.co-screen {
    display: none;
    animation: coFadeIn 0.4s ease;
}

.co-screen.active {
    display: block;
}

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

.co-start {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.co-start-icon { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.co-start-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.2; }
.co-start-desc { font-size: 1.1rem; color: var(--light); line-height: 1.6; max-width: 620px; margin: 0 auto 32px; }

.co-rules {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    text-align: left;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.co-rule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.5;
}

.co-rule:last-child { margin-bottom: 0; }
.co-rule-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.3; }

.co-start-btn { max-width: 400px; margin: 0 auto; display: block; }

.co-levels-header { text-align: center; margin-bottom: 32px; }
.co-levels-title { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.co-levels-subtitle { font-size: 1.05rem; color: var(--light); }

.co-levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 32px;
}

.co-level-card {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    padding: 32px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.co-level-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.co-level-icon { font-size: 2.5rem; line-height: 1; }
.co-level-name { font-size: 1.15rem; font-weight: 800; color: var(--dark); line-height: 1.3; }
.co-level-count { font-size: 0.85rem; color: var(--light); line-height: 1.4; }

.co-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.co-game-progress { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.co-game-progress strong { color: var(--primary); }

.co-game-level {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #D1FAE5;
    color: #065F46;
}

.co-game-score { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.co-game-score strong { color: #10B981; }

.co-progress-bar {
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 32px;
}

.co-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.4s ease;
}

.co-task-card {
    background: linear-gradient(135deg, #E0E7FF 0%, #F5F3FF 100%);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.co-task-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.co-source-sentences {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 640px;
    margin: 0 auto 16px;
}

.co-source-line {
    background: var(--white);
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.5;
    box-shadow: var(--shadow);
    text-align: left;
    position: relative;
    padding-left: 44px;
}

.co-source-line::before {
    content: counter(co-item);
    counter-increment: co-item;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.co-source-sentences { counter-reset: co-item; }

.co-task-hint {
    font-size: 0.9rem;
    color: var(--light);
    font-style: italic;
}

.co-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.co-option {
    padding: 20px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: left;
    line-height: 1.5;
}

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

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

.co-option.correct {
    background: #F0FDF4;
    border-color: #22C55E;
    color: #166534;
}

.co-option.wrong {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #991B1B;
}

.co-feedback {
    margin-top: 24px;
    padding: 22px 24px;
    border-radius: 10px;
    text-align: left;
    animation: coFadeIn 0.3s ease;
}

.co-feedback.correct { background: #F0FDF4; border-left: 4px solid #22C55E; }
.co-feedback.wrong { background: #FEF2F2; border-left: 4px solid #EF4444; }

.co-feedback-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.co-feedback.correct .co-feedback-title { color: #166534; }
.co-feedback.wrong .co-feedback-title { color: #991B1B; }

.co-feedback-text { font-size: 1rem; color: var(--dark); line-height: 1.6; }

.co-feedback-text strong {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.02rem;
}

.co-hint {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--dark);
    line-height: 1.5;
}

.co-next-wrapper { margin-top: 20px; text-align: center; }
.co-next-wrapper .btn { min-width: 240px; }

.co-result-card {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.co-result-emoji { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.co-result-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 24px; }

.co-result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
}

.co-result-stat { text-align: center; }
.co-result-stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.co-result-stat-label { font-size: 0.85rem; color: var(--light); font-weight: 500; }

.co-result-record {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.co-result-message {
    font-size: 1.05rem;
    color: var(--light);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 32px;
}

.co-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 520px;
    margin: 0 auto;
}

.co-result-actions .btn { width: 100%; min-width: 0; }

@media (max-width: 768px) {
    .co-start,
    .co-result-card { padding: 36px 24px; }
    .co-start-title,
    .co-result-title { font-size: 1.6rem; }
    .co-levels-title { font-size: 1.4rem; }

    .co-levels-grid { grid-template-columns: 1fr; gap: 12px; }
    .co-level-card { padding: 24px 18px; }
    .co-level-icon { font-size: 2rem; }

    .co-task-card { padding: 24px 20px; }
    .co-source-line { font-size: 1rem; padding: 12px 16px 12px 40px; }

    .co-option { padding: 16px 18px; font-size: 1rem; }

    .co-result-stats { grid-template-columns: 1fr; gap: 12px; }
    .co-result-actions { grid-template-columns: 1fr; max-width: 100%; }
}

/* ============================================ */
/* === СЕРВИС: ПОРЯДОК АБЗАЦЕВ (po-) === */
/* ============================================ */

.po-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.po-screen {
    display: none;
    animation: poFadeIn 0.4s ease;
}

.po-screen.active {
    display: block;
}

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

.po-start {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.po-start-icon { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.po-start-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.2; }
.po-start-desc { font-size: 1.1rem; color: var(--light); line-height: 1.6; max-width: 620px; margin: 0 auto 32px; }

.po-rules {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    text-align: left;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.po-rule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.5;
}

.po-rule:last-child { margin-bottom: 0; }
.po-rule-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.3; }

.po-start-btn { max-width: 400px; margin: 0 auto; display: block; }

.po-levels-header { text-align: center; margin-bottom: 32px; }
.po-levels-title { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.po-levels-subtitle { font-size: 1.05rem; color: var(--light); }

.po-levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 32px;
}

.po-level-card {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    padding: 32px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.po-level-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.po-level-icon { font-size: 2.5rem; line-height: 1; }
.po-level-name { font-size: 1.15rem; font-weight: 800; color: var(--dark); line-height: 1.3; }
.po-level-count { font-size: 0.85rem; color: var(--light); line-height: 1.4; }

.po-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.po-game-progress { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.po-game-progress strong { color: var(--primary); }

.po-game-level {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #D1FAE5;
    color: #065F46;
}

.po-game-score { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.po-game-score strong { color: #10B981; }

.po-progress-bar {
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 32px;
}

.po-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.4s ease;
}

.po-task-card {
    background: linear-gradient(135deg, #E0E7FF 0%, #F5F3FF 100%);
    border-radius: var(--radius);
    padding: 28px 32px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.po-task-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.po-task-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 12px;
    font-style: italic;
}

.po-task-hint {
    font-size: 0.9rem;
    color: var(--light);
    font-style: italic;
}

/* Абзацы A, B, C, D */
.po-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.po-paragraph {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: var(--shadow);
}

.po-paragraph-letter {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    margin-top: 2px;
}

.po-paragraph-text {
    font-size: 1.05rem;
    color: var(--dark);
    line-height: 1.55;
    font-weight: 500;
}

/* Варианты последовательностей */
.po-options-label {
    text-align: center;
    font-size: 0.95rem;
    color: var(--light);
    font-weight: 600;
    margin-bottom: 14px;
}

.po-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.po-option {
    padding: 18px 20px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-align: center;
    line-height: 1.4;
    letter-spacing: 1px;
}

.po-option:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

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

.po-option.correct {
    background: #F0FDF4;
    border-color: #22C55E;
    color: #166534;
}

.po-option.wrong {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #991B1B;
}

/* Фидбек */
.po-feedback {
    margin-top: 24px;
    padding: 22px 24px;
    border-radius: 10px;
    text-align: left;
    animation: poFadeIn 0.3s ease;
}

.po-feedback.correct { background: #F0FDF4; border-left: 4px solid #22C55E; }
.po-feedback.wrong { background: #FEF2F2; border-left: 4px solid #EF4444; }

.po-feedback-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.po-feedback.correct .po-feedback-title { color: #166534; }
.po-feedback.wrong .po-feedback-title { color: #991B1B; }

.po-feedback-text { font-size: 1rem; color: var(--dark); line-height: 1.6; }

.po-feedback-text strong {
    color: var(--primary);
    font-weight: 700;
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    letter-spacing: 1px;
}

.po-correct-text {
    margin-top: 16px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.6;
    border-left: 3px solid var(--primary);
}

.po-correct-text-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.po-hint {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--dark);
    line-height: 1.5;
}

.po-next-wrapper { margin-top: 20px; text-align: center; }
.po-next-wrapper .btn { min-width: 240px; }

/* Результат */
.po-result-card {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.po-result-emoji { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.po-result-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 24px; }

.po-result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
}

.po-result-stat { text-align: center; }
.po-result-stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.po-result-stat-label { font-size: 0.85rem; color: var(--light); font-weight: 500; }

.po-result-record {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.po-result-message {
    font-size: 1.05rem;
    color: var(--light);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 32px;
}

.po-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 520px;
    margin: 0 auto;
}

.po-result-actions .btn { width: 100%; min-width: 0; }

@media (max-width: 768px) {
    .po-start,
    .po-result-card { padding: 36px 24px; }
    .po-start-title,
    .po-result-title { font-size: 1.6rem; }
    .po-levels-title { font-size: 1.4rem; }

    .po-levels-grid { grid-template-columns: 1fr; gap: 12px; }
    .po-level-card { padding: 24px 18px; }
    .po-level-icon { font-size: 2rem; }

    .po-task-card { padding: 24px 20px; }
    .po-task-title { font-size: 1.2rem; }

    .po-paragraph { padding: 14px 16px; }
    .po-paragraph-text { font-size: 0.98rem; }
    .po-paragraph-letter { width: 30px; height: 30px; font-size: 0.9rem; }

    .po-options { grid-template-columns: 1fr; }
    .po-option { padding: 14px 16px; font-size: 1rem; letter-spacing: 0.5px; }

    .po-result-stats { grid-template-columns: 1fr; gap: 12px; }
    .po-result-actions { grid-template-columns: 1fr; max-width: 100%; }
}

/* ============================================ */
/* === СЕРВИС: ДЕЛОВОЙ EMAIL (be-) === */
/* ============================================ */

.be-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.be-screen {
    display: none;
    animation: beFadeIn 0.4s ease;
}

.be-screen.active {
    display: block;
}

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

.be-start {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.be-start-icon { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.be-start-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.2; }
.be-start-desc { font-size: 1.1rem; color: var(--light); line-height: 1.6; max-width: 620px; margin: 0 auto 32px; }

.be-rules {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    text-align: left;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.be-rule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.5;
}

.be-rule:last-child { margin-bottom: 0; }
.be-rule-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.3; }

.be-start-btn { max-width: 400px; margin: 0 auto; display: block; }

.be-levels-header { text-align: center; margin-bottom: 32px; }
.be-levels-title { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.be-levels-subtitle { font-size: 1.05rem; color: var(--light); }

.be-levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 32px;
}

.be-level-card {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    padding: 32px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.be-level-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.be-level-icon { font-size: 2.5rem; line-height: 1; }
.be-level-name { font-size: 1.15rem; font-weight: 800; color: var(--dark); line-height: 1.3; }
.be-level-count { font-size: 0.85rem; color: var(--light); line-height: 1.4; }

.be-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.be-game-progress { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.be-game-progress strong { color: var(--primary); }

.be-game-level {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #D1FAE5;
    color: #065F46;
}

.be-game-score { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.be-game-score strong { color: #10B981; }

.be-progress-bar {
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 32px;
}

.be-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.4s ease;
}

.be-task-card {
    background: linear-gradient(135deg, #E0E7FF 0%, #F5F3FF 100%);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.be-situation-label {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(124, 58, 237, 0.12);
    color: var(--primary);
    margin-bottom: 16px;
}

.be-situation {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.be-task-hint {
    font-size: 0.9rem;
    color: var(--light);
    font-style: italic;
}

.be-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.be-option {
    padding: 20px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: left;
    line-height: 1.5;
}

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

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

.be-option.correct {
    background: #F0FDF4;
    border-color: #22C55E;
    color: #166534;
}

.be-option.wrong {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #991B1B;
}

.be-feedback {
    margin-top: 24px;
    padding: 22px 24px;
    border-radius: 10px;
    text-align: left;
    animation: beFadeIn 0.3s ease;
}

.be-feedback.correct { background: #F0FDF4; border-left: 4px solid #22C55E; }
.be-feedback.wrong { background: #FEF2F2; border-left: 4px solid #EF4444; }

.be-feedback-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.be-feedback.correct .be-feedback-title { color: #166534; }
.be-feedback.wrong .be-feedback-title { color: #991B1B; }

.be-feedback-text { font-size: 1rem; color: var(--dark); line-height: 1.6; }

.be-feedback-text strong {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.02rem;
}

.be-hint {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--dark);
    line-height: 1.5;
}

.be-next-wrapper { margin-top: 20px; text-align: center; }
.be-next-wrapper .btn { min-width: 240px; }

.be-result-card {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.be-result-emoji { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.be-result-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 24px; }

.be-result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
}

.be-result-stat { text-align: center; }
.be-result-stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.be-result-stat-label { font-size: 0.85rem; color: var(--light); font-weight: 500; }

.be-result-record {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.be-result-message {
    font-size: 1.05rem;
    color: var(--light);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 32px;
}

.be-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 520px;
    margin: 0 auto;
}

.be-result-actions .btn { width: 100%; min-width: 0; }

@media (max-width: 768px) {
    .be-start,
    .be-result-card { padding: 36px 24px; }
    .be-start-title,
    .be-result-title { font-size: 1.6rem; }
    .be-levels-title { font-size: 1.4rem; }

    .be-levels-grid { grid-template-columns: 1fr; gap: 12px; }
    .be-level-card { padding: 24px 18px; }
    .be-level-icon { font-size: 2rem; }

    .be-task-card { padding: 24px 20px; }
    .be-situation { font-size: 1.1rem; }

    .be-option { padding: 16px 18px; font-size: 1rem; }

    .be-result-stats { grid-template-columns: 1fr; gap: 12px; }
    .be-result-actions { grid-template-columns: 1fr; max-width: 100%; }
}

/* ============================================ */
/* === СЕРВИС: COVER LETTER (cv-) === */
/* ============================================ */

.cv-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.cv-screen {
    display: none;
    animation: cvFadeIn 0.4s ease;
}

.cv-screen.active {
    display: block;
}

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

.cv-start {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.cv-start-icon { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.cv-start-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.2; }
.cv-start-desc { font-size: 1.1rem; color: var(--light); line-height: 1.6; max-width: 620px; margin: 0 auto 32px; }

.cv-rules {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    text-align: left;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.cv-rule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.5;
}

.cv-rule:last-child { margin-bottom: 0; }
.cv-rule-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.3; }

.cv-start-btn { max-width: 400px; margin: 0 auto; display: block; }

.cv-levels-header { text-align: center; margin-bottom: 32px; }
.cv-levels-title { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.cv-levels-subtitle { font-size: 1.05rem; color: var(--light); }

.cv-levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 32px;
}

.cv-level-card {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    padding: 32px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.cv-level-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.cv-level-icon { font-size: 2.5rem; line-height: 1; }
.cv-level-name { font-size: 1.15rem; font-weight: 800; color: var(--dark); line-height: 1.3; }
.cv-level-count { font-size: 0.85rem; color: var(--light); line-height: 1.4; }

.cv-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cv-game-progress { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.cv-game-progress strong { color: var(--primary); }

.cv-game-level {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #D1FAE5;
    color: #065F46;
}

.cv-game-score { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.cv-game-score strong { color: #10B981; }

.cv-progress-bar {
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 32px;
}

.cv-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.4s ease;
}

.cv-task-card {
    background: linear-gradient(135deg, #E0E7FF 0%, #F5F3FF 100%);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.cv-situation-label {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(124, 58, 237, 0.12);
    color: var(--primary);
    margin-bottom: 16px;
}

.cv-situation {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cv-task-hint {
    font-size: 0.9rem;
    color: var(--light);
    font-style: italic;
}

.cv-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.cv-option {
    padding: 20px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: left;
    line-height: 1.5;
}

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

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

.cv-option.correct {
    background: #F0FDF4;
    border-color: #22C55E;
    color: #166534;
}

.cv-option.wrong {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #991B1B;
}

.cv-feedback {
    margin-top: 24px;
    padding: 22px 24px;
    border-radius: 10px;
    text-align: left;
    animation: cvFadeIn 0.3s ease;
}

.cv-feedback.correct { background: #F0FDF4; border-left: 4px solid #22C55E; }
.cv-feedback.wrong { background: #FEF2F2; border-left: 4px solid #EF4444; }

.cv-feedback-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.cv-feedback.correct .cv-feedback-title { color: #166534; }
.cv-feedback.wrong .cv-feedback-title { color: #991B1B; }

.cv-feedback-text { font-size: 1rem; color: var(--dark); line-height: 1.6; }

.cv-feedback-text strong {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.02rem;
}

.cv-hint {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--dark);
    line-height: 1.5;
}

.cv-next-wrapper { margin-top: 20px; text-align: center; }
.cv-next-wrapper .btn { min-width: 240px; }

.cv-result-card {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.cv-result-emoji { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.cv-result-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 24px; }

.cv-result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
}

.cv-result-stat { text-align: center; }
.cv-result-stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.cv-result-stat-label { font-size: 0.85rem; color: var(--light); font-weight: 500; }

.cv-result-record {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.cv-result-message {
    font-size: 1.05rem;
    color: var(--light);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 32px;
}

.cv-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 520px;
    margin: 0 auto;
}

.cv-result-actions .btn { width: 100%; min-width: 0; }

@media (max-width: 768px) {
    .cv-start,
    .cv-result-card { padding: 36px 24px; }
    .cv-start-title,
    .cv-result-title { font-size: 1.6rem; }
    .cv-levels-title { font-size: 1.4rem; }

    .cv-levels-grid { grid-template-columns: 1fr; gap: 12px; }
    .cv-level-card { padding: 24px 18px; }
    .cv-level-icon { font-size: 2rem; }

    .cv-task-card { padding: 24px 20px; }
    .cv-situation { font-size: 1.1rem; }

    .cv-option { padding: 16px 18px; font-size: 1rem; }

    .cv-result-stats { grid-template-columns: 1fr; gap: 12px; }
    .cv-result-actions { grid-template-columns: 1fr; max-width: 100%; }
}

/* ============================================ */
/* === СЕРВИС: ПАРАФРАЗ (pr-) === */
/* ============================================ */

.pr-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.pr-screen {
    display: none;
    animation: prFadeIn 0.4s ease;
}

.pr-screen.active {
    display: block;
}

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

.pr-start {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.pr-start-icon { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.pr-start-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.2; }
.pr-start-desc { font-size: 1.1rem; color: var(--light); line-height: 1.6; max-width: 620px; margin: 0 auto 32px; }

.pr-rules {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    text-align: left;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.pr-rule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.5;
}

.pr-rule:last-child { margin-bottom: 0; }
.pr-rule-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.3; }

.pr-start-btn { max-width: 400px; margin: 0 auto; display: block; }

.pr-levels-header { text-align: center; margin-bottom: 32px; }
.pr-levels-title { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.pr-levels-subtitle { font-size: 1.05rem; color: var(--light); }

.pr-levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 32px;
}

.pr-level-card {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    padding: 32px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.pr-level-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.pr-level-icon { font-size: 2.5rem; line-height: 1; }
.pr-level-name { font-size: 1.15rem; font-weight: 800; color: var(--dark); line-height: 1.3; }
.pr-level-count { font-size: 0.85rem; color: var(--light); line-height: 1.4; }

.pr-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pr-game-progress { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.pr-game-progress strong { color: var(--primary); }

.pr-game-level {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #D1FAE5;
    color: #065F46;
}

.pr-game-score { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.pr-game-score strong { color: #10B981; }

.pr-progress-bar {
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 32px;
}

.pr-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.4s ease;
}

.pr-task-card {
    background: linear-gradient(135deg, #E0E7FF 0%, #F5F3FF 100%);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.pr-task-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.pr-source {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 12px;
    padding: 16px 24px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

.pr-translation {
    font-size: 0.95rem;
    color: var(--light);
    font-style: italic;
    margin-bottom: 16px;
}

.pr-task-hint {
    font-size: 0.9rem;
    color: var(--light);
    font-style: italic;
}

.pr-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.pr-option {
    padding: 20px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: left;
    line-height: 1.5;
}

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

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

.pr-option.correct {
    background: #F0FDF4;
    border-color: #22C55E;
    color: #166534;
}

.pr-option.wrong {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #991B1B;
}

.pr-feedback {
    margin-top: 24px;
    padding: 22px 24px;
    border-radius: 10px;
    text-align: left;
    animation: prFadeIn 0.3s ease;
}

.pr-feedback.correct { background: #F0FDF4; border-left: 4px solid #22C55E; }
.pr-feedback.wrong { background: #FEF2F2; border-left: 4px solid #EF4444; }

.pr-feedback-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.pr-feedback.correct .pr-feedback-title { color: #166534; }
.pr-feedback.wrong .pr-feedback-title { color: #991B1B; }

.pr-feedback-text { font-size: 1rem; color: var(--dark); line-height: 1.6; }

.pr-feedback-text strong {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.02rem;
}

.pr-hint {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--dark);
    line-height: 1.5;
}

.pr-next-wrapper { margin-top: 20px; text-align: center; }
.pr-next-wrapper .btn { min-width: 240px; }

.pr-result-card {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.pr-result-emoji { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.pr-result-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 24px; }

.pr-result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
}

.pr-result-stat { text-align: center; }
.pr-result-stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.pr-result-stat-label { font-size: 0.85rem; color: var(--light); font-weight: 500; }

.pr-result-record {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.pr-result-message {
    font-size: 1.05rem;
    color: var(--light);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 32px;
}

.pr-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 520px;
    margin: 0 auto;
}

.pr-result-actions .btn { width: 100%; min-width: 0; }

@media (max-width: 768px) {
    .pr-start,
    .pr-result-card { padding: 36px 24px; }
    .pr-start-title,
    .pr-result-title { font-size: 1.6rem; }
    .pr-levels-title { font-size: 1.4rem; }

    .pr-levels-grid { grid-template-columns: 1fr; gap: 12px; }
    .pr-level-card { padding: 24px 18px; }
    .pr-level-icon { font-size: 2rem; }

    .pr-task-card { padding: 24px 20px; }
    .pr-source { font-size: 1.15rem; padding: 12px 16px; }

    .pr-option { padding: 16px 18px; font-size: 1rem; }

    .pr-result-stats { grid-template-columns: 1fr; gap: 12px; }
    .pr-result-actions { grid-template-columns: 1fr; max-width: 100%; }
}

/* ============================================ */
/* === СЕРВИС: СТРУКТУРА ЭССЕ (es-) === */
/* ============================================ */

.es-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.es-screen {
    display: none;
    animation: esFadeIn 0.4s ease;
}

.es-screen.active {
    display: block;
}

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

.es-start {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.es-start-icon { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.es-start-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.2; }
.es-start-desc { font-size: 1.1rem; color: var(--light); line-height: 1.6; max-width: 620px; margin: 0 auto 32px; }

.es-rules {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    text-align: left;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.es-rule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.5;
}

.es-rule:last-child { margin-bottom: 0; }
.es-rule-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.3; }

.es-start-btn { max-width: 400px; margin: 0 auto; display: block; }

.es-levels-header { text-align: center; margin-bottom: 32px; }
.es-levels-title { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.es-levels-subtitle { font-size: 1.05rem; color: var(--light); }

.es-levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 32px;
}

.es-level-card {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    padding: 32px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.es-level-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.es-level-icon { font-size: 2.5rem; line-height: 1; }
.es-level-name { font-size: 1.15rem; font-weight: 800; color: var(--dark); line-height: 1.3; }
.es-level-count { font-size: 0.85rem; color: var(--light); line-height: 1.4; }

.es-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.es-game-progress { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.es-game-progress strong { color: var(--primary); }

.es-game-level {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #D1FAE5;
    color: #065F46;
}

.es-game-score { font-weight: 600; color: var(--light); font-size: 0.95rem; }
.es-game-score strong { color: #10B981; }

.es-progress-bar {
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 32px;
}

.es-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.4s ease;
}

.es-task-card {
    background: linear-gradient(135deg, #E0E7FF 0%, #F5F3FF 100%);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.es-task-label {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(124, 58, 237, 0.12);
    color: var(--primary);
    margin-bottom: 16px;
}

.es-situation {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.es-task-hint {
    font-size: 0.9rem;
    color: var(--light);
    font-style: italic;
}

.es-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.es-option {
    padding: 20px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: left;
    line-height: 1.5;
}

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

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

.es-option.correct {
    background: #F0FDF4;
    border-color: #22C55E;
    color: #166534;
}

.es-option.wrong {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #991B1B;
}

.es-feedback {
    margin-top: 24px;
    padding: 22px 24px;
    border-radius: 10px;
    text-align: left;
    animation: esFadeIn 0.3s ease;
}

.es-feedback.correct { background: #F0FDF4; border-left: 4px solid #22C55E; }
.es-feedback.wrong { background: #FEF2F2; border-left: 4px solid #EF4444; }

.es-feedback-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.es-feedback.correct .es-feedback-title { color: #166534; }
.es-feedback.wrong .es-feedback-title { color: #991B1B; }

.es-feedback-text { font-size: 1rem; color: var(--dark); line-height: 1.6; }

.es-feedback-text strong {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.02rem;
}

.es-hint {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--dark);
    line-height: 1.5;
}

.es-next-wrapper { margin-top: 20px; text-align: center; }
.es-next-wrapper .btn { min-width: 240px; }

.es-result-card {
    background: var(--white);
    padding: 56px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.es-result-emoji { font-size: 5rem; margin-bottom: 20px; line-height: 1; }
.es-result-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 24px; }

.es-result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
}

.es-result-stat { text-align: center; }
.es-result-stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.es-result-stat-label { font-size: 0.85rem; color: var(--light); font-weight: 500; }

.es-result-record {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.es-result-message {
    font-size: 1.05rem;
    color: var(--light);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 32px;
}

.es-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 520px;
    margin: 0 auto;
}

.es-result-actions .btn { width: 100%; min-width: 0; }

@media (max-width: 768px) {
    .es-start,
    .es-result-card { padding: 36px 24px; }
    .es-start-title,
    .es-result-title { font-size: 1.6rem; }
    .es-levels-title { font-size: 1.4rem; }

    .es-levels-grid { grid-template-columns: 1fr; gap: 12px; }
    .es-level-card { padding: 24px 18px; }
    .es-level-icon { font-size: 2rem; }

    .es-task-card { padding: 24px 20px; }
    .es-situation { font-size: 1.05rem; }

    .es-option { padding: 16px 18px; font-size: 1rem; }

    .es-result-stats { grid-template-columns: 1fr; gap: 12px; }
    .es-result-actions { grid-template-columns: 1fr; max-width: 100%; }
}