    
        * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    background: #eef2f7;
    color: #1f2e3f;
    line-height: 1.4;
    padding-top: 10px;
}

/* ========= ОБЩИЕ СТИЛИ ШАПКИ ========= */
.header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.03);
    padding: 12px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.logo-link img {
    height: 80px;
    width: auto;
    display: block;
    transition: 0.2s;
}

/* Единый шрифт и hover-эффект для всех элементов навигации (десктоп и мобилка) */
.desktop-nav a,
.desktop-nav .dropbtn,
.desktop-nav .program-title,
.mobile-nav-panel a,
.mobile-nav-panel .mobile-dropbtn,
.mobile-nav-panel .mobile-program-title {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #1f2e3f;
    text-decoration: none;
    background: none !important;            /* убираем любые подложки */
    border: none;
    padding: 8px 0;                       /* минимальные вертикальные отступы */
    transition: text-decoration 0.2s;
    cursor: pointer;
}

/* Эффект подчёркивания при наведении или фокусе (десктоп) */
.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav .dropbtn:hover,
.desktop-nav .dropbtn:focus-visible,
.desktop-nav .program-title:hover,
.desktop-nav .program-title:focus-visible {
    text-decoration: underline;
    outline: none;
}

/* Мобильная панель — тот же шрифт и подчёркивание */
.mobile-nav-panel a:hover,
.mobile-nav-panel a:focus-visible,
.mobile-nav-panel .mobile-dropbtn:hover,
.mobile-nav-panel .mobile-dropbtn:focus-visible,
.mobile-nav-panel .mobile-program-title:hover,
.mobile-nav-panel .mobile-program-title:focus-visible {
    text-decoration: underline;
}

/* Убираем специфические «кнопочные» стили у бывших кнопок */
.contact-btn {
    background: none;
    color: inherit;
    padding: 8px 0;
    border-radius: 0;
    font-weight: 500;
}

.btn-auth {
    background: none !important;
    color: #1f2e3f !important;
    text-align: left;
    padding: 8px 0 !important;
    border-radius: 0 !important;
}

/* max-badge — убираем возможные фоны, оставляем только иконку и текст */
.max-badge {
    background: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

/* Десктопное выпадающее меню (структура без фоновых подложек у кнопок) */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.dropdown {
    position: relative;
}

.dropbtn {
    /* стили уже заданы общим селектором выше */
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px 0;
    border-radius: 8px;
}

.dropdown-content.show {
    display: block;
}

.program-item {
    padding: 0 15px;
    position: relative;
}

.program-title {
    display: block;
    padding: 8px 0;
    cursor: pointer;
}

.submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 8px 0;
}

.submenu.show {
    display: block;
}

.submenu a,
.dropdown-content a {
    display: block;
    padding: 6px 15px;
    text-decoration: none;
    color: #333;
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-weight: 500;
}

.submenu a:hover {
    text-decoration: underline;
}

/* ========= МОБИЛЬНОЕ МЕНЮ ========= */
.fixed-burger {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1002;
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.fixed-burger span {
    width: 25px;
    height: 3px;
    background: #4a5d6e;
    transition: 0.3s;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}
.overlay.show {
    display: block;
}

.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: white;                /* фон панели — белый */
    z-index: 1001;
    padding: 80px 20px 30px;
    transition: 0.3s;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
.mobile-nav-panel.open {
    right: 0;
}

/* Все текстовые элементы внутри панели — тёмные, без фона */
.mobile-nav-panel a,
.mobile-nav-panel .mobile-dropbtn,
.mobile-nav-panel .mobile-program-title,
.mobile-nav-panel .mobile-home-link {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #1f2e3f !important;        /* принудительно тёмный цвет */
    text-decoration: none;
    background: transparent !important;
    border: none;
    padding: 10px 0;
    transition: text-decoration 0.2s;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: left;
}

/* Кнопка «Программы» – выделяем жирным и добавляем стрелку */
.mobile-dropbtn {
    font-weight: 700 !important;
    font-size: 18px !important;       /* чуть крупнее */
    padding: 12px 0 !important;
}
/* Стрелка уже добавлена в HTML (▾), но можно подчеркнуть */
.mobile-dropbtn::after {
    content: " ▾";
    font-size: 16px;
    font-weight: 400;
}

/* Эффект подчёркивания при наведении */
.mobile-nav-panel a:hover,
.mobile-nav-panel .mobile-dropbtn:hover,
.mobile-nav-panel .mobile-program-title:hover {
    text-decoration: underline;
}

/* Выпадающий список программ */
.mobile-dropdown-content {
    display: none;
    padding-left: 15px;
}
.mobile-dropdown-content.show {
    display: block;
}

.mobile-program-title {
    padding: 8px 0;
    font-weight: 500 !important;
    color: #1f2e3f !important;
    cursor: pointer;
}

/* Подменю дней */
.mobile-submenu {
    display: none;
    padding-left: 20px;
}
.mobile-submenu.show {
    display: block;
}
.mobile-submenu a {
    padding: 6px 0;
    font-size: 15px;
    color: #1f2e3f !important;
}

/* Кнопка «Главная» (мобильная) — без изменений, просто стиль */
.mobile-home-link {
    /* уже в общем правиле */
}

/* ========= АДАПТИВ ========= */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .fixed-burger {
        display: flex;
    }
    /* Центрируем логотип в мобильной шапке */
    .header {
        justify-content: center;
        padding: 12px 20px;
    }
    .header-left {
        margin: 0 auto;
        text-align: center;
        flex: 1;
        justify-content: center;
    }
    .logo-link img {
        height: 80px;
    }
}

/* Стиль для новой ссылки «Главная» в мобильном меню */
.mobile-home-link {
  display: block;
  padding: 8px 0;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1f2e3f;
  text-decoration: none;
  transition: text-decoration 0.2s;
}
.mobile-home-link:hover,
.mobile-home-link:focus-visible {
  text-decoration: underline;
}

/* Явное выделение кнопки «Программы» в мобильной панели */
.mobile-dropbtn {
  font-weight: 700 !important;   /* жирнее, чем обычные ссылки */
  color: #1f2e3f;
  font-size: 16px;
  padding: 10px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  transition: text-decoration 0.2s;
}
.mobile-dropbtn:hover,
.mobile-dropbtn:focus-visible {
  text-decoration: underline;
}

        /* ========= СЛОГАН ========= */
        .hero {
            display: flex;
            align-items: baseline;
            justify-content: center;
            gap: 8px;
            flex-wrap: wrap;
            margin: 36px 5% 12px;
        }
        .hero-logo img {
            height: 70px;
            width: auto;
            display: block;
        }
        .hero-text {
            display: flex;
            align-items: baseline;
            gap: 6px;
            font-size: 1.9rem;
            font-weight: 800;
        }
        .hero-dash {
            color: #2c3e66;
            font-size: 1.9rem;
            font-weight: 700;
        }
        .hero-slogan-main {
            color: #225AA6;
            font-size: 1.9rem;
            font-weight: 800;
            background: transparent;
        }
        .hero-subline {
            text-align: center;
            font-size: 1.3rem;
            font-weight: 700;
            background: linear-gradient(135deg, #2C3E50, #4CA1AF);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin: 5px 5% 20px;
            letter-spacing: 0.3px;
        }
        @media (max-width: 700px) {
            .hero-text, .hero-dash, .hero-slogan-main {
                font-size: 1.5rem;
            }
            .hero-subline {
                font-size: 1rem;
            }
            .hero-logo img {
                height: 55px;
            }
        }

        /* ========= КАРУСЕЛЬ (ШИРОКАЯ, БЕЗ ПЕРЕКРЫТИЯ КНОПКАМИ) ========= */
        .carousel-block {
            max-width: 1200px;
            margin: 30px auto 50px;
            padding: 0 5%;
        }
        .carousel {
            position: relative;
            overflow: hidden;
            border-radius: 36px;
            background: transparent;
        }
        .slides-wrapper {
            display: flex;
            transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        }
        .slide {
            flex: 0 0 100%;
            padding: 40px 30px;
            text-align: center;
            font-size: 1.4rem;
            font-weight: 500;
            line-height: 1.5;
            color: #1e3a4d;
            border-radius: 36px;
            background: white;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
            border-left: 6px solid #225AA6;
        }
        .slide strong {
            color: #225AA6;
        }
        /* Кнопки карусели — полупрозрачные, не перекрывают текст */
        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.6);
            backdrop-filter: blur(8px);
            border: none;
            font-size: 2.2rem;
            cursor: pointer;
            padding: 5px 18px;
            border-radius: 60px;
            color: #225AA6;
            font-weight: bold;
            transition: 0.2s;
            z-index: 10;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        .carousel-btn:hover {
            background: #225AA6;
            color: white;
        }
        .prev {
            left: 15px;
        }
        .next {
            right: 15px;
        }
        /* На мобильных кнопки чуть меньше и ещё более прозрачные */
        @media (max-width: 700px) {
            .carousel-btn {
                font-size: 1.8rem;
                padding: 4px 14px;
                background: rgba(255,255,255,0.7);
            }
            .slide {
                padding: 30px 20px;
                font-size: 1.1rem;
            }
        }
        .dots {
            text-align: center;
            margin: 20px 0 10px;
        }
        .dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            background: #cbd5e0;
            border-radius: 20px;
            margin: 0 6px;
            cursor: pointer;
            transition: 0.2s;
        }
        .dot.active {
            background: #225AA6;
            width: 28px;
        }

        /* ========= МАРАФОН (без подложки, просто текст) ========= */
        .marathon-section {
            text-align: center;
            margin: 20px 5% 30px;
        }
        .marathon-title {
            display: inline-block;
            font-weight: 800;
            font-size: 1.7rem;
            color: #1f2e3f;
            background: transparent;
            padding: 0;
        }
        .marathon-title .arrow {
            font-size: 1.6rem;
            color: #225AA6;
            display: inline-block;
            animation: flagPulse 0.8s ease-in-out infinite alternate;
        }
        @keyframes flagPulse {
            from { transform: scale(1); }
            to { transform: scale(1.2); }
        }
        @media (max-width: 600px) {
            .marathon-title { font-size: 1.2rem; }
            .marathon-title .arrow { font-size: 1.2rem; }
        }

        /* ========= ВИДЕО-СЕКЦИЯ (два видео) ========= */
        .video-section {
            max-width: 1200px;
            margin: 0 auto 10px;
            padding: 0 5%;
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
            justify-content: center;
        }
        .video-container {
            flex: 1 1 420px;
            background: #ffffff;
            border-radius: 36px;
            padding: 10px;
            box-shadow: 0 12px 28px rgba(0,0,0,0.05);
            border: 1px solid #eef2f6;
        }
        .video-title {
            font-weight: 700;
            font-size: 1.2rem;
            color: #225AA6;
            margin-bottom: 15px;
            text-align: center;
            border-bottom: 2px solid #e2e8f0;
            padding-bottom: 10px;
        }
        .video-placeholder {
            background: #f0f4fc;
            border-radius: 24px;
            aspect-ratio: 16 / 9;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .video-placeholder iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
        .coming-soon {
            font-weight: 600;
            color: #225AA6;
            text-align: center;
        }

        /* ========= БЛОК УРОКОВ (ДЕНЬ 1, МОДУЛЬНЫЕ ШАГИ) ========= */
        .daily-lesson {
            max-width: 1200px;
            margin: 30px auto;
            padding: 0 5% 40px;
        }
        .lesson-day-title {
            text-align: center;
            font-size: 2.2rem;
            font-weight: 800;
            color: #225AA6;
            margin-bottom: 35px;
            letter-spacing: -0.5px;
        }
        /* Каждый шаг — независимый контейнер */
        .step-block {
            background: white;
            border-radius: 40px;
            padding: 30px 32px;
            margin-bottom: 48px;
            box-shadow: 0 12px 30px rgba(0,0,0,0.05);
            border: 1px solid #eef2f8;
        }
        .step-title {
            font-weight: 800;
            font-size: 1.6rem;
            margin-bottom: 12px;
            color: #225AA6;
            text-align: left;
            border-left: 5px solid #225AA6;
            padding-left: 20px;
        }
        .step-sub {
            font-weight: 600;
            font-size: 1.15rem;
            color: #2c3e66;
            margin-bottom: 15px;
            text-align: left;
        }
        .step-goal {
            background: #eef2fc;
            border-radius: 60px;
            padding: 8px 22px;
            display: inline-block;
            margin: 0 0 20px 0;
            font-weight: 500;
            color: #225AA6;
        }
        .step-description {
            font-size: 1rem;
            color: #2c3e50;
            margin-bottom: 25px;
            text-align: left;
        }
        /* Универсальный контейнер для любого контента (видео, аудио, iframe, текст) */
        .step-content {
            margin-top: 20px;
        }
        .step-content iframe,
        .step-content video,
        .step-content audio {
            max-width: 100%;
            border-radius: 24px;
        }
        .step-content p, .step-content ul {
            margin-bottom: 1rem;
        }
        /* Для аудио-плеера */
        audio {
            width: 100%;
            margin: 10px 0;
        }
        /* Кнопка завершения дня (зелёная) */
        .complete-day-btn {
            display: flex;
            justify-content: center;
            margin: 40px 0 20px;
        }
        .day-complete {
            background: #2ecc71;
            color: white;
            padding: 16px 48px;
            border-radius: 60px;
            text-decoration: none;
            font-weight: 800;
            font-size: 1.2rem;
            transition: 0.2s;
            box-shadow: 0 8px 20px rgba(46,204,113,0.3);
            border: none;
            cursor: pointer;
            display: inline-block;
        }
        .day-complete:hover {
            background: #27ae60;
            transform: scale(1.02);
            box-shadow: 0 12px 24px rgba(46,204,113,0.4);
        }

        /* Мобильное центрирование заголовков шагов */
        @media (max-width: 680px) {
            .step-title, .step-sub, .step-goal, .step-description {
                text-align: center;
            }
            .step-title {
                border-left: none;
                padding-left: 0;
                text-align: center;
            }
            .step-goal {
                display: block;
                margin-left: auto;
                margin-right: auto;
                width: fit-content;
            }
        }

        /* Кнопка записи на урок (внизу) */
        .cta-button {
            display: inline-block;
            background: linear-gradient(135deg, #FF9A6E, #FF6B3D);
            color: white;
            padding: 14px 44px;
            border-radius: 60px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1.1rem;
            margin: 20px auto 60px;
            box-shadow: 0 12px 24px rgba(255,107,61,0.3);
            transition: 0.2s;
        }
        .cta-button:hover { transform: scale(1.02); box-shadow: 0 18px 30px rgba(255,107,61,0.4); }

        /* Стили для будущих игр (Drag & Drop) — сохранены */
        .game-container, .words-grid, .word, .drop-zone, .sentences, .action-bar, .check-btn, .reset-btn {
            /* стили остаются для будущих блоков */
        }
    
    /* ========= СТИЛИ ДЛЯ DRAG & DROP ИГРЫ ========= */
.game-container {
    background: transparent;
    padding: 0;
    margin: 0;
}

.words-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: #fef9e8;
    padding: 20px 18px;
    border-radius: 48px;
    margin-bottom: 30px;
    border: 2px solid #ffe6c7;
    box-shadow: inset 0 1px 4px #0001, 0 6px 12px -8px rgba(0,0,0,0.1);
    justify-content: center;
    min-height: 110px;
}

.word {
    background: white;
    border: none;
    padding: 10px 20px;
    border-radius: 100px;
    cursor: grab;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    font-weight: 600;
    font-size: 1rem;
    color: #1f3b4c;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid #ffe0b5;
}
.word:active { cursor: grabbing; }
.word.dragging {
    opacity: 0.4;
    cursor: grabbing;
}
.word:hover {
    transform: translateY(-3px);
    background: #fff5e6;
    border-color: #f7b05e;
    box-shadow: 0 12px 16px -10px rgba(0,0,0,0.15);
}

.sentences {
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 38px;
    margin: 20px 0 15px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}
.sentence {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.5;
    color: #1f2e3a;
    background: #fdfdfd;
    padding: 8px 12px;
    border-radius: 28px;
    transition: 0.1s;
    border: 1px solid #eef2f6;
}

.drop-zone {
    display: inline-block;
    min-width: 105px;
    height: 32px;
    border-bottom: 3px solid #3498db;
    background: #f0f7fe;
    margin: 0 6px;
    vertical-align: middle;
    text-align: center;
    line-height: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 20px;
    padding: 0 10px;
    color: #1e4663;
    transition: all 0.15s;
    box-shadow: inset 0 0 0 1px #ffffff80, 0 1px 2px rgba(0,0,0,0.02);
}
.drop-zone.hover {
    background: #cfe7ff;
    border-bottom: 3px dashed #f39c12;
    transform: scale(1.02);
}
.drop-zone.correct {
    color: #2c6e2c !important;
    border-bottom: 3px solid #2ecc71 !important;
    background: #e0f7e8 !important;
}
.drop-zone.wrong {
    color: #c0392b !important;
    border-bottom: 3px solid #e74c3c !important;
    background: #ffe6e5 !important;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.action-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.check-btn, .reset-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
    font-family: inherit;
}
.check-btn {
    background: #3498db;
    color: white;
}
.check-btn:hover {
    background: #217dbb;
    transform: scale(1.02);
}
.reset-btn {
    background: #f39c12;
    color: #2c3e2f;
}
.reset-btn:hover {
    background: #e67e22;
    color: white;
    transform: scale(1.02);
}

.info-message {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #4a627a;
    background: #ecf5fc;
    display: inline-block;
    width: auto;
    padding: 6px 18px;
    border-radius: 50px;
}

@media (max-width: 620px) {
    .word { padding: 6px 14px; font-size: 0.85rem; }
    .drop-zone { min-width: 80px; font-size: 0.8rem; }
    .sentence { font-size: 0.9rem; }
}

/* Убираем излишние отступы и ограничения ширины на мобильных */
@media (max-width: 768px) {
  .daily-lesson,
  .step-block,
  .mode-box,
  .match-game-container,
  .flashcard-area,
  .test-question {
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .flip-card2 {
    max-width: 100% !important;
  }
  .match-tile {
    max-width: 100% !important;
  }
}
/* фото на карточках */

.day1step6-card-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Стили специально для выпадающих меню *?


 /* Подвал */
  .site-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 16px 5% 12px;          /* было 28px 5% 24px — стало компактнее */
    font-size: 0.85rem;             /* чуть мельче */
    color: #2c3e50;
    line-height: 1.4;
    margin-top: 40px;
    font-family: 'Segoe UI', 'Roboto', system-ui, -apple-system, sans-serif;
  }
  .footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-col {
    flex: 1 1 200px;
    min-width: 160px;
  }
  .footer-col h4 {
    font-weight: 700;
    font-size: 0.95rem;
    color: #225AA6;
    margin-bottom: 8px;
    border-bottom: 2px solid #eef2f8;
    padding-bottom: 4px;
  }
  .footer-col p {
    margin: 2px 0;
  }
  .footer-col a,
  .footer-col button {
    display: block;
    color: #2c3e50;
    text-decoration: none;
    padding: 4px 0;
    transition: 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 0.85rem;
    width: 100%;
  }
  .footer-col a:hover,
  .footer-col button:hover {
    color: #FF6B3D;
    padding-left: 3px;
  }
  .footer-sublist {
    display: none;
    padding-left: 14px;
    margin: 2px 0 6px;
  }
  .footer-sublist.show {
    display: block;
  }
  .footer-sublist a {
    font-size: 0.8rem;
    color: #4a5568;
  }
  .footer-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
  }
  .footer-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f7f9fc;
    padding: 5px 12px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    color: #2c3e50;
  }
  .footer-contacts a:hover {
    background: #eef2f8;
  }
  .footer-bottom {
    text-align: center;
    border-top: 1px solid #eef2f6;
    padding-top: 10px;
    font-size: 0.75rem;
    color: #5f6f82;
    margin-top: 8px;
  }
  .footer-bottom a {
    color: #225AA6;
    margin: 0 6px;
  }

  /* Cookie-баннер */
  .cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 9999;
    padding: 16px 5%;
    display: none; /* показываем через JS */
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
    color: #2c3e50;
    border-top: 1px solid #e2e8f0;
    font-family: 'Segoe UI', 'Roboto', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
  }
  .cookie-consent p {
    margin: 0;
    flex: 1 1 280px;
    line-height: 1.5;
  }
  .cookie-consent a {
    color: #225AA6;
    text-decoration: underline;
  }
  .cookie-btn {
    background: #225AA6;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
  }
  .cookie-btn:hover {
    background: #15447a;
  }
  @media (max-width: 680px) {
    .footer-grid {
      flex-direction: column;
      align-items: stretch;
    }
    .footer-col {
      flex: unset;
      width: 100%;
    }
    .footer-contacts {
      justify-content: center;
    }
    .cookie-consent {
      flex-direction: column;
      text-align: center;
    }
  }
  
  /* Стили шага 4 */

    .step4-qtab {
        background: white; border: 1px solid #cbd5e0; padding: 8px 20px; border-radius: 60px;
        font-weight: 600; cursor: pointer; transition: all 0.25s; font-size: 0.9rem;
        box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    }
    .step4-qtab.active {
        background: linear-gradient(135deg, #225AA6, #1a4080); color: white; border-color: transparent;
        box-shadow: 0 6px 16px rgba(34,90,166,0.3);
    }
    .step4-qtab:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.08); }

    .step4-flashcard-area {
        display: flex; flex-direction: column; align-items: center; margin: 16px 0;
    }
    .step4-flip-card {
        width: 100%; max-width: 400px; height: 250px; perspective: 1000px; cursor: pointer;
    }
    .step4-flip-inner {
        position: relative; width: 100%; height: 100%; transition: transform 0.45s;
        transform-style: preserve-3d; border-radius: 28px; box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    }
    .step4-flip-card.flipped .step4-flip-inner { transform: rotateY(180deg); }
    .step4-flip-front, .step4-flip-back {
        position: absolute; width: 100%; height: 100%; backface-visibility: hidden;
        border-radius: 28px; display: flex; flex-direction: column; align-items: center;
        justify-content: center; padding: 20px; text-align: center; font-weight: 600;
        box-sizing: border-box;
    }
    .step4-flip-front {
        background: #ffffff; color: #1f2e3f; border: 2px solid #eef2f8;
    }
    .step4-flip-back {
        background: linear-gradient(135deg, #225AA6, #1a4080); color: white;
        transform: rotateY(180deg);
    }
    /* Картинка на лицевой стороне */
    .step4-front-image {
        width: 80px; height: 80px; object-fit: cover; border-radius: 20px; margin-bottom: 12px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .step4-card-icon {
        width: 44px; height: 44px; margin-bottom: 12px; opacity: 0.7;
    }
    .step4-know-btns { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
    .step4-know-btn {
        padding: 10px 26px; border-radius: 60px; border: none; font-weight: bold; cursor: pointer;
        transition: all 0.2s; font-size: 0.95rem;
    }
    .step4-know-btn.study { background: #f1f5f9; color: #1e293b; }
    .step4-know-btn.study:hover { background: #e2e8f0; }
    .step4-know-btn.know { background: #2ecc71; color: white; }
    .step4-know-btn.know:hover { background: #27ae60; }
    .step4-progress-text { text-align: center; margin-top: 12px; font-weight: 500; color: #475569; }

    /* Стили подбора и теста без изменений */
    .step4-match-container {
        background: #ffffff; border-radius: 28px; padding: 20px; position: relative;
        box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    }
    .step4-match-timer {
        text-align: center; font-weight: 700; font-size: 1.2rem; margin-bottom: 16px;
        color: #225AA6; background: #f0f4ff; border-radius: 16px; padding: 6px 16px;
        display: inline-block;
    }
    .step4-match-grid {
        display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
    }
    .step4-match-tile {
        padding: 12px 20px; border-radius: 22px; background: #f8fafc;
        border: 2px solid #e2e8f0; font-weight: 500; cursor: pointer;
        transition: all 0.2s; user-select: none; font-size: 0.9rem;
        text-align: center; word-break: break-word; max-width: 240px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    }
    .step4-match-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.08); }
    .step4-match-tile.selected {
        border-color: #225AA6; background: #e0edff; box-shadow: 0 0 0 3px rgba(34,90,166,0.25);
    }
    .step4-match-tile.correct-anim {
        animation: popFade 0.4s forwards; background: #d4edda; border-color: #2ecc71;
    }
    .step4-match-tile.wrong-anim {
        animation: shake 0.5s ease; background: #f8d7da; border-color: #e74c3c;
    }
    @keyframes popFade {
        0% { transform: scale(1); opacity: 1; }
        50% { transform: scale(1.15); opacity: 0.7; }
        100% { transform: scale(0); opacity: 0; display: none; }
    }
    @keyframes shake {
        0%,100% { transform: translateX(0); }
        20% { transform: translateX(-6px); }
        40% { transform: translateX(6px); }
        60% { transform: translateX(-4px); }
        80% { transform: translateX(4px); }
    }

    .step4-test-question {
        background: white; border-radius: 22px; padding: 20px; margin-bottom: 16px;
        box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    }
    .step4-test-question label {
        display: block; padding: 8px 14px; border-radius: 14px; margin: 5px 0;
        cursor: pointer; transition: background 0.2s; border: 1px solid transparent;
    }
    .step4-test-question label:hover { background: #f1f5f9; border-color: #e2e8f0; }
    .step4-test-question input[type="radio"] { margin-right: 10px; accent-color: #225AA6; }
    .step4-test-feedback { font-size: 0.9rem; margin-top: 8px; font-weight: 500; }

    .step4-btn-primary {
        background: linear-gradient(135deg, #225AA6, #1a4080); color: white; border: none;
        padding: 12px 32px; border-radius: 60px; font-weight: bold; cursor: pointer;
        box-shadow: 0 4px 12px rgba(34,90,166,0.3);
    }
    .step4-btn-secondary {
        background: #e2e8f0; color: #1f5068; border: none; padding: 10px 28px;
        border-radius: 60px; cursor: pointer; font-weight: 600;
    }

    @media (max-width: 500px) {
        .step4-flip-card { height: 200px; }
        .step4-match-tile { max-width: 160px; font-size: 0.8rem; padding: 8px 12px; }
        .step4-front-image { width: 60px; height: 60px; }
    }
/* ========= КОНТЕЙНЕР-ПРИЛОЖЕНИЕ ========= */
.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ========= ГЕРО-БЛОК ========= */


/* ========= КНОПКИ АВТОРИЗАЦИИ ========= */
.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.btn-auth {
    display: block;
    text-align: center;
    padding: 14px 20px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    background: white;
    color: #1f2e3f;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 2px solid #e2e8f0;
    transition: all 0.2s;
}
.btn-auth:hover {
    background: #f8fafc;
    border-color: #225AA6;
    color: #225AA6;
    transform: translateY(-2px);
}
.btn-register {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    box-shadow: 0 8px 18px rgba(46,204,113,0.3);
}
.btn-register:hover {
    background: linear-gradient(135deg, #27ae60, #219a52);
    color: white;
    border: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(46,204,113,0.4);
}

/* ========= КАРТОЧКИ КУРСОВ ========= */
.course-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.course-card {
    background: white;
    border-radius: 32px;
    padding: 24px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid #eef2f8;
}
.course-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1f2e3f;
    margin-bottom: 6px;
}
.course-info p {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 14px;
}
.card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-detail {
    background: #f0f4ff;
    color: #225AA6;
    border: 1px solid #d0dfff;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.95rem;
    flex: 1;
    text-align: center;
}
.btn-detail:hover {
    background: #225AA6;
    color: white;
    border-color: #225AA6;
}
.btn-try {
    background: linear-gradient(135deg, #FF9A6E, #FF6B3D);
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
    font-size: 0.95rem;
    flex: 1;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255,107,61,0.2);
    display: block;
}
.btn-try:hover {
    background: #e55a2c;
    transform: scale(1.02);
    box-shadow: 0 8px 18px rgba(255,107,61,0.3);
}

/* ========= МОДАЛЬНЫЕ ОКНА ========= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: white;
    border-radius: 36px;
    padding: 32px 24px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 24px 48px rgba(0,0,0,0.15);
    position: relative;
    animation: modalPop 0.3s ease;
}
@keyframes modalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #5f6f82;
    line-height: 1;
}
.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #225AA6;
    margin-bottom: 16px;
}
.modal-content p {
    margin-bottom: 12px;
    color: #2c3e50;
}
.modal-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}
.modal-content li {
    margin-bottom: 6px;
}

/* ========= АККОРДЕОН ========= */
.accordion-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.accordion-item {
    background: white;
    border-radius: 24px;
    padding: 4px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid #eef2f8;
}
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: #1f2e3f;
    user-select: none;
}
.accordion-header .plus {
    font-size: 1.8rem;
    font-weight: 300;
    color: #225AA6;
    transition: transform 0.3s;
}
.accordion-item.open .plus {
    transform: rotate(45deg);
}
.accordion-content {
    display: none;
    padding: 0 20px 18px;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
}
.accordion-item.open .accordion-content {
    display: block;
}

/* ========= АДАПТИВ ДЛЯ УЗКИХ ЭКРАНОВ ========= */
@media (max-width: 480px) {
    .hero-logo {
        font-size: 2.2rem;
    }
    .hero-text, .hero-dash, .hero-slogan-main {
        font-size: 1.3rem;
    }
    .hero-subline {
        font-size: 1rem;
    }
    .course-card {
        padding: 20px 16px;
    }
    .card-actions {
        flex-direction: column;
    }
}

/* Кнопка с анимированным переливающимся градиентом (сине-зелёные волны) */
.btn-course-signup-animated {
    display: inline-block;
    width: auto;
    background: linear-gradient(135deg, #3b82f6, #2ecc71, #3b82f6);
    background-size: 300% 300%;
    color: white;
    padding: 12px 30px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    border: none;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
    animation: priceWave 4s ease infinite;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn-course-signup-animated:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(46, 204, 113, 0.5);
}

@keyframes priceWave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Переливающаяся цена */
.price-glow {
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #2ecc71, #3b82f6);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: priceWave 4s ease infinite;
    display: inline-block;
    margin-top: 8px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Исправление переворота карточек на мобильных */
@media (max-width: 768px) {
    .step4-flip-card {
        perspective: 1000px !important;
        -webkit-perspective: 1000px !important;
    }
    .step4-flip-inner {
        transform-style: preserve-3d !important;
        -webkit-transform-style: preserve-3d !important;
        transition: transform 0.45s ease !important;
    }
    .step4-flip-front,
    .step4-flip-back {
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
    }
}



  /* Общие для тренажёра */
  #travel-day2 .day2-qtab {
    background: white; border: 1px solid #cbd5e0; padding: 8px 20px; border-radius: 60px;
    font-weight: 600; cursor: pointer; transition: all 0.25s; font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  }
  #travel-day2 .day2-qtab.active {
    background: linear-gradient(135deg, #225AA6, #1a4080); color: white; border-color: transparent;
    box-shadow: 0 6px 16px rgba(34,90,166,0.3);
  }
  #travel-day2 .day2-qtab:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.08); }

  /* Карточки */
  #travel-day2 .day2-flashcard-area {
    display: flex; flex-direction: column; align-items: center; margin: 16px 0;
  }
  #travel-day2 .day2-flip-card {
    width: 100%; max-width: 400px; height: 250px; perspective: 1000px; cursor: pointer;
  }
  #travel-day2 .day2-flip-inner {
    position: relative; width: 100%; height: 100%; transition: transform 0.45s;
    transform-style: preserve-3d; border-radius: 28px; box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  }
  #travel-day2 .day2-flip-card.flipped .day2-flip-inner { transform: rotateY(180deg); }
  #travel-day2 .day2-flip-front, #travel-day2 .day2-flip-back {
    position: absolute; width: 100%; height: 100%; backface-visibility: hidden;
    border-radius: 28px; display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 20px; text-align: center; font-weight: 600;
    box-sizing: border-box;
  }
  #travel-day2 .day2-flip-front {
    background: #ffffff; color: #1f2e3f; border: 2px solid #eef2f8;
  }
  #travel-day2 .day2-flip-back {
    background: linear-gradient(135deg, #225AA6, #1a4080); color: white;
    transform: rotateY(180deg);
  }
  #travel-day2 .day2-card-emoji { font-size: 48px; margin-bottom: 10px; }
  #travel-day2 .day2-know-btns { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
  #travel-day2 .day2-know-btn {
    padding: 10px 26px; border-radius: 60px; border: none; font-weight: bold; cursor: pointer;
    transition: all 0.2s; font-size: 0.95rem;
  }
  #travel-day2 .day2-know-btn.study { background: #f1f5f9; color: #1e293b; }
  #travel-day2 .day2-know-btn.study:hover { background: #e2e8f0; }
  #travel-day2 .day2-know-btn.know { background: #2ecc71; color: white; }
  #travel-day2 .day2-know-btn.know:hover { background: #27ae60; }
  #travel-day2 .day2-progress-text { text-align: center; margin-top: 12px; font-weight: 500; color: #475569; }

  /* Подбор */
  #travel-day2 .day2-match-container {
    background: #ffffff; border-radius: 28px; padding: 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  }
  #travel-day2 .day2-match-timer {
    text-align: center; font-weight: 700; font-size: 1.2rem; margin-bottom: 16px;
    color: #225AA6; background: #f0f4ff; border-radius: 16px; padding: 6px 16px;
    display: inline-block;
  }
  #travel-day2 .day2-match-grid {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  }
  #travel-day2 .day2-match-tile {
    padding: 12px 20px; border-radius: 22px; background: #f8fafc;
    border: 2px solid #e2e8f0; font-weight: 500; cursor: pointer;
    transition: all 0.2s; user-select: none; font-size: 0.9rem;
    text-align: center; word-break: break-word; max-width: 240px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  }
  #travel-day2 .day2-match-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.08); }
  #travel-day2 .day2-match-tile.selected {
    border-color: #225AA6; background: #e0edff; box-shadow: 0 0 0 3px rgba(34,90,166,0.25);
  }
  #travel-day2 .day2-match-tile.correct-anim {
    animation: day2-popFade 0.4s forwards; background: #d4edda; border-color: #2ecc71;
  }
  #travel-day2 .day2-match-tile.wrong-anim {
    animation: day2-shake 0.5s ease; background: #f8d7da; border-color: #e74c3c;
  }
  @keyframes day2-popFade {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
    100% { transform: scale(0); opacity: 0; display: none; }
  }
  @keyframes day2-shake {
    0%,100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
  }

  /* Тест */
  #travel-day2 .day2-test-question {
    background: white; border-radius: 22px; padding: 20px; margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  }
  #travel-day2 .day2-test-question label {
    display: block; padding: 8px 14px; border-radius: 14px; margin: 5px 0;
    cursor: pointer; transition: background 0.2s; border: 1px solid transparent;
  }
  #travel-day2 .day2-test-question label:hover { background: #f1f5f9; border-color: #e2e8f0; }
  #travel-day2 .day2-test-question input[type="radio"] { margin-right: 10px; accent-color: #225AA6; }
  #travel-day2 .day2-test-feedback { font-size: 0.9rem; margin-top: 8px; font-weight: 500; }

  #travel-day2 .day2-btn-primary {
    background: linear-gradient(135deg, #225AA6, #1a4080); color: white; border: none;
    padding: 12px 32px; border-radius: 60px; font-weight: bold; cursor: pointer;
    box-shadow: 0 4px 12px rgba(34,90,166,0.3);
  }
  #travel-day2 .day2-btn-secondary {
    background: #e2e8f0; color: #1f5068; border: none; padding: 10px 28px;
    border-radius: 60px; cursor: pointer; font-weight: 600;
  }

  /* Видео-тест */
  #travel-day2 .pause-question-item {
    background: #ffffff; border-radius: 24px; padding: 20px; margin-bottom: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04); border: 1px solid #e2e8f0;
  }
  #travel-day2 .pause-question-item .timestamp {
    font-weight: 700; color: #225AA6; margin-bottom: 12px;
  }
  #travel-day2 .pause-question-item .question-text { font-weight: 600; margin-bottom: 14px; }
  #travel-day2 .pause-question-item .options { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
  #travel-day2 .pause-question-item .option-btn {
    padding: 10px 22px; border: 2px solid #cbd5e1; border-radius: 40px;
    background: white; cursor: pointer; font-weight: 500; transition: all 0.2s; font-size: 0.95rem;
  }
  #travel-day2 .pause-question-item .option-btn:hover { background: #f1f5f9; border-color: #225AA6; }
  #travel-day2 .pause-question-item .option-btn.selected {
    background: #225AA6; color: white; border-color: #225AA6;
  }
  #travel-day2 .pause-question-item .option-btn.correct {
    background: #bbf7d0; border-color: #22c55e; color: #14532d;
  }
  #travel-day2 .pause-question-item .option-btn.wrong {
    background: #fecaca; border-color: #ef4444; color: #7f1d1d;
  }
  #travel-day2 .pause-question-item input[type="text"] {
    padding: 12px 18px; border: 2px solid #cbd5e1; border-radius: 40px; width: 180px; font-size: 1rem; transition: 0.2s;
  }
  #travel-day2 .pause-question-item input[type="text"].correct { border-color: #22c55e; background: #f0fdf4; }
  #travel-day2 .pause-question-item input[type="text"].wrong { border-color: #ef4444; background: #fef2f2; }

  /* Кликабельные слова в диалоге */
  #travel-day2 .day2-clickable-word {
    background: #fef08a; padding: 2px 8px; border-radius: 12px; cursor: pointer; font-weight: 600;
    transition: background 0.2s;
  }
  #travel-day2 .day2-clickable-word.active { background: #a7f3d0; }

  /* Зоны под картинками */
  #travel-day2 .day2-image-item { text-align: center; width: 100px; }
  #travel-day2 .day2-drop-zone {
    display: inline-block; min-width: 90px; padding: 6px 10px; border-bottom: 2px solid #94a3b8;
    background: #f1f5f9; border-radius: 12px; font-weight: 600; font-size: 0.9rem;
    text-align: center; margin-top: 8px; cursor: pointer;
  }
  #travel-day2 .day2-drop-zone.filled { background: #dbeafe; }
  #travel-day2 .day2-btn-check, #travel-day2 .day2-btn-reset {
    background: #225AA6; color: white; border: none; padding: 10px 24px; border-radius: 60px;
    font-weight: bold; cursor: pointer; margin: 0 6px; transition: 0.2s;
  }
  #travel-day2 .day2-btn-check:hover { background: #1a4080; }
  #travel-day2 .day2-btn-reset { background: #e2e8f0; color: #1f5068; }
  #travel-day2 .day2-btn-reset:hover { background: #cbd5e1; }

  /* Тест личности */
  #travel-day2 .personality-question {
    background: white; border-radius: 24px; padding: 24px; box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  }
  #travel-day2 .personality-icon { font-size: 40px; min-width: 60px; text-align: center; }
  #travel-day2 .personality-options { flex: 1; }
  #travel-day2 .personality-options label {
    display: block; padding: 10px 16px; margin: 8px 0; border-radius: 16px;
    border: 1px solid #e2e8f0; cursor: pointer; transition: 0.2s; font-size: 0.95rem;
  }
  #travel-day2 .personality-options label:hover { background: #f0f6ff; border-color: #225AA6; }
  #travel-day2 .personality-options input[type="radio"] { accent-color: #225AA6; margin-right: 10px; }

  #travel-day2 .result-card {
    background: white; border-radius: 28px; padding: 28px; box-shadow: 0 12px 28px rgba(0,0,0,0.06);
    margin-bottom: 20px; display: flex; gap: 20px; align-items: flex-start;
  }
  #travel-day2 .result-icon { font-size: 60px; }
  #travel-day2 .result-text { flex: 1; }

  @media (max-width: 600px) {
    #travel-day2 .day2-flip-card { height: 200px; }
    #travel-day2 .day2-match-tile { max-width: 160px; font-size: 0.8rem; }
    #travel-day2 .personality-question { flex-direction: column; }
  }


        /* ===== Эксклюзивные стили Дня 2 (не конфликтуют с общими) ===== */
        .day2-lesson-block {
            max-width: 100%;
            margin: 0 auto;
            font-family: inherit;
            line-height: 1.4;
        }
        .day2-lesson-block *,
        .day2-lesson-block *::before,
        .day2-lesson-block *::after {
            box-sizing: border-box;
        }

        /* Шаги */
        .day2-lesson-block .step-block {
            background: white;
            border-radius: 40px;
            padding: 30px 32px;
            margin-bottom: 48px;
            box-shadow: 0 12px 30px rgba(0,0,0,0.05);
            border: 1px solid #eef2f8;
            width: 100%;
        }
        .day2-lesson-block .step-title {
            font-weight: 800;
            font-size: 1.6rem;
            margin-bottom: 12px;
            color: #225AA6;
            text-align: left;
            border-left: 5px solid #225AA6;
            padding-left: 20px;
        }
        .day2-lesson-block .step-sub {
            font-weight: 600;
            font-size: 1.15rem;
            color: #2c3e66;
            margin-bottom: 15px;
            text-align: left;
        }
        .day2-lesson-block .step-goal {
            background: #eef2fc;
            border-radius: 60px;
            padding: 8px 22px;
            display: inline-block;
            margin: 0 0 20px 0;
            font-weight: 500;
            color: #225AA6;
        }
        .day2-lesson-block .step-description {
            font-size: 1rem;
            color: #2c3e50;
            margin-bottom: 25px;
            text-align: left;
        }
        .day2-lesson-block .step-content {
            margin-top: 20px;
        }
        .day2-lesson-block iframe {
            max-width: 100%;
            border-radius: 24px;
        }

        /* Кнопка завершения */
        .day2-lesson-block .complete-day-btn {
            display: flex;
            justify-content: center;
            margin: 40px 0 20px;
        }
        .day2-lesson-block .day-complete {
            background: #2ecc71;
            color: white;
            padding: 16px 48px;
            border-radius: 60px;
            text-decoration: none;
            font-weight: 800;
            font-size: 1.2rem;
            transition: 0.2s;
            box-shadow: 0 8px 20px rgba(46,204,113,0.3);
            border: none;
            cursor: pointer;
            display: inline-block;
        }
        .day2-lesson-block .day-complete:hover {
            background: #27ae60;
            transform: scale(1.02);
        }

        /* ===== ИГРА ШАГ 1 (Match) ===== */
        .day2-match-container {
            background: #ffffff;
            border-radius: 28px;
            padding: 20px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.05);
            margin-top: 20px;
        }
        .day2-match-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
        }
        .day2-match-tile {
            padding: 12px 20px;
            border-radius: 22px;
            background: #f8fafc;
            border: 2px solid #e2e8f0;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            user-select: none;
            font-size: 0.9rem;
            text-align: center;
            word-break: break-word;
            max-width: 240px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.02);
        }
        .day2-match-tile:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 14px rgba(0,0,0,0.08);
        }
        .day2-match-tile.selected {
            border-color: #225AA6;
            background: #e0edff;
            box-shadow: 0 0 0 3px rgba(34,90,166,0.25);
        }
        .day2-match-tile.correct-anim {
            animation: day2-popFade 0.4s forwards;
            background: #d4edda;
            border-color: #2ecc71;
        }
        .day2-match-tile.wrong-anim {
            animation: day2-shake 0.5s ease;
            background: #f8d7da;
            border-color: #e74c3c;
        }
        @keyframes day2-popFade {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.15); opacity: 0.7; }
            100% { transform: scale(0); opacity: 0; display: none; }
        }
        @keyframes day2-shake {
            0%,100% { transform: translateX(0); }
            20% { transform: translateX(-6px); }
            40% { transform: translateX(6px); }
            60% { transform: translateX(-4px); }
            80% { transform: translateX(4px); }
        }

        /* ===== ИГРА ШАГ 2 (Drag & Drop) ===== */
        .day2-drag-words {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            background: #fef9e8;
            padding: 20px 18px;
            border-radius: 48px;
            margin-bottom: 30px;
            border: 2px solid #ffe6c7;
            box-shadow: inset 0 1px 4px #0001, 0 6px 12px -8px rgba(0,0,0,0.1);
            justify-content: center;
            min-height: 60px;
        }
        .day2-drag-word {
            background: white;
            padding: 10px 20px;
            border-radius: 100px;
            cursor: grab;
            user-select: none;
            transition: 0.2s;
            font-weight: 600;
            font-size: 0.95rem;
            color: #1f3b4c;
            box-shadow: 0 4px 8px rgba(0,0,0,0.05);
            border: 1px solid #ffe0b5;
        }
        .day2-drag-word:active { cursor: grabbing; }
        .day2-drag-word.dragging { opacity: 0.4; }
        .day2-images-row {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            justify-content: center;
        }
        .day2-image-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 120px;
            margin-bottom: 16px;
        }
        .day2-image-card img {
            width: 100%;
            aspect-ratio: 1 / 1;
            object-fit: cover;
            border-radius: 20px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            margin-bottom: 8px;
        }
        .day2-drop-zone {
            width: 100%;
            min-height: 40px;
            border: 2px dashed #94a3b8;
            border-radius: 20px;
            background: #f8fafc;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 0.85rem;
            color: #475569;
            padding: 6px 8px;
            text-align: center;
            transition: 0.2s;
            word-break: break-word;
        }
        .day2-drop-zone.filled {
            background: #dbeafe;
            border-color: #225AA6;
        }
        .day2-drop-zone.hover {
            background: #cfe7ff;
            border-color: #f39c12;
        }
        .day2-btn-check, .day2-btn-reset {
            background: #225AA6;
            color: white;
            border: none;
            padding: 10px 24px;
            border-radius: 60px;
            font-weight: bold;
            cursor: pointer;
            margin: 0 6px;
            transition: 0.2s;
            font-size: 0.95rem;
        }
        .day2-btn-check:hover { background: #1a4080; }
        .day2-btn-reset {
            background: #e2e8f0;
            color: #1f5068;
        }
        .day2-btn-reset:hover { background: #cbd5e1; }

        /* ===== ТЕСТ ШАГ 5 ===== */
        .day2-test-question {
            background: white;
            border-radius: 22px;
            padding: 20px;
            margin-bottom: 16px;
            box-shadow: 0 4px 14px rgba(0,0,0,0.04);
        }
        .day2-test-question p {
            font-weight: 600;
            margin-bottom: 12px;
        }
        .day2-test-question label {
            display: block;
            padding: 8px 14px;
            border-radius: 14px;
            margin: 5px 0;
            cursor: pointer;
            transition: background 0.2s;
            border: 1px solid transparent;
        }
        .day2-test-question label:hover {
            background: #f1f5f9;
            border-color: #e2e8f0;
        }
        .day2-test-question input[type="radio"] {
            margin-right: 10px;
            accent-color: #225AA6;
        }
        .day2-test-feedback {
            font-size: 0.9rem;
            margin-top: 8px;
            font-weight: 500;
        }
        .day2-test-check-btn {
            background: #3498db;
            color: white;
            border: none;
            padding: 12px 32px;
            border-radius: 40px;
            font-weight: bold;
            cursor: pointer;
            font-size: 1rem;
            transition: 0.2s;
            display: inline-block;
        }
        .day2-test-check-btn:hover {
            background: #217dbb;
        }

        /* ===== АДАПТИВ: мобильные — без бордюров, на всю ширину ===== */
        @media (max-width: 768px) {
            .day2-lesson-block .step-block {
                border-radius: 0 !important;
                box-shadow: none !important;
                border: none !important;
                padding: 20px 10px !important;
                margin-bottom: 30px;
            }
            .day2-lesson-block .step-title {
                border-left: none;
                padding-left: 0;
                text-align: center;
                font-size: 1.4rem;
            }
            .day2-lesson-block .step-sub,
            .day2-lesson-block .step-description {
                text-align: center;
            }
            .day2-lesson-block .step-goal {
                display: block;
                margin: 0 auto 20px;
                width: fit-content;
            }
            .day2-image-card {
                width: 45%;
                max-width: 160px;
            }
            .day2-match-tile {
                max-width: 160px;
                font-size: 0.8rem;
                padding: 8px 12px;
            }
            .day2-drag-word {
                padding: 8px 16px;
                font-size: 0.85rem;
            }
        }
   
   /* Картинка внутри карточки курса — на всю ширину, с пропорцией 21:9 */
.course-image {
  width: 100%;
  aspect-ratio: 21 / 10;
  object-fit: cover;
  border-radius: 20px;
  margin: 12px 0 6px;
  display: block;
}

/* Небольшая адаптивность для мобильных */
@media (max-width: 600px) {
  .course-image {
    border-radius: 16px;
  }
}


    /* Стили для тренажёра 1 день бизнес (исправлены картинки и отступы) */
    .day1step6-qtab {
        background: white; border: 1px solid #cbd5e0; padding: 8px 20px; border-radius: 60px;
        font-weight: 600; cursor: pointer; transition: all 0.25s; font-size: 0.9rem;
        box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    }
    .day1step6-qtab.active {
        background: linear-gradient(135deg, #225AA6, #1a4080); color: white; border-color: transparent;
        box-shadow: 0 6px 16px rgba(34,90,166,0.3);
    }
    .day1step6-qtab:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.08); }

    .day1step6-flashcard-area {
        display: flex; flex-direction: column; align-items: center; margin: 16px 0;
    }
    .day1step6-flip-card {
        width: 100%; max-width: 400px; height: 300px; /* чуть увеличил высоту */
        perspective: 1000px; cursor: pointer;
    }
    .day1step6-flip-inner {
        position: relative; width: 100%; height: 100%; transition: transform 0.45s;
        transform-style: preserve-3d; border-radius: 28px; box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    }
    .day1step6-flip-card.flipped .day1step6-flip-inner { transform: rotateY(180deg); }
    .day1step6-flip-front, .day1step6-flip-back {
        position: absolute; width: 100%; height: 100%; backface-visibility: hidden;
        border-radius: 28px; display: flex; flex-direction: column; align-items: center;
        justify-content: center; padding: 16px; text-align: center; box-sizing: border-box;
    }
    .day1step6-flip-front {
        background: #ffffff; color: #1f2e3f; border: 2px solid #eef2f8;
        justify-content: flex-start; /* чтобы картинка не прилипала к верху */
        padding-top: 20px;
    }
    .day1step6-flip-back {
        background: linear-gradient(135deg, #225AA6, #1a4080); color: white;
        transform: rotateY(180deg);
        font-weight: 700;
        font-size: 1.4rem;
    }
    /* ИСПРАВЛЕНИЯ ДЛЯ КАРТИНОК: крупнее, с закруглением 25px */
    .day1step6-card-image {
        max-width: 150px;        /* была 80px → увеличил */
        max-height: 150px;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 25px;     /* закруглённые углы */
        margin-bottom: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    /* Текст определения на лицевой стороне — чуть меньше */
    .day1step6-flip-front > div:last-child {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-top: 8px;
        max-width: 90%;
    }
    .day1step6-card-icon {
        width: 100px; height: 100px; margin-bottom: 12px; opacity: 0.7;
    }
    .day1step6-know-btns { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
    .day1step6-know-btn {
        padding: 10px 26px; border-radius: 60px; border: none; font-weight: bold; cursor: pointer;
        transition: all 0.2s; font-size: 0.95rem;
    }
    .day1step6-know-btn.study { background: #f1f5f9; color: #1e293b; }
    .day1step6-know-btn.study:hover { background: #e2e8f0; }
    .day1step6-know-btn.know { background: #2ecc71; color: white; }
    .day1step6-know-btn.know:hover { background: #27ae60; }
    .day1step6-progress-text { text-align: center; margin-top: 12px; font-weight: 500; color: #475569; }

    /* Остальные стили (match, test) без изменений */
    .day1step6-match-container {
        background: #ffffff; border-radius: 28px; padding: 20px; position: relative;
        box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    }
    .day1step6-match-timer {
        text-align: center; font-weight: 700; font-size: 1.2rem; margin-bottom: 16px;
        color: #225AA6; background: #f0f4ff; border-radius: 16px; padding: 6px 16px;
        display: inline-block;
    }
    .day1step6-match-grid {
        display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
    }
    .day1step6-match-tile {
        padding: 12px 20px; border-radius: 22px; background: #f8fafc;
        border: 2px solid #e2e8f0; font-weight: 500; cursor: pointer;
        transition: all 0.2s; user-select: none; font-size: 0.9rem;
        text-align: center; word-break: break-word; max-width: 240px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    }
    .day1step6-match-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.08); }
    .day1step6-match-tile.selected {
        border-color: #225AA6; background: #e0edff; box-shadow: 0 0 0 3px rgba(34,90,166,0.25);
    }
    .day1step6-match-tile.correct-anim {
        animation: day1step6-popFade 0.4s forwards; background: #d4edda; border-color: #2ecc71;
    }
    .day1step6-match-tile.wrong-anim {
        animation: day1step6-shake 0.5s ease; background: #f8d7da; border-color: #e74c3c;
    }
    @keyframes day1step6-popFade {
        0% { transform: scale(1); opacity: 1; }
        50% { transform: scale(1.15); opacity: 0.7; }
        100% { transform: scale(0); opacity: 0; display: none; }
    }
    @keyframes day1step6-shake {
        0%,100% { transform: translateX(0); }
        20% { transform: translateX(-6px); }
        40% { transform: translateX(6px); }
        60% { transform: translateX(-4px); }
        80% { transform: translateX(4px); }
    }
    .day1step6-test-question {
        background: white; border-radius: 22px; padding: 20px; margin-bottom: 16px;
        box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    }
    .day1step6-test-question label {
        display: block; padding: 8px 14px; border-radius: 14px; margin: 5px 0;
        cursor: pointer; transition: background 0.2s; border: 1px solid transparent;
    }
    .day1step6-test-question label:hover { background: #f1f5f9; border-color: #e2e8f0; }
    .day1step6-test-question input[type="radio"] { margin-right: 10px; accent-color: #225AA6; }
    .day1step6-test-feedback { font-size: 0.9rem; margin-top: 8px; font-weight: 500; }
    .day1step6-btn-primary {
        background: linear-gradient(135deg, #225AA6, #1a4080); color: white; border: none;
        padding: 12px 32px; border-radius: 60px; font-weight: bold; cursor: pointer;
        box-shadow: 0 4px 12px rgba(34,90,166,0.3);
    }
    .day1step6-btn-secondary {
        background: #e2e8f0; color: #1f5068; border: none; padding: 10px 28px;
        border-radius: 60px; cursor: pointer; font-weight: 600;
    }
    @media (max-width: 500px) {
        .day1step6-flip-card { height: 260px; }
        .day1step6-card-image { max-width: 110px; max-height: 110px; }
        .day1step6-flip-back { font-size: 1.1rem; }
        .day1step6-match-tile { max-width: 160px; font-size: 0.8rem; padding: 8px 12px; }
    }

 
  