/* Основные стили статьи */
body { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 16px; 
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #f5f5f5;
    line-height: 1.7;
}

.article-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.article-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.article-meta {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.article-category {
    display: inline-block;
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.article-content {
    font-size: 1.1rem;
    color: #333;
}

.article-content h2 {
    color: #dc3545;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 600;
}

.article-content h3 {
    color: #495057;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 10px;
}

.trend-card {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
}

.trend-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.trend-card h4 {
    color: white;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
}

.trend-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.trend-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.3;
    z-index: 1;
}

.highlight-box {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.highlight-box h4 {
    color: #721c24;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid #ffc107;
}

.warning-box h4 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.code-example {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin: 25px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    border-left: 4px solid #6c757d;
}

.code-example h4 {
    color: #495057;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tech-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.tech-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.tech-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #6f42c1;
    margin-bottom: 10px;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.table-container {
    overflow-x: auto;
    margin: 25px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

tr:hover {
    background: #f8f9fa;
}

.related-articles {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-top: 40px;
}

.related-articles h3 {
    color: #495057;
    margin-top: 0;
    margin-bottom: 20px;
}

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

.related-links li {
    margin-bottom: 10px;
}

.related-links a {
    color: #007bff;
    text-decoration: none;
    padding: 8px 0;
    display: block;
    transition: color 0.3s ease;
}

.related-links a:hover {
    color: #0056b3;
}

/* Адаптивность рекламного блока */
.ad-top-banner .mrg-tag { width: 970px !important; height: 250px !important; }
@media (max-width: 1199px) { .ad-top-banner .mrg-tag { width: 728px !important; height: 90px !important; } }
@media (max-width: 768px) { .ad-top-banner .mrg-tag { width: 320px !important; height: 50px !important; } }

/* Дополнительные стили для статьи */
.article-container, .news-container { max-width: 800px; margin-left: auto; margin-right: auto; }
.breadcrumb { max-width: 800px; margin-left: auto; margin-right: auto; padding-left: 12px; padding-right: 12px; }

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-container {
        padding: 25px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}