/* ============================================ */
/* === СТИЛИ ДЛЯ КАТЕГОРИИ ENGLISH TENSES === */
/* Префикс: et-                               */
/* ============================================ */

/* Общая обертка для тренажёров */
.et-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.et-screen {
    display: none;
    opacity: 1; /* ВАЖНО: никаких анимаций на главном контейнере! */
}

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

/* --- СЕТКА КАРТОЧЕК В ХАБЕ --- */
.et-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.et-service-card {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

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

.et-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.et-card-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.et-card-tags {
    display: flex;
    gap: 8px;
}

.et-tag {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.et-tag-green { background: #D1FAE5; color: #065F46; }
.et-tag-yellow { background: #FEF3C7; color: #92400E; }
.et-tag-red { background: #FEE2E2; color: #991B1B; }

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

.et-card-desc {
    font-size: 0.95rem;
    color: var(--light);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.et-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--light);
    font-weight: 600;
    margin-bottom: 20px;
}

.et-card-btn {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.et-service-card:hover .et-card-btn {
    background: var(--primary-dark);
}

/* --- ЭКРАН СТАРТА --- */
.et-start {
    background: var(--white);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid #E2E8F0;
}

.et-start-icon {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 16px;
}

.et-start-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
}

.et-start-desc {
    font-size: 1.1rem;
    color: var(--light);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.et-rules {
    background: var(--bg);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.et-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--dark);
}

.et-rule-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.et-start-btn {
    max-width: 300px;
    margin: 0 auto;
}

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

.et-game-level {
    background: #D1FAE5;
    color: #065F46;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.et-game-progress {
    font-size: 0.95rem;
    color: var(--light);
}

.et-game-progress strong {
    color: var(--dark);
}

.et-progress-bar {
    width: 100%;
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 32px;
}

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

/* Карточка задания */
.et-task {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid #E2E8F0;
    margin-bottom: 24px;
}

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

.et-task-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.5;
}

.et-task-translation {
    font-size: 1.1rem;
    color: var(--light);
    font-style: italic;
}

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

.et-option {
    padding: 20px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: center;
}

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

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

.et-option.correct {
    background: #D1FAE5;
    border-color: #10B981;
    color: #047857;
}

.et-option.wrong {
    background: #FEE2E2;
    border-color: #EF4444;
    color: #B91C1C;
}

/* Обратная связь */
.et-feedback {
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    animation: et-fadeIn 0.3s ease;
}

.et-feedback.correct {
    background: #ECFDF5;
    border-left: 4px solid #10B981;
}

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

.et-feedback-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.et-feedback.correct .et-feedback-title { color: #047857; }
.et-feedback.wrong .et-feedback-title { color: #B91C1C; }

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

.et-next-wrapper {
    text-align: right;
}

/* --- ЭКРАН РЕЗУЛЬТАТА --- */
.et-result-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid #E2E8F0;
}

.et-result-emoji {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 16px;
}

.et-result-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 32px;
}

.et-result-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 24px;
}

.et-result-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.et-result-stat-label {
    font-size: 0.9rem;
    color: var(--light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.et-result-message {
    font-size: 1.1rem;
    color: var(--light);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Кнопки результата в 2 столбика */
.et-result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Анимация */
@keyframes et-fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- АДАПТИВ --- */
@media (max-width: 900px) {
    .et-cat-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .et-start, .et-task, .et-result-card {
        padding: 24px 20px;
    }
    .et-task-text { font-size: 1.5rem; }
    .et-options { grid-template-columns: 1fr; }
    .et-result-stats { gap: 20px; }
    .et-result-stat-value { font-size: 2rem; }
    .et-result-actions {
        grid-template-columns: 1fr;
    }
}

/* ============================================ */
/* === НОВЫЕ СТИЛИ ДЛЯ ХАБА (Скриншот) === */
/* ============================================ */

/* Заголовки блоков */
.et-hub-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}
.et-hub-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--light);
    margin-bottom: 32px;
}

/* ТОП-3 (сетка в 3 колонки) */
.et-top-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.et-top-grid .et-service-card {
    border: 2px solid var(--primary); /* Выделяем топовые карточки */
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.15);
}

/* Фильтры */
.et-hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}
.et-filters {
    display: flex;
    gap: 10px;
    background: var(--bg);
    padding: 6px;
    border-radius: 30px;
}
.et-filter-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--light);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.et-filter-btn:hover {
    color: var(--primary);
}
.et-filter-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Уровни */
.et-level-group {
    margin-bottom: 40px;
}
.et-level-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg);
}

/* Кому подойдут */
.et-audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.et-audience-card {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease;
}
.et-audience-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}
.et-audience-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}
.et-audience-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--dark);
}
.et-audience-card p {
    font-size: 0.95rem;
    color: var(--light);
    line-height: 1.5;
}

/* Шаги обучения */
.et-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.et-step-card {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
}
.et-step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 16px;
}
.et-step-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--dark);
}
.et-step-card p {
    font-size: 0.9rem;
    color: var(--light);
    line-height: 1.5;
}

/* FAQ */
.et-faq-wrap {
    max-width: 800px;
    margin: 0 auto;
}
.et-faq-item {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}
.et-faq-item summary {
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    list-style: none;
    position: relative;
}
.et-faq-item summary::-webkit-details-marker {
    display: none;
}
.et-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.et-faq-item[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}
.et-faq-content {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: var(--light);
    line-height: 1.6;
}

/* SEO текст */
.et-seo-text p {
    font-size: 1.05rem;
    color: var(--light);
    line-height: 1.7;
    margin-bottom: 16px;
}
.et-seo-text a {
    color: var(--primary);
    text-decoration: underline;
}

/* Финальный CTA Баннер */
.et-cta-banner {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    color: var(--white);
}
.et-cta-banner h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.et-cta-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.et-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-white {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--white);
}
.btn-white:hover {
    background: #F8FAFC;
    color: var(--primary-dark);
}
.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* --- АДАПТИВ ДЛЯ НОВЫХ БЛОКОВ --- */
@media (max-width: 900px) {
    .et-top-grid, .et-audience-grid {
        grid-template-columns: 1fr;
    }
    .et-hub-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .et-filters {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        padding-bottom: 6px;
    }
    .et-filter-btn {
        flex-shrink: 0;
    }
}
@media (max-width: 600px) {
    .et-cta-banner {
        padding: 40px 20px;
    }
    .et-cta-banner h2 {
        font-size: 1.5rem;
    }
}

/* ============================================ */
/* === КАСТОМНЫЕ CTA БАННЕРЫ === */
/* ============================================ */

.et-custom-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 36px;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Оранжевый вариант (как на скриншоте) */
.et-custom-cta--orange {
    background: #FFF7ED; /* Нежный персиковый фон */
    border-left: 6px solid #EA580C; /* Оранжевая полоса слева */
}
.et-custom-cta--orange:hover {
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.15);
    transform: translateY(-2px);
}

/* Фиолетовый вариант (в стиле сайта) */
.et-custom-cta--purple {
    background: #F5F3FF; /* Нежный фиолетовый фон */
    border-left: 6px solid #7C3AED; /* Фиолетовая полоса слева */
}
.et-custom-cta--purple:hover {
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
    transform: translateY(-2px);
}

.et-custom-cta-icon {
    font-size: 3rem;
    line-height: 1;
    flex-shrink: 0;
}

.et-custom-cta-content {
    flex-grow: 1;
}

.et-custom-cta-content h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.et-custom-cta-content p {
    font-size: 0.95rem;
    color: var(--light);
    line-height: 1.5;
    margin: 0;
}

/* Кнопки */
.et-custom-cta-btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.et-custom-cta-btn--orange {
    background: #EA580C;
}
.et-custom-cta-btn--orange:hover {
    background: #C2410C;
}

.et-custom-cta-btn--purple {
    background: #7C3AED;
}
.et-custom-cta-btn--purple:hover {
    background: #6D28D9;
}

/* Адаптив для мобильных телефонов */
@media (max-width: 900px) {
    .et-custom-cta {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 16px;
    }
    .et-custom-cta-btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================ */
/* === ЖИВЫЕ КАРТОЧКИ ШАГОВ ОБУЧЕНИЯ === */
/* ============================================ */

.et-step-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    text-decoration: none; /* Убираем подчеркивание ссылки */
    color: inherit;        /* Наследуем цвет текста */
    transition: all 0.3s ease;
    height: 100%;          /* Чтобы все карточки были одинаковой высоты */
}

/* Эффект при наведении на карточку */
.et-step-card:hover {
    transform: translateY(-8px); /* Приподнимаем карточку */
    border-color: var(--primary); /* Красим рамку в фиолетовый */
    box-shadow: 0 12px 25px rgba(124, 58, 237, 0.15); /* Мягкая фиолетовая тень */
}

/* Номер шага */
.et-step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

/* Анимация номера при наведении */
.et-step-card:hover .et-step-num {
    background: var(--secondary); /* Меняем цвет на бирюзовый */
    transform: scale(1.15) rotate(5deg); /* Немного увеличиваем и поворачиваем */
}

/* Заголовок и текст */
.et-step-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--dark);
    transition: color 0.3s ease;
}

.et-step-card:hover h3 {
    color: var(--primary); /* Заголовок тоже становится фиолетовым */
}

.et-step-card p {
    font-size: 0.9rem;
    color: var(--light);
    line-height: 1.5;
    margin-bottom: 20px; /* Отступ снизу для ссылки */
}

/* Ссылка "Начать шаг" */
.et-step-link {
    margin-top: auto; /* Прижимаем к низу карточки */
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.5; /* Изначально полупрозрачная */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Анимация ссылки при наведении на карточку */
.et-step-card:hover .et-step-link {
    opacity: 1; /* Проявляется */
    gap: 10px;  /* Стрелочка отъезжает вправо */
}

/* ============================================ */
/* === БЛОК СОВЕТОВ (TIPS GRID) === */
/* ============================================ */

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

.et-tip-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #F8F9FC; /* Очень светлый серо-фиолетовый фон */
    border-left: 4px solid var(--primary); /* Фиолетовая полоса слева */
    border-radius: 12px;
    padding: 28px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.et-tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.et-tip-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px; /* Легкая коррекция для выравнивания с заголовком */
}

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

.et-tip-content p {
    font-size: 0.95rem;
    color: var(--light);
    line-height: 1.6;
    margin: 0;
}

/* --- АДАПТИВ --- */
@media (max-width: 900px) {
    .et-tips-grid {
        grid-template-columns: 1fr; /* В один столбец на планшетах и телефонах */
    }
}

@media (max-width: 600px) {
    .et-tip-card {
        padding: 20px;
        gap: 16px;
    }
    .et-tip-icon {
        font-size: 1.5rem;
    }
    .et-tip-content h3 {
        font-size: 1.05rem;
    }
}