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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-secondary); /* Используем переменную */
    color: var(--text-primary); /* Используем переменную */
    line-height: 1.6;
}

/* Навигация */
.navbar {
    background: var(--bg-nav);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
}

.brand {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-right {
    display: flex;
    gap: 1rem;
}

.dev-banner + .navbar {
    top: 0;
}

.dev-banner + .navbar .mobile-menu {
    top: 50px;
}

/* ========== КНОПКИ ========== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: var(--accent-gradient);
    color: white !important;
    opacity: 0.85;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white !important;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.6);
}

/* Главная страница */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.cta-buttons {
    margin: 2rem 0;
}

.bonus-info {
    background: #f0f4ff;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.bonus-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bonus-icon {
    font-size: 1.5rem;
}

/* Преимущества */
.advantages {
    padding: 4rem 2rem;
    background: var(--bg-secondary);
}

.advantages h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* План обучения */
.plan-section {
    padding: 4rem 2rem;
}

.plan-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.plan-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: transform 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-3px);
}

.plan-card h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

/* Результаты */
.results-section {
    padding: 4rem 2rem;
    background: var(--bg-secondary);
}

.results-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.results-list {
    max-width: 600px;
    margin: 0 auto;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Формы */
.auth-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.price-summary {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f0f4ff;
    border-radius: 8px;
}

.price-summary .price {
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c;
}

.payment-info {
    margin-top: 2rem;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 8px;
}

/* Дашборд */
.dashboard {
    display: flex;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 320px;
    background: var(--bg-sidebar);
    padding: 2rem;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

.sidebar h3 {
    margin-bottom: 1.5rem;
    color: #667eea;
}

.day-block {
    margin-bottom: 0.5rem;
}

.day-header {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--hover-bg);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.day-header:hover {
    background: #e0e8ff;
}

.day-block.active .day-header {
    background: var(--hover-bg);
    color: white;
}

.day-content {
    padding: 0.5rem 0 0.5rem 1rem;
}

.lesson-link {
    display: block;
    padding: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85em;
    line-height: 1.3;
    word-wrap: break-word;
    overflow: visible;
    white-space: normal;
}

.lesson-link:hover {
    background: var(--hover-bg);
}

.lesson-link.current {
    background: var(--accent-gradient);
    color: white;
}

.main-content {
    flex: 1;
    padding: 2rem;
    background: var(--bg-primary);
}

.progress-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.progress-bar {
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Страница урока */
.lesson-page {
    margin: 2rem auto;
    padding: 2rem;
    background: var(--bg-lesson);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.lesson-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    position: relative;
}

.code-block pre {
    overflow-x: auto;
}

.code-block button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.test-section {
    margin-top: 2rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.question {
    margin: 1rem 0;
}

.question label {
    display: block;
    margin: 0.5rem 0;
}

.lesson-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .dashboard {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

/* Алерты */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Дополнительные стили для главной страницы */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.discount-badge {
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    display: inline-block;
    margin-left: 15px;
}

.trust-signals {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.trust-signals span {
    background: #f0f4ff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #667eea;
}

.countdown-section {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item span:first-child {
    font-size: 3em;
    font-weight: bold;
}

.countdown-item span:last-child {
    font-size: 0.9em;
    opacity: 0.8;
}

.countdown-text {
    font-size: 1.2em;
    margin-top: 10px;
}

.plan-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.plan-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #667eea;
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
}

.timeline-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex: 1;
}

.timeline-content h3 {
    color: #667eea;
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: #333;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
    font-size: 0.95em;
}

.what-you-learn {
    padding: 60px 20px;
    background: white;
}

.what-you-learn h2 {
    text-align: center;
    margin-bottom: 30px;
}

.learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.learn-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1.05em;
}

.testimonials {
    padding: 60px 20px;
    background: #f8f9fa;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 30px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.testimonial-stars {
    color: #f1c40f;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.testimonial-card p {
    color: #555;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author span {
    color: #999;
    font-size: 0.9em;
}

.domain-badge {
    font-size: 0.8em;
    color: #999;
    margin-left: 5px;
}

/* ========== КАСТОМНЫЕ РАДИОКНОПКИ ========== */
.test-question {
    background: var(--bg-card);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow-color);
    border: 2px solid transparent;
}

.question-text {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.05em;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.option-label:hover {
    background: var(--hover-bg);
    border-color: #667eea;
}

.option-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.option-label input[type="radio"]:checked + .radio-custom {
    background: #667eea;
    border-color: #667eea;
}

.option-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.option-label input[type="radio"]:checked ~ span:last-child {
    color: #667eea;
    font-weight: 600;
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px var(--shadow-color);
    animation: slideUp 0.3s ease;
}

.modal-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.modal-content h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.3em;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ========== ТАБЫ УРОКОВ ========== */
.lesson-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.tab-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95em;
    text-align: left;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    outline: none;
}

.tab-btn:hover {
    background: var(--hover-bg);
    border-color: #667eea;
    color: #667eea;
}

.tab-btn.active {
    background: var(--accent-gradient) !important;
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tab-btn.viewed {
    border-left: 4px solid #27ae60 !important;
    position: relative;
}

.tab-btn.viewed.active {
    border-left: 4px solid #27ae60 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
}

.tab-btn.viewed::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2em;
}

.tab-btn.viewed.active::after {
    color: #ffffff;
    filter: brightness(1.5);
}

/* Стили для просмотренных уроков в боковой панели */
.sidebar-lesson-item.viewed {
    border-left: 3px solid #27ae60;
    background: #f0faf4;
}

.sidebar-lesson-item.viewed .lesson-title {
    color: #27ae60;
}

.sidebar-lesson-item.viewed::after {
    content: '✓';
    color: #27ae60;
    font-weight: bold;
    margin-left: auto;
}

.sidebar-lesson-item.active.viewed {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-left: 3px solid #ffffff;
}

.sidebar-lesson-item.active.viewed .lesson-title {
    color: #ffffff;
}

.sidebar-lesson-item.active.viewed::after {
    color: #ffffff;
}

.sidebar-expand-btn {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 12px 8px;
    cursor: pointer;
    z-index: 99;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    box-shadow: 2px 0 10px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.sidebar-expand-btn:hover {
    padding-left: 12px;
    box-shadow: 4px 0 15px rgba(102, 126, 234, 0.5);
}

.expand-icon {
    font-size: 1.2em;
}

.expand-text {
    writing-mode: vertical-rl;
    font-size: 0.75em;
    letter-spacing: 2px;
    font-weight: 600;
}

.lesson-sidebar.collapsed ~ .sidebar-expand-btn {
    display: flex;
}

@media (max-width: 768px) {
    .sidebar-expand-btn {
        top: auto;
        bottom: 20px;
        transform: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
    
    .expand-text {
        display: none;
    }
    
    .expand-icon {
        font-size: 1.5em;
    }
}

.tab-btn.active .lesson-check {
    color: #ffffff !important;
    filter: brightness(1.5);
}

/* ========== СТРАНИЦЫ ДОКУМЕНТОВ ========== */
.document-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.document-page h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
}

.document-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.document-content h2 {
    color: #667eea;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.document-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1em;
}

/* ========== СТИЛИ ДЛЯ СПИСКОВ ========== */
.lesson-body ol {
    padding-left: 30px;
    margin: 15px 0;
}

.lesson-body ol li {
    margin-bottom: 10px;
    padding-left: 10px;
    line-height: 1.6;
    color: #444;
}

.lesson-body ol li::marker {
    color: #667eea;
    font-weight: bold;
}

.lesson-body ul {
    padding-left: 25px;
    margin: 15px 0;
}

.lesson-body ul li {
    margin-bottom: 8px;
    padding-left: 10px;
    line-height: 1.6;
    color: #444;
}

.lesson-body ul li::marker {
    color: #667eea;
}

/* ========== БАННЕР ПОЗДРАВЛЕНИЯ ========== */
.congratulations-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.congratulations-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.congratulations-banner h2 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.congratulations-banner p {
    opacity: 0.9;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.congratulations-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.congratulations-actions .btn {
    min-width: 200px;
}

.sidebar-toggle {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.sidebar-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.toggle-icon {
    color: white;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.lesson-sidebar.collapsed .toggle-icon {
    transform: rotate(180deg);
}

/* ========== MODERN FOOTER ========== */
.modern-footer {
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
    color: white;
    overflow: hidden;
    width: 100%;
    margin-top: 60px;
}

.footer-wave {
    position: relative;
    top: -2px;
    color: rgba(255, 255, 255, 0.05);
    line-height: 0;
}

.footer-wave svg {
    width: 100%;
    height: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 0;
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo {
    transition: transform 0.3s ease;
}

.footer-brand:hover .footer-logo {
    transform: rotate(360deg);
}

.footer-brand-name {
    font-size: 1.5em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.footer-heading {
    color: white;
    font-size: 1.1em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
}

.footer-links a:hover {
    color: #667eea;
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-icon {
    font-size: 1.2em;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #667eea;
}

.footer-working-hours {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-working-hours p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    margin-bottom: 5px;
}

.footer-working-hours p:last-child {
    margin-bottom: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: auto;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
}

.footer-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-badge {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-badges {
        justify-content: center;
    }
    
    .footer-wave svg {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 40px 15px 0;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ========== ГАМБУРГЕР-МЕНЮ ========== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 3px 0;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== МОБИЛЬНОЕ МЕНЮ ========== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: var(--bg-card);
    z-index: 1000;
    box-shadow: -5px 0 20px var(--shadow-color);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: var(--accent-gradient);
    color: white;
}

.mobile-menu-title {
    font-size: 1.2em;
    font-weight: 600;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-menu-content {
    padding: 15px;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin-bottom: 15px;
}

.mobile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.mobile-username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05em;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    font-size: 0.95em;
    font-weight: 500;
}

.mobile-menu-item:hover {
    background: var(--hover-bg);
    color: #667eea;
}

.mobile-menu-icon {
    font-size: 1.3em;
    width: 30px;
    text-align: center;
}

.mobile-logout {
    color: #e74c3c !important;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.mobile-logout:hover {
    background: #fff5f5 !important;
}

.mobile-register {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    margin-top: 15px;
    text-align: center;
    justify-content: center;
    padding: 16px;
    font-weight: 600;
}

.mobile-register:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-right {
        display: none !important;
    }
    
    .navbar {
        padding: 0.8rem 1rem;
    }
    
    .nav-left {
        gap: 0.5rem;
    }
    
    .brand {
        font-size: 1.2rem;
    }
    
    .domain-badge {
        display: none;
    }
    
    .logo {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 280px;
        right: -280px;
    }
    
    .mobile-menu-item {
        padding: 12px;
        font-size: 0.9em;
    }
    
    .mobile-menu-header {
        padding: 15px;
    }
}

/* ========== КАРТА ПУТЕШЕСТВИЯ ========== */
.journey-map {
    background: linear-gradient(135deg, #0f0c29, #302b63);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.journey-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.journey-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.journey-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
    font-size: 1.1em;
    position: relative;
    z-index: 1;
}

.journey-timeline {
    position: relative;
    padding-left: 50px;
    max-width: 600px;
    margin: 0 auto;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        rgba(102, 126, 234, 0.8), 
        rgba(118, 75, 162, 0.8));
    border-radius: 3px;
}

.journey-node {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
    transition: transform 0.3s ease;
}

.journey-node:hover {
    transform: translateX(5px);
}

.node-marker {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    border: 3px solid;
    transition: all 0.3s ease;
}

.journey-node.completed .node-marker {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-color: #27ae60;
    box-shadow: 0 0 20px rgba(39, 174, 96, 0.5);
}

.journey-node.active .node-marker {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
    animation: nodePulse 2s infinite;
}

.journey-node.locked .node-marker {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    opacity: 0.7;
}

@keyframes nodePulse {
    0% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 0 40px rgba(102, 126, 234, 0.8); }
    100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.4); }
}

.node-content {
    flex: 1;
    padding: 15px 20px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.journey-node.active .node-content {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.journey-node.completed .node-content {
    background: rgba(39, 174, 96, 0.1);
    border-color: rgba(39, 174, 96, 0.3);
}

.node-day {
    font-size: 0.85em;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.node-title {
    font-size: 1.15em;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.node-status {
    margin-bottom: 5px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-done {
    background: rgba(39, 174, 96, 0.3);
    color: #2ecc71;
}

.status-fighting {
    background: rgba(102, 126, 234, 0.3);
    color: #667eea;
    animation: statusPulse 1.5s infinite;
}

.status-locked {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

@keyframes statusPulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.node-quest {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 0.9em;
    display: flex;
    gap: 8px;
    align-items: center;
}

.node-quest span:first-child {
    color: #f39c12;
    font-weight: 600;
    white-space: nowrap;
}

.node-quest span:last-child {
    color: rgba(255,255,255,0.8);
}

.pulse {
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .journey-map {
        padding: 20px;
    }
    
    .journey-timeline {
        padding-left: 40px;
    }
    
    .node-marker {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
    
    .node-content {
        padding: 12px 15px;
    }
    
    .node-title {
        font-size: 1em;
    }
}

/* ========== ЭПИЧЕСКИЕ ТРОФЕИ ========== */
.achievements-section {
    margin-bottom: 30px;
}

.achievements-title {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.achievements-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 1.05em;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.achievement-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.achievement-card.unlocked {
    background: linear-gradient(135deg, #f0faf4, #e8f5e9);
    border-color: #27ae60;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.15);
}

.achievement-card.unlocked:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.achievement-card.legendary {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border-color: #f39c12;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2);
    animation: legendaryGlow 3s infinite;
}

.achievement-card.legendary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(243, 156, 18, 0.4);
}

@keyframes legendaryGlow {
    0% { box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2); }
    50% { box-shadow: 0 4px 25px rgba(243, 156, 18, 0.4); }
    100% { box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2); }
}

.achievement-card.locked {
    background: #f8f9fa;
    border-color: #e0e0e0;
    opacity: 0.7;
}

.achievement-card.locked:hover {
    transform: translateY(-3px);
    border-color: #667eea;
    opacity: 0.9;
}

.achievement-card.hidden-achievement {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    border-color: #9c27b0;
    border-style: dashed;
}

.achievement-card.hidden-achievement:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(156, 39, 176, 0.2);
}

.achievement-icon {
    font-size: 2.5em;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.2) rotate(-10deg);
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1em;
    margin-bottom: 3px;
}

.achievement-desc {
    color: #666;
    font-size: 0.9em;
    line-height: 1.3;
}

.achievement-status {
    font-size: 1.5em;
    flex-shrink: 0;
}

.achievement-modal {
    max-width: 500px !important;
}

.achievement-modal-icon {
    font-size: 5em;
    margin-bottom: 15px;
    animation: modalIconBounce 1s ease;
}

@keyframes modalIconBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.achievement-modal h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.6em;
}

.achievement-modal-story {
    font-size: 1.15em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.achievement-modal-detail {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-card {
        padding: 15px;
    }
    
    .achievement-icon {
        font-size: 2em;
    }
}

/* ========== ОГНЕННЫЙ ПРОГРЕСС-БАР ========== */
.fire-progress {
    background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
    border: 2px solid rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.fire-progress::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    animation: fireGlow 4s ease-in-out infinite;
}

@keyframes fireGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.progress-header {
    position: relative;
    z-index: 1;
}

.progress-header h3 {
    color: white !important;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.progress-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    color: rgba(255,255,255,0.8);
}

.stat-icon {
    font-size: 1.1em;
}

.fire-bar-container {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.fire-bar {
    flex: 1;
    height: 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.fire-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #f7c948, #ff6b35);
    background-size: 200% 100%;
    border-radius: 12px;
    position: relative;
    transition: width 1s ease;
    animation: fireGradient 2s ease infinite;
    min-width: 20px;
}

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

.fire-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: inherit;
    filter: blur(10px);
    opacity: 0.5;
    border-radius: 17px;
}

.fire-sparks {
    position: absolute;
    top: -15px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.spark {
    width: 4px;
    height: 4px;
    background: #f7c948;
    border-radius: 50%;
    animation: sparkFloat 1.5s ease infinite;
}

.spark:nth-child(2) {
    animation-delay: 0.3s;
    width: 3px;
    height: 3px;
}

.spark:nth-child(3) {
    animation-delay: 0.6s;
    width: 5px;
    height: 5px;
}

@keyframes sparkFloat {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-20px) scale(0); opacity: 0; }
}

.fire-percent {
    font-size: 1.8em;
    font-weight: 800;
    color: #f7c948;
    min-width: 60px;
    text-align: center;
    text-shadow: 0 0 20px rgba(247, 201, 72, 0.3);
}

.progress-message {
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    font-size: 0.95em;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
}

/* ========== PRICE SECTION — "КРИСТАЛЬНЫЙ" СТИЛЬ ========== */
.price-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a3e 40%, #2d1b69 70%, #0f0c29 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Декоративные сферы */
.price-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.price-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(102, 126, 234, 0.2);
    top: -100px;
    right: -100px;
    animation: orbFloat 8s ease-in-out infinite;
}

.price-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(118, 75, 162, 0.2);
    bottom: -50px;
    left: -80px;
    animation: orbFloat 10s ease-in-out infinite reverse;
}

.price-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(231, 76, 60, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbPulse 6s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

@keyframes orbPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

/* Основной контейнер */
.price-wrapper {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Карточка */
.price-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 24px;
    padding: 40px 35px 35px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: cardSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Акцентная полоса сверху */
.price-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #667eea, 
        #764ba2, 
        #f093fb, 
        #f5576c, 
        #667eea
    );
    background-size: 300% 100%;
    animation: accentFlow 4s linear infinite;
}

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

/* Бейдж */
.price-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 8px 25px;
    border-radius: 0px 0px 25px 25px;
    font-weight: 700;
    font-size: 0.9em;
    white-space: nowrap;
    margin-top: 10px;
}

.badge-pulse {
    width: 6px;
    height: 6px;
    background: #27ae60;
    border-radius: 50%;
    animation: badgeDot 2s ease-in-out infinite;
}

@keyframes badgeDot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4); }
    50% { opacity: 0.5; box-shadow: 0 0 0 6px rgba(39, 174, 96, 0); }
}

.badge-text {
    color: white;
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Заголовки */
.price-title {
    font-size: 1.8em;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 6px;
    line-height: 1.2;
    text-align: center;
}

.price-subtitle {
    font-size: 0.95em;
    color: #8395a7;
    text-align: center;
}

/* Цена */
.price-display {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.price-comparison {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.price-old-label {
    color: #576574;
    font-size: 0.9em;
}

.price-old {
    color: #576574;
    font-size: 1.2em;
    text-decoration: line-through;
    text-decoration-color: #e74c3c;
}

.price-current {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 12px;
}

.price-number {
    font-size: 3.2em;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.price-currency {
    font-size: 1.5em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-save {
    text-align: center;
}

.save-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.2), rgba(46, 204, 113, 0.2));
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #27ae60;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

/* Таймер */
.price-timer {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px;
}

.timer-label {
    text-align: center;
    margin-bottom: 12px;
}

.timer-label span {
    color: #8395a7;
    font-size: 0.9em;
}

.timer-digits {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.timer-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 12px;
    border-radius: 10px;
    min-width: 50px;
}

.timer-num {
    font-size: 1.6em;
    font-weight: 800;
    color: #667eea;
}

.timer-unit {
    font-size: 0.65em;
    color: #576574;
    margin-top: 2px;
    text-transform: uppercase;
}

.timer-dot {
    font-size: 1.6em;
    color: rgba(255, 255, 255, 0.15);
    font-weight: 800;
    animation: dotBlink 1s step-end infinite;
}

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

/* Преимущества */
.price-features {
    display: grid;
    gap: 10px;
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.feature-icon-wrap {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon {
    font-size: 1.1em;
}

.feature-info {
    display: flex;
    flex-direction: column;
}

.feature-name {
    color: #667eea;
    font-size: 0.95em;
    font-weight: 600;
}

.feature-desc {
    color: #576574;
    font-size: 0.8em;
}

/* Кнопка */
.price-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    border-radius: 16px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.button-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 200%;
    animation: buttonGradient 3s ease infinite;
    border-radius: 16px;
}

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

.button-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.button-text {
    font-size: 1.15em;
    font-weight: 700;
    color: white;
}

.button-subtext {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

.button-arrow {
    font-size: 1.5em;
    color: white;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.price-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.price-button:hover .button-arrow {
    transform: translateX(5px);
}

.price-button:active {
    transform: translateY(0);
}

/* Гарантия */
.price-guarantee {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(39, 174, 96, 0.06);
    border: 1px solid rgba(39, 174, 96, 0.2);
    border-radius: 12px;
    margin-bottom: 10px;
}

.guarantee-icon-wrap {
    width: 36px;
    height: 36px;
    background: rgba(39, 174, 96, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guarantee-icon {
    font-size: 1.1em;
}

.guarantee-info {
    display: flex;
    flex-direction: column;
}

.guarantee-title {
    color: #27ae60;
    font-size: 0.95em;
    font-weight: 600;
}

.guarantee-desc {
    color: #576574;
    font-size: 0.8em;
    margin-top: 2px;
}

/* Социальное доказательство */
.price-proof {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 10px;
}

.proof-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.proof-value {
    font-size: 1.2em;
    font-weight: 700;
    color: #667eea;
}

.proof-label {
    font-size: 0.75em;
    color: #576574;
    margin-top: 2px;
}

.proof-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.08);
}

/* Способы оплаты */
.price-payments {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.payments-label {
    color: #576574;
    font-size: 0.85em;
    font-weight: 600;
}

.payments-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pay-icon {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.8em;
    color: #8395a7;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pay-icon:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #c8d6e5;
}

/* Адаптивность */
@media (max-width: 768px) {
    .price-section {
        padding: 60px 20px;
    }
    
    .price-card {
        padding: 30px 20px 25px;
    }
    
    .price-title {
        font-size: 1.5em;
    }
    
    .price-number {
        font-size: 2.5em;
    }
    
    .timer-group {
        min-width: 40px;
        padding: 6px 10px;
    }
    
    .timer-num {
        font-size: 1.3em;
    }
    
    .price-proof {
        flex-direction: column;
        gap: 5px;
    }
    
    .proof-divider {
        width: 50px;
        height: 1px;
    }
}

@media (max-width: 480px) {
    .price-card {
        padding: 25px 15px 20px;
    }
    
    .timer-digits {
        gap: 5px;
    }
    
    .timer-group {
        min-width: 35px;
        padding: 5px 8px;
    }
    
    .timer-num {
        font-size: 1.1em;
    }
    
    .button-text {
        font-size: 1em;
    }
}

/* ========== СТИЛИ ДЛЯ ТАБЛИЦЫ СРАВНЕНИЯ БАЗ ДАННЫХ ========== */
.comparison-box {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 2px solid #667eea;
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
}

.comparison-box h4 {
    color: #2c3e50;
    font-size: 1.2em;
    margin-bottom: 20px;
    text-align: center;
}

.comparison-table {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.comparison-row {
    display: grid;
    grid-template-columns: 200px 1fr 1fr 1fr;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.3s ease;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row.header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 700;
}

.comparison-row:not(.header):hover {
    background: #f0f4ff;
}

.comparison-row:nth-child(even):not(.header) {
    background: #f8f9fa;
}

.comparison-row:nth-child(even):not(.header):hover {
    background: #e8f0fe;
}

.comp-cell {
    padding: 12px 15px;
    font-size: 0.9em;
    line-height: 1.4;
    border-right: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.comp-cell:last-child {
    border-right: none;
}

.comparison-row.header .comp-cell {
    font-size: 1em;
    font-weight: 700;
    justify-content: center;
    text-align: center;
}

.comparison-row:not(.header) .comp-cell:first-child {
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tip-box {
    background: linear-gradient(135deg, #f0f4ff, #ffffff);
    border-left: 4px solid #667eea;
    border-radius: 0 12px 12px 0;
    padding: 15px 20px;
    margin-top: 20px;
}

.tip-box h5 {
    color: #667eea;
    font-size: 1em;
    margin-bottom: 8px;
}

.tip-box p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95em;
    margin: 0;
}

/* ========== АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ ========== */
@media (max-width: 768px) {
    .comparison-row {
        grid-template-columns: 120px 1fr 1fr 1fr;
    }
    
    .comp-cell {
        padding: 10px 8px;
        font-size: 0.8em;
    }
    
    .comparison-box {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .comparison-table {
        font-size: 0.75em;
    }
    
    .comparison-row {
        grid-template-columns: 80px 1fr 1fr 1fr;
    }
    
    .comp-cell {
        padding: 8px 5px;
        font-size: 0.75em;
        word-break: break-word;
    }
    
    .comparison-row.header .comp-cell {
        font-size: 0.85em;
    }
}

/* ========== ЗАБАВНЫЕ ФАКТЫ О GIT ========== */
.fun-facts-box {
    background: linear-gradient(135deg, #f0f4ff, #ffffff);
    border: 2px solid #667eea;
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
}

.fun-facts-box h4 {
    color: #667eea;
    font-size: 1.15em;
    margin-bottom: 20px;
    text-align: center;
}

.fact-card {
    display: flex;
    gap: 15px;
    padding: 18px 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.fact-card:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    transform: translateY(-3px);
}

.fact-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
    flex-shrink: 0;
}

.fact-card h5 {
    color: #2c3e50;
    font-size: 1em;
    margin-bottom: 6px;
}

.fact-card p {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
}

.fact-card strong {
    color: #667eea;
}

/* ========== РЕАЛЬНАЯ ИСТОРИЯ ========== */
.real-story-box {
    background: linear-gradient(135deg, #fff5f5, #ffffff);
    border: 2px solid #e74c3c;
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
}

.real-story-box h4 {
    color: #e74c3c;
    font-size: 1.15em;
    margin-bottom: 15px;
}

.real-story-box p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 0.95em;
}

.real-story-box ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.real-story-box ul li {
    padding: 6px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    font-size: 0.9em;
}

.real-story-box ul li::before {
    content: '';
    position: absolute;
    left: 0;
    font-size: 1.1em;
}

/* ========== СЕКРЕТЫ ПРОМПТОВ ========== */
.pro-tips-box {
    background: linear-gradient(135deg, #f0faf4, #ffffff);
    border: 2px solid #27ae60;
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
}

.pro-tips-box h4 {
    color: #27ae60;
    font-size: 1.15em;
    margin-bottom: 20px;
}

.tip-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.tip-card:hover {
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.1);
    transform: translateX(5px);
}

.tip-card h5 {
    color: #27ae60;
    font-size: 1em;
    margin-bottom: 10px;
}

.tip-card .code-block {
    margin: 10px 0 0;
}

/* ========== МЕТАФОРА С КУХНЕЙ ========== */
.story-box {
    background: linear-gradient(135deg, #fff8f0, #ffffff);
    border: 2px solid #e67e22;
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
}

.story-box h4 {
    color: #e67e22;
    font-size: 1.15em;
    margin-bottom: 15px;
}

.story-box p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 0.95em;
}

.story-box strong {
    color: #e67e22;
}

.analogy-box {
    background: rgba(230, 126, 34, 0.08);
    border-left: 4px solid #e67e22;
    border-radius: 0 10px 10px 0;
    padding: 15px 20px;
    margin-top: 15px;
}

.analogy-box h5 {
    color: #e67e22;
    font-size: 1em;
    margin-bottom: 8px;
}

.analogy-box p {
    color: #666;
    margin: 0;
    font-size: 0.9em;
}

/* ========== ИСТОРИЧЕСКАЯ СПРАВКА ========== */
.history-box {
    background: linear-gradient(135deg, #f0f4ff, #ffffff);
    border: 2px solid #667eea;
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
}

.history-box::before {
    content: '📜';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 5em;
    opacity: 0.1;
    transform: rotate(15deg);
}

.history-box h4 {
    color: #667eea;
    font-size: 1.15em;
    margin-bottom: 15px;
}

.history-box p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 0.95em;
}

.history-box ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.history-box ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    font-size: 0.9em;
}

.history-box ul li::before {
    content: '🔹';
    position: absolute;
    left: 0;
}

.fun-fact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #fff3cd, #ffffff);
    border: 1px solid #ffc107;
    border-radius: 10px;
    margin-top: 15px;
}

.fun-fact-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.fun-fact span:last-child {
    color: #856404;
    font-size: 0.9em;
    font-weight: 500;
}

/* ========== ROADMAP — КАРТА РАЗВИТИЯ ========== */
.roadmap-box {
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a3e 100%);
    border-radius: 20px;
    padding: 35px;
    margin: 30px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.roadmap-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.roadmap-box h4 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

.roadmap-box > p {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95em;
    position: relative;
    z-index: 1;
}

/* Таймлайн */
.roadmap-timeline {
    position: relative;
    padding-left: 60px;
    margin: 30px 0;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        #27ae60 0%, 
        #667eea 33%, 
        #764ba2 66%, 
        #f39c12 100%
    );
    border-radius: 3px;
}

/* Элементы Roadmap */
.roadmap-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
    animation: roadmapFadeIn 0.6s ease forwards;
    opacity: 0;
}

.roadmap-item:nth-child(1) { animation-delay: 0.1s; }
.roadmap-item:nth-child(2) { animation-delay: 0.3s; }
.roadmap-item:nth-child(3) { animation-delay: 0.5s; }
.roadmap-item:nth-child(4) { animation-delay: 0.7s; }

@keyframes roadmapFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.roadmap-level {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    border: 3px solid;
}

.roadmap-item.beginner .roadmap-level {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-color: #27ae60;
    box-shadow: 0 0 20px rgba(39, 174, 96, 0.4);
}

.roadmap-item.intermediate .roadmap-level {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.roadmap-item.advanced .roadmap-level {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-color: #e74c3c;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
}

.roadmap-item.expert .roadmap-level {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-color: #f39c12;
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.4);
    animation: expertGlow 2s ease-in-out infinite;
}

@keyframes expertGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(243, 156, 18, 0.4); }
    50% { box-shadow: 0 0 40px rgba(243, 156, 18, 0.7); }
}

.roadmap-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.roadmap-content:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.roadmap-content h5 {
    color: white;
    font-size: 1.05em;
    margin-bottom: 8px;
}

.roadmap-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
}

.roadmap-content ul {
    list-style: none;
    padding: 0;
    margin: 5px 0 0;
}

.roadmap-content ul li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
}

.roadmap-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Ресурсы */
.resources-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 25px;
    margin-top: 25px;
    position: relative;
    z-index: 1;
}

.resources-box h5 {
    color: #f7c948;
    font-size: 1em;
    margin-bottom: 15px;
}

.resources-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resources-box ul li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    line-height: 2;
    padding: 3px 0;
    transition: all 0.3s ease;
}

.resources-box ul li:hover {
    color: white;
    transform: translateX(5px);
}

.resources-box ul li strong {
    color: #667eea;
}

/* Адаптивность */
@media (max-width: 768px) {
    .roadmap-box {
        padding: 20px;
    }
    
    .roadmap-timeline {
        padding-left: 45px;
    }
    
    .roadmap-timeline::before {
        left: 22px;
    }
    
    .roadmap-level {
        width: 45px;
        height: 45px;
        font-size: 1.2em;
    }
    
    .roadmap-content {
        padding: 12px 15px;
    }
    
    .roadmap-content h5 {
        font-size: 0.95em;
    }
    
    .roadmap-content p,
    .roadmap-content ul li {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .roadmap-box h4 {
        font-size: 1.1em;
    }
    
    .roadmap-timeline {
        padding-left: 35px;
    }
    
    .roadmap-timeline::before {
        left: 17px;
    }
    
    .roadmap-level {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    
    .roadmap-content {
        padding: 10px 12px;
    }
}

/* ========== БЛОК "ЧТО ТЫ НАУЧИЛСЯ ЗА 7 ДНЕЙ" ========== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 25px 0;
}

.skill-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.skill-icon {
    font-size: 2.8em;
    margin-bottom: 12px;
    display: block;
    transition: transform 0.4s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.2) rotate(-10deg);
}

.skill-card h5 {
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.skill-card:hover h5 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-card p {
    color: #666;
    font-size: 0.85em;
    line-height: 1.5;
    margin: 0;
}

/* Анимация появления */
.skill-card {
    animation: skillCardAppear 0.6s ease forwards;
    opacity: 0;
}

.skill-card:nth-child(1) { animation-delay: 0.05s; }
.skill-card:nth-child(2) { animation-delay: 0.1s; }
.skill-card:nth-child(3) { animation-delay: 0.15s; }
.skill-card:nth-child(4) { animation-delay: 0.2s; }
.skill-card:nth-child(5) { animation-delay: 0.25s; }
.skill-card:nth-child(6) { animation-delay: 0.3s; }
.skill-card:nth-child(7) { animation-delay: 0.35s; }
.skill-card:nth-child(8) { animation-delay: 0.4s; }

@keyframes skillCardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========== БЛОК "ЧТО ДАЛЬШЕ? ИДЕИ ДЛЯ РАЗВИТИЯ" ========== */
.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.idea-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    border: 2px solid #e8e8e8;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.idea-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    transition: all 0.4s ease;
    pointer-events: none;
}

.idea-card:hover::after {
    top: 0;
    right: 0;
}

.idea-card::before {
    content: '✨';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2em;
    opacity: 0.3;
    transition: all 0.4s ease;
}

.idea-card:hover::before {
    opacity: 1;
    transform: rotate(360deg) scale(1.2);
}

.idea-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.idea-card h5 {
    font-size: 1.1em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    padding-right: 40px;
    transition: color 0.3s ease;
}

.idea-card:hover h5 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.idea-card p {
    color: #666;
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Индивидуальные цвета для карточек идей */
.idea-card:nth-child(1) { border-left: 4px solid #0088cc; } /* Telegram синий */
.idea-card:nth-child(2) { border-left: 4px solid #667eea; } /* Голосовой фиолетовый */
.idea-card:nth-child(3) { border-left: 4px solid #27ae60; } /* Домен зеленый */
.idea-card:nth-child(4) { border-left: 4px solid #f39c12; } /* Аналитика оранжевый */
.idea-card:nth-child(5) { border-left: 4px solid #e74c3c; } /* Мультиязычность красный */
.idea-card:nth-child(6) { border-left: 4px solid #764ba2; } /* Нейросеть фиолетовый */

/* Анимация появления для идей */
.idea-card {
    animation: ideaCardAppear 0.6s ease forwards;
    opacity: 0;
}

.idea-card:nth-child(1) { animation-delay: 0.1s; }
.idea-card:nth-child(2) { animation-delay: 0.2s; }
.idea-card:nth-child(3) { animation-delay: 0.3s; }
.idea-card:nth-child(4) { animation-delay: 0.4s; }
.idea-card:nth-child(5) { animation-delay: 0.5s; }
.idea-card:nth-child(6) { animation-delay: 0.6s; }

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

/* ========== ЗАГОЛОВКИ ДЛЯ ЭТИХ БЛОКОВ ========== */
.section-title-skills {
    font-size: 1.8em;
    font-weight: 800;
    text-align: center;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 15px;
}

.section-title-skills::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
}

.section-title-ideas {
    font-size: 1.8em;
    font-weight: 800;
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.section-title-ideas::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .skill-card {
        padding: 18px 15px;
    }
    
    .skill-icon {
        font-size: 2.2em;
    }
    
    .skill-card h5 {
        font-size: 1em;
    }
    
    .skill-card p {
        font-size: 0.8em;
    }
    
    .ideas-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .idea-card {
        padding: 20px;
    }
    
    .idea-card h5 {
        font-size: 1em;
    }
    
    .section-title-skills,
    .section-title-ideas {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .skill-card {
        padding: 15px 12px;
    }
    
    .skill-icon {
        font-size: 1.8em;
        margin-bottom: 8px;
    }
    
    .skill-card h5 {
        font-size: 0.9em;
    }
    
    .skill-card p {
        font-size: 0.75em;
    }
}

/* ========== БЛОК "ЧТО ТЫ НАУЧИЛСЯ ЗА 7 ДНЕЙ" ========== */
.skills-showcase {
    padding: 40px 0;
}

.section-title-skills {
    font-size: 2em;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle-skills {
    text-align: center;
    color: #666;
    font-size: 1.05em;
    margin-bottom: 35px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    background: white;
    border-radius: 16px;
    padding: 3px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card-inner {
    background: white;
    border-radius: 14px;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-card:hover .skill-card-inner {
    background: transparent;
}

.skill-icon {
    font-size: 2.8em;
    margin-bottom: 12px;
    display: block;
    transition: transform 0.4s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.2) rotate(-10deg);
}

.skill-card h5 {
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.skill-card:hover h5 {
    color: white;
}

.skill-card p {
    color: #666;
    font-size: 0.85em;
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s ease;
}

.skill-card:hover p {
    color: rgba(255, 255, 255, 0.85);
}

/* Анимация появления */
.skill-card {
    animation: skillCardAppear 0.6s ease forwards;
    opacity: 0;
}

.skill-card:nth-child(1) { animation-delay: 0.05s; }
.skill-card:nth-child(2) { animation-delay: 0.1s; }
.skill-card:nth-child(3) { animation-delay: 0.15s; }
.skill-card:nth-child(4) { animation-delay: 0.2s; }
.skill-card:nth-child(5) { animation-delay: 0.25s; }
.skill-card:nth-child(6) { animation-delay: 0.3s; }
.skill-card:nth-child(7) { animation-delay: 0.35s; }
.skill-card:nth-child(8) { animation-delay: 0.4s; }

@keyframes skillCardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========== БЛОК "ЧТО ДАЛЬШЕ? ИДЕИ ДЛЯ РАЗВИТИЯ" ========== */
.ideas-showcase {
    padding: 40px 0;
}

.section-title-ideas {
    font-size: 2em;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
}

.section-subtitle-ideas {
    text-align: center;
    color: #666;
    font-size: 1.05em;
    margin-bottom: 35px;
}

.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.idea-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    border: 2px solid #e8e8e8;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.idea-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: all 0.3s ease;
}

.idea-card:nth-child(1)::before { background: #0088cc; } /* Telegram */
.idea-card:nth-child(2)::before { background: #667eea; } /* Голос */
.idea-card:nth-child(3)::before { background: #27ae60; } /* Домен */
.idea-card:nth-child(4)::before { background: #f39c12; } /* Аналитика */
.idea-card:nth-child(5)::before { background: #e74c3c; } /* Мультиязычность */
.idea-card:nth-child(6)::before { background: #764ba2; } /* Нейросеть */

.idea-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    transition: all 0.4s ease;
    pointer-events: none;
}

.idea-card:hover::after {
    top: 0;
    right: 0;
}

.idea-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.idea-card-content {
    position: relative;
    z-index: 1;
}

.idea-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 12px;
    transition: transform 0.4s ease;
}

.idea-card:hover .idea-icon {
    transform: scale(1.2) rotate(10deg);
}

.idea-card h5 {
    font-size: 1.1em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.idea-card:hover h5 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.idea-card p {
    color: #666;
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0;
}

.idea-card p code {
    background: #f0f4ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #667eea;
}

/* Анимация появления */
.idea-card {
    animation: ideaCardAppear 0.6s ease forwards;
    opacity: 0;
}

.idea-card:nth-child(1) { animation-delay: 0.1s; }
.idea-card:nth-child(2) { animation-delay: 0.2s; }
.idea-card:nth-child(3) { animation-delay: 0.3s; }
.idea-card:nth-child(4) { animation-delay: 0.4s; }
.idea-card:nth-child(5) { animation-delay: 0.5s; }
.idea-card:nth-child(6) { animation-delay: 0.6s; }

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

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .skill-card-inner {
        padding: 18px 15px;
    }
    
    .skill-icon {
        font-size: 2.2em;
    }
    
    .skill-card h5 {
        font-size: 1em;
    }
    
    .skill-card p {
        font-size: 0.8em;
    }
    
    .ideas-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .idea-card {
        padding: 20px;
    }
    
    .idea-card h5 {
        font-size: 1em;
    }
    
    .section-title-skills,
    .section-title-ideas {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .skill-card-inner {
        padding: 15px 12px;
    }
    
    .skill-icon {
        font-size: 1.8em;
        margin-bottom: 8px;
    }
    
    .skill-card h5 {
        font-size: 0.9em;
    }
    
    .skill-card p {
        font-size: 0.75em;
    }
}

/* ========== ГЛОБАЛЬНАЯ ТЕМНАЯ ТЕМА ========== */

/* CSS-переменные */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f0f2f5;
    --bg-card: #ffffff;
    --bg-nav: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-lesson: #ffffff;
    --bg-code: #1e1e2e;
    --text-primary: #2c3e50;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-bg: #f0f4ff;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

html.dark-theme {
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-nav: #1a1a3e;
    --bg-sidebar: #16213e;
    --bg-lesson: #1a1a2e;
    --bg-code: #0d0d1a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0b0;
    --text-muted: #666666;
    --border-color: #2a2a4a;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --hover-bg: #1a1a3e;
    --accent-gradient: linear-gradient(135deg, #0f3460 0%, #533483 100%);
}

/* Применяем переменные */
html.dark-theme {
    background: var(--bg-primary) !important;
    color: var(--text-primary);
}

/* Навигация */
html.dark-theme .navbar {
    background: var(--bg-nav) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px var(--shadow-color);
}

html.dark-theme .brand {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html.dark-theme .domain-badge {
    color: var(--text-muted);
}

/* Кнопки в навигации */
html.dark-theme .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Боковая панель */
html.dark-theme .sidebar,
html.dark-theme .lesson-sidebar {
    background: var(--bg-sidebar) !important;
    border-right: 1px solid var(--border-color);
}

html.dark-theme .sidebar h3,
html.dark-theme .sidebar-header h3 {
    color: var(--text-primary);
}

html.dark-theme .sidebar-header {
    background: var(--bg-card) !important;
    border-bottom: 2px solid #667eea;
}

html.dark-theme .sidebar-lesson-item {
    background: var(--bg-secondary);
    border-color: transparent;
}

html.dark-theme .sidebar-lesson-item:hover {
    background: var(--hover-bg);
    border-color: #667eea;
}

html.dark-theme .sidebar-lesson-item.active {
    background: var(--accent-gradient);
    color: white;
}

html.dark-theme .sidebar-lesson-item .lesson-title {
    color: var(--text-secondary);
}

html.dark-theme .sidebar-lesson-item.active .lesson-title {
    color: white;
}

html.dark-theme .sidebar-day-info {
    background: var(--accent-gradient);
}

/* Основной контент */
html.dark-theme .main-content {
    background: var(--bg-primary);
}

html.dark-theme .lesson-page,
html.dark-theme .lesson-content,
html.dark-theme .lesson-main {
    background: var(--bg-lesson);
    color: var(--text-primary);
}

html.dark-theme .lesson-header h1 {
    color: var(--text-primary);
}

html.dark-theme .lesson-description {
    color: var(--text-secondary);
}

html.dark-theme .why-important {
    background: var(--bg-secondary);
    border-left-color: #667eea;
}

/* Карточки и секции */
html.dark-theme .progress-card,
html.dark-theme .admin-section,
html.dark-theme .quick-actions,
html.dark-theme .stat-card,
html.dark-theme .action-card,
html.dark-theme .profile-card,
html.dark-theme .auth-form,
html.dark-theme .edit-user-card,
html.dark-theme .document-content,
html.dark-theme .test-question,
html.dark-theme .question-card,
html.dark-theme .spoiler-header,
html.dark-theme .test-spoiler,
html.dark-theme .comments-section,
html.dark-theme .comment-item,
html.dark-theme .comment-form,
html.dark-theme .checklist {
    background: var(--bg-card) !important;
    border-color: var(--border-color);
    color: var(--text-primary);
}

html.dark-theme .stat-card {
    border-left-color: #667eea;
}

html.dark-theme .stat-number {
    color: #667eea;
}

html.dark-theme .stat-label {
    color: var(--text-secondary);
}

/* Таблицы */
html.dark-theme .admin-table {
    background: var(--bg-card);
    color: var(--text-primary);
}

html.dark-theme .admin-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom: 2px solid #667eea;
}

html.dark-theme .admin-table td {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

html.dark-theme .admin-table tr:hover {
    background: var(--hover-bg);
}

/* Формы */
html.dark-theme .form-group input,
html.dark-theme .form-group textarea,
html.dark-theme .form-input {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

html.dark-theme .form-group input:focus,
html.dark-theme .form-group textarea:focus {
    border-color: #667eea;
}

html.dark-theme .form-group label {
    color: var(--text-primary);
}

/* Код */
html.dark-theme .code-block {
    background: var(--bg-code) !important;
    border: 1px solid var(--border-color);
}

/* Табы уроков */
html.dark-theme .tab-btn {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

html.dark-theme .tab-btn:hover {
    background: var(--hover-bg);
    border-color: #667eea;
    color: #667eea;
}

html.dark-theme .tab-btn.active {
    background: var(--accent-gradient) !important;
    color: white !important;
}

html.dark-theme .tab-btn.viewed {
    border-left-color: #27ae60 !important;
}

/* Футер */
html.dark-theme .modern-footer {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
}

html.dark-theme .footer-description,
html.dark-theme .footer-links a,
html.dark-theme .footer-contact li {
    color: rgba(255, 255, 255, 0.6);
}

html.dark-theme .footer-links a:hover {
    color: #667eea;
}

/* Модальные окна */
html.dark-theme .modal-content {
    background: var(--bg-card);
    color: var(--text-primary);
}

html.dark-theme .modal-content h3 {
    color: var(--text-primary);
}

html.dark-theme .modal-content p {
    color: var(--text-secondary);
}

/* ========== КНОПКА ПЕРЕКЛЮЧЕНИЯ ТЕМЫ ========== */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 1.5rem;
    background: transparent; /* Прозрачный фон */
    color: #2c3e50; /* Цвет текста для светлой темы */
    border: 2px solid #e0e0e0; /* Обводка для светлой темы */
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
    line-height: 1;
    font-family: inherit;
}

.theme-toggle-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.theme-toggle-btn:active {
    transform: translateY(0);
}

.theme-icon {
    font-size: 1.1em;
    line-height: 1;
}

.theme-text {
    font-weight: 600;
}

/* ========== ТЕМНАЯ ТЕМА ========== */
html.dark-theme .theme-toggle-btn {
    background: transparent !important;
    color: #e0e0e0 !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
}

html.dark-theme .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1) !important;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .theme-toggle-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85em;
    }
    
    .theme-text {
        display: none;
    }
    
    .theme-icon {
        font-size: 1.3em;
    }
}

/* Анимация появления темной темы */
html.dark-theme {
    animation: themeFadeIn 0.3s ease;
}

@keyframes themeFadeIn {
    from {
        opacity: 0.9;
    }
    to {
        opacity: 1;
    }
}

/* Плавные переходы */
html.dark-theme *,
html.dark-theme *::before,
html.dark-theme *::after {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease, 
                box-shadow 0.3s ease,
                opacity 0.3s ease;
}

/* Адаптивность для кнопки темы */
@media (max-width: 768px) {
    .theme-toggle-btn {
        padding: 4px 10px;
        font-size: 0.8em;
    }
    
    .theme-text {
        display: none;
    }
    
    .theme-icon {
        font-size: 1.3em;
    }
}

/* Специфические стили для темной темы */

/* Страница урока */
html.dark-theme .lesson-sidebar {
    background: var(--bg-sidebar);
}

html.dark-theme .sidebar-actions {
    border-top-color: var(--border-color);
}

html.dark-theme .sidebar-actions .btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

html.dark-theme .sidebar-actions .btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Дашборд */
html.dark-theme .day-header {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

html.dark-theme .day-header:hover {
    background: var(--hover-bg);
}

html.dark-theme .day-block.active .day-header {
    background: var(--accent-gradient);
    color: white;
}

html.dark-theme .lesson-link {
    color: var(--text-secondary);
}

html.dark-theme .lesson-link:hover {
    background: var(--hover-bg);
}

html.dark-theme .lesson-link.current {
    background: var(--accent-gradient);
    color: white;
}

/* Путешествие (journey map) */
html.dark-theme .journey-map {
    background: linear-gradient(135deg, #0a0a1a, #1a1a2e);
}

html.dark-theme .journey-title {
    color: white;
}

html.dark-theme .journey-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

html.dark-theme .node-content {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark-theme .node-title {
    color: white;
}

/* Достижения */
html.dark-theme .achievement-card.unlocked {
    background: linear-gradient(135deg, #0a2a1a, #1a3a2e);
    border-color: #27ae60;
}

html.dark-theme .achievement-card.locked {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

html.dark-theme .achievement-desc {
    color: #ffffff;
}

/* Комментарии */
html.dark-theme .comment-item {
    background: var(--bg-secondary);
    border-color: transparent;
}

html.dark-theme .comment-item:hover {
    border-color: var(--border-color);
}

html.dark-theme .comment-author {
    color: var(--text-primary);
}

html.dark-theme .comment-text {
    color: var(--text-secondary);
}

html.dark-theme .comment-form {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

/* Админ-панель */
html.dark-theme .admin-header h1 {
    color: var(--text-primary);
}

html.dark-theme .admin-section h3 {
    color: var(--text-primary);
}

html.dark-theme .action-card {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

html.dark-theme .action-card:hover {
    background: var(--hover-bg);
    border-color: #667eea;
}

html.dark-theme .action-title {
    color: var(--text-primary);
}

html.dark-theme .action-desc {
    color: var(--text-secondary);
}

/* Скроллбар для темной темы */
html.dark-theme ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

html.dark-theme ::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

html.dark-theme ::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

html.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Firefox */
html.dark-theme * {
    scrollbar-width: thin;
    scrollbar-color: #444 var(--bg-primary);
}

html.dark-theme .btn-secondary,
html.dark-theme a.btn-secondary,
html.dark-theme .navbar .btn-secondary,
html.dark-theme .nav-right .btn-secondary {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #e0e0e0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
}

html.dark-theme .btn-secondary:hover,
html.dark-theme a.btn-secondary:hover,
html.dark-theme .navbar .btn-secondary:hover,
html.dark-theme .nav-right .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
}

/* Кнопка успеха (btn-success) */
html.dark-theme .btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

html.dark-theme .btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.5);
}

/* Кнопка опасности (btn-danger) */
html.dark-theme .btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

html.dark-theme .btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5);
}

/* Кнопка предупреждения (btn-warning) */
html.dark-theme .btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

html.dark-theme .btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.5);
}

/* Маленькие кнопки (btn-small) */
html.dark-theme .btn-small {
    font-size: 0.85em;
    padding: 6px 14px;
}

html.dark-theme .btn-small.btn-primary {
    background: linear-gradient(135deg, #4a6cf7 0%, #6c3ce0 100%) !important;
    color: white !important;
}

html.dark-theme .btn-small.btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #e0e0e0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

html.dark-theme .btn-small.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Большие кнопки (btn-large) */
html.dark-theme .btn-large {
    padding: 16px 32px;
    font-size: 1.15em;
}

/* Кнопка "Выйти" */
html.dark-theme .nav-right .btn-secondary:last-child {
    background: rgba(231, 76, 60, 0.15) !important;
    border-color: rgba(231, 76, 60, 0.3) !important;
    color: #e74c3c !important;
}

html.dark-theme .nav-right .btn-secondary:last-child:hover {
    background: rgba(231, 76, 60, 0.25) !important;
}

/* Кнопки в боковой панели */
html.dark-theme .sidebar-actions .btn {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #e0e0e0 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

html.dark-theme .sidebar-actions .btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Кнопка "Продолжить обучение" на дашборде */
html.dark-theme .progress-card .btn-primary {
    background: linear-gradient(135deg, #4a6cf7 0%, #6c3ce0 100%) !important;
    color: white !important;
    border: none;
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3);
}

html.dark-theme .progress-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.5);
}

/* Кнопки в админ-панели */
html.dark-theme .admin-nav .btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #e0e0e0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

html.dark-theme .admin-nav .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Кнопка переключения темы (сама кнопка) */
html.dark-theme .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #e0e0e0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

html.dark-theme .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Кнопка в мобильном меню */
html.dark-theme .mobile-menu-item {
    color: #e0e0e0 !important;
}

html.dark-theme .mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #667eea !important;
}

html.dark-theme .mobile-logout {
    color: #e74c3c !important;
}

html.dark-theme .mobile-register {
    background: linear-gradient(135deg, #4a6cf7 0%, #6c3ce0 100%) !important;
    color: white !important;
}

html.dark-theme .mobile-register:hover {
    background: linear-gradient(135deg, #6c3ce0 0%, #4a6cf7 100%) !important;
}

/* Кнопка в футере урока */
html.dark-theme .lesson-footer .btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%) !important;
    color: white !important;
}

html.dark-theme .lesson-footer .btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.5);
}

/* Мобильное меню в темной теме */
html.dark-theme .mobile-menu {
    background: var(--bg-card) !important;
}

html.dark-theme .mobile-menu-header {
    background: var(--accent-gradient) !important;
}

html.dark-theme .mobile-user-info {
    background: var(--bg-secondary);
}

html.dark-theme .mobile-username {
    color: var(--text-primary);
}

html.dark-theme .mobile-menu-item {
    color: var(--text-primary);
}

html.dark-theme .mobile-menu-item:hover {
    background: var(--hover-bg);
    color: #667eea;
}

html.dark-theme .mobile-logout {
    color: #e74c3c !important;
    border-top-color: var(--border-color);
}

html.dark-theme .mobile-register {
    background: linear-gradient(135deg, #4a6cf7 0%, #6c3ce0 100%) !important;
    color: white !important;
}

/* ========== ИСПРАВЛЕНИЕ DAY-CONTENT В ТЕМНОЙ ТЕМЕ ========== */

html.dark-theme .day-content {
    background: var(--bg-secondary) !important;
    border-radius: 0 0 8px 8px;
    padding: 8px 0 8px 15px;
}

html.dark-theme .day-content .lesson-link {
    color: var(--text-secondary) !important;
    background: transparent !important;
    border-left: 3px solid transparent;
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 0 6px 6px 0;
    transition: all 0.3s ease;
}

html.dark-theme .day-content .lesson-link:hover {
    background: var(--hover-bg) !important;
    border-left-color: #667eea;
    color: #667eea !important;
}

html.dark-theme .day-content .lesson-link.current {
    background: var(--accent-gradient) !important;
    color: white !important;
    border-left-color: transparent;
}

html.dark-theme .day-content .lesson-link.viewed {
    border-left-color: #27ae60;
    color: var(--text-secondary) !important;
}

html.dark-theme .day-content .lesson-link.viewed:hover {
    color: #667eea !important;
}

/* Заголовок дня */
html.dark-theme .day-header {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

html.dark-theme .day-header:hover {
    background: var(--hover-bg) !important;
    border-color: #667eea;
}

html.dark-theme .day-block.active .day-header {
    background: var(--accent-gradient) !important;
    color: white !important;
    border-color: transparent;
}

/* Иконки статуса дней */
html.dark-theme .day-status {
    color: var(--text-muted);
}

html.dark-theme .day-block.active .day-status {
    color: white;
}

/* Стрелка */
html.dark-theme .arrow {
    color: var(--text-muted);
}

html.dark-theme .day-block.active .arrow {
    color: white;
}

html.dark-theme .navbar .btn-primary,
html.dark-theme .navbar .btn-secondary,
html.dark-theme .nav-right .btn-primary,
html.dark-theme .nav-right .btn-secondary,
html.dark-theme a.btn-primary,
html.dark-theme a.btn-secondary {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #e0e0e0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html.dark-theme .navbar .btn-primary:hover,
html.dark-theme .navbar .btn-secondary:hover,
html.dark-theme .nav-right .btn-primary:hover,
html.dark-theme .nav-right .btn-secondary:hover,
html.dark-theme a.btn-primary:hover,
html.dark-theme a.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
}

/* Кнопка "Выйти" в navbar - красный оттенок */
html.dark-theme .nav-right .btn-secondary:last-child,
html.dark-theme .navbar .btn-secondary:last-child {
    background: rgba(231, 76, 60, 0.15) !important;
    border-color: rgba(231, 76, 60, 0.3) !important;
    color: #e74c3c !important;
}

html.dark-theme .nav-right .btn-secondary:last-child:hover,
html.dark-theme .navbar .btn-secondary:last-child:hover {
    background: rgba(231, 76, 60, 0.25) !important;
}

html.dark-theme .lesson-content h2 {
    color: #e0e0e0 !important;
    border-bottom-color: #4a6cf7 !important;
}

html.dark-theme .lesson-content h3 {
    color: #d0d0e0 !important;
}

html.dark-theme .lesson-content h4 {
    color: #c0c0d0 !important;
}

html.dark-theme .lesson-content p {
    color: #b0b0c0 !important;
}

html.dark-theme .lesson-body {
    color: #c0c0d0 !important;
}

html.dark-theme .lesson-body h3 {
    color: #d0d0e0 !important;
}

html.dark-theme .lesson-body h4 {
    color: #c0c0d0 !important;
}

html.dark-theme .lesson-body p {
    color: #b0b0c0 !important;
}

html.dark-theme .lesson-body li {
    color: #b0b0c0 !important;
}

html.dark-theme .lesson-body strong {
    color: #e0e0f0 !important;
}

html.dark-theme .lesson-body code {
    color: #98c379 !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

html.dark-theme .lesson-body a {
    color: #667eea !important;
}

html.dark-theme .lesson-body a:hover {
    color: #7c8cf7 !important;
}

/* Информационные блоки */
html.dark-theme .info-box {
    background: rgba(102, 126, 234, 0.1) !important;
    border-color: #4a6cf7 !important;
    color: #c0c0d0 !important;
}

html.dark-theme .warning-box {
    background: rgba(255, 193, 7, 0.1) !important;
    border-color: #f39c12 !important;
    color: #c0c0d0 !important;
}

html.dark-theme .challenge-box {
    background: rgba(39, 174, 96, 0.1) !important;
    border-color: #27ae60 !important;
    color: #c0c0d0 !important;
}

html.dark-theme .analogy-box {
    background: rgba(118, 75, 162, 0.1) !important;
    border-color: #764ba2 !important;
    color: #c0c0d0 !important;
}

html.dark-theme .story-block {
    background: rgba(230, 126, 34, 0.1) !important;
    border-color: #e67e22 !important;
    color: #c0c0d0 !important;
}

/* Блоки с историей */
html.dark-theme .history-box {
    background: rgba(102, 126, 234, 0.08) !important;
    border-color: #4a6cf7 !important;
    color: #c0c0d0 !important;
}

html.dark-theme .history-box p {
    color: #b0b0c0 !important;
}

html.dark-theme .history-box h4 {
    color: #667eea !important;
}

html.dark-theme .real-story-box {
    background: rgba(231, 76, 60, 0.08) !important;
    border-color: #e74c3c !important;
    color: #c0c0d0 !important;
}

html.dark-theme .real-story-box p {
    color: #b0b0c0 !important;
}

html.dark-theme .real-story-box h4 {
    color: #e74c3c !important;
}

html.dark-theme .real-story-box ul li {
    color: #b0b0c0 !important;
}

/* Блоки с советами */
html.dark-theme .pro-tips-box {
    background: rgba(39, 174, 96, 0.08) !important;
    border-color: #27ae60 !important;
    color: #c0c0d0 !important;
}

html.dark-theme .pro-tips-box h4 {
    color: #27ae60 !important;
}

html.dark-theme .tip-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border-color) !important;
    color: #c0c0d0 !important;
}

html.dark-theme .tip-card h5 {
    color: #27ae60 !important;
}

html.dark-theme .tip-card .code-block {
    background: var(--bg-code) !important;
}

/* Блоки с аналогиями */
html.dark-theme .story-box {
    background: rgba(230, 126, 34, 0.08) !important;
    border-color: #e67e22 !important;
    color: #c0c0d0 !important;
}

html.dark-theme .story-box p {
    color: #b0b0c0 !important;
}

html.dark-theme .story-box strong {
    color: #e67e22 !important;
}

html.dark-theme .analogy-box {
    background: rgba(230, 126, 34, 0.06) !important;
    border-color: #e67e22 !important;
}

html.dark-theme .analogy-box p {
    color: #b0b0c0 !important;
}

html.dark-theme .analogy-box h5 {
    color: #e67e22 !important;
}

/* Fun facts */
html.dark-theme .fun-fact {
    background: rgba(255, 193, 7, 0.08) !important;
    border-color: #ffc107 !important;
}

html.dark-theme .fun-fact span:last-child {
    color: #d4a017 !important;
}

/* Блоки с шагами */
html.dark-theme .step {
    background: rgba(255, 255, 255, 0.05) !important;
}

html.dark-theme .step p {
    color: #b0b0c0 !important;
}

html.dark-theme .step h5 {
    color: #d0d0e0 !important;
}

/* Сравнительные таблицы */
html.dark-theme .comparison-box {
    background: rgba(102, 126, 234, 0.08) !important;
    border-color: #4a6cf7 !important;
    color: #c0c0d0 !important;
}

html.dark-theme .comparison-box h4 {
    color: #667eea !important;
}

html.dark-theme .comparison-row:not(.header) {
    background: rgba(255, 255, 255, 0.03) !important;
}

html.dark-theme .comparison-row:not(.header):hover {
    background: rgba(102, 126, 234, 0.1) !important;
}

html.dark-theme .comp-cell {
    color: #ffffff !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .comparison-row:not(.header) .comp-cell:first-child {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.08) !important;
}

html.dark-theme .tip-box {
    background: rgba(102, 126, 234, 0.08) !important;
    border-color: #4a6cf7 !important;
}

html.dark-theme .tip-box p {
    color: #b0b0c0 !important;
}

html.dark-theme .tip-box h5 {
    color: #667eea !important;
}

/* Блоки загрузки файлов */
html.dark-theme .lf-section {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .lf-header {
    background: rgba(102, 126, 234, 0.08) !important;
    border-color: #4a6cf7 !important;
}

html.dark-theme .lf-header-text h3 {
    color: #d0d0e0 !important;
}

html.dark-theme .lf-header-text p {
    color: #a0a0b0 !important;
}

html.dark-theme .lf-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .lf-card:hover {
    border-color: #4a6cf7 !important;
}

html.dark-theme .lf-card-name {
    color: #d0d0e0 !important;
}

html.dark-theme .lf-card-desc {
    color: #a0a0b0 !important;
}

html.dark-theme .lf-card-icon {
    background: rgba(255, 255, 255, 0.08) !important;
}

html.dark-theme .lf-folder-info {
    background: rgba(102, 126, 234, 0.08) !important;
    color: #b0b0c0 !important;
}

html.dark-theme .lf-folder-info code {
    background: rgba(102, 126, 234, 0.15) !important;
    color: #667eea !important;
}

/* Чек-лист */
html.dark-theme .checklist {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .check-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: transparent !important;
}

html.dark-theme .check-item:hover {
    background: var(--hover-bg) !important;
    border-color: #4a6cf7 !important;
}

html.dark-theme .check-item.completed {
    background: rgba(39, 174, 96, 0.1) !important;
    border-color: #27ae60 !important;
}

html.dark-theme .check-item span:last-child {
    color: #b0b0c0 !important;
}

html.dark-theme .check-item.completed span:last-child {
    color: #27ae60 !important;
}


/* Заголовок комментариев */
html.dark-theme .comments-section {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .comments-header h3,
html.dark-theme #commentsTitle {
    color: #d0d0e0 !important;
}

html.dark-theme .comments-header .comments-count {
    color: #667eea !important;
}

html.dark-theme .comments-header .comments-label {
    color: var(--text-secondary) !important;
}

/* Форма комментария */
html.dark-theme .comment-form-container {
    background: transparent !important;
}

html.dark-theme .comment-form {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .comment-form .user-name {
    color: #d0d0e0 !important;
}

html.dark-theme .comment-form .form-header {
    border-bottom-color: var(--border-color) !important;
}

html.dark-theme .comment-form .daily-limit {
    color: var(--text-secondary) !important;
}

html.dark-theme .comment-form .daily-limit strong {
    color: #667eea !important;
}

html.dark-theme .comment-form .reply-info {
    background: rgba(102, 126, 234, 0.15) !important;
    color: #667eea !important;
}

html.dark-theme .comment-form .reply-info strong {
    color: #d0d0e0 !important;
}

html.dark-theme .comment-form .moderation-notice {
    color: var(--text-muted) !important;
}

/* Редактор Quill */
html.dark-theme .ql-toolbar {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .ql-container {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .ql-editor {
    color: #c0c0d0 !important;
}

html.dark-theme .ql-editor.ql-blank::before {
    color: #666 !important;
}

html.dark-theme .ql-stroke {
    stroke: #a0a0b0 !important;
}

html.dark-theme .ql-fill {
    fill: #a0a0b0 !important;
}

html.dark-theme .ql-picker {
    color: #a0a0b0 !important;
}

html.dark-theme .ql-picker-options {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .ql-picker-item {
    color: #a0a0b0 !important;
}

html.dark-theme .ql-picker-item:hover {
    color: #667eea !important;
}

/* Счетчик символов */
html.dark-theme .char-counter {
    color: var(--text-muted) !important;
}

html.dark-theme .char-counter #charCount {
    color: #667eea !important;
}

html.dark-theme .char-counter #charCount.warning {
    color: #f39c12 !important;
}

html.dark-theme .char-counter #charCount.danger {
    color: #e74c3c !important;
}

/* Эмодзи пикер */
html.dark-theme .emoji-toggle {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .emoji-toggle:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #667eea !important;
}

html.dark-theme .emoji-picker {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .emoji-grid span {
    color: #c0c0d0 !important;
}

html.dark-theme .emoji-grid span:hover {
    background: var(--hover-bg) !important;
}

/* Элементы комментариев */
html.dark-theme .comment-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: transparent !important;
}

html.dark-theme .comment-item:hover {
    border-color: var(--border-color) !important;
}

html.dark-theme .comment-item.pending {
    border-color: #f39c12 !important;
    background: rgba(243, 156, 18, 0.08) !important;
}

html.dark-theme .comment-author {
    color: #d0d0e0 !important;
}

html.dark-theme .comment-date {
    color: var(--text-muted) !important;
}

html.dark-theme .comment-text {
    color: #b0b0c0 !important;
}

html.dark-theme .comment-status.pending {
    background: rgba(243, 156, 18, 0.15) !important;
    color: #f39c12 !important;
}

html.dark-theme .comment-status.approved {
    background: rgba(39, 174, 96, 0.15) !important;
    color: #27ae60 !important;
}

html.dark-theme .comment-action-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
}

html.dark-theme .comment-action-btn:hover {
    background: rgba(102, 126, 234, 0.15) !important;
    border-color: #667eea !important;
    color: #667eea !important;
}

html.dark-theme .comment-action-btn.delete:hover {
    background: rgba(231, 76, 60, 0.15) !important;
    border-color: #e74c3c !important;
    color: #e74c3c !important;
}

html.dark-theme .comment-action-btn.reply-btn:hover {
    background: rgba(39, 174, 96, 0.15) !important;
    border-color: #27ae60 !important;
    color: #27ae60 !important;
}

/* Информация о родительском комментарии */
html.dark-theme .parent-info {
    background: rgba(102, 126, 234, 0.1) !important;
    color: #667eea !important;
    border-left-color: #667eea !important;
}

html.dark-theme .parent-info strong {
    color: #d0d0e0 !important;
}

/* Нет комментариев */
html.dark-theme .no-comments {
    color: var(--text-muted) !important;
}

html.dark-theme .no-comments p {
    color: var(--text-muted) !important;
}

/* Пагинация комментариев */
html.dark-theme .comments-pagination {
    border-top-color: var(--border-color) !important;
}

html.dark-theme .comments-pagination .page-info {
    color: var(--text-secondary) !important;
}

/* ========== ИСПРАВЛЕНИЕ СПОЙЛЕРА ТЕСТА ========== */

html.dark-theme .test-spoiler {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .spoiler-header {
    background: rgba(102, 126, 234, 0.08) !important;
    border-bottom-color: transparent !important;
}

html.dark-theme .spoiler-header.active {
    border-bottom-color: #4a6cf7 !important;
    background: rgba(102, 126, 234, 0.12) !important;
}

html.dark-theme .spoiler-title span:nth-child(2) {
    color: #d0d0e0 !important;
}

html.dark-theme .spoiler-badge {
    background: linear-gradient(135deg, #4a6cf7 0%, #6c3ce0 100%) !important;
    color: white !important;
}

html.dark-theme .spoiler-arrow {
    color: #667eea !important;
}

html.dark-theme .spoiler-content {
    background: transparent !important;
}

/* Информационная панель теста */
html.dark-theme .test-info-bar {
    background: rgba(255, 255, 255, 0.05) !important;
}

html.dark-theme .test-info-item {
    color: var(--text-secondary) !important;
}

html.dark-theme .test-info-item strong {
    color: #667eea !important;
}

/* Вопросы теста */
html.dark-theme .test-question {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: transparent !important;
}

html.dark-theme .test-question:hover {
    border-color: var(--border-color) !important;
}

html.dark-theme .test-question.correct {
    border-color: #27ae60 !important;
    background: rgba(39, 174, 96, 0.1) !important;
}

html.dark-theme .test-question.wrong {
    border-color: #e74c3c !important;
    background: rgba(231, 76, 60, 0.1) !important;
}

html.dark-theme .test-question .question-number {
    color: #667eea !important;
}

html.dark-theme .test-question .question-text {
    color: #d0d0e0 !important;
}

html.dark-theme .option-label {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: transparent !important;
}

html.dark-theme .option-label:hover {
    background: var(--hover-bg) !important;
    border-color: #667eea !important;
}

html.dark-theme .option-label .option-text {
    color: #b0b0c0 !important;
}

html.dark-theme .option-label input[type="radio"]:checked ~ .option-text {
    color: #667eea !important;
}

html.dark-theme .correct-answer {
    border-color: #27ae60 !important;
    background: rgba(39, 174, 96, 0.1) !important;
}

html.dark-theme .correct-answer .option-text {
    color: #27ae60 !important;
}

/* ========== ИСПРАВЛЕНИЕ ФУТЕРА УРОКА ========== */

html.dark-theme .lesson-footer {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .lesson-footer .btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%) !important;
    color: white !important;
}

html.dark-theme .lesson-footer .btn-success:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.5) !important;
}

/* ========== ИСПРАВЛЕНИЕ БЛОКИРОВКИ КОММЕНТАРИЕВ ========== */

html.dark-theme .comment-blocked-banner {
    background: rgba(231, 76, 60, 0.1) !important;
    border-color: #e74c3c !important;
}

html.dark-theme .comment-blocked-banner h4 {
    color: #e74c3c !important;
}

html.dark-theme .comment-blocked-banner p {
    color: #b0b0c0 !important;
}

html.dark-theme .comment-blocked-banner .blocked-contact {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ ИСПРАВЛЕНИЯ ========== */

/* История и реальные истории */
html.dark-theme .fun-facts-box {
    background: rgba(102, 126, 234, 0.08) !important;
    border-color: #4a6cf7 !important;
}

html.dark-theme .fun-facts-box h4 {
    color: #667eea !important;
}

html.dark-theme .fact-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .fact-card h5 {
    color: #d0d0e0 !important;
}

html.dark-theme .fact-card p {
    color: #b0b0c0 !important;
}

html.dark-theme .fact-card strong {
    color: #667eea !important;
}

/* Секреты промптов */
html.dark-theme .pro-tips-box {
    background: rgba(39, 174, 96, 0.08) !important;
    border-color: #27ae60 !important;
}

html.dark-theme .pro-tips-box h4 {
    color: #27ae60 !important;
}

html.dark-theme .tip-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .tip-card h5 {
    color: #27ae60 !important;
}

html.dark-theme .tip-card p {
    color: #b0b0c0 !important;
}

/* Блоки с кодом */
html.dark-theme .code-block {
    background: var(--bg-code) !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .code-block code,
html.dark-theme .code-block pre {
    color: #d4d4d4 !important;
}

html.dark-theme .btn-copy {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

html.dark-theme .btn-copy:hover {
    background: rgba(102, 126, 234, 0.3) !important;
    color: white !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
}

html.dark-theme .btn-copy-copied {
    background: rgba(39, 174, 96, 0.3) !important;
    color: #27ae60 !important;
    border-color: rgba(39, 174, 96, 0.5) !important;
}

/* Таблицы */
html.dark-theme .code-explanation td {
    color: #b0b0c0 !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .code-explanation td:first-child {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #667eea !important;
}

html.dark-theme .code-explanation td code {
    color: #98c379 !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Изображения */
html.dark-theme img {
    filter: brightness(0.9) !important;
}

html.dark-theme img:hover {
    filter: brightness(1) !important;
}

/* Скроллбар */
html.dark-theme ::-webkit-scrollbar-thumb {
    background: #444 !important;
}

html.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: #666 !important;
}

html.dark-theme .why-important {
    background: rgba(102, 126, 234, 0.1) !important;
    border-left-color: #4a6cf7 !important;
    color: #c0c0d0 !important;
}

html.dark-theme .why-important strong {
    color: #667eea !important;
}

html.dark-theme .why-important p {
    color: #b0b0c0 !important;
}

/* ========== ИСПРАВЛЕНИЕ ACHIEVEMENTS-SECTION ========== */

html.dark-theme .achievements-section {
    background: transparent !important;
}

html.dark-theme .achievements-title {
    color: #d0d0e0 !important;
}

html.dark-theme .achievements-subtitle {
    color: var(--text-secondary) !important;
}

html.dark-theme .achievement-card.unlocked {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.15), rgba(46, 204, 113, 0.1)) !important;
    border-color: #27ae60 !important;
}

html.dark-theme .achievement-card.unlocked:hover {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.25), rgba(46, 204, 113, 0.15)) !important;
}

html.dark-theme .achievement-card.legendary {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.15), rgba(230, 126, 34, 0.1)) !important;
    border-color: #f39c12 !important;
}

html.dark-theme .achievement-card.locked {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border-color) !important;
    opacity: 0.6 !important;
}

html.dark-theme .achievement-card.locked:hover {
    opacity: 0.9 !important;
    border-color: #667eea !important;
}

html.dark-theme .achievement-card.hidden-achievement {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.15), rgba(142, 36, 170, 0.1)) !important;
    border-color: #9c27b0 !important;
    border-style: dashed !important;
}

html.dark-theme .achievement-name {
    color: #ffffff !important;
}

html.dark-theme .achievement-card.unlocked .achievement-name {
    color: #27ae60 !important;
}

html.dark-theme .achievement-card.legendary .achievement-name {
    color: #f39c12 !important;
}

html.dark-theme .achievement-card.unlocked .achievement-desc {
    color: #b0c0b0 !important;
}

html.dark-theme .achievement-status {
    color: var(--text-muted) !important;
}

html.dark-theme .achievement-card.unlocked .achievement-status {
    color: #27ae60 !important;
}

/* Модальное окно достижений */
html.dark-theme .achievement-modal {
    background: var(--bg-card) !important;
}

html.dark-theme .achievement-modal h2 {
    color: #d0d0e0 !important;
}

html.dark-theme .achievement-modal-story {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #b0b0c0 !important;
    border-left-color: #667eea !important;
}

html.dark-theme .achievement-modal-detail {
    color: var(--text-secondary) !important;
}

html.dark-theme .profile-page {
    background: var(--bg-primary) !important;
}

html.dark-theme .profile-header h2 {
    color: #d0d0e0 !important;
}

html.dark-theme .profile-email {
    color: var(--text-secondary) !important;
}

html.dark-theme .profile-card {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 2px 10px var(--shadow-color) !important;
}

html.dark-theme .profile-card h3 {
    color: #d0d0e0 !important;
}

html.dark-theme .profile-info-grid .info-item {
    background: rgba(255, 255, 255, 0.05) !important;
}

html.dark-theme .profile-info-grid .info-label {
    color: var(--text-secondary) !important;
}

html.dark-theme .profile-info-grid .info-value {
    color: #d0d0e0 !important;
}

html.dark-theme .profile-info-grid .info-value.completed {
    color: #27ae60 !important;
}

html.dark-theme .profile-info-grid .info-value.not-completed {
    color: #e74c3c !important;
}

/* Форма ФИО */
html.dark-theme .full-name-form .form-group label {
    color: #d0d0e0 !important;
}

html.dark-theme .full-name-form input {
    background: var(--bg-primary) !important;
    color: #c0c0d0 !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .full-name-form input:focus {
    border-color: #667eea !important;
}

html.dark-theme .full-name-form input:disabled {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-muted) !important;
}

html.dark-theme .full-name-saved {
    background: rgba(39, 174, 96, 0.1) !important;
    border-color: #27ae60 !important;
}

html.dark-theme .full-name-saved .saved-text {
    color: #27ae60 !important;
}

html.dark-theme .profile-hint {
    background: rgba(102, 126, 234, 0.1) !important;
    border-left-color: #667eea !important;
    color: var(--text-secondary) !important;
}

html.dark-theme .error-message {
    color: #e74c3c !important;
}

/* Форма смены пароля */
html.dark-theme .password-form .form-group label {
    color: #d0d0e0 !important;
}

html.dark-theme .password-form input {
    background: var(--bg-primary) !important;
    color: #c0c0d0 !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .password-form input:focus {
    border-color: #667eea !important;
    outline: none !important;
}

/* Статистика прогресса */
html.dark-theme .progress-stats .stat-number {
    color: #667eea !important;
}

html.dark-theme .progress-stats .stat-label {
    color: var(--text-secondary) !important;
}

html.dark-theme .progress-bar {
    background: rgba(255, 255, 255, 0.1) !important;
}

html.dark-theme .progress-fill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* ========== ИСПРАВЛЕНИЕ МОДАЛЬНОГО ОКНА ДЛЯ ФИО ========== */

html.dark-theme #fullnameModal .modal-content {
    background: var(--bg-card) !important;
}

html.dark-theme #fullnameModal .modal-content h3 {
    color: #d0d0e0 !important;
}

html.dark-theme #fullnameModal .modal-content p {
    color: var(--text-secondary) !important;
}

html.dark-theme #fullnameModal .modal-form-group label {
    color: #d0d0e0 !important;
}

html.dark-theme #fullnameModal .modal-form-group input {
    background: var(--bg-primary) !important;
    color: #c0c0d0 !important;
    border-color: var(--border-color) !important;
}

html.dark-theme #fullnameModal .modal-form-group input:focus {
    border-color: #667eea !important;
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ ИСПРАВЛЕНИЯ ========== */

/* Баннер поздравления */
html.dark-theme .congratulations-banner {
    background: linear-gradient(135deg, #0f3460 0%, #533483 100%) !important;
}

html.dark-theme .congratulations-banner h2 {
    color: white !important;
}

html.dark-theme .congratulations-banner p {
    color: rgba(255, 255, 255, 0.9) !important;
}

html.dark-theme .congratulations-banner .course-summary h3 {
    color: white !important;
}

html.dark-theme .congratulations-banner .summary-item {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Главная страница профиля */
html.dark-theme .profile-avatar img {
    border-color: #667eea !important;
}

/* Алерты */
html.dark-theme .alert-success {
    background: rgba(39, 174, 96, 0.15) !important;
    color: #27ae60 !important;
    border-color: rgba(39, 174, 96, 0.3) !important;
}

html.dark-theme .alert-error {
    background: rgba(231, 76, 60, 0.15) !important;
    color: #e74c3c !important;
    border-color: rgba(231, 76, 60, 0.3) !important;
}

html.dark-theme .alert-warning {
    background: rgba(243, 156, 18, 0.15) !important;
    color: #f39c12 !important;
    border-color: rgba(243, 156, 18, 0.3) !important;
}

html.dark-theme .alert-warning a {
    color: #667eea !important;
}

/* Огненный прогресс-бар */
html.dark-theme .fire-progress {
    background: linear-gradient(135deg, #0a0a1a, #1a1a2e) !important;
    border-color: rgba(255, 107, 53, 0.3) !important;
}

html.dark-theme .fire-progress .progress-header h3 {
    color: white !important;
}

html.dark-theme .fire-progress .stat-badge {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

html.dark-theme .fire-progress .progress-message {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Journey map */
html.dark-theme .journey-map {
    background: linear-gradient(135deg, #0a0a1a, #1a1a2e) !important;
}

html.dark-theme .journey-title {
    color: white !important;
}

html.dark-theme .journey-subtitle {
    color: rgba(255, 255, 255, 0.7) !important;
}

html.dark-theme .node-content {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark-theme .node-title {
    color: white !important;
}

html.dark-theme .node-day {
    color: rgba(255, 255, 255, 0.6) !important;
}

html.dark-theme .node-quest {
    background: rgba(255, 255, 255, 0.08) !important;
}

html.dark-theme .node-quest span:first-child {
    color: #f39c12 !important;
}

html.dark-theme .node-quest span:last-child {
    color: rgba(255, 255, 255, 0.8) !important;
}

html.dark-theme .status-done {
    background: rgba(39, 174, 96, 0.3) !important;
    color: #2ecc71 !important;
}

html.dark-theme .status-fighting {
    background: rgba(102, 126, 234, 0.3) !important;
    color: #667eea !important;
}

html.dark-theme .status-locked {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Ссылки в навигации дашборда */
html.dark-theme .lesson-link {
    color: var(--text-secondary) !important;
}

html.dark-theme .lesson-link:hover {
    background: var(--hover-bg) !important;
    color: #667eea !important;
}

html.dark-theme .lesson-link.current {
    background: var(--accent-gradient) !important;
    color: white !important;
}

html.dark-theme .lesson-link.viewed {
    border-left-color: #27ae60 !important;
    color: var(--text-secondary) !important;
}

html.dark-theme .lesson-link.viewed:hover {
    color: #667eea !important;
}

/* Кнопка "На главную" и другие в сайдбаре */
html.dark-theme .sidebar-actions .btn {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #e0e0e0 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

html.dark-theme .sidebar-actions .btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Модальное окно для сертификата */
html.dark-theme #certificateModal .modal-content {
    background: var(--bg-card) !important;
}

html.dark-theme #certificateModal .modal-content h3 {
    color: #d0d0e0 !important;
}

html.dark-theme #certificateModal .modal-content p {
    color: var(--text-secondary) !important;
}

/* ========== ИСПРАВЛЕНИЕ PROBLEM-ITEM ========== */

html.dark-theme .problem-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border-color) !important;
    color: #c0c0d0 !important;
}

html.dark-theme .problem-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #667eea !important;
}

html.dark-theme .problem-item .problem-icon {
    color: #667eea !important;
}

html.dark-theme .problem-item .problem-text strong {
    color: #d0d0e0 !important;
}

html.dark-theme .problem-item .problem-text p {
    color: #b0b0c0 !important;
}

/* ========== ИСПРАВЛЕНИЕ PROBLEM-LIST ========== */

html.dark-theme .problem-list {
    background: transparent !important;
}

html.dark-theme .problem-list .problem-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border-color) !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    margin-bottom: 10px !important;
}

html.dark-theme .problem-list .problem-item:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    border-color: #667eea !important;
}

html.dark-theme .problem-list .problem-item .problem-icon {
    font-size: 1.5em !important;
    color: #667eea !important;
}

html.dark-theme .problem-list .problem-item span:last-child {
    color: #b0b0c0 !important;
    font-size: 0.95em !important;
    line-height: 1.5 !important;
}

/* ========== ИСПРАВЛЕНИЕ PROBLEM-SECTION НА ГЛАВНОЙ ========== */

html.dark-theme .problem-section {
    background: var(--bg-secondary) !important;
}

html.dark-theme .problem-section .problem-content h2 {
    color: #d0d0e0 !important;
}

html.dark-theme .problem-section .solution-content h2 {
    color: #d0d0e0 !important;
}

html.dark-theme .problem-section .problem-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border-color) !important;
    box-shadow: none !important;
}

html.dark-theme .problem-section .problem-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

html.dark-theme .problem-section .problem-item strong {
    color: #d0d0e0 !important;
}

html.dark-theme .problem-section .problem-item p {
    color: #b0b0c0 !important;
}

html.dark-theme .problem-section .solution-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border-color) !important;
    box-shadow: none !important;
}

html.dark-theme .problem-section .solution-item:hover {
    background: rgba(102, 126, 234, 0.1) !important;
}

html.dark-theme .problem-section .solution-item strong {
    color: #d0d0e0 !important;
}

html.dark-theme .problem-section .solution-item p {
    color: #b0b0c0 !important;
}

html.dark-theme .problem-section .solution-icon {
    color: #27ae60 !important;
}

/* ========== ИСПРАВЛЕНИЕ PROBLEM-ITEM В УРОКАХ ========== */

html.dark-theme .story-block .problem-list .problem-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border-color) !important;
    border-left: 3px solid #e74c3c !important;
}

html.dark-theme .story-block .problem-list .problem-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #667eea !important;
    border-left-color: #667eea !important;
}

html.dark-theme .story-block .problem-list .problem-item .problem-icon {
    color: #e74c3c !important;
    font-size: 1.3em !important;
}

html.dark-theme .story-block .problem-list .problem-item span:last-child {
    color: #b0b0c0 !important;
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ ИСПРАВЛЕНИЯ ДЛЯ ПОХОЖИХ ЭЛЕМЕНТОВ ========== */

/* Секция преимуществ */
html.dark-theme .advantages {
    background: var(--bg-secondary) !important;
}

html.dark-theme .advantages h2 {
    color: #d0d0e0 !important;
}

html.dark-theme .advantage-card {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #c0c0d0 !important;
}

html.dark-theme .advantage-card h3 {
    color: #d0d0e0 !important;
}

html.dark-theme .advantage-card p {
    color: #b0b0c0 !important;
}

/* План обучения */
html.dark-theme .plan-section {
    background: var(--bg-primary) !important;
}

html.dark-theme .plan-section h2 {
    color: #d0d0e0 !important;
}

html.dark-theme .plan-card {
    background: var(--bg-card) !important;
    color: #c0c0d0 !important;
    box-shadow: 0 2px 10px var(--shadow-color) !important;
}

html.dark-theme .plan-card h3 {
    color: #667eea !important;
}

html.dark-theme .plan-card p {
    color: #b0b0c0 !important;
}

/* Результаты */
html.dark-theme .results-section {
    background: var(--bg-secondary) !important;
}

html.dark-theme .results-section h2 {
    color: #d0d0e0 !important;
}

html.dark-theme .result-item {
    color: #c0c0d0 !important;
}

/* Отзывы */
html.dark-theme .testimonials {
    background: var(--bg-secondary) !important;
}

html.dark-theme .testimonials h2 {
    color: #d0d0e0 !important;
}

html.dark-theme .testimonial-card {
    background: var(--bg-card) !important;
    color: #c0c0d0 !important;
}

html.dark-theme .testimonial-card p {
    color: #b0b0c0 !important;
}

html.dark-theme .testimonial-author strong {
    color: #d0d0e0 !important;
}

html.dark-theme .testimonial-author span {
    color: var(--text-muted) !important;
}

/* Герой секция */
html.dark-theme .hero-section {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0f0c29 100%) !important;
}

html.dark-theme .hero-title {
    color: white !important;
}

html.dark-theme .hero-subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
}

html.dark-theme .hero-badge {
    background: linear-gradient(135deg, #c0392b, #e74c3c) !important;
}

html.dark-theme .hero-guarantee {
    color: rgba(255, 255, 255, 0.6) !important;
}

html.dark-theme .hero-stat-number {
    color: #667eea !important;
}

html.dark-theme .hero-stat-label {
    color: rgba(255, 255, 255, 0.6) !important;
}

html.dark-theme .btn-hero-primary {
    background: linear-gradient(135deg, #4a6cf7 0%, #6c3ce0 100%) !important;
    color: white !important;
    box-shadow: 0 8px 30px rgba(74, 108, 247, 0.4) !important;
}

html.dark-theme .btn-hero-primary:hover {
    box-shadow: 0 12px 40px rgba(74, 108, 247, 0.6) !important;
}

/* Блок с кодом */
html.dark-theme .hero-code-preview {
    background: #0d0d1a !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7) !important;
}

html.dark-theme .code-header {
    background: #1a1a2e !important;
}

html.dark-theme .code-body code {
    color: #abb2bf !important;
}

/* Секция "Чему вы научитесь" */
html.dark-theme .learn-section {
    background: var(--bg-primary) !important;
}

html.dark-theme .learn-section .section-title {
    color: #d0d0e0 !important;
}

html.dark-theme .learn-section .section-subtitle {
    color: var(--text-secondary) !important;
}

html.dark-theme .learn-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .learn-card:hover {
    border-color: #667eea !important;
    background: rgba(102, 126, 234, 0.08) !important;
}

html.dark-theme .learn-card h3 {
    color: #d0d0e0 !important;
}

html.dark-theme .learn-card p {
    color: #b0b0c0 !important;
}

html.dark-theme .learn-card-result {
    background: linear-gradient(135deg, #4a6cf7 0%, #6c3ce0 100%) !important;
    color: white !important;
}

html.dark-theme .learn-card-number {
    color: rgba(102, 126, 234, 0.2) !important;
}

/* Секция "Для чего это пригодится" */
html.dark-theme .why-section {
    background: var(--bg-secondary) !important;
}

html.dark-theme .why-section .section-title {
    color: #d0d0e0 !important;
}

html.dark-theme .why-section .section-subtitle {
    color: var(--text-secondary) !important;
}

html.dark-theme .why-card {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .why-card:hover {
    border-color: #667eea !important;
}

html.dark-theme .why-card h3 {
    color: #d0d0e0 !important;
}

html.dark-theme .why-card p {
    color: #b0b0c0 !important;
}

html.dark-theme .why-example {
    background: rgba(102, 126, 234, 0.1) !important;
    color: #667eea !important;
}

/* Программа курса */
html.dark-theme .program-section {
    background: var(--bg-primary) !important;
}

html.dark-theme .program-section .section-title {
    color: #d0d0e0 !important;
}

html.dark-theme .program-section .section-subtitle {
    color: var(--text-secondary) !important;
}

html.dark-theme .program-content {
    background: rgba(255, 255, 255, 0.05) !important;
}

html.dark-theme .program-content:hover {
    background: rgba(102, 126, 234, 0.08) !important;
}

html.dark-theme .program-content h3 {
    color: #d0d0e0 !important;
}

html.dark-theme .program-content p {
    color: #b0b0c0 !important;
}

html.dark-theme .program-skills span {
    background: linear-gradient(135deg, #4a6cf7 0%, #6c3ce0 100%) !important;
    color: white !important;
}

/* Секция бонусов */
html.dark-theme .bonus-section {
    background: linear-gradient(135deg, #0f3460 0%, #533483 100%) !important;
}

html.dark-theme .bonus-section .section-title {
    color: white !important;
}

html.dark-theme .bonus-card {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

html.dark-theme .bonus-card:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

html.dark-theme .bonus-card h3 {
    color: white !important;
}

html.dark-theme .bonus-card p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Секция отзывов */
html.dark-theme .testimonials-section {
    background: var(--bg-secondary) !important;
}

html.dark-theme .testimonials-section .section-title {
    color: #d0d0e0 !important;
}

html.dark-theme .testimonials-grid .testimonial-card {
    background: var(--bg-card) !important;
}

html.dark-theme .testimonials-grid .testimonial-text {
    color: #b0b0c0 !important;
}

html.dark-theme .testimonials-grid .author-info strong {
    color: #d0d0e0 !important;
}

html.dark-theme .testimonials-grid .author-info span {
    color: var(--text-muted) !important;
}

/* FAQ секция */
html.dark-theme .faq-section {
    background: var(--bg-primary) !important;
}

html.dark-theme .faq-section .section-title {
    color: #d0d0e0 !important;
}

html.dark-theme .faq-item {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .faq-question {
    color: #d0d0e0 !important;
}

html.dark-theme .faq-question:hover {
    background: var(--hover-bg) !important;
}

html.dark-theme .faq-answer {
    color: #b0b0c0 !important;
}

html.dark-theme .faq-arrow {
    color: #667eea !important;
}

/* Финальный призыв */
html.dark-theme .final-cta-section {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0f0c29 100%) !important;
}

html.dark-theme .final-cta-section h2 {
    color: white !important;
}

html.dark-theme .final-cta-section p {
    color: rgba(255, 255, 255, 0.8) !important;
}

html.dark-theme .btn-final-cta {
    background: linear-gradient(135deg, #4a6cf7 0%, #6c3ce0 100%) !important;
    color: white !important;
    box-shadow: 0 8px 30px rgba(74, 108, 247, 0.4) !important;
}

html.dark-theme .btn-final-cta:hover {
    box-shadow: 0 12px 40px rgba(74, 108, 247, 0.6) !important;
}

html.dark-theme .final-guarantee {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Секция доставки */
html.dark-theme .delivery-section {
    background: var(--bg-secondary) !important;
}

html.dark-theme .delivery-section .section-title {
    color: #d0d0e0 !important;
}

html.dark-theme .delivery-step {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 4px 15px var(--shadow-color) !important;
}

html.dark-theme .delivery-step:hover {
    border-color: #667eea !important;
}

html.dark-theme .delivery-step h3 {
    color: #d0d0e0 !important;
}

html.dark-theme .delivery-step p {
    color: #b0b0c0 !important;
}

html.dark-theme .delivery-note {
    background: rgba(102, 126, 234, 0.1) !important;
    border-color: #667eea !important;
}

html.dark-theme .delivery-note p {
    color: #d0d0e0 !important;
}

html.dark-theme .delivery-note ul li {
    color: #b0b0c0 !important;
}

/* Секция цены */
html.dark-theme .price-section {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 40%, #0f0c29 70%, #0a0a1a 100%) !important;
}

html.dark-theme .price-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html.dark-theme .price-title {
    color: #667eea !important;
}

html.dark-theme .price-subtitle {
    color: #8395a7 !important;
}

html.dark-theme .price-display {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark-theme .price-old-label {
    color: #576574 !important;
}

html.dark-theme .price-old {
    color: #576574 !important;
}

html.dark-theme .price-timer {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark-theme .timer-label span {
    color: #8395a7 !important;
}

html.dark-theme .timer-group {
    background: rgba(255, 255, 255, 0.06) !important;
}

html.dark-theme .timer-num {
    color: #667eea !important;
}

html.dark-theme .timer-unit {
    color: #576574 !important;
}

html.dark-theme .timer-dot {
    color: rgba(255, 255, 255, 0.15) !important;
}

html.dark-theme .feature-item {
    background: rgba(255, 255, 255, 0.03) !important;
}

html.dark-theme .feature-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

html.dark-theme .feature-icon-wrap {
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.2), rgba(108, 60, 224, 0.2)) !important;
}

html.dark-theme .feature-name {
    color: #667eea !important;
}

html.dark-theme .feature-desc {
    color: #576574 !important;
}

html.dark-theme .price-guarantee {
    background: rgba(39, 174, 96, 0.06) !important;
    border-color: rgba(39, 174, 96, 0.2) !important;
}

html.dark-theme .guarantee-title {
    color: #27ae60 !important;
}

html.dark-theme .guarantee-desc {
    color: #576574 !important;
}

html.dark-theme .guarantee-icon-wrap {
    background: rgba(39, 174, 96, 0.12) !important;
}

html.dark-theme .price-proof {
    background: rgba(255, 255, 255, 0.03) !important;
}

html.dark-theme .proof-value {
    color: #667eea !important;
}

html.dark-theme .proof-label {
    color: #576574 !important;
}

html.dark-theme .proof-divider {
    background: rgba(255, 255, 255, 0.08) !important;
}

html.dark-theme .payments-label {
    color: #576574 !important;
}

html.dark-theme .pay-icon {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #8395a7 !important;
}

html.dark-theme .pay-icon:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #c8d6e5 !important;
}

/* Price orb */
html.dark-theme .price-orb-1 {
    background: rgba(74, 108, 247, 0.15) !important;
}

html.dark-theme .price-orb-2 {
    background: rgba(108, 60, 224, 0.15) !important;
}

html.dark-theme .price-orb-3 {
    background: rgba(231, 76, 60, 0.08) !important;
}

/* Счетчик посетителей */
html.dark-theme .live-visitors-count {
    color: #667eea !important;
}

/* Доверительные сигналы */
html.dark-theme .trust-signals span {
    background: rgba(102, 126, 234, 0.1) !important;
    color: #667eea !important;
}

html.dark-theme .discount-badge {
    background: #c0392b !important;
    color: white !important;
}

html.dark-theme .auth-form {
    background: var(--bg-card) !important;
    color: var(--text-primary);
}

html.dark-theme .auth-form h2 {
    color: var(--text-primary);
}

html.dark-theme .auth-form .form-group label {
    color: var(--text-primary);
}

html.dark-theme .auth-form .form-group input {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

html.dark-theme .auth-form .form-group input:focus {
    border-color: #667eea;
}

html.dark-theme .auth-form .price-summary {
    background: var(--bg-secondary);
    border-color: #667eea;
}

html.dark-theme .auth-form .price-summary .price {
    color: #e74c3c;
}

html.dark-theme .auth-form .payment-info {
    background: rgba(255, 193, 7, 0.1);
    border-color: #f39c12;
}

html.dark-theme .auth-form .payment-info p {
    color: var(--text-secondary);
}

html.dark-theme .auth-form .payment-info strong {
    color: var(--text-primary);
}

html.dark-theme .auth-form .delivery-info {
    background: var(--bg-secondary);
    border-color: #667eea;
}

html.dark-theme .auth-form .delivery-info h3 {
    color: var(--text-primary);
}

html.dark-theme .auth-form .delivery-info ol li {
    color: var(--text-secondary);
}

html.dark-theme .auth-form .delivery-info .delivery-note {
    background: rgba(255, 193, 7, 0.1);
    color: #f39c12;
}

html.dark-theme .auth-form .payment-section {
    background: var(--bg-secondary);
    border-color: #667eea;
}

html.dark-theme .auth-form .payment-section h3 {
    color: var(--text-primary);
}

html.dark-theme .auth-form .payment-section p {
    color: var(--text-secondary);
}

html.dark-theme .auth-form .payment-email-input {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

html.dark-theme .auth-form .payment-email-input:focus {
    border-color: #667eea;
}

html.dark-theme .auth-form .error-message {
    color: #e74c3c;
}

/* ========== ТЕМНАЯ ТЕМА ДЛЯ ДОКУМЕНТОВ (Политика, Оферта, Соглашение, Возврат) ========== */

html.dark-theme .document-page h1 {
    color: var(--text-primary);
}

html.dark-theme .document-content {
    background: var(--bg-card);
    color: var(--text-primary);
}

html.dark-theme .document-content h2 {
    color: #667eea;
}

html.dark-theme .document-content p {
    color: var(--text-secondary);
}

html.dark-theme .document-content ul li {
    color: var(--text-secondary);
}

/* ========== ТЕМНАЯ ТЕМА ДЛЯ СТРАНИЦЫ "КАК ПОЛУЧИТЬ ДОСТУП" ========== */

html.dark-theme .delivery-steps-detailed .delivery-step {
    background: var(--bg-card);
    border-left-color: #667eea;
}

html.dark-theme .delivery-steps-detailed .delivery-step h3 {
    color: var(--text-primary);
}

html.dark-theme .delivery-steps-detailed .delivery-step p {
    color: var(--text-secondary);
}

html.dark-theme .delivery-steps-detailed .delivery-step ul li {
    color: var(--text-secondary);
}

html.dark-theme .delivery-steps-detailed .delivery-step .warning-box {
    background: rgba(255, 193, 7, 0.1);
    color: #f39c12;
    border-color: #f39c12;
}

html.dark-theme .important-notes {
    background: var(--bg-secondary);
    border-color: #667eea;
}

html.dark-theme .important-notes h3 {
    color: #667eea;
}

html.dark-theme .important-notes ul li {
    color: var(--text-secondary);
}

html.dark-theme .task-block {
    background: rgba(102, 126, 234, 0.1) !important;
    border-left: 4px solid #4a6cf7 !important;
    color: #c0c0d0 !important;
}

html.dark-theme .task-block h4 {
    color: #667eea !important;
}

html.dark-theme .task-block p {
    color: #b0b0c0 !important;
}

html.dark-theme .task-block ol {
    color: #b0b0c0 !important;
}

html.dark-theme .task-block ol li {
    color: #b0b0c0 !important;
}

html.dark-theme .task-block ol li::marker {
    color: #667eea !important;
}

html.dark-theme .task-block ul {
    color: #b0b0c0 !important;
}

html.dark-theme .task-block ul li {
    color: #b0b0c0 !important;
}

html.dark-theme .task-block ul li::marker {
    color: #667eea !important;
}

html.dark-theme .task-block strong {
    color: #e0e0f0 !important;
}

html.dark-theme .task-block code {
    color: #98c379 !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

html.dark-theme .task-block a {
    color: #667eea !important;
}

html.dark-theme .task-block a:hover {
    color: #7c8cf7 !important;
}

html.dark-theme .lf-section {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .lf-header {
    background: rgba(102, 126, 234, 0.08) !important;
    border-bottom-color: #4a6cf7 !important;
}

html.dark-theme .lf-header-text h3 {
    color: #d0d0e0 !important;
}

html.dark-theme .lf-header-text p {
    color: #a0a0b0 !important;
}

html.dark-theme .lf-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border-color) !important;
}

html.dark-theme .lf-card:hover {
    border-color: #4a6cf7 !important;
}

html.dark-theme .lf-card-name {
    color: #d0d0e0 !important;
}

html.dark-theme .lf-card-desc {
    color: #a0a0b0 !important;
}

html.dark-theme .lf-card-icon {
    background: rgba(255, 255, 255, 0.08) !important;
}

html.dark-theme .lf-card-meta {
    color: #666 !important;
}

html.dark-theme .lf-card-size {
    color: #667eea !important;
}

html.dark-theme .lf-card-type {
    color: #666 !important;
}

html.dark-theme .lf-btn-file,
html.dark-theme .lf-btn-copy {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--border-color) !important;
    color: #a0a0b0 !important;
}

html.dark-theme .lf-btn-file:hover {
    border-color: #4a6cf7 !important;
    background: rgba(74, 108, 247, 0.15) !important;
    color: #667eea !important;
}

html.dark-theme .lf-btn-copy:hover {
    border-color: #27ae60 !important;
    background: rgba(39, 174, 96, 0.15) !important;
    color: #27ae60 !important;
}

html.dark-theme .lf-folder-info {
    background: rgba(102, 126, 234, 0.08) !important;
    color: #b0b0c0 !important;
    border-top-color: rgba(102, 126, 234, 0.15) !important;
}

html.dark-theme .lf-folder-info code {
    background: rgba(102, 126, 234, 0.15) !important;
    color: #667eea !important;
}

html.dark-theme .lf-btn-download-all {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #e0e0e0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
}

html.dark-theme .lf-btn-download-all:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
}

/* Основной контейнер */
html.dark-theme .info-box {
    background: linear-gradient(135deg, #1a1a3e, #16213e) !important;
    border-color: #4a6cf7 !important;
}

html.dark-theme .info-box strong {
    color: #82aaff !important;
}

/* Все карточки внутри info-box */
html.dark-theme .info-box > div > div {
    background: #1a1a2e !important;
    border-color: #2ecc71 !important;
}

/* Заголовки h5 внутри карточек */
html.dark-theme .info-box h5 {
    color: #2ecc71 !important;
}

/* Текст p внутри карточек */
html.dark-theme .info-box p {
    color: #b0b0c0 !important;
}

/* Галочки */
html.dark-theme .info-box div[style*="font-size: 1.5em"] {
    color: #27ae60;
}

/* Иконки (эмодзи) */
html.dark-theme .info-box div[style*="font-size: 2.5em"] {
    filter: brightness(1);
}

/* Заголовок секции */
html.dark-theme .section-title-skills {
    color: #82aaff !important;
}

/* Подзаголовок */
html.dark-theme .section-subtitle-skills {
    color: #a0a0b0 !important;
}

/* Сетка навыков */
html.dark-theme .skills-grid {
    gap: 18px;
}

/* Карточка навыка */
html.dark-theme .skill-card {
    background: #1a1a2e !important;
    border: 1px solid #2a2a4a !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

html.dark-theme .skill-card::before {
    background: linear-gradient(135deg, #4a6cf7, #6c3ce0);
    opacity: 1 !important;
}

html.dark-theme .skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(74, 108, 247, 0.3);
}

/* Внутренний контент карточки */
html.dark-theme .skill-card-inner {
    background: transparent !important;
}

/* Иконка навыка */
html.dark-theme .skill-icon {
    filter: brightness(1.1);
}

/* Заголовок навыка */
html.dark-theme .skill-card h5 {
    color: #e0e0e0 !important;
}

html.dark-theme .skill-card:hover h5 {
    color: white !important;
}

/* Описание навыка */
html.dark-theme .skill-card p {
    color: #a0a0b0 !important;
}

html.dark-theme .skill-card:hover p {
    color: rgba(255,255,255,0.85) !important;
}

/* ========== ТЁМНАЯ ТЕМА ДЛЯ IDEAS-SHOWCASE (ЧТО ДАЛЬШЕ? ИДЕИ ДЛЯ РАЗВИТИЯ) ========== */

/* Заголовок секции */
html.dark-theme .section-title-ideas {
    color: #d0d0e0 !important;
}

/* Подзаголовок */
html.dark-theme .section-subtitle-ideas {
    color: #a0a0b0 !important;
}

/* Сетка идей */
html.dark-theme .ideas-grid {
    gap: 20px;
}

/* Карточка идеи */
html.dark-theme .idea-card {
    background: #1a1a2e !important;
    border: 2px solid #2a2a4a !important;
}

html.dark-theme .idea-card:hover {
    border-color: #4a6cf7 !important;
    box-shadow: 0 10px 30px rgba(74, 108, 247, 0.2);
}

/* Полоска слева у карточки */
html.dark-theme .idea-card::before {
    opacity: 1 !important;
}

/* Фоновое свечение */
html.dark-theme .idea-card::after {
    background: radial-gradient(circle, rgba(74, 108, 247, 0.1) 0%, transparent 70%);
}

/* Иконка идеи */
html.dark-theme .idea-icon {
    filter: brightness(1.1);
}

/* Заголовок идеи */
html.dark-theme .idea-card h5 {
    color: #d0d0e0 !important;
}

html.dark-theme .idea-card:hover h5 {
    background: linear-gradient(135deg, #4a6cf7, #6c3ce0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Описание идеи */
html.dark-theme .idea-card p {
    color: #a0a0b0 !important;
}

/* Код внутри описания */
html.dark-theme .idea-card p code {
    background: #2a2a4a !important;
    color: #82aaff !important;
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ПОХОЖИХ БЛОКОВ ========== */

/* Roadmap блок */
html.dark-theme .roadmap-box {
    background: linear-gradient(135deg, #0a0a1a, #1a1a2e) !important;
}

html.dark-theme .roadmap-box h4 {
    color: #e0e0e0 !important;
}

html.dark-theme .roadmap-box > p {
    color: rgba(255,255,255,0.7) !important;
}

/* Элементы Roadmap */
html.dark-theme .roadmap-content {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
}

html.dark-theme .roadmap-content h5 {
    color: white !important;
}

html.dark-theme .roadmap-content p {
    color: rgba(255,255,255,0.7) !important;
}

html.dark-theme .roadmap-content ul li {
    color: rgba(255,255,255,0.7) !important;
}

/* Ресурсы */
html.dark-theme .resources-box {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
}

html.dark-theme .resources-box h5 {
    color: #f7c948 !important;
}

html.dark-theme .resources-box ul li {
    color: rgba(255,255,255,0.8) !important;
}

html.dark-theme .resources-box ul li strong {
    color: #667eea !important;
}

/* ========== АНИМАЦИИ ПОЯВЛЕНИЯ (ОСТАЮТСЯ БЕЗ ИЗМЕНЕНИЙ) ========== */
@keyframes skillCardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

/* Заголовки страниц */
html.dark-theme .admin-header h1 {
    color: #e0e0e0 !important;
}

/* Кнопки навигации */
html.dark-theme .admin-nav .btn-secondary {
    background: rgba(255,255,255,0.1) !important;
    color: #e0e0e0 !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}

html.dark-theme .admin-nav .btn-secondary:hover {
    background: rgba(255,255,255,0.2) !important;
}

/* ========== СТАТИСТИКА (stats-cards, stat-card) ========== */

html.dark-theme .stats-cards .stat-card {
    background: #1a1a2e !important;
    border: 1px solid #2a2a4a !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

html.dark-theme .stat-card .stat-number {
    color: #82aaff !important;
}

html.dark-theme .stat-card .stat-label {
    color: #a0a0b0 !important;
}

html.dark-theme .stat-card.primary { border-left: 4px solid #4a6cf7 !important; }
html.dark-theme .stat-card.success { border-left: 4px solid #27ae60 !important; }
html.dark-theme .stat-card.warning { border-left: 4px solid #f39c12 !important; }
html.dark-theme .stat-card.danger { border-left: 4px solid #e74c3c !important; }

/* ========== ADMIN-SECTION ========== */

html.dark-theme .admin-section {
    background: #16213e !important;
    border: 1px solid #2a2a4a !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

html.dark-theme .admin-section h3 {
    color: #d0d0e0 !important;
}

html.dark-theme .section-header h3 {
    color: #d0d0e0 !important;
}

html.dark-theme .section-desc {
    color: #a0a0b0 !important;
}

html.dark-theme .section-desc code {
    background: #2a2a4a !important;
    color: #82aaff !important;
}

/* ========== БЫСТРЫЕ ДЕЙСТВИЯ (quick-actions, action-card) ========== */

html.dark-theme .quick-actions {
    background: #16213e !important;
    border: 1px solid #2a2a4a !important;
}

html.dark-theme .quick-actions h3 {
    color: #d0d0e0 !important;
}

html.dark-theme .action-card {
    background: #1a1a2e !important;
    border: 2px solid transparent !important;
}

html.dark-theme .action-card:hover {
    border-color: #4a6cf7 !important;
    background: #1a1a3e !important;
}

html.dark-theme .action-title {
    color: #d0d0e0 !important;
}

html.dark-theme .action-desc {
    color: #a0a0b0 !important;
}

/* ========== ПОСЛЕДНИЕ РЕГИСТРАЦИИ (recent-registrations) ========== */

html.dark-theme .recent-registrations {
    background: #16213e !important;
    border: 1px solid #2a2a4a !important;
}

html.dark-theme .recent-registrations h3 {
    color: #d0d0e0 !important;
}

/* ========== ТАБЛИЦЫ (admin-table) ========== */

html.dark-theme .admin-table {
    background: transparent !important;
}

html.dark-theme .admin-table thead th {
    background: #1a1a3e !important;
    color: #d0d0e0 !important;
    border-bottom: 2px solid #4a6cf7 !important;
}

html.dark-theme .admin-table tbody td {
    color: #b0b0c0 !important;
    border-bottom: 1px solid #2a2a4a !important;
}

html.dark-theme .admin-table tbody tr:hover {
    background: #1a1a3e !important;
}

html.dark-theme .admin-table code {
    background: #2a2a4a !important;
    color: #82aaff !important;
}

html.dark-theme .no-data {
    color: #666 !important;
}

/* ========== СТРАНИЦА УПРАВЛЕНИЯ КОММЕНТАРИЯМИ ========== */

html.dark-theme .admin-comments-page .page-header h1 {
    color: #e0e0e0 !important;
}

html.dark-theme .filters .filter-btn {
    background: #1a1a2e !important;
    color: #a0a0b0 !important;
    border-color: #2a2a4a !important;
}

html.dark-theme .filters .filter-btn:hover {
    border-color: #4a6cf7 !important;
}

html.dark-theme .filters .filter-btn.active {
    background: linear-gradient(135deg, #4a6cf7, #6c3ce0) !important;
    color: white !important;
}

html.dark-theme .comment-admin-card {
    background: #16213e !important;
    border: 1px solid #2a2a4a !important;
}

html.dark-theme .comment-author-info strong {
    color: #d0d0e0 !important;
}

html.dark-theme .comment-email {
    color: #666 !important;
}

html.dark-theme .comment-day {
    color: #82aaff !important;
}

html.dark-theme .comment-date {
    color: #666 !important;
}

html.dark-theme .comment-admin-body {
    background: #1a1a2e !important;
}

html.dark-theme .comment-admin-body p {
    color: #b0b0c0 !important;
}

html.dark-theme .reject-form {
    background: rgba(231, 76, 60, 0.1) !important;
}

html.dark-theme .reject-form textarea {
    background: #1a1a2e !important;
    color: #e0e0e0 !important;
    border-color: #e74c3c !important;
}

html.dark-theme .rejection-reason {
    background: rgba(243, 156, 18, 0.1) !important;
    color: #f39c12 !important;
}

html.dark-theme .pagination .page-btn {
    background: #1a1a2e !important;
    color: #a0a0b0 !important;
}

html.dark-theme .pagination .page-btn:hover {
    background: #1a1a3e !important;
}

html.dark-theme .pagination .page-btn.active {
    background: #4a6cf7 !important;
    color: white !important;
}

/* ========== СТРАНИЦА УПРАВЛЕНИЯ КОДАМИ ОПЛАТЫ ========== */

html.dark-theme .codes-table-container {
    background: #16213e !important;
    border: 1px solid #2a2a4a !important;
}

html.dark-theme .codes-table-container h3 {
    color: #d0d0e0 !important;
}

html.dark-theme .table-controls .form-input {
    background: #1a1a2e !important;
    color: #e0e0e0 !important;
    border-color: #2a2a4a !important;
}

html.dark-theme .codes-table thead th {
    background: #1a1a3e !important;
    color: #d0d0e0 !important;
    border-bottom: 2px solid #4a6cf7 !important;
}

html.dark-theme .codes-table tbody td {
    color: #b0b0c0 !important;
    border-bottom: 1px solid #2a2a4a !important;
}

html.dark-theme .codes-table tbody tr:hover {
    background: #1a1a3e !important;
}

html.dark-theme .code-value {
    color: #82aaff !important;
}

html.dark-theme .status-badge.available {
    background: rgba(39, 174, 96, 0.2) !important;
    color: #27ae60 !important;
}

html.dark-theme .status-badge.used {
    background: rgba(231, 76, 60, 0.2) !important;
    color: #e74c3c !important;
}

html.dark-theme .generation-result {
    background: #1a1a3e !important;
    border-color: #4a6cf7 !important;
}

html.dark-theme .new-codes code {
    background: #1a1a2e !important;
    color: #82aaff !important;
    border-color: #4a6cf7 !important;
}

/* ========== СТРАНИЦА УПРАВЛЕНИЯ ПОЛЬЗОВАТЕЛЯМИ ========== */

html.dark-theme .admin-users-page .page-header h1 {
    color: #e0e0e0 !important;
}

html.dark-theme .users-stats .stat-item {
    background: #16213e !important;
    border: 1px solid #2a2a4a !important;
}

html.dark-theme .users-stats .stat-value {
    color: #82aaff !important;
}

html.dark-theme .users-stats .stat-label {
    color: #a0a0b0 !important;
}

html.dark-theme .search-input {
    background: #1a1a2e !important;
    color: #e0e0e0 !important;
    border-color: #2a2a4a !important;
}

html.dark-theme .table-container {
    background: #16213e !important;
    border: 1px solid #2a2a4a !important;
}

html.dark-theme .users-table thead th {
    background: #1a1a3e !important;
    color: #d0d0e0 !important;
    border-bottom: 2px solid #4a6cf7 !important;
}

html.dark-theme .users-table tbody td {
    color: #b0b0c0 !important;
    border-bottom: 1px solid #2a2a4a !important;
}

html.dark-theme .users-table tbody tr:hover {
    background: #1a1a3e !important;
}

html.dark-theme .badge-success { background: rgba(39, 174, 96, 0.2) !important; color: #27ae60 !important; }
html.dark-theme .badge-info { background: rgba(52, 152, 219, 0.2) !important; color: #3498db !important; }
html.dark-theme .badge-admin { background: rgba(243, 156, 18, 0.2) !important; color: #f39c12 !important; }
html.dark-theme .badge-user { background: rgba(149, 165, 166, 0.2) !important; color: #95a5a6 !important; }

/* ========== ДЕТАЛЬНАЯ СТАТИСТИКА (statsModal) ========== */

html.dark-theme #statsModal .modal-content {
    background: #16213e !important;
}

html.dark-theme #statsModal .modal-header h3 {
    color: #d0d0e0 !important;
}

html.dark-theme #statsModal .modal-header {
    border-bottom-color: #4a6cf7 !important;
}

html.dark-theme .stats-section h4 {
    color: #d0d0e0 !important;
}

html.dark-theme .day-stat .day-label {
    color: #a0a0b0 !important;
}

html.dark-theme .day-stat .day-count {
    color: #a0a0b0 !important;
}

html.dark-theme .test-stat {
    background: #1a1a2e !important;
}

html.dark-theme .test-stat span:first-child {
    color: #82aaff !important;
}

html.dark-theme .total-stat {
    background: #1a1a2e !important;
}

html.dark-theme .total-stat strong {
    color: #82aaff !important;
}

/* ========== КОНСОЛЬ ДЕЙСТВИЙ ========== */

html.dark-theme .console-section {
    border-color: #4a6cf7 !important;
}

html.dark-theme .console-item {
    background: rgba(255,255,255,0.03) !important;
}

html.dark-theme .console-item-text {
    color: #c0c0d0 !important;
}

html.dark-theme .console-item-user {
    color: #82aaff !important;
}

html.dark-theme .console-item-time {
    color: #666 !important;
}

/* ========== ФОРМЫ ========== */

html.dark-theme .form-input {
    background: #1a1a2e !important;
    color: #e0e0e0 !important;
    border-color: #2a2a4a !important;
}

html.dark-theme .form-input:focus {
    border-color: #4a6cf7 !important;
}

html.dark-theme .form-group label {
    color: #d0d0e0 !important;
}

html.dark-theme .form-hint {
    color: #666 !important;
}

/* ========== ПАГИНАЦИЯ ========== */

html.dark-theme .page-info {
    color: #a0a0b0 !important;
}

html.dark-theme .pagination-footer {
    border-top-color: #2a2a4a !important;
}

/* ========== СТРАНИЦА РЕДАКТИРОВАНИЯ ПОЛЬЗОВАТЕЛЯ ========== */

html.dark-theme .edit-user-page .page-header h1 {
    color: #e0e0e0 !important;
}

html.dark-theme .edit-user-card {
    background: #16213e !important;
    border: 1px solid #2a2a4a !important;
}

html.dark-theme .user-info-header {
    border-bottom-color: #2a2a4a !important;
}

html.dark-theme .user-info-header h2 {
    color: #d0d0e0 !important;
}

html.dark-theme .user-email {
    color: #a0a0b0 !important;
}

html.dark-theme .user-id {
    color: #666 !important;
}

html.dark-theme .status-info {
    background: #1a1a2e !important;
}

html.dark-theme .status-label {
    color: #a0a0b0 !important;
}

html.dark-theme .status-value {
    color: #d0d0e0 !important;
}

html.dark-theme .form-actions {
    border-top-color: #2a2a4a !important;
}

/* ========== МОДАЛЬНЫЕ ОКНА ========== */

html.dark-theme .modal-content {
    background: #16213e !important;
}

html.dark-theme .modal-content h3 {
    color: #d0d0e0 !important;
}

html.dark-theme .modal-content p {
    color: #a0a0b0 !important;
}

html.dark-theme .restart-info {
    background: #1a1a2e !important;
}

html.dark-theme .restart-info code {
    background: #2a2a4a !important;
    color: #82aaff !important;
}

/* ========== CHANGELOG ========== */

html.dark-theme .changelog-item {
    background: #1a1a2e !important;
    border-left-color: #4a6cf7 !important;
}

html.dark-theme .changelog-header {
    border-bottom-color: #2a2a4a !important;
}

html.dark-theme .changelog-date {
    color: #666 !important;
}

html.dark-theme .changelog-author {
    color: #a0a0b0 !important;
}

html.dark-theme .changelog-section {
    background: #16213e !important;
}

html.dark-theme .section-content {
    color: #b0b0c0 !important;
}

html.dark-theme .admin-actions {
    background: #16213e !important;
    border: 1px solid #2a2a4a !important;
}

html.dark-theme .admin-actions h3 {
    color: #d0d0e0 !important;
}

/* Форма генерации */
html.dark-theme .generate-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

html.dark-theme .generate-form .form-input {
    background: #1a1a2e !important;
    color: #e0e0e0 !important;
    border-color: #2a2a4a !important;
}

html.dark-theme .generate-form .form-input:focus {
    border-color: #4a6cf7 !important;
}

/* Результат генерации */
html.dark-theme .generation-result {
    background: #1a1a3e !important;
    border: 2px solid #4a6cf7 !important;
}

html.dark-theme .generation-result .success-message {
    color: #b0b0c0 !important;
}

html.dark-theme .generation-result .success-message strong {
    color: #27ae60 !important;
}

html.dark-theme .new-codes code {
    background: #1a1a2e !important;
    color: #82aaff !important;
    border: 1px solid #4a6cf7 !important;
}

/* Кнопки действий */
html.dark-theme .admin-actions .btn-primary {
    background: linear-gradient(135deg, #4a6cf7, #6c3ce0) !important;
    color: white !important;
}

html.dark-theme .admin-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.4);
}

/* Секция с кодами оплаты */
html.dark-theme .codes-table-container {
    background: #16213e !important;
    border: 1px solid #2a2a4a !important;
}

html.dark-theme .codes-table-container h3 {
    color: #d0d0e0 !important;
}

/* Поиск */
html.dark-theme .table-controls .form-input {
    background: #1a1a2e !important;
    color: #e0e0e0 !important;
    border-color: #2a2a4a !important;
}

html.dark-theme .table-controls .form-input:focus {
    border-color: #4a6cf7 !important;
}

/* Таблица кодов */
html.dark-theme .codes-table thead th {
    background: #1a1a3e !important;
    color: #d0d0e0 !important;
    border-bottom: 2px solid #4a6cf7 !important;
}

html.dark-theme .codes-table tbody td {
    color: #b0b0c0 !important;
    border-bottom: 1px solid #2a2a4a !important;
}

html.dark-theme .codes-table tbody tr:hover {
    background: #1a1a3e !important;
}

html.dark-theme .codes-table tbody tr.used {
    opacity: 0.6;
}

html.dark-theme .code-value {
    color: #82aaff !important;
    font-family: monospace;
}

/* Статусы */
html.dark-theme .status-badge.available {
    background: rgba(39, 174, 96, 0.2) !important;
    color: #27ae60 !important;
}

html.dark-theme .status-badge.used {
    background: rgba(231, 76, 60, 0.2) !important;
    color: #e74c3c !important;
}

/* Кнопки в таблице */
html.dark-theme .btn-danger {
    background: #e74c3c !important;
    color: white !important;
    border: none;
}

html.dark-theme .btn-danger:hover {
    background: #c0392b !important;
}

html.dark-theme .btn-small {
    padding: 5px 10px;
    font-size: 0.85em;
}

html.dark-theme .btn-secondary {
    background: rgba(255,255,255,0.1) !important;
    color: #e0e0e0 !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}

html.dark-theme .btn-secondary:hover {
    background: rgba(255,255,255,0.2) !important;
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ АККАУНТОВ DEEPSEEK ========== */

html.dark-theme .admin-page .admin-section {
    background: #16213e !important;
    border: 1px solid #2a2a4a !important;
}

html.dark-theme .simple-form .form-group input,
html.dark-theme .bulk-form textarea {
    background: #1a1a2e !important;
    color: #e0e0e0 !important;
    border-color: #2a2a4a !important;
}

html.dark-theme .simple-form .form-group input:focus,
html.dark-theme .bulk-form textarea:focus {
    border-color: #4a6cf7 !important;
}

html.dark-theme .bulk-form textarea {
    font-family: monospace;
}

/* ========== СТИЛИ ДЛЯ СТРАНИЦЫ РЕДАКТИРОВАНИЯ ПОЛЬЗОВАТЕЛЯ ========== */

html.dark-theme .edit-user-card {
    background: #16213e !important;
    border: 1px solid #2a2a4a !important;
}

html.dark-theme .edit-user-card .form-group label {
    color: #d0d0e0 !important;
}

html.dark-theme .edit-user-card .form-group input {
    background: #1a1a2e !important;
    color: #e0e0e0 !important;
    border-color: #2a2a4a !important;
}

html.dark-theme .edit-user-card .form-group input:focus {
    border-color: #4a6cf7 !important;
}

html.dark-theme .edit-user-card .form-group input.error {
    border-color: #e74c3c !important;
}

html.dark-theme .error-message {
    color: #e74c3c !important;
}

html.dark-theme .form-result.success {
    background: rgba(39, 174, 96, 0.2) !important;
    color: #27ae60 !important;
    border-color: rgba(39, 174, 96, 0.3) !important;
}

html.dark-theme .form-result.error {
    background: rgba(231, 76, 60, 0.2) !important;
    color: #e74c3c !important;
    border-color: rgba(231, 76, 60, 0.3) !important;
}

/* ========== СТИЛИ ДЛЯ КОНСОЛИ ДЕЙСТВИЙ ========== */

html.dark-theme .console-section {
    border: 2px solid #4a6cf7 !important;
    background: #0f0f23 !important;
}

html.dark-theme .console-section h3 {
    color: #ecf0f1 !important;
}

html.dark-theme .console-controls .btn-secondary {
    background: rgba(255,255,255,0.1) !important;
    color: #ecf0f1 !important;
    border-color: rgba(255,255,255,0.2) !important;
}

html.dark-theme .console-controls .btn-secondary:hover {
    background: rgba(255,255,255,0.2) !important;
}

html.dark-theme .auto-refresh-badge {
    color: #27ae60 !important;
}

html.dark-theme .console-container {
    background: rgba(255,255,255,0.03) !important;
}

html.dark-theme .console-item {
    background: rgba(255,255,255,0.05) !important;
    border-left: 3px solid #4a6cf7 !important;
}

html.dark-theme .console-item:hover {
    background: rgba(255,255,255,0.08) !important;
}

html.dark-theme .console-item-text {
    color: #ecf0f1 !important;
}

html.dark-theme .console-item-user {
    color: #82aaff !important;
}

html.dark-theme .console-item-time {
    color: #666 !important;
}

html.dark-theme .console-footer {
    border-top-color: rgba(255,255,255,0.1) !important;
}

html.dark-theme .console-total {
    color: #666 !important;
}

/* ========== СТИЛИ ДЛЯ ПАГИНАЦИИ ========== */

html.dark-theme .pagination-controls .btn-secondary {
    background: rgba(255,255,255,0.1) !important;
    color: #e0e0e0 !important;
    border-color: rgba(255,255,255,0.2) !important;
}

html.dark-theme .pagination-controls .btn-secondary:hover {
    background: rgba(255,255,255,0.2) !important;
}

html.dark-theme .pagination-controls .btn-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

html.dark-theme .page-info {
    color: #a0a0b0 !important;
}

html.dark-theme .pagination-footer {
    border-top-color: #2a2a4a !important;
}

html.dark-theme .extensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

/* Карточка расширения */
html.dark-theme .extension-card {
    background: #1a1a2e !important;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent !important;
    transition: all 0.3s ease;
}

html.dark-theme .extension-card:hover {
    border-color: #4a6cf7 !important;
    background: #1a1a3e !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.2);
}

/* Иконка в карточке */
html.dark-theme .extension-card div[style*="font-size: 2.5em"] {
    font-size: 2.5em;
    margin-bottom: 10px;
    filter: brightness(1.1);
}

/* Заголовок карточки */
html.dark-theme .extension-card h5 {
    color: #82aaff !important;
    margin-bottom: 5px;
    font-size: 1em;
}

/* Описание под заголовком (от Microsoft) */
html.dark-theme .extension-card p[style*="color: #666"] {
    color: #a0a0b0 !important;
    font-size: 0.9em;
}

/* Описание карточки */
html.dark-theme .extension-card p[style*="color: #888"] {
    color: #888 !important;
    font-size: 0.85em;
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ПОХОЖИХ ЭЛЕМЕНТОВ ========== */

/* Сетка концепций (если используется) */
html.dark-theme .concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

html.dark-theme .concept-card {
    background: #1a1a2e !important;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #2a2a4a !important;
    transition: all 0.3s ease;
}

html.dark-theme .concept-card:hover {
    border-color: #4a6cf7 !important;
    background: #1a1a3e !important;
}

html.dark-theme .concept-card h5 {
    color: #82aaff !important;
    margin-bottom: 5px;
}

html.dark-theme .concept-card p {
    color: #a0a0b0 !important;
    font-size: 0.85em;
}

/* ========== УНИВЕРСАЛЬНЫЕ СТИЛИ ДЛЯ КАРТОЧЕК ========== */

/* Если карточки имеют другие классы или inline-стили */
html.dark-theme div[style*="background: #f8f9fa"] {
    background: #1a1a2e !important;
}

html.dark-theme div[style*="background: #f8f9fa; padding: 20px"] {
    background: #1a1a2e !important;
    border: 1px solid #2a2a4a !important;
}

html.dark-theme div[style*="border-radius: 12px; text-align: center"] {
    border-color: #2a2a4a !important;
}

html.dark-theme div[style*="border: 2px solid transparent"] {
    border-color: transparent !important;
}

html.dark-theme div[style*="border: 2px solid transparent"]:hover {
    border-color: #4a6cf7 !important;
}

/* Основной контейнер preview-card */
html.dark-theme .preview-card {
    background: linear-gradient(135deg, #1a1a3e, #16213e) !important;
    color: white !important;
    padding: 25px !important;
    border-radius: 16px !important;
    margin: 25px 0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Заголовок h4 */
html.dark-theme .preview-card h4 {
    color: #82aaff !important;
    margin-bottom: 15px !important;
    font-size: 1.3em !important;
}

/* Заголовок h5 */
html.dark-theme .preview-card h5 {
    color: rgba(255,255,255,0.9) !important;
    margin-bottom: 10px !important;
    font-size: 1.1em !important;
}

/* Текст p */
html.dark-theme .preview-card p {
    color: rgba(255,255,255,0.8) !important;
    line-height: 1.6 !important;
    margin-bottom: 15px !important;
}

/* Сетка внутри preview-card */
html.dark-theme .preview-card div[style*="display: grid"] {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 10px !important;
}

/* Каждый элемент внутри сетки */
html.dark-theme .preview-card div[style*="background: rgba(255,255,255,0.15)"] {
    background: rgba(255,255,255,0.1) !important;
    padding: 12px !important;
    border-radius: 8px !important;
    text-align: center !important;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

html.dark-theme .preview-card div[style*="background: rgba(255,255,255,0.15)"]:hover {
    background: rgba(255,255,255,0.15) !important;
    transform: translateY(-2px);
}

/* Иконка внутри элемента сетки */
html.dark-theme .preview-card div[style*="font-size: 1.5em"] {
    font-size: 1.5em !important;
    margin-bottom: 5px !important;
    filter: brightness(1.1);
}

/* Текст внутри элемента сетки */
html.dark-theme .preview-card div[style*="font-size: 0.9em"] {
    font-size: 0.9em !important;
    margin-top: 5px !important;
    color: rgba(255,255,255,0.85) !important;
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ПОХОЖИХ БЛОКОВ ========== */

/* Если есть блоки с похожей структурой */
html.dark-theme .preview-card .preview-item {
    background: rgba(255,255,255,0.1) !important;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

html.dark-theme .preview-card .preview-item:hover {
    background: rgba(255,255,255,0.15) !important;
}

html.dark-theme .preview-card .preview-icon {
    font-size: 1.5em;
    margin-bottom: 5px;
}

html.dark-theme .preview-card .preview-text {
    font-size: 0.9em;
    color: rgba(255,255,255,0.85);
}

/* ========== УНИВЕРСАЛЬНЫЕ СТИЛИ ========== */

/* Если preview-card использует inline-стили */
html.dark-theme div[style*="background: linear-gradient(135deg, #667eea, #764ba2)"] {
    background: linear-gradient(135deg, #1a1a3e, #16213e) !important;
    color: white !important;
}

html.dark-theme div[style*="background: linear-gradient(135deg, #667eea, #764ba2); color: white"] {
    background: linear-gradient(135deg, #1a1a3e, #16213e) !important;
}

/* Заголовки внутри такого блока */
html.dark-theme div[style*="background: linear-gradient(135deg, #667eea, #764ba2)"] h4,
html.dark-theme div[style*="background: linear-gradient(135deg, #667eea, #764ba2)"] h5 {
    color: #82aaff !important;
}

html.dark-theme div[style*="background: linear-gradient(135deg, #667eea, #764ba2)"] p {
    color: rgba(255,255,255,0.8) !important;
}

/* Основной контейнер */
html.dark-theme .example-box {
    background: #1e1e3e !important;
    border-left: 4px solid #667eea !important;
    padding: 20px !important;
    border-radius: 10px !important;
    margin: 20px 0 !important;
}

/* Заголовок h4 */
html.dark-theme .example-box h4 {
    color: #9ab0ff !important;
    margin-bottom: 15px !important;
    font-size: 1.1em !important;
}

/* Текст p */
html.dark-theme .example-box p {
    color: #e0e0e0 !important;
    line-height: 1.7 !important;
    margin-bottom: 10px !important;
    font-size: 1em !important;
}

/* Сильный текст strong */
html.dark-theme .example-box strong {
    color: #ffffff !important;
}

/* Код code внутри example-box */
html.dark-theme .example-box code {
    color: #a8d8a8 !important;
    background: rgba(255,255,255,0.08) !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Ссылки a */
html.dark-theme .example-box a {
    color: #82aaff !important;
    text-decoration: underline;
}

html.dark-theme .example-box a:hover {
    color: #b0c4ff !important;
}

/* Списки ul, ol */
html.dark-theme .example-box ul,
html.dark-theme .example-box ol {
    color: #e0e0e0 !important;
    padding-left: 20px;
    margin: 10px 0;
}

html.dark-theme .example-box li {
    color: #e0e0e0 !important;
    margin-bottom: 5px;
    line-height: 1.6;
}

/* Таблицы внутри example-box */
html.dark-theme .example-box table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    color: #e0e0e0;
}

html.dark-theme .example-box table th {
    background: #2a2a4a !important;
    color: #ffffff !important;
    padding: 10px;
    border: 1px solid #3a3a5a !important;
    font-weight: 600;
}

html.dark-theme .example-box table td {
    color: #e0e0e0 !important;
    padding: 10px;
    border: 1px solid #3a3a5a !important;
}

html.dark-theme .example-box table tr:nth-child(even) {
    background: rgba(255,255,255,0.03) !important;
}

html.dark-theme .example-box table tr:hover {
    background: rgba(255,255,255,0.06) !important;
}

/* Блоки кода внутри example-box */
html.dark-theme .example-box .code-block {
    background: #0d0d1a !important;
    border: 1px solid #2a2a4a !important;
    margin: 10px 0;
    border-radius: 8px;
}

html.dark-theme .example-box .code-block pre {
    color: #d4d4d4 !important;
}

html.dark-theme .example-box .code-block code {
    color: #d4d4d4 !important;
    background: transparent !important;
}

/* Warning box внутри example-box */
html.dark-theme .example-box .warning-box {
    background: rgba(243, 156, 18, 0.12) !important;
    border-left: 4px solid #f39c12 !important;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

html.dark-theme .example-box .warning-box h4 {
    color: #f7c948 !important;
}

html.dark-theme .example-box .warning-box p {
    color: #e0e0e0 !important;
}

html.dark-theme .example-box .warning-box strong {
    color: #ffffff !important;
}

/* Info box внутри example-box */
html.dark-theme .example-box .info-box {
    background: rgba(74, 108, 247, 0.12) !important;
    border-left: 4px solid #667eea !important;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

html.dark-theme .example-box .info-box strong {
    color: #9ab0ff !important;
}

html.dark-theme .example-box .info-box p {
    color: #e0e0e0 !important;
}

html.dark-theme .example-box .info-box ul li {
    color: #e0e0e0 !important;
}

/* Div внутри example-box (для дополнительных блоков) */
html.dark-theme .example-box div[style*="margin-top: 10px"] {
    color: #e0e0e0 !important;
}

html.dark-theme .example-box div[style*="margin-top: 10px"] strong {
    color: #ffffff !important;
}

/* ========== ЕСЛИ EXAMPLE-BOX ИСПОЛЬЗУЕТ INLINE-СТИЛИ ========== */

html.dark-theme div[style*="background: #f0f4ff; border-left: 4px solid #667eea"] {
    background: #1e1e3e !important;
    border-left-color: #667eea !important;
}

html.dark-theme div[style*="background: #f0f4ff; border-left: 4px solid #667eea"] h4 {
    color: #9ab0ff !important;
}

html.dark-theme div[style*="background: #f0f4ff; border-left: 4px solid #667eea"] p {
    color: #e0e0e0 !important;
}

html.dark-theme div[style*="background: #f0f4ff; border-left: 4px solid #667eea"] strong {
    color: #ffffff !important;
}

html.dark-theme div[style*="background: #f0f4ff; border-left: 4px solid #667eea"] code {
    color: #a8d8a8 !important;
    background: rgba(255,255,255,0.08) !important;
}

html.dark-theme div[style*="background: #f0f4ff; border-left: 4px solid #667eea"] li {
    color: #e0e0e0 !important;
}

html.dark-theme .stats-section-title {
    color: #d0d0e0 !important
}

html.dark-theme .quick-actions-title {
    color: #d0d0e0 !important
}

html.dark-theme .stat-card-value {
    color: #ffffff;
}

html.dark-theme .stat-card-label {
    color: #ffffff;
}

/* ========== Main & Footer Display Fix ========== */
main {
    flex: 1;
    display: block;
}

/* Ensure footer is always visible */
.modern-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}