/* SafeLine Blog — стили блога в дизайне основного лендинга */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg: #05080a; --card: #0c1215; --border: #1a2428;
    --text: #e8f0ef; --muted: #8a9a97;
    --accent: #00e6a0; --accent-dim: rgba(0, 230, 160, 0.15);
    --glow: rgba(0, 230, 160, 0.25);
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }

header {
    padding: 18px 0; position: sticky; top: 0;
    background: rgba(5, 8, 10, 0.85); backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 230, 160, 0.08); z-index: 100;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 700; color: var(--text); text-decoration: none; }
.logo-icon { width: 28px; height: 28px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #000; font-size: 14px; }
nav { display: flex; gap: 32px; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
nav a:hover { color: var(--accent); }
nav a.current { color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 12px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: all 0.25s ease; border: none; cursor: pointer; }
/* Повышенная специфичность (.btn.btn-primary), чтобы правила .article-body a
   и .legal-section a не перекрашивали текст кнопок в зелёный на зелёном фоне */
.btn { text-decoration: none; }
.btn.btn-primary { background: var(--accent); color: #000; box-shadow: 0 0 20px var(--glow); }
.btn.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(0, 230, 160, 0.45); text-decoration: none; }
.btn.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.breadcrumbs { padding: 26px 0 0; font-size: 0.88rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.breadcrumbs li + li::before { content: '→'; color: var(--border); }
.breadcrumbs a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--accent); }

.page-head { padding: 46px 0 40px; text-align: center; position: relative; }
.page-head::before {
    content: ''; position: absolute; top: -150px; left: 50%; transform: translateX(-50%);
    width: 700px; height: 600px; background: radial-gradient(circle, rgba(0, 230, 160, 0.09) 0%, transparent 65%); pointer-events: none;
}
.page-head h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; margin-top: 24px; position: relative; }
.page-sub { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin: 14px auto 0; position: relative; }
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0, 230, 160, 0.1); border: 1px solid rgba(0, 230, 160, 0.25);
    color: var(--accent); padding: 8px 18px; border-radius: 50px;
    font-size: 0.875rem; font-weight: 500;
}

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; padding-bottom: 90px; }
.post-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 20px;
    padding: 28px 26px; display: flex; flex-direction: column;
    transition: all 0.3s ease; text-decoration: none; color: var(--text);
}
.post-card:hover {
    transform: translateY(-8px); border-color: rgba(0, 230, 160, 0.45);
    box-shadow: 0 20px 50px rgba(0, 230, 160, 0.1);
}
.post-card h2 { font-size: 1.25rem; line-height: 1.35; margin: 14px 0 10px; letter-spacing: -0.01em; }
.post-card p { color: var(--muted); font-size: 0.95rem; flex-grow: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.82rem; color: var(--muted); margin-bottom: 4px; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-card .read-more { margin-top: 20px; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.post-card:hover .read-more { text-decoration: underline; }

.article-wrap { max-width: 780px; margin: 0 auto; padding: 34px 20px 60px; }
.article-hero { padding: 40px 0 10px; }
.article-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin: 22px 0 16px; }
.article-hero .lead { color: var(--muted); font-size: 1.1rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.article-meta .badge { font-size: 0.82rem; padding: 6px 14px; }

.article-body { padding-top: 26px; }
.article-body h2 { font-size: 1.5rem; margin: 42px 0 16px; display: flex; align-items: center; gap: 12px; letter-spacing: -0.01em; }
.article-body h2::before {
    content: ''; width: 9px; height: 9px; border-radius: 50%; flex: none;
    background: var(--accent); box-shadow: 0 0 12px var(--glow);
}
.article-body h3 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--text); }
.article-body p { color: var(--muted); margin-bottom: 14px; font-size: 1rem; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body ul, .article-body ol { margin: 10px 0 20px 22px; color: var(--muted); font-size: 0.98rem; }
.article-body li { margin-bottom: 8px; padding-left: 6px; }
.article-body li::marker { color: var(--accent); }
.article-body a { color: var(--accent); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }
.article-body blockquote {
    border-left: 3px solid var(--accent); background: rgba(0, 230, 160, 0.06);
    border-radius: 0 12px 12px 0; padding: 14px 20px; margin: 20px 0;
    color: var(--text); font-size: 0.98rem;
}

.cta-box {
    background: linear-gradient(135deg, rgba(0, 230, 160, 0.1), rgba(0, 180, 200, 0.06));
    border: 1px solid rgba(0, 230, 160, 0.25); border-radius: 24px;
    padding: 44px 34px; margin: 46px 0 0; text-align: center;
    box-shadow: 0 0 60px rgba(0, 230, 160, 0.08);
}
.cta-box h2 { font-size: 1.6rem; margin-bottom: 12px; letter-spacing: -0.01em; }
.cta-box p { color: var(--muted); margin-bottom: 26px; }
.cta-box .note { font-size: 0.85rem; margin: 16px 0 0; }

.related { padding: 70px 0 40px; border-top: 1px solid rgba(0, 230, 160, 0.08); margin-top: 80px; }
.related h2 { font-size: 1.6rem; margin-bottom: 28px; letter-spacing: -0.01em; }
.related .post-card h3 { font-size: 1.08rem; margin: 12px 0 8px; line-height: 1.35; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

footer { background: #070b0d; border-top: 1px solid rgba(0, 230, 160, 0.12); padding: 46px 0 30px; position: relative; }
footer::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 1px; background: linear-gradient(90deg, transparent, rgba(0, 230, 160, 0.4), transparent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.footer-bottom p { color: var(--muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 48px; height: 48px;
    background: var(--accent); color: #000; border: none; border-radius: 50%;
    font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 230, 160, 0.4); opacity: 0; visibility: hidden;
    transition: all 0.3s; z-index: 99;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); }

@media (max-width: 768px) {
    nav { display: none; }
    .article-wrap { padding: 24px 20px 40px; }
    .article-body h2 { font-size: 1.3rem; }
    .cta-box { padding: 36px 22px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}