/* blog/assets/blog.css — общие стили для всех страниц блога */
* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: 'Inter', sans-serif;
    background: #f8f9fa;
    color: #212529;
    line-height: 1.7;
}
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 24px;
}

/* Шапка блога — можно использовать общие стили с основным сайтом, либо свои */
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 0 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}
.logo {
    font-size: 28px;
    font-weight: 800;
    color: #ff8c00;
}
.logo i { color: #ff8c00; margin-right: 6px; }
.nav-menu {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.nav-link {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 40px;
    transition: 0.2s;
    font-size: 14px;
}
.nav-link:hover {
    background: rgba(255,140,0,0.1);
    color: #ff8c00;
}

/* Лента блога */
.blog-list { margin-top: 20px; }
.blog-item {
    border-bottom: 1px solid #e9ecef;
    padding: 24px 0;
}
.blog-item:last-child { border-bottom: none; }
.blog-item a {
    text-decoration: none;
    color: #212529;
    display: block;
    transition: 0.2s;
}
.blog-item a:hover { color: #ff8c00; }
.blog-item h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}
.blog-item .excerpt {
    color: #6c757d;
    font-size: 15px;
    margin-bottom: 6px;
}
.blog-item .date {
    color: #adb5bd;
    font-size: 13px;
}
.blog-item .date i { margin-right: 4px; }

/* Страница отдельной статьи */
.back-link {
    color: #ff8c00;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 500;
}
.back-link i { margin-right: 6px; }
.post-header { margin-bottom: 30px; }
.post-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
    margin-bottom: 12px;
}
.post-meta {
    color: #6c757d;
    font-size: 14px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.post-meta i { margin-right: 4px; }

/* Содержание статьи */
.post-content { font-size: 16px; color: #212529; }
.post-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 16px;
    border-left: 4px solid #ff8c00;
    padding-left: 15px;
}
.post-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px;
}
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol {
    margin: 12px 0 16px 24px;
}
.post-content li { margin-bottom: 8px; }
.post-content .highlight-box {
    background: #fff3e0;
    border-left: 4px solid #ff8c00;
    padding: 16px 20px;
    border-radius: 12px;
    margin: 20px 0;
}
.post-content .highlight-box i { color: #ff8c00; margin-right: 8px; }
.post-content img {
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    margin: 16px 0;
}

/* Блок с призывом к действию (CTA) */
.post-cta {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    margin: 40px 0;
}
.post-cta .btn {
    display: inline-block;
    background: #ff8c00;
    color: white;
    padding: 12px 32px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}
.post-cta .btn:hover {
    background: #e67e00;
    transform: translateY(-2px);
}

/* Футер */
.blog-footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    color: #6c757d;
    font-size: 13px;
    margin-top: 40px;
}
.blog-footer a { color: #ff8c00; text-decoration: none; margin: 0 6px; }

/* Адаптив */
@media (max-width: 768px) {
    .blog-header { flex-direction: column; align-items: stretch; }
    .nav-menu { justify-content: center; }
    .post-header h1 { font-size: 28px; }
    .blog-item h2 { font-size: 20px; }
}