:root {
    --accent-blue: #58a6ff;
    --accent-red: #ff7b72;
    --accent-green: #3fb950;
    --dark-bg: #0d1117;
    --darker-bg: #090c10;
    --card-bg: rgba(22, 27, 34, 0.9);
    --text-light: #f0f6fc;
    --text-muted: #8b949e;
    --border-color: rgba(240, 246, 252, 0.1);
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    background-image: 
        linear-gradient(to bottom, 
            rgba(13, 17, 23, 0.9) 0%, 
            rgba(9, 12, 16, 1) 100%),
        radial-gradient(circle at 20% 30%, 
            rgba(88, 166, 255, 0.05) 0%, 
            transparent 25%),
        radial-gradient(circle at 80% 70%, 
            rgba(255, 123, 114, 0.05) 0%, 
            transparent 25%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

@supports (font-variation-settings: normal) {
    body {
        font-family: 'Inter var', -apple-system, BlinkMacSystemFont, sans-serif;
    }
}

.article-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.article-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 120px;
    height: 2px;
    background: linear-gradient(to right, var(--accent-blue), transparent);
}

.article-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.article-category {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 1rem;
    background: rgba(255, 123, 114, 0.15);
    color: var(--accent-red);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.article-image {
    width: 100%;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-image:hover {
    transform: scale(1.02);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    color: var(--text-light);
    margin: 2.5rem 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.article-content h3 {
    color: var(--text-light);
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.notification {
    padding: 1.25rem;
    margin: 2rem 0;
    border-radius: 8px;
    border-left: 4px solid;
    background: rgba(88, 166, 255, 0.05);
    transition: all 0.3s ease;
}

.notification:hover {
    transform: translateX(4px);
}

.warning {
    border-left-color: var(--accent-red);
    background: rgba(255, 123, 114, 0.08);
}

.warning strong {
    color: var(--accent-red);
}

.success {
    border-left-color: var(--accent-green);
    background: rgba(63, 185, 80, 0.08);
}

.success strong {
    color: var(--accent-green);
}

code {
    font-family: 'Fira Code', 'Courier New', monospace;
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent-blue);
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    font-size: 0.9em;
    border: 1px solid rgba(88, 166, 255, 0.2);
}

pre code {
    display: block;
    padding: 1.25rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    line-height: 1.5;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue);
    text-decoration: none;
    margin-top: 2rem;
    padding: 0.75rem 1.25rem;
    background: rgba(88, 166, 255, 0.1);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-link:hover {
    background: var(--accent-blue);
    color: var(--dark-bg);
    transform: translateX(-4px);
}

.back-link svg {
    transition: transform 0.3s;
}

.back-link:hover svg {
    transform: translateX(-3px);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.loading-placeholder {
    animation: pulse 1.5s infinite;
    background: var(--border-color);
    border-radius: 4px;
}

/* Адаптация */
@media (max-width: 768px) {
    .article-container {
        padding: 1.75rem;
        margin: 1.5rem;
        border-radius: 12px;
    }
    
    .article-title {
        font-size: 1.9rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .article-container {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.7rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}