/* ============================================
   ABOO SAVAGE — блог (те же токены, что и главная)
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #06090f;
  --bg-dark: #0a0f1e;
  --bg-accent: #0d1220;
  --text: #e8edf5;
  --text-soft: #aab4c3;
  --line: rgba(0, 212, 255, 0.14);
  --accent: #00d4ff;
  --accent2: #0066ff;
  --font-display: 'Bebas Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Syne', sans-serif;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--accent); }
a:hover { color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--bg); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* --- HEADER --- */
.blog-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(6, 9, 15, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.blog-header nav {
  max-width: 1100px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.blog-header .logo {
  font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.08em;
  color: var(--text); text-decoration: none;
}
.blog-header .nav-links { display: flex; align-items: center; gap: 20px; font-size: 0.92rem; }
.blog-header .nav-links a { color: var(--text-soft); text-decoration: none; }
.blog-header .nav-links a:hover { color: var(--accent); }
.blog-header .nav-cta {
  color: var(--bg) !important; background: var(--accent);
  padding: 8px 16px; border-radius: 4px; font-weight: 600;
}
.blog-header .nav-cta:hover { background: #fff; }

/* --- LAYOUT --- */
main { max-width: 760px; margin: 0 auto; padding: 40px 16px 80px; }
main.wide { max-width: 1100px; }

.breadcrumbs {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-soft);
  margin-bottom: 28px;
}
.breadcrumbs a { color: var(--text-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

.label {
  display: inline-block; font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}

h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: 1.05; letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.meta {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-soft);
  padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line);
}

.lead { font-size: 1.2rem; color: var(--text); margin-bottom: 28px; }

/* --- ARTICLE TEXT --- */
article h2 {
  font-size: 1.65rem; line-height: 1.25; font-weight: 700;
  margin: 48px 0 16px; scroll-margin-top: 80px;
}
article h3 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 10px; }
article p { color: var(--text-soft); margin-bottom: 16px; }
article p strong, article li strong { color: var(--text); }
article ul, article ol { color: var(--text-soft); margin: 0 0 18px 22px; }
article li { margin-bottom: 8px; }

.toc {
  background: var(--bg-accent); border: 1px solid var(--line); border-radius: 8px;
  padding: 20px 24px; margin: 0 0 36px;
}
.toc p { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); margin-bottom: 10px; letter-spacing: 0.08em; }
.toc ol { margin: 0 0 0 20px; }
.toc a { color: var(--text-soft); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.callout {
  border-left: 3px solid var(--accent); background: var(--bg-accent);
  padding: 18px 22px; margin: 24px 0; border-radius: 0 8px 8px 0;
}
.callout p { margin: 0; color: var(--text); }

.chat {
  background: var(--bg-dark); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; margin: 24px 0; display: flex; flex-direction: column; gap: 10px;
}
.chat .msg { max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 0.95rem; line-height: 1.5; }
.chat .client { align-self: flex-end; background: #1e3a2f; color: #e8f5ee; border-bottom-right-radius: 3px; }
.chat .bot { align-self: flex-start; background: var(--bg-accent); color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.chat .note { align-self: center; font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); }

.table-wrap { overflow-x: auto; margin: 20px 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--accent); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
td { color: var(--text-soft); }
td:first-child { color: var(--text); }

details {
  border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; background: var(--bg-accent);
}
summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--text); }
details p { padding: 0 20px 16px; margin: 0; }

/* --- CTA --- */
.cta-box {
  margin: 56px 0 0; padding: 32px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,212,255,0.10), rgba(0,102,255,0.10));
  border: 1px solid rgba(0,212,255,0.35);
}
.cta-box h2 { margin-top: 0; }
.cta-box p { color: var(--text-soft); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 4px; font-weight: 700;
  text-decoration: none; text-align: center;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #fff; color: var(--bg); }
.btn-ghost { border: 1px solid var(--accent); color: var(--accent); }
.btn-ghost:hover { background: rgba(0,212,255,0.1); color: #fff; }

.author {
  display: flex; gap: 16px; align-items: center; margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--text-soft);
}
.author strong { color: var(--text); }

/* --- BLOG INDEX --- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 32px; }
.post-card {
  display: block; padding: 24px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-accent); text-decoration: none; transition: border-color .2s, transform .2s;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-card .label { margin-bottom: 10px; }
.post-card h2 { font-size: 1.3rem; line-height: 1.3; color: var(--text); margin-bottom: 10px; }
.post-card p { color: var(--text-soft); font-size: 0.95rem; }
.post-card.soon { opacity: 0.55; pointer-events: none; }

/* --- FOOTER --- */
.blog-footer {
  border-top: 1px solid var(--line); padding: 28px 16px; text-align: center;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-soft);
}
.blog-footer a { color: var(--text-soft); }

@media (max-width: 640px) {
  .blog-header .nav-links a:not(.nav-cta) { display: none; }
  .cta-box { padding: 24px 18px; }
  .btn { width: 100%; }
}
