/* styles.css - Все стили проекта Учить Английский Язык */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --dark: #1f2937;
    --light: #f8fafc;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 8px -1px rgba(0, 0, 0, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    background-attachment: fixed;
}

/* Modern Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Container Styles */
.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 1rem auto;
    max-width: 1200px;
}

.container-narrow {
    max-width: 800px;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.header h1 {
    color: var(--dark);
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-large h1 {
    font-size: 2.25rem;
}

/* Difficulty Badge */
.difficulty-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    white-space: nowrap;
}

/* Control Buttons */
.controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.control-btn {
    padding: 0.75rem 1.25rem;
    background: var(--gray-100);
    color: var(--gray-800);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-btn:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.control-btn.difficulty-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
}

.control-btn.modules-tree-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
}

.control-btn.danger-btn {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    border: none;
}

/* Progress Bars */
.progress {
    background: var(--gray-100);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.step-progress {
    margin: 1.5rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.5s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Question and Demo Styles */
.question {
    font-size: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    font-weight: 600;
    color: var(--dark);
}

.demo-container {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--gray-100);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.demo-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 1.5rem auto;
    display: block;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow);
}

.demo-word {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.demo-translation {
    font-size: 1.5rem;
    color: var(--secondary);
    margin: 1rem 0;
    font-weight: 600;
}

/* Options Styles */
.image-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.image-option {
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    padding: 1rem;
    transition: var(--transition);
    background: white;
}

.image-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.image-option.selected {
    border-color: var(--secondary);
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary) 20%, transparent);
}

.image-option img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
    margin: 0 auto;
}

.text-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 2rem 0;
}

.text-option {
    padding: 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    background: white;
    font-weight: 500;
    transition: var(--transition);
}

.text-option:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.text-option.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* Form Elements */
input[type="text"] {
    padding: 1rem;
    font-size: 1.125rem;
    width: 100%;
    margin: 5px 0;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    transition: var(--transition);
    font-family: inherit;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.input-single, .input-double {
    text-transform: lowercase;
    text-align: center;
    letter-spacing: 0.5rem;
    font-size: 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
button {
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    width: 100%;
    margin: 1rem 0;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

button:disabled {
    background: var(--gray-300);
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.next-btn {
    background: linear-gradient(135deg, var(--secondary), #059669);
}

.reset-btn {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}

.start-btn {
    background: linear-gradient(135deg, var(--secondary), #059669);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    margin-top: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    width: auto;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.start-btn:disabled {
    background: var(--gray-300);
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* Difficulty Options */
.difficulty-options {
    display: grid;
    gap: 1.25rem;
    margin: 2.5rem 0;
}

.difficulty-option {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.75rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    background: white;
    position: relative;
    overflow: hidden;
}

.difficulty-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.difficulty-option:hover::before {
    left: 100%;
}

.difficulty-option:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: currentColor;
}

.difficulty-option.selected {
    border-color: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent);
}

.difficulty-name {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.difficulty-description {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.difficulty-stats {
    font-size: 0.875rem;
    color: var(--gray-600);
    border-top: 1px solid var(--gray-200);
    padding-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Theme Completion */
.theme-completed {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: var(--radius-lg);
    border: 2px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.theme-completed::before {
    content: '🎉';
    font-size: 4rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0.1;
}

.theme-completed h2 {
    color: #065f46;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.theme-completed a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    margin: 0.5rem;
    transition: var(--transition);
    font-weight: 600;
}

.theme-completed a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.theme-completed a.next-theme {
    background: linear-gradient(135deg, var(--secondary), #059669);
}

.theme-completed a.next-module {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.theme-completed a.repeat-theme {
    background: linear-gradient(135deg, var(--gray-600), var(--gray-700));
}

.theme-completed a.change-difficulty {
    background: linear-gradient(135deg, var(--warning), #d97706);
}

.theme-completed a.modules-tree {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Stats */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.stat-box {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--gray-200);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Modules Tree */
.overall-stats {
    background: linear-gradient(135deg, #eaeaef, #e5e4eb);
    color: white;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.overall-stats::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 1rem;
}

.modules-tree {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.module {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.module:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.module-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.module-description {
    color: var(--gray-600);
    font-style: italic;
    margin: 0.5rem 0 0 0;
}

.module-progress {
    background: var(--gray-100);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.theme-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.theme-card:hover::before {
    left: 100%;
}

.theme-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.theme-card.completed {
    border-color: var(--secondary);
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.theme-card.current {
    border-color: var(--warning);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.theme-card.available {
    border-color: var(--info);
    background: linear-gradient(135deg, #ecfeff, #cffafe);
}

.theme-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}

.theme-status {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.status-completed {
    background: linear-gradient(135deg, var(--secondary), #059669);
}

.status-in-progress {
    background: linear-gradient(135deg, var(--warning), #d97706);
}

.status-available {
    background: linear-gradient(135deg, var(--info), #0891b2);
}

.status-locked {
    background: linear-gradient(135deg, var(--gray-400), var(--gray-500));
}

.theme-words {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Quick Check Styles */
.selection-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.selection-section {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-icon {
    font-size: 1.5rem;
}

.checkbox-group {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.checkbox-item {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    transition: var(--transition);
    background: white;
    border: 1px solid var(--gray-200);
}

.checkbox-item:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.checkbox-item label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
}

.module-info, .theme-info, .step-description {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-left: 2rem;
    margin-top: 0.25rem;
}

.step-description {
    font-style: italic;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), #059669);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.subtitle {
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
}

.error {
    background: #fef2f2;
    color: #dc2626;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border: 1px solid #fecaca;
    font-weight: 500;
}

.errors-counter {
    margin: 1rem 0;
    padding: 1rem;
    background: #fffbeb;
    border-radius: var(--radius);
    text-align: center;
    font-size: 1rem;
    border: 1px solid #fed7aa;
    color: #92400e;
    font-weight: 600;
}

.hint {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
    font-style: italic;
}

.word-with-gap {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    letter-spacing: 0.25rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    background: var(--gray-100);
    padding: 1rem;
    border-radius: var(--radius);
    display: inline-block;
}

.translation-hint {
    font-size: 1rem;
    color: var(--secondary);
    margin-top: 1rem;
    font-style: italic;
    font-weight: 500;
}

.gap-example {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.75rem;
    background: var(--gray-100);
    padding: 0.75rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.letters-count {
    font-size: 0.875rem;
    color: var(--info);
    margin-top: 0.5rem;
    font-weight: 600;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-dark);
    transform: translateX(-4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 0.5rem;
        padding: 1.5rem;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .controls {
        justify-content: center;
    }
    
    .image-options {
        grid-template-columns: 1fr;
    }
    
    .text-options {
        grid-template-columns: 1fr;
    }
    
    .demo-image {
        width: 150px;
        height: 150px;
    }
    
    .demo-word {
        font-size: 1.5rem;
    }
    
    .demo-translation {
        font-size: 1.25rem;
    }
    
    .themes-grid {
        grid-template-columns: 1fr;
    }
    
    .module-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .selection-form {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .theme-completed a {
        display: block;
        margin: 0.5rem 0;
    }
	    
	.enhanced-demo-image {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
        margin: 0.25rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .question {
        font-size: 1.25rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .difficulty-option {
        padding: 1.25rem;
    }
}






/* Enhanced Header Styles */
.enhanced-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.enhanced-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.enhanced-header-content {
    position: relative;
    z-index: 2;
}

.enhanced-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.enhanced-title-main {
    background: linear-gradient(135deg, #fff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.enhanced-title-separator {
    color: rgba(255,255,255,0.5);
    font-weight: 300;
}

.enhanced-title-theme {
    color: #fbbf24;
    font-weight: 600;
}

.enhanced-subtitle {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.enhanced-difficulty {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enhanced-difficulty::before {
    content: '⭐';
    font-size: 0.8rem;
}

.enhanced-progress-info {
    background: rgba(255,255,255,0.15);
    padding: 0.4rem 1rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Enhanced Controls */
.enhanced-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.enhanced-control-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.enhanced-control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.enhanced-control-btn:hover::before {
    left: 100%;
}

.enhanced-control-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.enhanced-control-btn.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
}

.enhanced-control-btn.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
}

.enhanced-control-btn.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
}

.enhanced-control-btn.premium {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
}

/* Enhanced Progress Section */
.enhanced-progress-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.enhanced-progress-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.enhanced-progress-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enhanced-progress-title::before {
    content: '📊';
    font-size: 1rem;
}

.enhanced-progress-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.enhanced-progress-stat {
    background: var(--gray-50);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enhanced-progress-stat::before {
    font-size: 0.8rem;
}

.enhanced-progress-stat.modules::before { content: '📁'; }
.enhanced-progress-stat.themes::before { content: '🎯'; }
.enhanced-progress-stat.steps::before { content: '🔄'; }
.enhanced-progress-stat.words::before { content: '📝'; }

/* Enhanced Errors Counter */
.enhanced-errors-counter {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.enhanced-errors-icon {
    font-size: 1.5rem;
    background: #f59e0b;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.enhanced-errors-content {
    flex: 1;
}

.enhanced-errors-title {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.25rem;
}

.enhanced-errors-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #b45309;
}

/* Enhanced Step Progress */
.enhanced-step-progress {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--gray-200);
}

.enhanced-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.enhanced-step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enhanced-step-title::before {
    content: '🎮';
    font-size: 1rem;
}

.enhanced-step-info {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.enhanced-progress-container {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
}

.enhanced-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.enhanced-progress-label {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enhanced-progress-label::before {
    content: '⚡';
    font-size: 0.8rem;
}

.enhanced-progress-value {
    font-weight: 600;
    color: var(--primary);
}

/* Enhanced Demo Container */
.enhanced-demo-container {
    text-align: center;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin: 2rem 0;
    border: 2px dashed var(--gray-300);
    position: relative;
    overflow: hidden;
}

.enhanced-demo-container::before {
    content: '✨';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    opacity: 0.1;
}

.enhanced-demo-question {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.enhanced-demo-question::before {
    content: '👁️';
    font-size: 1.1rem;
}

.enhanced-demo-image {
    border-radius: var(--radius-lg);
    margin: 0 auto 1rem;
    display: block;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.enhanced-demo-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.enhanced-demo-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    max-width: 400px;
    margin: 0 auto;
	margin-top: 10px;
}

.enhanced-demo-word {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.enhanced-demo-translation {
    font-size: 2rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--secondary), #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Next Button */
.enhanced-next-btn {
    background: linear-gradient(135deg, var(--secondary), #059669);
    color: white;
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    margin: 1rem auto 0;
    display: block;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    min-width: 150px;
}

.enhanced-next-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.enhanced-next-btn:hover::before {
    left: 100%;
}

.enhanced-next-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.enhanced-next-btn:active {
    transform: translateY(-1px);
}

/* Responsive Design for Enhanced Styles */
@media (max-width: 768px) {
    .enhanced-header {
        padding: 1.5rem;
    }
    
    .enhanced-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .enhanced-title-separator {
        display: none;
    }
    
    .enhanced-subtitle {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .enhanced-controls {
        justify-content: center;
    }
    
    .enhanced-control-btn {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
    
    .enhanced-progress-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .enhanced-progress-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .enhanced-demo-container {
        padding: 1.5rem;
    }
    
    .enhanced-demo-word {
        font-size: 2rem;
    }
    
    .enhanced-demo-translation {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .enhanced-header {
        padding: 1rem;
    }
    
    .enhanced-title {
        font-size: 1.25rem;
    }
    
    .enhanced-demo-word {
        font-size: 1.75rem;
    }
    
    .enhanced-demo-translation {
        font-size: 1.5rem;
    }
}



/* Enhanced Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Улучшенная сетка для изображений на мобильных */
    .image-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin: 1.5rem 0;
    }
    
    .image-option {
        padding: 0.75rem;
    }
    
    .image-option img {
        width: 100px;
        height: 100px;
    }
    
    /* Улучшенная сетка для текстовых вариантов на мобильных */
    .text-options {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin: 1.5rem 0;
    }
    
    .text-option {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Компактный заголовок прогресса */
    .enhanced-progress-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        width: 100%;
    }
    
    .enhanced-progress-stat {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        text-align: center;
        min-width: auto;
    }
    
    /* Улучшенный вопрос */
    .question {
        font-size: 1.1rem;
        margin: 1.5rem 0;
        padding: 1rem;
        background: var(--gray-50);
        border-radius: var(--radius);
        line-height: 1.4;
    }
    
    /* Компактные контролы */
    .enhanced-controls {
        gap: 0.5rem;
    }
    
    .enhanced-control-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }
    
    /* Улучшенный демо-контейнер */
    .enhanced-demo-container {
        padding: 1.5rem;
        margin: 0px;
    }
    
    .enhanced-demo-content {
        padding: 0.4px;
    }
    
    .enhanced-demo-word {
        font-size: 2rem;
    }
    
    .enhanced-demo-translation {
        font-size: 1.75rem;
    }
    
    /* Компактная секция прогресса */
    .enhanced-progress-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .enhanced-errors-counter {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .enhanced-step-progress {
        padding: 1.25rem;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    /* Еще более компактные стили для маленьких экранов */
    .container {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .enhanced-header {
        padding: 1.5rem 1rem;
    }
    
    .enhanced-title {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .enhanced-title-separator {
        display: none;
    }
    
    .enhanced-subtitle {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .enhanced-controls {
        flex-direction: column;
    }
    
    .enhanced-control-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* Улучшенная сетка прогресса */
    .enhanced-progress-stats {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .enhanced-progress-stat {
        justify-content: flex-start;
    }
    
    /* Улучшенные опции */
    .image-options {
        gap: 0.5rem;
    }
    
    .image-option img {
        width: 120px;
        height: 120px;
    }
    
    .text-options {
        grid-template-columns: 1fr;
    }
    
    /* Улучшенный демо */
    .enhanced-demo-container {
        padding: 1rem;
    }
    
    .enhanced-demo-image {
        height: 320px;
    }
    
    .enhanced-demo-word {
        font-size: 1.75rem;
    }
    
    .enhanced-demo-translation {
        font-size: 1.5rem;
    }
    
    .enhanced-next-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
    }
    
    /* Улучшенный ввод текста */
    .input-single, .input-double {
        max-width: 100%;
        font-size: 1.1rem;
        padding: 0.75rem;
    }
}

/* Специальные стили для текстовых вариантов с неравномерным распределением */
.balanced-text-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.balanced-text-option {
    padding: 1rem 0.5rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    background: white;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
}

.balanced-text-option:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.balanced-text-option.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* Адаптивная сетка для разных количеств элементов */
@media (max-width: 768px) {
    .balanced-text-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Для 8 элементов - 4x2 */
    .balanced-text-options:has(.balanced-text-option:nth-child(8)) {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Для 6 элементов - 3x2 */
    .balanced-text-options:has(.balanced-text-option:nth-child(6):last-child) {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .balanced-text-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .balanced-text-options:has(.balanced-text-option:nth-child(8)) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .balanced-text-options:has(.balanced-text-option:nth-child(6):last-child) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .balanced-text-option {
        padding: 0.75rem 0.25rem;
        font-size: 0.85rem;
        min-height: 50px;
    }
}

@media (max-width: 420px) {
    .enhanced-demo-image {
        height: 240px;
    }
}

/* Улучшенные подсказки и текст */
.translation-hint {
    font-size: 0.9rem;
    color: var(--secondary);
    margin: 0.5rem 0;
    font-style: italic;
    text-align: center;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.gap-example {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin: 0.5rem 0;
    background: var(--gray-100);
    padding: 0.75rem;
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
    text-align: center;
}

.letters-count {
    font-size: 0.8rem;
    color: var(--info);
    font-weight: 600;
    text-align: center;
}

/* Улучшенный вопрос с переносами */
.question {
    font-size: 1.25rem;
    margin: 1.5rem 0;
    text-align: center;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    padding: 1rem;
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.question strong {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Улучшенный контейнер для ввода */
.input-container {
    text-align: center;
    background: var(--gray-50);
    padding: 0rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border: 1px solid var(--gray-200);
}

.input-container .hint {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 1px;
    font-weight: 500;
}

/* Улучшенная кнопка проверки */
.enhanced-submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    margin: 1.5rem auto 0;
    display: block;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.enhanced-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.enhanced-submit-btn:hover::before {
    left: 100%;
}

.enhanced-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.enhanced-submit-btn:disabled {
    background: var(--gray-400);
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.enhanced-submit-btn:disabled:hover::before {
    left: -100%;
}


/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.5rem;
    position: fixed;
    top: 0rem;
    right: 0rem;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.mobile-menu-content {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: white;
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
    box-shadow: var(--shadow-xl);
}

.mobile-menu-content.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
}

/* Скрытие элементов на мобильных */
@media (max-width: 768px) {
    .enhanced-header,
    .enhanced-progress-section {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Уменьшаем отступы для мобильных */
    .container {
        margin-top: 4rem;
        padding: 1rem;
    }
}

/* Стили для мобильного меню */
.mobile-enhanced-header,
.mobile-enhanced-progress {
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
}

.mobile-menu-section {
    margin-bottom: 1.5rem;
}

.mobile-menu-section-title {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-menu-section-title::before {
    font-size: 0.9rem;
}

.mobile-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-control-btn {
    padding: 0.75rem 1rem;
    background: var(--gray-100);
    color: var(--gray-800);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-control-btn:hover {
    background: var(--gray-200);
}

.mobile-control-btn.premium {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
}

.mobile-control-btn.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
}

.mobile-control-btn.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
}


@media (max-width: 768px) {
    .enhanced-header,
    .enhanced-progress-section {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .container {
        margin-top: 4rem;
        padding: 1rem;
    }
	
	.mobile-menu-toggle{
		margin-top: 0px;
        width: 100%;
	}
}

@media (max-width: 380px) {
    .image-option img{
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 320px) {
    .image-option img{
        width: 80px;
        height: 80px;
    }
}









/* Медиа-запрос для разрешения до 1024px */
@media (max-width: 1024px) {
    /* Скрываем основную шапку и секцию прогресса */
    .enhanced-header,
    .enhanced-progress-section {
        display: none !important;
    }
    
    /* Показываем кнопку мобильного меню */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Увеличиваем отступ сверху для контейнера */
    .container {
        margin-top: 3rem;
        padding: 1rem;
    }
    
    /* Адаптируем кнопку мобильного меню */
    .mobile-menu-toggle {
        margin-top: 0px;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        border-radius: 0;
        padding: 1rem;
        font-size: 1.5rem;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    }
}

/* Медиа-запрос для разрешения больше 1024px */
@media (min-width: 1025px) {
    /* Скрываем мобильное меню на десктопе */
    .mobile-menu-toggle,
    .mobile-menu-overlay,
    .mobile-menu-content {
        display: none !important;
    }
    
    /* Показываем основную шапку и прогресс */
    .enhanced-header,
    .enhanced-progress-section {
        display: block !important;
    }
    
    /* Убираем отступ сверху */
    .container {
        margin-top: 1rem;
    }
}

/* Дополнительные улучшения для мобильного меню */
.mobile-menu-content {
    width: 90%;
    max-width: 400px;
}

.mobile-enhanced-header,
.mobile-enhanced-progress {
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
}

.mobile-menu-section {
    margin-bottom: 1.5rem;
}

.mobile-menu-section-title {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-control-btn {
    padding: 0.75rem 1rem;
    background: var(--gray-100);
    color: var(--gray-800);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-control-btn:hover {
    background: var(--gray-200);
}

.mobile-control-btn.premium {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
}

.mobile-control-btn.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
}

.mobile-control-btn.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
}

/* Улучшения для очень маленьких экранов */
@media (max-width: 480px) {
    .mobile-menu-content {
        width: 95%;
    }
    
    .mobile-control-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Анимация для мобильного меню */
.mobile-menu-content {
    transition: transform 0.3s ease;
}

.mobile-menu-content.active {
    transform: translateX(0);
}

.mobile-menu-overlay {
    transition: opacity 0.3s ease;
}
































@media (min-width: 1280px) {
 {
        height: 320px;
        margin-bottom: 1rem;
    }
}



/* Компактное расположение с переделанным прогрессом */
@media (min-width: 1025px) {
    /* Основной контейнер с меньшими отступами */
    .container {
        padding: 0.5rem;
    }
    
    /* Супер-компактный хедер */
    .enhanced-header {
        padding: 0.6rem 1rem;
        margin-bottom: 0.4rem;
        border-radius: 10px;
        min-height: auto;
    }
    
    .enhanced-header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: nowrap;
    }
    
    .enhanced-title {
        font-size: 1.1rem;
        margin-bottom: 0;
        flex: 1;
        min-width: 200px;
    }
    
    .enhanced-subtitle {
        margin-bottom: 0;
        gap: 0.8rem;
        flex: 1;
        justify-content: flex-end;
    }
    
    .enhanced-difficulty,
    .enhanced-progress-info {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .enhanced-controls {
        gap: 0.3rem;
        flex: 2;
        justify-content: flex-end;
    }
    
    .enhanced-control-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    /* Переделанный прогресс-секция - горизонтальное расположение */
    .enhanced-progress-section {
        padding: 0.6rem;
        margin-bottom: 0.4rem;
        border-radius: 10px;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 1rem;
        align-items: start;
    }
    
    /* Левый блок - прогресс и статистика */
    .enhanced-progress-header {
        margin-bottom: 0;
        grid-column: 1;
    }
    
    .enhanced-progress-title {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .enhanced-progress-stats {
        gap: 0.3rem;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .enhanced-progress-stat {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
        text-align: center;
        margin: 0;
    }
    
    /* Правый блок - ошибки и прогресс шага */
    .progress-right-column {
        grid-column: 2;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        min-width: 200px;
    }
    
    /* Компактный счетчик ошибок */
    .enhanced-errors-counter {
        padding: 0.4rem 0.6rem;
        margin: 0;
        display: flex;
        width: 100%;
        min-width: auto;
        gap: 0.5rem;
        order: 1;
    }
    
    .enhanced-errors-icon {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    
    .enhanced-errors-content {
        flex: 1;
    }
    
    .enhanced-errors-title {
        font-size: 0.7rem;
        margin-bottom: 0.1rem;
    }
    
    .enhanced-errors-count {
        font-size: 1rem;
    }
    
    /* Компактный прогресс шага */
    .enhanced-step-progress {
        padding: 0.5rem;
        margin: 0;
        order: 2;
    }
    
    .enhanced-step-header {
        margin-bottom: 0.4rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .enhanced-step-title {
        font-size: 0.75rem;
    }
    
    .enhanced-step-info {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .enhanced-progress-container {
        padding: 0.6rem;
    }
    
    .enhanced-progress-text {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .enhanced-progress-label,
    .enhanced-progress-value {
        font-size: 0.65rem;
    }
    
    /* Уменьшаем прогресс-бар */
    .progress-bar {
        height: 5px;
        margin-bottom: 0;
    }
    
    /* Компактный демо-контейнер */
    .enhanced-demo-container {
        padding: 1rem;
        margin: 0.6rem 0;
    }
    
    .enhanced-demo-question {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .enhanced-demo-image {
        height: 240px;
        margin-bottom: 1rem;
    }
    
    .enhanced-demo-content {
        padding: 4px;
        max-width: 280px;
    }
    
    .enhanced-demo-word {
        font-size: 1.6rem;
        margin-bottom: 0.1rem;
    }
    
    .enhanced-demo-translation {
        font-size: 1.3rem;
    }
    
    .enhanced-next-btn {
        font-size: 0.9rem;
        margin-top: 1rem;
    }
}

/* Адаптация для очень широких экранов */
@media (min-width: 1600px) {
    .enhanced-progress-section {
        grid-template-columns: 2fr 1fr;
    }
    
    .enhanced-header-content {
        gap: 1.5rem;
    }
    
    .enhanced-controls {
        flex: 1;
    }
}

/* Адаптация для средних десктопов */
@media (min-width: 1025px) and (max-width: 1300px) {
    .enhanced-header-content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .enhanced-title {
        order: 1;
    }
    
    .enhanced-subtitle {
        order: 2;
        flex: none;
    }
    
    .enhanced-controls {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .enhanced-progress-section {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .progress-right-column {
        grid-column: 1;
        flex-direction: row;
        gap: 0.5rem;
    }
}




@media (min-width: 1025px){
.enhanced-progress-section {
    background: white;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    margin-bottom: 0.8rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
}

.enhanced-progress-header {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    flex: 1;
}

.enhanced-progress-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.enhanced-progress-title::before {
    content: '📊';
    font-size: 0.8rem;
}

.enhanced-progress-stats {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.enhanced-progress-stat {
    background: #f8fafc;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.enhanced-progress-stat.modules::before { content: '📁'; font-size: 0.7rem; }
.enhanced-progress-stat.themes::before { content: '🎯'; font-size: 0.7rem; }
.enhanced-progress-stat.steps::before { content: '🔄'; font-size: 0.7rem; }

/* Компактный счетчик ошибок */
.enhanced-errors-counter {
    background: #fff8e6;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    min-width: auto;
	width: 180px;
}

.enhanced-errors-icon {
    font-size: 0.8rem;
    background: #f59e0b;
    color: white;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.enhanced-errors-content {
    flex: 1;
}

.enhanced-errors-title {
    font-weight: 600;
    color: #92400e;
    font-size: 0.7rem;
    margin-bottom: 0.1rem;
}

.enhanced-errors-count {
    font-size: 1rem;
    font-weight: 700;
    color: #b45309;
    line-height: 1;
}

/* Компактный прогресс шага */
.enhanced-step-progress {
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: auto;
}

.enhanced-step-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

.enhanced-step-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.enhanced-step-title::before {
    content: '⚡';
    font-size: 0.7rem;
}

.enhanced-step-info {
    background: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #475569;
    border: 1px solid #d1d5db;
}

.enhanced-progress-container {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.enhanced-progress-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #475569;
    white-space: nowrap;
}

.enhanced-progress-label {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.enhanced-progress-label::before {
    content: '🎯';
    font-size: 0.65rem;
}

.enhanced-progress-value {
    font-weight: 700;
    color: #3b82f6;
    font-size: 0.75rem;
}

/* Компактный прогресс-бар */
.progress-bar {
    width: 80px;
    height: 5px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
    border-radius: 3px;
}

/* Ультра компактная версия */
.enhanced-progress-section.ultra-compact {
    padding: 0.5rem 0.8rem;
    gap: 0.8rem;
}

.enhanced-progress-section.ultra-compact .enhanced-progress-header {
    gap: 0.8rem;
}

.enhanced-progress-section.ultra-compact .enhanced-progress-title {
    font-size: 0.8rem;
    gap: 0.3rem;
}

.enhanced-progress-section.ultra-compact .enhanced-progress-stats {
    gap: 0.5rem;
}

.enhanced-progress-section.ultra-compact .enhanced-progress-stat {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
    gap: 0.2rem;
}

.enhanced-progress-section.ultra-compact .enhanced-errors-counter {
    padding: 0.4rem 0.6rem;
    gap: 0.4rem;
}

.enhanced-progress-section.ultra-compact .enhanced-errors-icon {
    width: 1.4rem;
    height: 1.4rem;
    font-size: 0.7rem;
}

.enhanced-progress-section.ultra-compact .enhanced-errors-title {
    font-size: 0.65rem;
}

.enhanced-progress-section.ultra-compact .enhanced-errors-count {
    font-size: 0.9rem;
}

.enhanced-progress-section.ultra-compact .enhanced-step-progress {
    padding: 0.5rem 0.6rem;
    gap: 0.6rem;
}

.enhanced-progress-section.ultra-compact .enhanced-step-header {
    gap: 0.5rem;
}

.enhanced-progress-section.ultra-compact .enhanced-step-title {
    font-size: 0.7rem;
}

.enhanced-progress-section.ultra-compact .enhanced-step-info {
    padding: 0.15rem 0.4rem;
    font-size: 0.65rem;
}

.enhanced-progress-section.ultra-compact .enhanced-progress-container {
    gap: 0.5rem;
}

.enhanced-progress-section.ultra-compact .enhanced-progress-text {
    font-size: 0.7rem;
    gap: 0.4rem;
}

.enhanced-progress-section.ultra-compact .progress-bar {
    width: 70px;
    height: 4px;
}
}
@media (max-width: 768px) {
    .enhanced-progress-section {
        display: none !important;
    }
}

@media (max-width: 320px) {
    .enhanced-demo-image {
        height: 200px;
    }
	}
	
	@media (max-width: 280px) {
    .enhanced-demo-image {
        height: 150px;
    }
	}
	
	@media (min-width: 1025px) {
     .enhanced-header-content{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: nowrap;
    }
}

@media (max-width: 768px) {
    .enhanced-demo-content{
        padding: 0.4px;
    }
	.enhanced-demo-word {
        margin-bottom: 1px;
}
.enhanced-demo-image {
    margin: 0 auto 0rem;
}
}

.enhanced-demo-container{
	background: #ffffff;
}
.enhanced-demo-image {
    box-shadow: none;
}

.enhanced-demo-image:hover {
    box-shadow: none;
}





























/* Стили для ввода букв в слове - компактная версия */
.word-with-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    margin: 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    background: var(--gray-50);
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.word-part {
    color: var(--dark);
    padding: 0 2px;
}

.letter-input {
    width: 40px !important;
    height: 32px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--primary);
    border-radius: 4px;
    background: white;
    text-transform: lowercase;
    font-family: 'JetBrains Mono', monospace;
    padding: 0;
    margin: 0 1px;
}

.letter-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--secondary) 20%, transparent);
    background: #fff9f9;
}

.single-letter {
    width: 40px !important;
}

.multi-letter {
    width: 26px;
}

.multiple-gaps {
    flex-wrap: wrap;
    gap: 0;
    padding: 0.5rem;
}

.example-input {
    width: 22px;
    height: 24px;
    text-align: center;
    border: 1px solid var(--gray-400);
    border-radius: 3px;
    background: var(--gray-100);
    font-size: 0.8rem;
    margin: 0 1px;
    pointer-events: none;
    font-family: 'JetBrains Mono', monospace;
}

.input-placeholder {
    color: var(--primary);
    font-weight: 700;
    margin: 0 2px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .word-with-input {
        font-size: 1.1rem;
        padding: 0.5rem;
        gap: 0;
    }
    
    .letter-input {
        width: 24px;
        height: 28px;
        font-size: 0.85rem;
    }
    
    .single-letter {
        width: 24px;
    }
    
    .multi-letter {
        width: 22px;
    }
    
    .example-input {
        width: 20px;
        height: 22px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .word-with-input {
        font-size: 1rem;
        padding: 0.4rem;
    }
    
    .letter-input {
        width: 22px;
        height: 26px;
        font-size: 0.8rem;
    }
    
    .single-letter {
        width: 22px;
    }
    
    .multi-letter {
        width: 20px;
    }
    
    .example-input {
        width: 18px;
        height: 20px;
    }
}

/* Стили для контейнера ввода */
.input-container {
    text-align: center;
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.input-container .hint {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
    font-weight: 500;
}

.translation-hint {
    font-size: 0.85rem;
    color: var(--secondary);
    margin: 0.5rem 0;
    font-style: italic;
    background: var(--gray-50);
    padding: 0.3rem 0.75rem;
    border-radius: 1rem;
    display: inline-block;
}

.gap-example {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin: 0.75rem 0;
    background: var(--gray-100);
    padding: 0.6rem;
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.letters-count {
    font-size: 0.8rem;
    color: var(--info);
    font-weight: 600;
    margin-top: 0.5rem;
}

















/* Стили для ввода букв в слове - исправленная версия */
.word-with-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    min-height: 60px;
}

.word-part {
    color: var(--dark);
    padding: 0 3px;
    line-height: 1;
}

.letter-input {
    width: 40px;
    height: 45px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    border: 2px solid var(--primary);
    border-radius: 6px;
    background: white;
    text-transform: lowercase;
    font-family: 'Courier New', monospace;
    padding: 0;
    margin: 0 2px;
    cursor: text;
    z-index: 10;
    position: relative;
}

.letter-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary) 20%, transparent);
    background: #fff9f9;
    transform: scale(1.05);
}

.letter-input:hover {
    border-color: var(--primary-dark);
}

.single-letter {
    width: 40px;
}

.multi-letter {
    width: 38px;
}

.multiple-gaps {
    flex-wrap: wrap;
    gap: 1px;
    padding: 0.75rem;
}

.example-input {
    width: 30px;
    height: 35px;
    text-align: center;
    border: 1px solid var(--gray-400);
    border-radius: 4px;
    background: var(--gray-100);
    font-size: 1rem;
    margin: 0 2px;
    pointer-events: none;
    font-family: 'Courier New', monospace;
    color: var(--gray-600);
}

.input-placeholder {
    color: var(--primary);
    font-weight: 700;
    margin: 0 3px;
}

/* Стили для контейнера ввода */
.input-container {
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}

.input-container .hint {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
    font-weight: 500;
}

.translation-hint {
    font-size: 0.9rem;
    color: var(--secondary);
    margin: 0.75rem 0;
    font-style: italic;
    background: var(--gray-50);
    padding: 0.4rem 1rem;
    border-radius: 1rem;
    display: inline-block;
    font-weight: 500;
}

.gap-example {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin: 1rem 0;
    background: var(--gray-100);
    padding: 0.75rem;
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
    line-height: 1.4;
}

.letters-count {
    font-size: 0.85rem;
    color: var(--info);
    font-weight: 600;
    margin-top: 0.75rem;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .word-with-input {
        font-size: 1.3rem;
        padding: 0.75rem;
        gap: 1px;
        min-height: 55px;
    }
    
    .letter-input {
        width: 35px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .single-letter {
        width: 35px;
    }
    
    .multi-letter {
        width: 33px;
    }
    
    .example-input {
        width: 25px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .input-container {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .word-with-input {
        font-size: 1.2rem;
        padding: 0.6rem;
        min-height: 50px;
    }
    
    .letter-input {
        width: 40px !important;
        height: 38px;
        font-size: 1rem;
    }
    
    .single-letter {
        width: 40px !important;
    }
    
    .multi-letter {
        width: 30px;
    }
    
    .example-input {
        width: 22px;
        height: 28px;
        font-size: 0.85rem;
    }
    
    .input-container {
        padding: 1rem;
    }
}

/* Убедимся, что поля ввода кликабельны */
.letter-input {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    pointer-events: auto;
}

/* Улучшение доступности для фокуса */
.letter-input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.letter-input {
    padding: 0px !important;
}















/* Breadcrumb навигация */
.breadcrumb{
	margin-left: 10px;
	font-size: 14px;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin: 0 0.5rem;
    color: var(--gray-500);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--gray-700);
    font-weight: 500;
}

/* Семантический футер */
.site-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0.5rem 0;
}

/* ARIA улучшения */
[role="alert"] {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Улучшение доступности для фокуса */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Скрытие элементов для скринридеров */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Улучшенные мета-теги для изображений */
img {
    max-width: 100%;
    height: auto;
}

/* Structured data improvements */
[itemscope] {
    border: none;
}

/* Print styles */
@media print {
    .mobile-menu-toggle,
    .enhanced-controls,
    .site-footer {
        display: none;
    }
    
    .container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}




.theme-completed .next-theme{
	width: 300px;
    font-size: 16px;
    padding: 10px 15px;
}

.theme-completed .modules-tree{
	width: 300px;
    font-size: 16px;
    padding: 10px 15px;
}

.theme-completed .repeat-theme{
	width: 300px;
    font-size: 16px;
    padding: 10px 15px;
}

.theme-completed .change-difficulty{
	width: 300px;
    font-size: 16px;
    padding: 10px 15px;
}

.theme-completed .reset-btn{
	width: 300px;
    font-size: 16px;
    padding: 10px 15px;
}

@media (max-width: 420px) {
.theme-completed .next-theme{
	width: 250px;
    font-size: 14px;
    padding: 7px 10px;
}

.theme-completed .modules-tree{
	width: 250px;
    font-size: 14px;
    padding: 7px 10px;
}

.theme-completed .repeat-theme{
	width: 250px;
    font-size: 14px;
    padding: 7px 10px;
}

.theme-completed .change-difficulty{
	width: 250px;
    font-size: 14px;
    padding: 7px 10px;
}

.theme-completed .reset-btn{
	width: 250px;
    font-size: 14px;
    padding: 7px 10px;
}
}




@media (max-width: 380px) {
.theme-completed .next-theme{
	width: 200px;
    font-size: 14px;
    padding: 7px 10px;
}

.theme-completed .modules-tree{
	width: 200px;
    font-size: 14px;
    padding: 7px 10px;
}

.theme-completed .repeat-theme{
	width: 200px;
    font-size: 14px;
    padding: 7px 10px;
}

.theme-completed .change-difficulty{
	width: 200px;
    font-size: 14px;
    padding: 7px 10px;
}

.theme-completed .reset-btn{
	width: 200px;
    font-size: 14px;
    padding: 7px 10px;
}
}

@media (max-width: 320px) {
.theme-completed .next-theme{
	width: 150px;
    font-size: 14px;
    padding: 7px 10px;
}

.theme-completed .modules-tree{
	width: 150px;
    font-size: 14px;
    padding: 7px 10px;
}

.theme-completed .repeat-theme{
	width: 150px;
    font-size: 14px;
    padding: 7px 10px;
}

.theme-completed .change-difficulty{
	width: 150px;
    font-size: 14px;
    padding: 7px 10px;
}

.theme-completed .reset-btn{
	width: 150px;
    font-size: 14px;
    padding: 7px 10px;
}
}

@media (max-width: 920px) {
.stats-container{
	display:none;
}
}




























  
  

/* Стили для форм авторизации */
.auth-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--gray-600);
    font-size: 0.8rem;
}

.auth-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.success {
    background: #d1fae5;
    color: #065f46;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border: 1px solid #a7f3d0;
    font-weight: 500;
}

.auth-section {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: auto;
}

.auth-btn {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    color: black;
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.2);
}

.auth-btn:hover {
    background: rgba(255,255,255,0.2);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 2px dashed var(--gray-300);
}

/* Адаптивность */
@media (max-width: 768px) {
    .auth-section {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .progress-table {
        display: block;
        overflow-x: auto;
    }
}

.auth-btn {
    background: linear-gradient(135deg, #535252, #cac6c6);
    color: white;
    border: none;
}

    .enhanced-control-btn {
        justify-content: left;
    }

@media (max-width: 768px) {
.stat-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0rem;
}
.stat-item {
    padding: 0.5rem;
}
.stats-grid {
    gap: 0.5rem;
}
}