/* Hero-секция статьи блога */
.blog-post-hero { background: linear-gradient(135deg,#0a58ca 0%,#dc3545 100%); color: #fff; padding: 140px 20px 50px; text-align: center; margin: 0 !important; width: 100%; box-sizing: border-box; }
body:has(.blog-post-hero) .nav-wrapper { background: transparent !important; box-shadow: none !important; position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; z-index: 100 !important; }
body:has(.blog-post-hero) .nav { background: transparent !important; box-shadow: none !important; border: none !important; }
body:has(.blog-post-hero) .nav > a:not(.btn), body:has(.blog-post-hero) .nav-actions > a:not(.btn) { color: #fff !important; }
body:has(.blog-post-hero) .nav .logo, body:has(.blog-post-hero) .nav .logo img { color: #fff !important; filter: brightness(0) invert(1) !important; }
body:has(.blog-post-hero) .burger span { background: #fff !important; }
body:has(.blog-post-hero) .nav-actions svg { color: #fff !important; fill: #fff !important; stroke: #fff !important; }
body:has(.blog-post-hero) .nav .btn-danger, body:has(.blog-post-hero) .nav .btn-primary { background: #fff !important; color: #0a58ca !important; border: none !important; }
.blog-post-hero-crumbs { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: 13px; opacity: 0.85; margin-bottom: 18px; }
.blog-post-hero-crumbs a { color: #fff !important; text-decoration: underline; }
.blog-post-hero-crumbs span { color: #fff; }
.blog-post-hero h1 { font-size: 34px; font-weight: 800; margin: 0 auto 18px; line-height: 1.25; color: #fff !important; text-align: center !important; max-width: 900px; }
.blog-post-hero-meta { display: inline-flex; flex-wrap: wrap; gap: 16px; justify-content: center; font-size: 13px; opacity: 0.9; }
.blog-post-hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 768px) {
    .blog-post-hero { padding: 100px 15px 35px; }
    .blog-post-hero h1 { font-size: 22px; }
    .blog-post-hero-meta { font-size: 12px; gap: 10px; }
}

/* ===== Карточки похожих статей (как на /blog) ===== */
.blog-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.blog-card { display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 22px; text-decoration: none; color: inherit; transition: all 0.2s; }
.blog-card:hover { border-color: #0a58ca; box-shadow: 0 6px 20px rgba(10,88,202,0.1); transform: translateY(-2px); }
.blog-card-cat { display: inline-block; background: #f0f7ff; color: #0a58ca; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.blog-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; color: #1a1a1a; line-height: 1.3; }
.blog-card p { font-size: 13px; color: #666; line-height: 1.5; margin: 0 0 12px; }
.blog-card-date { font-size: 12px; color: #999; }
.blog-btn-more { display: block; margin: 0 auto; padding: 14px 36px; background: #fff; color: #0a58ca; border: 2px solid #0a58ca; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 15px; transition: all 0.2s; }
.blog-btn-more:hover { background: #0a58ca; color: #fff; }
@media (max-width: 768px) {
    .blog-cards-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ===== ToC (оглавление статьи) ===== */
.blog-toc {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 0 0 24px;
}
.blog-toc-title {
    font-size: 15px;
    font-weight: 800;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.blog-toc-title::before {
    content: '📑';
    font-size: 18px;
}
.blog-toc-list {
    margin: 0;
    padding-left: 20px;
    list-style: decimal;
}
.blog-toc-list li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}
.blog-toc-list a {
    color: #0a58ca;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-toc-list a:hover {
    color: #084298;
    text-decoration: underline;
}
@media (max-width: 768px) {
    .blog-toc { padding: 16px 18px; margin-bottom: 18px; }
    .blog-toc-list { font-size: 13px; }
}

/* Inline «Читайте также» в тексте статьи */
.inline-related {
    background: #f0f7ff;
    border-left: 4px solid #0a58ca;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #1a1a1a;
}
.inline-related a {
    color: #0a58ca;
    text-decoration: none;
    font-weight: 600;
}
.inline-related a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .inline-related { font-size: 13px; padding: 10px 12px; }
}

/* Inline «Читайте также» — список */
.inline-related-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    color: #0a58ca;
}
.inline-related ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}
.inline-related li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.5;
}
