: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: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--article-border);
}

.article-title {
  font-size: 2.5rem;
  color: var(--article-text);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.article-meta {
  color: var(--article-muted);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.article-category {
  display: inline-block;
  padding: 8px 16px;
  background: var(--article-accent);
  color: #fff;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

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

.article-content h2 {
  color: var(--article-accent);
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 600;
}

.article-content h3 {
  color: #495057;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 600;
}

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

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

.highlight-box {
  background: var(--article-accent-soft);
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
  color: #721c24;
}

.highlight-box h4 {
  color: #721c24;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.warning-box {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
  border-left: 4px solid #ffc107;
}

.warning-box h4 {
  color: #856404;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.example-box {
  background: var(--article-surface);
  border: 1px solid var(--article-border);
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
  border-left: 4px solid var(--article-muted);
}

.example-box h4 {
  color: #495057;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.step-list {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
}

.step-list li {
  counter-increment: step-counter;
  margin-bottom: 25px;
  padding: 20px;
  background: var(--article-surface);
  border-radius: 8px;
  border-left: 4px solid var(--article-accent);
  position: relative;
}

.step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: -15px;
  top: 20px;
  background: var(--article-accent);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

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

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

.article-content a {
  color: inherit;
  text-decoration: none;
}

.article-content a.cta-button,
.article-content a.cta-button:hover {
  color: #fff;
}

.article-content a:not(.cta-button):hover {
  text-decoration: underline;
}

.social-subscribe {
  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;
  }

  .step-list li {
    padding-left: 24px;
  }

  .step-list li::before {
    left: -8px;
  }
}
