:root {
  --article-accent: #e53935;
  --article-accent-dark: #c62828;
  --article-accent-soft: #fdecea;
  --article-text: #1f2937;
  --article-muted: #6b7280;
  --article-border: #e5e7eb;
  --article-surface: #f8f9fa;
  --article-card: #ffffff;
}

body {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f5f5f5;
  line-height: 1.7;
  color: var(--article-text);
}

article.article-container {
  background: var(--article-card);
  border-radius: 12px;
  padding: 40px;
  margin: 20px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 800px;
}

.article-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--article-border);
}

.article-title {
  font-size: 2.2rem;
  color: var(--article-text);
  margin-bottom: 10px;
  font-weight: 700;
}

.article-date {
  color: var(--article-muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.article-content {
  font-size: 1.05rem;
}

.article-content h2 {
  color: var(--article-accent);
  margin-top: 28px;
  font-size: 1.5rem;
  font-weight: 600;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin-bottom: 16px;
}

.article-content li {
  margin-bottom: 8px;
}

.summary {
  background: #eaf7ee;
  border: 1px solid #cfe9d6;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
  color: #155724;
}

.code {
  background: var(--article-surface);
  border: 1px solid var(--article-border);
  border-radius: 6px;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 16px 0;
}

.note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px;
  margin: 16px 0;
  color: #92400e;
}

.faq {
  background: var(--article-surface);
  border: 1px solid var(--article-border);
  border-radius: 8px;
  padding: 16px;
}

.faq h3 {
  margin: 0 0 10px;
}

.muted {
  color: var(--article-muted);
}

.section-item {
  margin-bottom: 10px;
}

.section-item-title {
  font-weight: bold;
}

.cta-button {
  display: block;
  text-align: center;
  background: var(--article-accent);
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.2s ease;
  margin: 30px 0;
  text-decoration: none;
}

.cta-button:hover {
  transform: scale(1.02);
  background: var(--article-accent-dark);
  color: #fff;
  text-decoration: none;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.tg-btn,
.vk-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-btn {
  background: #229ed9;
}

.vk-btn {
  background: #2787f5;
}

.tg-btn:hover,
.vk-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.ad-top-banner {
  text-align: center;
  margin: 16px 0;
}

@media (max-width: 768px) {
  article.article-container {
    padding: 24px 18px;
  }

  .article-title {
    font-size: 1.85rem;
  }
}
