/* Тема crypto — крипто-новости, продвинутый вид */
:root {
  --bg: #0f0f12;
  --bg-card: #18181d;
  --bg-elevated: #1e1e24;
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-dim: rgba(245, 158, 11, 0.15);
  --border: #27272a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --width: 960px;
}

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

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header — тёмная полоса с акцентом */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header-wrap {
  max-width: var(--width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-img {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.logo-text {
  color: var(--text);
}

.logo-link:hover .logo-text,
.logo-link:hover .logo-img {
  opacity: 0.9;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-main a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-main a:hover { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-ghost {
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: #0f0f12;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Main */
.site-main {
  flex: 1;
  max-width: var(--width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
}

/* Home */
.page-home {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.intro-block {
  padding: 2.5rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-title {
  margin: 0 0 1rem;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.02em;
}

.intro-text {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.intro-text p { margin: 0 0 0.75rem; }

.articles-block {
  padding: 1.5rem 2rem 2rem;
}

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

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

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

.card:last-child { border-bottom: none; }

.card-link {
  display: block;
  padding: 1rem 0;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s, padding-left 0.2s;
}

.card-link:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}

/* Article */
.article-page {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
}

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

.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 0.35rem; }

.article-figure {
  margin: 0 0 1.75rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-hero {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.article-header {
  margin-bottom: 1.5rem;
}

.article-title {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.02em;
}

.article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.content p {
  margin: 0 0 1.25rem;
}

.content p:last-child { margin-bottom: 0; }

.content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.content h2:first-child { margin-top: 0; }

.content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.content ul, .content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.content li { margin-bottom: 0.35rem; }

.content a {
  color: var(--accent);
  text-decoration: none;
}

.content a:hover { text-decoration: underline; }

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

.footer-wrap {
  max-width: var(--width);
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col .footer-title {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.footer-col a:hover { color: var(--accent); }

.footer-col p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
