
:root {
  --bg-primary: #0f172a;
  --bg-surface: #1e293b;
  --bg-card: #182234;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --border: #334155;
  --tag-bg: #0369a1;
  --tag-text: #e0f2fe;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.7;
  padding: 0;
}

header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .logo { font-size: 1.35rem; font-weight: 800; color: var(--accent); text-decoration: none; }
header nav a { color: var(--text-muted); margin-left: 1.5rem; text-decoration: none; font-weight: 500; transition: color 0.2s; }
header nav a:hover { color: var(--text-main); }

.container { max-width: 900px; margin: 0 auto; padding: 2.5rem 1.5rem; }

/* Карточки статей на главной */
.hero { text-align: center; margin-bottom: 3.5rem; }
.hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.75rem; background: linear-gradient(135deg, #fff 0%, #38bdf8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

.grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: transform 0.2s, border-color 0.2s;
  text-decoration: none;
  display: block;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card .meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; display: flex; gap: 1rem; align-items: center; }
.card h2 { font-size: 1.4rem; color: var(--text-main); margin-bottom: 0.75rem; line-height: 1.4; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.badge { background: var(--tag-bg); color: var(--tag-text); padding: 0.2rem 0.6rem; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }

/* Страница статьи */
.article-header { margin-bottom: 2.5rem; }
.article-header h1 { font-size: 2.2rem; line-height: 1.3; margin-bottom: 1rem; font-weight: 800; }
.article-header .subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 1.25rem; font-style: italic; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--text-muted); font-size: 0.9rem; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }

.article-content { font-size: 1.1rem; color: #cbd5e1; }
.article-content h2 { color: var(--text-main); font-size: 1.6rem; margin: 2.2rem 0 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.article-content h3 { color: var(--accent); font-size: 1.3rem; margin: 1.8rem 0 0.75rem; }
.article-content p { margin-bottom: 1.4rem; }
.article-content ul, .article-content ol { margin: 1rem 0 1.5rem 1.75rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content img { width: 100%; border-radius: 10px; margin: 1.5rem 0; border: 1px solid var(--border); }
.article-content blockquote { border-left: 4px solid var(--accent); padding-left: 1.25rem; margin: 1.5rem 0; color: #e2e8f0; background: var(--bg-surface); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; }

.aeo-box {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.aeo-box .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); font-weight: 700; margin-bottom: 0.5rem; }
.aeo-box p { color: #f1f5f9; font-weight: 500; margin: 0; }

.cta-banner {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 3.5rem;
  text-align: center;
}
.cta-banner h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.cta-banner p { margin-bottom: 1.25rem; opacity: 0.9; }
.cta-banner .btn {
  background: #ffffff;
  color: #0284c7;
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s;
}
.cta-banner .btn:hover { transform: scale(1.03); }

footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4rem;
}
