.learning-tip {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
    border-left: 4px solid #f72585;
}

.learning-tip strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.next-article-recommendation {
    background: var(--gray-100);
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 3rem 0 1rem 0;
    box-shadow: var(--shadow-sm);
}

.next-article-recommendation h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.next-article-recommendation p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.next-article-recommendation strong {
    color: var(--secondary);
    font-weight: 700;
}

/* Бегущая строка */
.ticker {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    width: 100%;
    z-index: 999;
}

.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-content span {
    padding-right: 50px;
    flex-shrink: 0;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

/* Остальные существующие стили остаются без изменений */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --accent: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4cc9f0;
    --warning: #ffd166;
    --danger: #ef476f;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-100);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Современный хедер с лампочкой-логотипом */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    position: relative;
}

    .logo::before {
        content: '';
        display: inline-block;
        width: 32px;
        height: 32px;
        background: var(--gradient);
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21c0 1.105 1.343 2 3 2s3-.895 3-2M12 22c1.105 0 3-.895 3-2 0-1.105-1.343-2-3-2s-3 .895-3 2c0 1.105 1.343 2 3 2zM12 22V11M9.5 4.5A6.5 6.5 0 0 1 12 2c1.5 0 3 .5 4 1.5s1.5 2 1.5 3.5c0 2.5-1.5 5-4.5 6.5H9.5C6.5 13 5 10.5 5 8c0-1.5.5-2.5 1.5-3.5S9 4 10.5 4c.5 0 1 0 1.5.5'%3E%3C/path%3E%3C/svg%3E");
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21c0 1.105 1.343 2 3 2s3-.895 3-2M12 22c1.105 0 3-.895 3-2 0-1.105-1.343-2-3-2s-3 .895-3 2c0 1.105 1.343 2 3 2zM12 22V11M9.5 4.5A6.5 6.5 0 0 1 12 2c1.5 0 3 .5 4 1.5s1.5 2 1.5 3.5c0 2.5-1.5 5-4.5 6.5H9.5C6.5 13 5 10.5 5 8c0-1.5.5-2.5 1.5-3.5S9 4 10.5 4c.5 0 1 0 1.5.5'%3E%3C/path%3E%3C/svg%3E");
        mask-repeat: no-repeat;
        -webkit-mask-repeat: no-repeat;
        mask-position: center;
        -webkit-mask-position: center;
        margin-right: 10px;
    }

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-item {
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
    overflow: hidden;
}

    .nav-item::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--gradient);
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .nav-item:hover {
        color: var(--primary);
    }

        .nav-item:hover::before {
            transform: translateX(0);
        }

    .nav-item.active {
        color: var(--primary);
        background: rgba(67, 97, 238, 0.1);
    }

        .nav-item.active::before {
            transform: translateX(0);
        }

.auth-btn {
    background: var(--gradient);
    color: white !important;
    box-shadow: var(--shadow-md);
}

    .auth-btn::before {
        display: none;
    }

    .auth-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

/* Контейнер для кнопок навигации */
.nav-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Кнопка настроек */
.settings-btn {
    padding: 0.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Иконки */
.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
}

.search-icon {
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.settings-icon {
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M19.4 15C19.2669 15.3 19.2 15.6 19.2 16C19.2 16.4 19.2669 16.7 19.4 17C19.5331 17.3 19.7331 17.5 20 17.7C20.2669 17.9 20.5669 18 20.9 18C21.2331 18 21.5 17.9 21.7 17.7L22.5 16.9C22.7 16.7 22.8 16.4 22.8 16.1C22.8 15.8 22.7 15.5 22.5 15.3L21.7 14.5C21.5 14.3 21.2331 14.2 20.9 14.2C20.5669 14.2 20.2669 14.3 20 14.5C19.7331 14.7 19.5331 14.9 19.4 15.2' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M2.5 9.5L3.3 8.7C3.5 8.5 3.76687 8.4 4.1 8.4C4.43313 8.4 4.73313 8.5 5 8.7C5.26687 8.9 5.46687 9.1 5.6 9.4C5.73313 9.7 5.8 10 5.8 10.4C5.8 10.8 5.73313 11.1 5.6 11.4' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4.6 4.6L5.4 5.4C5.6 5.6 5.9 5.7 6.2 5.7C6.5 5.7 6.8 5.6 7 5.4L7.8 4.6C8 4.4 8.1 4.1 8.1 3.8C8.1 3.5 8 3.2 7.8 3L7 2.2C6.8 2 6.5 1.9 6.2 1.9C5.9 1.9 5.6 2 5.4 2.2L4.6 3C4.4 3.2 4.3 3.5 4.3 3.8C4.3 4.1 4.4 4.4 4.6 4.6Z' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M17.4 19.4L18.2 18.6C18.4 18.4 18.7 18.3 19 18.3C19.3 18.3 19.6 18.4 19.8 18.6L20.6 19.4C20.8 19.6 20.9 19.9 20.9 20.2C20.9 20.5 20.8 20.8 20.6 21L19.8 21.8C19.6 22 19.3 22.1 19 22.1C18.7 22.1 18.4 22 18.2 21.8L17.4 21C17.2 20.8 17.1 20.5 17.1 20.2C17.1 19.9 17.2 19.6 17.4 19.4Z' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M19.4 15C19.2669 15.3 19.2 15.6 19.2 16C19.2 16.4 19.2669 16.7 19.4 17C19.5331 17.3 19.7331 17.5 20 17.7C20.2669 17.9 20.5669 18 20.9 18C21.2331 18 21.5 17.9 21.7 17.7L22.5 16.9C22.7 16.7 22.8 16.4 22.8 16.1C22.8 15.8 22.7 15.5 22.5 15.3L21.7 14.5C21.5 14.3 21.2331 14.2 20.9 14.2C20.5669 14.2 20.2669 14.3 20 14.5C19.7331 14.7 19.5331 14.9 19.4 15.2' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M2.5 9.5L3.3 8.7C3.5 8.5 3.76687 8.4 4.1 8.4C4.43313 8.4 4.73313 8.5 5 8.7C5.26687 8.9 5.46687 9.1 5.6 9.4C5.73313 9.7 5.8 10 5.8 10.4C5.8 10.8 5.73313 11.1 5.6 11.4' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4.6 4.6L5.4 5.4C5.6 5.6 5.9 5.7 6.2 5.7C6.5 5.7 6.8 5.6 7 5.4L7.8 4.6C8 4.4 8.1 4.1 8.1 3.8C8.1 3.5 8 3.2 7.8 3L7 2.2C6.8 2 6.5 1.9 6.2 1.9C5.9 1.9 5.6 2 5.4 2.2L4.6 3C4.4 3.2 4.3 3.5 4.3 3.8C4.3 4.1 4.4 4.4 4.6 4.6Z' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M17.4 19.4L18.2 18.6C18.4 18.4 18.7 18.3 19 18.3C19.3 18.3 19.6 18.4 19.8 18.6L20.6 19.4C20.8 19.6 20.9 19.9 20.9 20.2C20.9 20.5 20.8 20.8 20.6 21L19.8 21.8C19.6 22 19.3 22.1 19 22.1C18.7 22.1 18.4 22 18.2 21.8L17.4 21C17.2 20.8 17.1 20.5 17.1 20.2C17.1 19.9 17.2 19.6 17.4 19.4Z' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.flag-icon {
    display: inline-block;
    width: 20px;
    height: 15px;
    margin-right: 8px;
    vertical-align: middle;
}

.russian-flag {
    background: linear-gradient(to bottom, #fff 0%, #fff 33%, #0039a6 33%, #0039a6 66%, #d52b1e 66%, #d52b1e 100%);
}

.british-flag {
    background: linear-gradient(45deg, #012169 42%, #fff 42%, #fff 45%, #c8102e 45%, #c8102e 55%, #fff 55%, #fff 58%, #012169 58%), linear-gradient(-45deg, #012169 42%, #fff 42%, #fff 45%, #c8102e 45%, #c8102e 55%, #fff 55%, #fff 58%, #012169 58%), linear-gradient(to right, #fff 0%, #fff 16%, #c8102e 16%, #c8102e 20%, #fff 20%, #fff 37%, #c8102e 37%, #c8102e 41%, #fff 41%, #fff 59%, #c8102e 59%, #c8102e 63%, #fff 63%, #fff 80%, #c8102e 80%, #c8102e 84%, #fff 84%, #fff 100%), linear-gradient(to bottom, #fff 0%, #fff 16%, #c8102e 16%, #c8102e 20%, #fff 20%, #fff 37%, #c8102e 37%, #c8102e 41%, #fff 41%, #fff 59%, #c8102e 59%, #c8102e 63%, #fff 63%, #fff 80%, #c8102e 80%, #c8102e 84%, #fff 84%, #fff 100%), #012169;
    background-size: 100% 100%;
    background-position: 0 0;
}

/* Поисковая строка */
.search-container {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 2rem;
}

.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.modern-search-btn {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

    .modern-search-btn:hover {
        color: var(--primary);
    }

#search-input {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-size: 1rem;
    background: white;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

    #search-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    }

/* Основной контент */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

#section-title {
    color: var(--gray-800);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 1rem;
}

    #section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: var(--gradient);
        border-radius: 2px;
    }

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

    .article-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient);
    }

    .article-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-xl);
    }

    .article-card h3 {
        color: var(--gray-900);
        margin-bottom: 1rem;
        font-size: 1.4rem;
        font-weight: 700;
        line-height: 1.4;
    }

    .article-card p {
        color: var(--gray-700);
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

.article-meta {
    margin-bottom: 1.5rem;
}

.category {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.tag {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    border: 1px solid var(--gray-200);
}

.read-more {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    margin-right: 1rem;
    box-shadow: var(--shadow-md);
}

    .read-more:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

#back-to-articles {
    margin-top: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.favorite-btn {
    background: white;
    border: 2px solid var(--gray-200);
    padding: 0.7rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

    .favorite-btn:hover {
        border-color: var(--primary);
        transform: scale(1.05);
    }

    .favorite-btn.favorited {
        background: var(--warning);
        border-color: var(--warning);
        color: var(--dark);
    }

/* Полная статья */
.article-full-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid var(--gray-200);
}

    .article-full-content h2 {
        color: var(--gray-900);
        margin-bottom: 1.5rem;
        font-size: 2.2rem;
        font-weight: 800;
        line-height: 1.3;
    }

    .article-full-content h3 {
        color: var(--gray-900);
        margin: 2rem 0 1rem 0;
        font-size: 1.6rem;
        font-weight: 700;
    }

    .article-full-content p {
        color: var(--gray-700);
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }

    .article-full-content ul {
        margin: 1.2rem 0;
        padding-left: 2rem;
    }

    .article-full-content li {
        margin-bottom: 0.6rem;
        color: var(--gray-700);
    }

    .article-full-content pre {
        background: var(--gray-900);
        padding: 1.5rem;
        border-radius: var(--border-radius);
        overflow-x: auto;
        margin: 1.2rem 0;
        border-left: 4px solid var(--primary);
    }

    .article-full-content code {
        font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
        font-size: 0.9rem;
        color: var(--gray-100);
    }

/* Секция профиля */
.profile-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid var(--gray-200);
    max-width: 600px;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1.2rem;
    box-shadow: var(--shadow-md);
}

.profile-favorites {
    margin-bottom: 2.5rem;
}

    .profile-favorites h4 {
        margin-bottom: 1.2rem;
        color: var(--gray-900);
        font-size: 1.3rem;
        font-weight: 700;
    }

.favorite-item {
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    background: var(--gray-100);
}

    .favorite-item:hover {
        background: var(--gray-200);
        border-color: var(--primary);
    }

.logout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gray-200);
    color: var(--gray-700);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

    .logout-btn:hover {
        background: var(--danger);
        color: white;
        transform: translateY(-2px);
    }

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.close {
    color: var(--gray-500);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    transition: var(--transition);
}

    .close:hover {
        color: var(--danger);
    }

/* Формы */
#login-form, #register-form {
    max-width: 400px;
    margin: 0 auto;
}

    #login-form h3, #register-form h3 {
        text-align: center;
        margin-bottom: 2rem;
        color: var(--gray-900);
        font-size: 1.8rem;
        font-weight: 700;
    }

    #login-form input, #register-form input {
        width: 100%;
        padding: 1rem;
        margin-bottom: 0.5rem;
        border: 2px solid var(--gray-200);
        border-radius: var(--border-radius);
        font-size: 1rem;
        transition: var(--transition);
    }

        #login-form input:focus, #register-form input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
        }

    #login-form button, #register-form button {
        width: 100%;
        padding: 1rem;
        background: var(--gradient);
        color: white;
        border: none;
        border-radius: var(--border-radius);
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        margin-top: 1rem;
        box-shadow: var(--shadow-md);
    }

        #login-form button:hover, #register-form button:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

    #login-form p, #register-form p {
        text-align: center;
        margin-top: 1.5rem;
        color: var(--gray-600);
    }

    #login-form a, #register-form a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
    }

        #login-form a:hover, #register-form a:hover {
            text-decoration: underline;
        }

.error-message {
    color: var(--danger);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 1.2rem;
}

/* Стили для модального окна настроек */
.settings-group {
    margin-bottom: 2rem;
}

    .settings-group h4 {
        margin-bottom: 1rem;
        color: var(--gray-900);
    }

.language-options,
.theme-options {
    display: flex;
    gap: 1rem;
}

.language-option,
.theme-option {
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

    .language-option:hover,
    .theme-option:hover {
        border-color: var(--primary);
    }

    .language-option.active,
    .theme-option.active {
        border-color: var(--primary);
        background-color: rgba(67, 97, 238, 0.1);
    }

/* Футер */
footer {
    background: var(--gray-900);
    text-align: center;
    padding: 2.5rem;
    margin-top: 4rem;
    color: var(--gray-300);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeIn 0.5s ease-out;
}

/* Темы */
.light-theme {
    --light: #ffffff;
    --dark: #212529;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    background-color: var(--light);
    color: var(--dark);
}

.dark-theme {
    --light: #121212;
    --dark: #f8f9fa;
    --gray-900: #f8f9fa;
    --gray-800: #e9ecef;
    --gray-700: #dee2e6;
    --gray-600: #ced4da;
    --gray-500: #adb5bd;
    --gray-400: #6c757d;
    --gray-300: #495057;
    --gray-200: #343a40;
    --gray-100: #212529;
    background-color: var(--light);
    color: var(--dark);
}

    .dark-theme header {
        background: rgba(18, 18, 18, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dark-theme .article-card,
    .dark-theme .article-full-content,
    .dark-theme .modal-content,
    .dark-theme .profile-content {
        background: var(--gray-100);
        border-color: var(--gray-200);
        color: var(--dark);
    }

    .dark-theme footer {
        background: var(--gray-200);
        color: var(--gray-800);
    }

/* Адаптивность */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1.2rem;
    }

        nav ul {
            gap: 0.8rem;
            flex-wrap: wrap;
            justify-content: center;
        }

    .articles-container {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.8rem;
    }

    header {
        padding: 1rem;
    }

    .search-container {
        padding: 0 1rem;
    }

    #section-title {
        font-size: 2rem;
    }

    .language-options,
    .theme-options {
        flex-direction: column;
    }

    .nav-buttons {
        gap: 0.3rem;
    }

    .settings-btn {
        padding: 0.5rem;
    }

    .learning-tip {
        padding: 1.2rem;
        margin: 1.5rem 0;
    }
    
    .next-article-recommendation {
        padding: 1.5rem;
        margin: 2rem 0 1rem 0;
    }
    
    .next-article-recommendation h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .nav-item {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .article-card {
        padding: 1.5rem;
    }

    .article-full-content {
        padding: 1.5rem;
    }

        .article-full-content h2 {
            font-size: 1.8rem;
        }
}

/* Эффекты для современного вида */
.article-card:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0.03;
    pointer-events: none;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--gray-500);
    }

.article-full-content {
    line-height: 1.7;
}

    .article-full-content h3 {
        color: var(--gray-900);
        margin: 2rem 0 1rem 0;
        font-size: 1.6rem;
        font-weight: 700;
    }

    .article-full-content p {
        color: var(--gray-700);
        margin-bottom: 1.2rem;
    }

    .article-full-content ul {
        margin: 1.2rem 0;
        padding-left: 2rem;
    }

    .article-full-content li {
        margin-bottom: 0.6rem;
        color: var(--gray-700);
    }

    .article-full-content pre {
        background: var(--gray-900);
        padding: 1.5rem;
        border-radius: var(--border-radius);
        overflow-x: auto;
        margin: 1.2rem 0;
        border-left: 4px solid var(--primary);
    }

    .article-full-content code {
        font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
        font-size: 0.9rem;
        color: var(--gray-100);
    }

    .article-full-content h2 {
        color: var(--gray-900);
        margin-bottom: 1.5rem;
        font-size: 2.2rem;
        font-weight: 800;
        line-height: 1.3;
    }