/* ===== Страницы-статьи о требованиях ===== */

.article-doc {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.article-meta {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.article-num {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 2px 8px;
}

.article-fine {
  font-size: 11px;
  color: var(--accent-pink);
  background: rgba(224, 112, 144, 0.08);
  border: 1px solid rgba(224, 112, 144, 0.25);
  border-radius: 2px;
  padding: 2px 8px;
}

.article-doc h1 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.article-intro {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.article-doc h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-cyan);
  margin: 1.75rem 0 0.85rem;
}

/* ===== Пронумерованные шаги ===== */
.article-steps {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.article-step {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.8rem 1rem 0.8rem 3rem;
  position: relative;
  counter-increment: step-counter;
}

.article-step::before {
  content: counter(step-counter);
  position: absolute;
  left: 0.7rem;
  top: 0.8rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--accent-cyan);
  color: #1a1a2e;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-step strong {
  display: block;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.article-step p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.article-step code {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 1px 5px;
  color: var(--accent-yellow);
}

/* ===== Блок кода ===== */
.article-code {
  background: #0f0f1a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0.5rem 0 1rem;
  overflow-x: auto;
}

.article-code-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.article-code pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--accent-cyan);
  line-height: 1.7;
  white-space: pre;
}

.article-code .kw  { color: var(--accent-pink); }
.article-code .str { color: var(--accent-yellow); }
.article-code .cm  { color: #555; }

/* ===== Предупреждения и советы ===== */
.article-warning {
  background: rgba(240, 198, 116, 0.07);
  border-left: 3px solid var(--accent-yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.article-warning strong { color: var(--accent-yellow); }

.article-tip {
  background: rgba(78, 205, 196, 0.06);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.article-tip strong { color: var(--accent-cyan); }

/* ===== Официальные ссылки ===== */
.article-links {
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
  padding-top: 1.25rem;
}

.article-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-links li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
}

.article-links li::before {
  content: '↗';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
}

.article-links a {
  color: var(--accent-blue);
}

.article-links li span {
  color: var(--text-muted);
  font-size: 12px;
}

/* ===== Навигация между требованиями ===== */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.article-nav a {
  font-size: 12px;
}
