/* Стили статей (перенос из GeniusOS, адаптировано под Archy) */
.article-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.article-header { margin-bottom: 40px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-light);
}
.article-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--brand-900);
  line-height: 1.2;
  margin-bottom: 16px;
}
.article-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.6;
}
.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}
.article-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-900);
  margin: 40px 0 16px;
}
.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-900);
  margin: 28px 0 12px;
}
.article-content p { margin-bottom: 18px; }
.article-content ul,
.article-content ol {
  margin: 16px 0 20px;
  padding-left: 24px;
}
.article-content li { margin-bottom: 10px; }
.article-content blockquote {
  border-left: 4px solid var(--accent-500);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--brand-50);
  border-radius: 0 12px 12px 0;
  font-style: italic;
}
.article-content strong { color: var(--brand-900); font-weight: 700; }

.info-box {
  background: linear-gradient(135deg, #fff7ed 0%, #eff6ff 100%);
  border-left: 4px solid var(--accent-500);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 12px 12px 0;
}
.info-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-900);
  margin-bottom: 10px;
}
.info-box p:last-child { margin-bottom: 0; }

.periods-table,
.comparison-table table,
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 0.92rem;
}
.periods-table th,
.comparison-table th,
.article-table th {
  background: var(--brand-900);
  color: var(--white);
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
}
.periods-table td,
.comparison-table td,
.article-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.periods-table tr:hover td,
.article-table tr:hover td { background: var(--brand-50); }

.references {
  background: var(--brand-50);
  padding: 28px;
  margin: 40px 0 0;
  border-radius: 16px;
}
.references h3 { margin-top: 0; color: var(--brand-900); }
.references ol {
  font-size: 0.9rem;
  color: var(--text-light);
  padding-left: 20px;
}
.references li { margin-bottom: 10px; }

.breadcrumb {
  list-style: none;
  padding: 16px 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}
.breadcrumb a { color: var(--accent-500); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}
.method-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.25s ease;
}
.method-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.method-icon {
  width: 56px;
  height: 56px;
  background: var(--brand-50);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}
.method-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-900);
  margin-bottom: 6px;
}
.method-author {
  font-size: 13px;
  color: var(--accent-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.method-pros {
  background: var(--brand-50);
  padding: 14px;
  border-radius: 12px;
  margin: 16px 0;
  font-size: 0.9rem;
}
.method-pros ul { margin: 8px 0 0; padding-left: 18px; }

.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.test-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.test-card h3 {
  font-size: 1.25rem;
  color: var(--brand-900);
  font-weight: 800;
}
.test-meta {
  font-size: 13px;
  color: var(--text-light);
}

/* Interactive test pages */
.test-page {
  padding: 40px 0 80px;
}
.test-container {
  max-width: 720px;
  margin: 0 auto;
}
.test-header {
  text-align: center;
  margin-bottom: 40px;
}
.test-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--brand-900);
  margin-bottom: 12px;
  line-height: 1.2;
}
.test-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.6;
}
.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  margin-bottom: 28px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-500), var(--brand-600));
  transition: width 0.3s ease;
}
.question-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.question-number {
  font-size: 13px;
  color: var(--accent-500);
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.question-text {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 700;
  color: var(--brand-900);
  margin-bottom: 24px;
  line-height: 1.45;
}
.answer-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.answer-option {
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.answer-option:hover {
  border-color: var(--accent-500);
  background: #fff7ed;
}
.answer-option.selected {
  border-color: var(--accent-500);
  background: #fff7ed;
  color: var(--brand-900);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.15);
}
.answer-option:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
}
.btn-next {
  width: 100%;
  padding: 16px 24px;
  background: var(--accent-500);
  color: var(--white);
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  margin-top: 24px;
}
.btn-next:hover:not(:disabled) {
  background: var(--accent-600);
  transform: translateY(-1px);
}
.btn-next:disabled {
  background: var(--border);
  color: var(--text-light);
  cursor: not-allowed;
  transform: none;
}
.result-card {
  background: linear-gradient(135deg, var(--brand-50) 0%, #fff7ed 100%);
  border: 2px solid var(--brand-200);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  margin-bottom: 24px;
}
.result-card h2 {
  font-size: 1.75rem;
  color: var(--brand-900);
  margin-bottom: 16px;
}
.result-card .result-type {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-500);
  margin: 16px 0 20px;
  padding: 14px 20px;
  background: var(--white);
  border-radius: 14px;
  display: inline-block;
}
.result-card p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: left;
}
.result-score {
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand-600);
  margin: 16px 0;
}
.result-level {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding: 10px 20px;
  border-radius: 999px;
  display: inline-block;
}
.level-high { background: #d1fae5; color: #065f46; }
.level-medium { background: #fef3c7; color: #92400e; }
.level-low { background: #fee2e2; color: #991b1b; }
.sphere-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 24px 0;
  text-align: left;
}
.sphere-item {
  background: var(--white);
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sphere-name { font-weight: 700; color: var(--brand-900); }
.sphere-score {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
}
.sphere-high { background: #d1fae5; color: #065f46; }
.sphere-medium { background: #fef3c7; color: #92400e; }
.sphere-low { background: #fee2e2; color: #991b1b; }
.recommendations,
.result-card .recommendations {
  background: var(--white);
  padding: 24px;
  border-radius: 14px;
  margin: 24px 0;
  text-align: left;
}
.recommendations h4,
.result-card .recommendations h4 {
  font-size: 1.1rem;
  color: var(--brand-900);
  margin-bottom: 12px;
}
.recommendations ul,
.result-card .recommendations ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.recommendations li,
.result-card .recommendations li {
  padding: 8px 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.recommendations li:last-child,
.result-card .recommendations li:last-child {
  border-bottom: none;
}
.recommendations li::before,
.result-card .recommendations li::before {
  content: "→ ";
  color: var(--accent-500);
  font-weight: 700;
}
.professions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
  text-align: left;
}
.profession-item {
  background: var(--white);
  padding: 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
}
.profession-icon { font-size: 1.4rem; }
.profession-name { font-weight: 600; color: var(--brand-900); font-size: 0.95rem; }
.skills-box,
.development-box {
  background: var(--white);
  padding: 24px;
  border-radius: 14px;
  margin: 20px 0;
  text-align: left;
}
.skills-box h4,
.development-box h4 {
  font-size: 1.1rem;
  color: var(--brand-900);
  margin-bottom: 12px;
}
.skills-box ul,
.development-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.skills-box li,
.development-box li {
  padding: 8px 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.skills-box li:last-child,
.development-box li:last-child {
  border-bottom: none;
}
.skills-box li::before { content: "★ "; color: var(--accent-500); }
.development-box li::before {
  content: "→ ";
  color: var(--accent-500);
  font-weight: 700;
}
.result-card .btn-primary {
  display: inline-block;
  margin-top: 16px;
}
.test-page > .cta-box {
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .question-card { padding: 24px 20px; }
  .professions-grid { grid-template-columns: 1fr; }
  .result-score { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .methods-grid { grid-template-columns: 1fr; }
  .periods-table, .article-table { font-size: 0.8rem; }
  .periods-table th, .periods-table td { padding: 8px; }
}
