/* css/article.css — Blog article styles */

/* ============ ARTICLE HEADER ============ */
.article-header {
  padding-bottom: var(--space-xl);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.article-back {
  color: var(--accent-green);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.article-back:hover {
  color: var(--text-primary);
}

.article-date,
.article-reading {
  white-space: nowrap;
}

.article-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
}

.article-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 65ch;
  margin-bottom: var(--space-lg);
}

.article-tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ============ ARTICLE AUTHOR ============ */
.article-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-xl);
}

.article-author--bottom {
  border-bottom: none;
  border-top: 1px solid var(--border);
  margin-top: var(--space-2xl);
  margin-bottom: 0;
  padding-bottom: 0;
}

.article-author__photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--border-accent);
  object-fit: cover;
  flex-shrink: 0;
}

.article-author__name {
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
}

.article-author__role {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.article-author__role a {
  color: var(--accent-green);
  text-decoration: none;
}
.article-author__role a:hover {
  text-decoration: underline;
}

/* ============ TL;DR ============ */
.article-tldr {
  background: var(--accent-green-glow);
  border: 1px solid var(--accent-green-dim);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
  position: relative;
}

.article-tldr__label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.article-tldr p {
  color: var(--text-primary);
  line-height: var(--leading-relaxed);
}

/* ============ TOC ============ */
.article-toc {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.article-toc__title {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.article-body .article-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-body .article-toc__list li {
  list-style: none;
  margin-bottom: var(--space-sm);
  padding-left: var(--space-lg);
  position: relative;
}

.article-body .article-toc__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: var(--weight-bold);
}

.article-body .article-toc__list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.article-body .article-toc__list a:hover {
  color: var(--accent-green);
}

/* ============ ARTICLE BODY ============ */
.article-body {
  padding-bottom: var(--space-3xl);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-md);
}

.article-body p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
}

.article-body ul,
.article-body ol {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  padding-left: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.article-body li {
  margin-bottom: var(--space-sm);
}

.article-body strong {
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
}

.article-lead {
  font-size: var(--text-lg);
  color: var(--text-primary) !important;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl) !important;
}

/* ============ NOTE ============ */
.article-note {
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent-terra);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-2xl);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}
.article-note strong {
  color: var(--accent-terra);
}

/* ============ CASE CARDS (article version) ============ */
.case-card-article {
  display: flex;
  gap: var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  transition: border-color var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}
.case-card-article:hover {
  border-color: var(--accent-green-dim);
  transform: translateY(-2px);
}

.case-card-article__num {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--accent-green);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
  min-width: 48px;
}

.case-card-article__body h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.case-card-article__body p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
}

.case-card-article__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.case-card-article__metrics span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-green);
  background: var(--accent-green-glow);
  border: 1px solid var(--accent-green-dim);
  border-radius: var(--radius-full);
  padding: 2px var(--space-md);
  white-space: nowrap;
}

/* ============ BREAKDOWN ============ */
.article-breakdown {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.article-breakdown > h3 {
  margin-bottom: var(--space-lg);
}

.article-breakdown > p {
  font-size: var(--text-sm);
}

.article-breakdown__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  align-items: start;
}

.article-breakdown__item {
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
}

/* Длинные блоки (>150 символов или списки) — на всю ширину */
.article-breakdown__item:has(ol),
.article-breakdown__item:has(ul) {
  grid-column: 1 / -1;
}

/* Первый блок в каждом breakdown обычно самый длинный */
.article-breakdown__item:first-child {
  grid-column: 1 / -1;
}

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

.article-breakdown__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.article-breakdown__item p,
.article-breakdown__item ul,
.article-breakdown__item ol {
  font-size: var(--text-sm);
  margin-bottom: 0;
}

.article-breakdown__item li {
  margin-bottom: var(--space-xs);
}

/* ============ CALLOUT ============ */
.article-callout {
  background: var(--accent-green-glow);
  border: 1px solid var(--accent-green-dim);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.article-callout--terra {
  background: var(--accent-terra-glow);
  border-color: var(--accent-terra-dim);
}
.article-callout--terra strong {
  color: var(--accent-terra);
}

/* ============ LEVERS GRID ============ */
.levers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.lever-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}
.lever-card:hover {
  border-color: var(--accent-green-dim);
  transform: translateY(-3px);
}

.lever-card__num {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--accent-green);
  opacity: 0.25;
  margin-bottom: var(--space-md);
}

.lever-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
}

.lever-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ============ STEP BLOCKS ============ */
.step-block {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
}
.step-block:last-of-type {
  border-bottom: none;
}

.step-block__num {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--accent-green);
  opacity: 0.2;
  line-height: 1;
  flex-shrink: 0;
  min-width: 48px;
  padding-top: 4px;
}

.step-block__content h3 {
  margin-bottom: var(--space-sm);
}

.step-block__content p {
  font-size: var(--text-sm);
}

.step-block__content ul,
.step-block__content ol {
  font-size: var(--text-sm);
}

/* ============ PHASES GRID ============ */
.phases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.article-llm-guide .phases-intro {
  max-width: 68ch;
  margin-bottom: var(--space-xl);
  color: var(--text-secondary);
}

.phase-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--duration-normal) var(--ease-out);
}
.phase-card:hover {
  border-color: var(--accent-green-dim);
}

.phase-card__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
  padding: 2px var(--space-md);
  background: var(--accent-green-glow);
  border-radius: var(--radius-full);
  display: inline-block;
}

.phase-card__label--terra {
  color: var(--accent-terra);
  background: var(--accent-terra-glow);
}

.phase-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
   margin-bottom: 0;
}

.article-llm-guide .phases-grid {
  align-items: stretch;
}

.article-llm-guide .phase-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  height: 100%;
}

.article-llm-guide .phase-card__summary {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.phase-card ol {
  padding-left: var(--space-xl);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}
.phase-card li {
  margin-bottom: var(--space-sm);
}

.article-llm-guide .phase-card ol {
  margin: 0;
}

.article-llm-guide .phase-card__result {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.article-llm-guide .phase-card__result-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-green);
  margin-bottom: var(--space-xs);
}

.article-llm-guide .phase-card__result p {
  margin-bottom: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============ ARTICLE TABLE ============ */
.article-table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.article-llm-guide .article-body {
  overflow-x: clip;
}

.article-llm-guide .article-table-wrap {
  overflow-y: hidden;
  max-width: 100%;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  contain: inline-size;
}

.article-llm-guide .article-table {
  width: max-content;
  min-width: 100%;
}

.article-table thead {
  background: var(--bg-elevated);
}

.article-table th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.article-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

.article-table tbody tr:last-child td {
  border-bottom: none;
}

.article-table tbody tr:hover {
  background: var(--bg-surface);
}

/* Priority badges */
.priority {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 2px var(--space-md);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.priority--critical {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.25);
}

.priority--high {
  color: #ffa94d;
  background: rgba(255, 169, 77, 0.12);
  border: 1px solid rgba(255, 169, 77, 0.25);
}

.priority--mid {
  color: var(--accent-green);
  background: var(--accent-green-glow);
  border: 1px solid var(--accent-green-dim);
}

/* ============ CONCLUSION ============ */
.article-conclusion {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-top: var(--space-2xl);
  text-align: center;
}

.article-conclusion h2 {
  border-top: none !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: var(--space-md) !important;
}

.article-conclusion p {
  margin-bottom: var(--space-xl);
}

.article-conclusion__formula {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.article-conclusion__formula span {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  white-space: nowrap;
}

.article-conclusion__formula span:nth-child(even) {
  background: transparent;
  border: none;
  color: var(--accent-green);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  padding: 0;
}

/* ============ ARTICLE CTA ============ */
.article-cta {
  text-align: center;
  padding: var(--space-2xl);
  margin-top: var(--space-2xl);
  background: linear-gradient(135deg, var(--accent-green-glow), var(--accent-terra-glow));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
}

.article-cta h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.article-cta p {
  color: var(--text-secondary);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

/* ============ SCORE GRID ============ */
.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.score-card {
  background:
    radial-gradient(circle at top right, rgba(136, 255, 136, 0.12), transparent 45%),
    var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.article-llm-guide .score-grid {
  align-items: stretch;
}

.article-llm-guide .score-card {
  height: 100%;
}

.score-card:hover {
  border-color: var(--accent-green-dim);
  transform: translateY(-3px);
}

.score-card__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.score-card__value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1;
  color: var(--text-primary);
  margin-block: var(--space-md);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.score-card__note {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============ BAR CHART ============ */
.bar-chart {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.bar-chart__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-lg);
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(140px, 240px) 1fr auto;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.bar-row:last-child {
  margin-bottom: 0;
}

.bar-row__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.bar-row__track {
  position: relative;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  overflow: hidden;
  border: 1px solid var(--border);
}

.bar-row__fill {
  display: block;
  width: var(--fill, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(136, 255, 136, 0.4), rgba(136, 255, 136, 0.95));
}

.bar-row__fill--terra {
  background: linear-gradient(90deg, rgba(255, 143, 92, 0.35), rgba(255, 143, 92, 0.95));
}

.bar-row__value {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-primary);
  white-space: nowrap;
}

/* ============ VERDICTS ============ */
.verdict-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px var(--space-md);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.verdict-chip--pass {
  color: var(--accent-green);
  background: var(--accent-green-glow);
  border: 1px solid var(--accent-green-dim);
}

.verdict-chip--borderline {
  color: #ffd166;
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.3);
}

.verdict-chip--weak {
  color: #ffb86b;
  background: rgba(255, 184, 107, 0.12);
  border: 1px solid rgba(255, 184, 107, 0.3);
}

.verdict-chip--fail {
  color: #ff8f5c;
  background: rgba(255, 143, 92, 0.12);
  border: 1px solid rgba(255, 143, 92, 0.28);
}

.verdict-chip--autofail {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.28);
}

/* ============ AUDIT FLOW ============ */
.audit-flow {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  position: relative;
}

.audit-flow::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 143, 92, 0.55), rgba(136, 255, 136, 0.35));
}

.audit-flow__node {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(255, 143, 92, 0.14), transparent 42%),
    var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-lg) var(--space-lg) calc(var(--space-2xl) + 10px);
  min-height: 0;
  overflow: hidden;
}

.audit-flow__node::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 143, 92, 0.95), rgba(136, 255, 136, 0.85));
  box-shadow: 0 0 0 6px rgba(255, 143, 92, 0.08);
}

.audit-flow__node::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(255, 143, 92, 0.9), rgba(136, 255, 136, 0.55));
}

.audit-flow__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-terra);
  margin-bottom: var(--space-sm);
}

.audit-flow__node p {
  margin-bottom: 0;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

/* ============ MOBILE ============ */
@media (max-width: 768px) {
  .article-meta {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .article-title {
    font-size: var(--text-2xl);
  }

  .article-body h2 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
    line-height: 1.08;
  }

  .case-card-article {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .case-card-article__num {
    font-size: var(--text-xl);
    min-width: auto;
  }

  .step-block {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .step-block__num {
    min-width: auto;
    font-size: var(--text-xl);
  }


  .levers-grid,
  .phases-grid {
    grid-template-columns: 1fr;
  }

  .score-grid {
    grid-template-columns: 1fr;
  }

  .score-card {
    min-height: 0;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .audit-flow__node {
    min-height: 0;
    padding-left: calc(var(--space-xl) + 10px);
  }

  .audit-flow::before {
    left: 18px;
  }

  .audit-flow__node::before {
    left: 10px;
  }

  .article-conclusion__formula {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .article-conclusion__formula span:nth-child(even) {
    font-size: var(--text-base);
  }

  .article-table {
    font-size: var(--text-xs);
  }

  .article-table th,
  .article-table td {
    padding: var(--space-sm);
  }

  .article-llm-guide .phase-card {
    padding: var(--space-lg);
  }

  .article-llm-guide .phase-card__summary,
  .article-llm-guide .phase-card__result p {
    font-size: var(--text-xs);
  }

  .article-llm-guide .phases-intro {
    margin-bottom: var(--space-lg);
  }

  .article-table-wrap::after {
    content: "Таблицу можно прокрутить в сторону";
    display: block;
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    background: linear-gradient(180deg, rgba(10, 11, 16, 0), rgba(10, 11, 16, 0.92));
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 480px) {
  .article-title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .article-llm-guide .article-body {
    padding-bottom: 7rem;
  }

  .article-cta {
    padding: var(--space-xl);
  }
}
