/* Тема dark — тёмный лаконичный стиль, акцентная полоса */
:root {
  --bg: #0f1419;
  --card: #1a2332;
  --surface: #252d3a;
  --text: #e6edf3;
  --text-muted: #8b9cad;
  --link: #58a6ff;
  --link-hover: #79b8ff;
  --accent: #00d4aa;
  --accent-dim: #00a884;
  --border: #30363d;
  --radius: 6px;
  --strip: 4px;
}

* { box-sizing: border-box; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  min-height: 100vh;
  display: flex;
}

.side-strip {
  width: var(--strip);
  min-height: 100vh;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 100%);
  flex-shrink: 0;
}

.layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-name {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}
.site-name:hover { color: var(--link); }

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
}
nav a:hover { color: var(--text); }
nav a.nav-cta {
  color: var(--accent);
  font-weight: 500;
}
nav a.nav-cta:hover { color: var(--link); }

.site-main {
  flex: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

.page-home {
  background: var(--card);
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.page-title, .article-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.01em;
}

.intro {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 1rem;
  line-height: 1.65;
}
.intro p { margin: 0 0 0.5rem; }

.articles-section {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.articles-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.articles-list a {
  color: var(--link);
  text-decoration: none;
  padding: 0.6rem 0;
  display: block;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  transition: color .15s ease, padding-left .15s ease;
}

.articles-list a:hover {
  color: var(--link-hover);
  padding-left: 0.5rem;
}

.article {
  background: var(--card);
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.article-hero {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  display: block;
  border: 1px solid var(--border);
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.breadcrumb a { color: var(--link); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.article-body { margin-top: 1rem; }

.content p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.content p:last-child { margin-bottom: 0; }
.content h3 { margin: 1.5rem 0 0.75rem; font-size: 1.1rem; font-weight: 600; color: var(--text); }
.content h3:first-child { margin-top: 0; }

.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-link {
  color: var(--link);
  text-decoration: none;
  margin-right: 1.25rem;
}

.footer-link:hover { text-decoration: underline; }
.footer-copy { color: var(--text-muted); }
