:root {
  --bg: #0d0d0f;
  --bg2: #111115;
  --bg3: #16161b;
  --border: #1f1f27;
  --border2: #2a2a36;
  --blue: #3b82f6;
  --blue-l: rgba(59,130,246,0.12);
  --green: #22c55e;
  --green-l: rgba(34,197,94,0.12);
  --orange: #f59e0b;
  --orange-l: rgba(245,158,11,0.12);
  --red: #ef4444;
  --gold: #e6b45a;
  --orange2: #ff7a3d;
  --text: #e8e8ed;
  --text2: #a0a0b0;
  --muted: #686878;
  --white: #ffffff;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,13,15,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 90px;
  display: flex; align-items: center;
}
.nav-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 4rem; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; text-decoration: none; }
.nav-logo { height: 80px; width: auto; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
}
.nav-links { display: flex; list-style: none; gap: 28px; align-items: center; }
.nav-links a { color: var(--text2); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--blue); }
.nav-cta {
  background: var(--blue); color: var(--white);
  padding: 8px 20px; border-radius: 8px;
  font-weight: 600; font-size: 0.85rem; text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.nav-cta:hover { box-shadow: 0 0 18px rgba(59,130,246,0.45); transform: translateY(-1px); }

/* ARTICLE WRAP */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 150px 1.5rem 80px;
}
.back-link {
  display: inline-block;
  color: var(--text2);
  font-size: 0.92rem;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--blue); text-decoration: none; }
.back-link-bottom { margin-top: 56px; margin-bottom: 0; }

/* POST HEADER */
.post-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.post-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border2);
}
.post-meta { display: flex; flex-direction: column; min-width: 0; }
.post-author { font-weight: 700; font-size: 1rem; color: var(--text); line-height: 1.25; }
.post-cat { font-size: 0.85rem; color: var(--text2); line-height: 1.3; }
.post-cat .dot { color: var(--muted); margin: 0 6px; }
.post-cat .date { color: var(--muted); }

.post-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.post-lead {
  font-size: 1.1rem;
  color: var(--text2);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 24px;
}
.post-cover {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 32px;
  display: block;
}

/* POST CONTENT */
.post-content p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.75;
}
.post-content strong { color: var(--gold); }
.post-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  margin: 48px 0 12px;
  letter-spacing: -0.01em;
}

/* «8 пересадок» styles */
.post-content .station-meta {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 18px;
}
.post-content .expect {
  border-left: 3px solid var(--green);
  background: var(--green-l);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-size: 0.95rem;
}
.post-content .expect strong { color: var(--green); }
.post-content .reality {
  border-left: 3px solid var(--red);
  background: rgba(239,68,68,0.08);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-size: 0.95rem;
}
.post-content .reality strong { color: var(--red); }
.post-content .hindsight {
  border-left: 3px solid var(--orange);
  background: var(--orange-l);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0 32px;
  font-size: 0.93rem;
  color: var(--text2);
  font-style: italic;
}
.post-content .hindsight strong { color: var(--orange); }

/* «Кому доверить ИТ» styles */
.post-content .act-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  margin: 72px 0 32px;
  padding-top: 40px;
  border-top: 2px solid var(--gold);
  letter-spacing: -0.01em;
}
.post-content .act-name:first-child { margin-top: 16px; padding-top: 32px; }
.post-content .block-title-small {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin: 36px 0 16px;
  letter-spacing: -0.01em;
}
.post-content .subhead {
  color: var(--text2);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin: 24px 0 8px;
}
.post-content .subhead.honest { color: var(--green); }
.post-content blockquote {
  margin: 24px 0;
  padding: 12px 0 12px 22px;
  border-left: 3px solid var(--gold);
  color: var(--text);
  font-style: italic;
  font-size: 1.1rem;
}
.post-content blockquote p { margin: 0 0 8px; }
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content .hammer {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--orange2);
  border-left: 4px solid var(--orange2);
  padding: 20px 24px;
  margin: 32px 0;
  background: rgba(255,122,61,0.06);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.post-content .closing-italic {
  color: var(--orange2);
  font-style: italic;
  font-weight: 500;
  padding: 16px 22px;
  background: rgba(255,122,61,0.05);
  border-left: 2px solid var(--orange2);
  border-radius: 3px;
  margin: 28px 0;
}
.post-content .bridge {
  color: var(--orange2);
  font-style: italic;
  padding: 16px 20px;
  background: rgba(255,122,61,0.05);
  border-left: 2px solid var(--orange2);
  border-radius: 3px;
  margin: 30px 0;
}
.post-content .anchor-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
  text-align: center;
}
.post-content .pair-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--muted);
  margin: 12px 0 14px;
  font-weight: 600;
}
.post-content .border-name { color: var(--gold); font-weight: 700; }
.post-content .trophy {
  margin-top: 32px;
  padding: 24px 28px;
  background: rgba(255,122,61,0.07);
  border-left: 4px solid var(--orange2);
  border-radius: 4px;
  color: var(--orange2);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 2rem;
  text-align: center;
}
.footer-links {
  display: flex; gap: 24px; justify-content: center;
  margin-bottom: 16px; flex-wrap: wrap;
}
.footer-links a { color: var(--text2); font-size: 0.85rem; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.78rem; color: var(--muted); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .article-wrap { padding: 100px 1rem 60px; }
  .nav { height: 72px; }
  .nav-inner { padding: 0 1rem; }
  .nav-logo { height: 52px; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(13,13,15,0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 1rem; }
  .nav-cta { display: none; }
}
