/* ===== ARTICLE PAGES — standalone CSS ===== */
/* Только переменные темы + стили статей. Не зависит от style-v2.css */

:root {
  --bg-body: #eee9f0;
  --bg-card: rgba(255, 255, 255, 0.55);
  --border-card: rgba(0, 0, 0, 0.06);
  --border-subtle: rgba(0, 0, 0, 0.06);
  --text-primary: #1a1a2e;
  --text-secondary: #3d3d5c;
  --text-dim: #5a5a7a;
  --text-muted: #8888a8;
  --text-heading: #1a1a2e;
  --accent: #1a1a2e;
  --accent-hover: #2d2d44;
  --accent-light: rgba(26, 26, 46, 0.06);
}

[data-theme="dark"] {
  --bg-body: #030712;
  --bg-card: rgba(255, 255, 255, 0.05);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-dim: #6b7280;
  --text-muted: #4b5563;
  --text-heading: #e5e7eb;
  --accent: #9333ea;
  --accent-hover: #a855f7;
  --accent-light: rgba(147, 51, 234, 0.15);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(ellipse 220% 120% at 50% 0%, rgba(135, 180, 230, 0.55) 0%, transparent 50%),
    linear-gradient(to top, rgba(185, 180, 195, 0.6) 0%, transparent 60%),
    #f0f0f5;
  background-attachment: fixed;
  color: var(--text-secondary);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
[data-theme="dark"] body {
  background: var(--bg-body);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== NAV ===== */
.art-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(238, 233, 240, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
[data-theme="dark"] .art-nav {
  background: rgba(3, 7, 18, 0.85);
}
.art-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}
.art-nav-logo:hover { text-decoration: none; }
.art-nav-logo svg .art-logo-rays { stroke: #be123c; }
[data-theme="dark"] .art-nav-logo svg .art-logo-rays { stroke: currentColor; }
.art-nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.art-nav-brand-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}
.art-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.art-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: transform 0.2s, opacity 0.2s;
}
.art-nav-cta:hover {
  transform: translateY(-1px);
  opacity: 0.9;
  text-decoration: none;
}
.art-theme-toggle {
  background: none;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: border-color 0.2s;
}
.art-theme-toggle:hover { border-color: var(--accent); }

/* ===== HERO ===== */
.art-hero {
  text-align: center;
  padding: 64px 24px 40px;
}
.art-badge {
  display: inline-block;
  background: var(--accent-light);
  border: 1px solid var(--border-card);
  color: var(--accent);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  margin-bottom: 18px;
}
.art-hero h1 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 14px;
}
.art-hero .subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

/* ===== STATS ===== */
.art-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 28px 16px;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 0 auto;
}
.art-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.art-stat-val {
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  font-weight: 700;
  color: var(--accent);
  word-break: keep-all;
  overflow-wrap: normal;
}
.art-stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== ARTICLE BODY ===== */
.art-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}
.art-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 48px 0 14px;
}
.art-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 28px 0 10px;
}
.art-body p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.art-body ul, .art-body ol {
  margin: 0 0 16px 20px;
}
.art-body li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.art-body li strong, .art-body p strong {
  color: var(--text-primary);
}

/* Glass card */
.art-glass {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 24px 0;
}
.art-glass p { margin-bottom: 8px; }
.art-glass p:last-child { margin-bottom: 0; }
.art-glass-title {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* Highlight */
.art-highlight {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 14px 14px 0;
  margin: 24px 0;
}
.art-highlight p { margin-bottom: 8px; }
.art-highlight p:last-child { margin-bottom: 0; }

/* Blockquote */
blockquote {
  border-left: 3px solid var(--text-muted);
  padding: 14px 20px;
  margin: 24px 0;
  color: var(--text-dim);
  font-style: italic;
  background: var(--bg-card);
  border-radius: 0 10px 10px 0;
}

/* ===== FAQ ===== */
.art-faq {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.art-faq:hover { border-color: var(--accent); }
.art-faq-q {
  padding: 16px 20px;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}
.art-faq-q::after {
  content: '+';
  color: var(--accent);
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-left: 12px;
}
.art-faq-q.open::after { content: '\2212'; }
.art-faq-a {
  padding: 0 20px 16px;
  color: var(--text-secondary);
  display: none;
  font-size: 0.95rem;
  line-height: 1.6;
}
.art-faq-a.open { display: block; }

/* ===== CTA ===== */
.art-cta {
  text-align: center;
  padding: 48px 24px;
  margin: 48px 0 0;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
}
.art-cta h2 { margin: 0 0 10px !important; }
.art-cta p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.art-cta-btn {
  display: inline-block;
  background: var(--text-heading);
  color: var(--bg-body);
  padding: 14px 40px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  transition: transform 0.2s, opacity 0.2s;
}
.art-cta-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  text-decoration: none;
}

/* ===== OTHER TYPES ===== */
.art-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 24px 0;
}
.art-type-link {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.88rem;
  transition: border-color 0.2s, transform 0.2s;
}
.art-type-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}
.art-type-pct {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  margin-top: 4px;
  font-weight: 400;
}
.art-type-current {
  border-color: var(--accent);
  background: var(--accent-light);
  pointer-events: none;
  color: var(--text-heading);
}

/* ===== FOOTER ===== */
.art-footer {
  text-align: center;
  padding: 28px 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border-subtle);
}
.art-footer a { color: var(--accent); text-decoration: none; }
.art-footer a:hover { text-decoration: underline; }

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .art-hero { padding: 40px 16px 24px; }
  .art-body { padding: 16px 16px 40px; }
  .art-stats { gap: 8px; padding: 16px 12px; }
  .art-stat { padding: 10px 12px; min-width: 70px; }
  .art-stat-val { font-size: 0.95rem; }
  .art-cta { padding: 32px 16px; }
  .art-nav-brand { display: none; }
  .art-glass, .art-highlight { padding: 16px 18px; }
}
