/* ============================================
   СТИЛИ ДЛЯ СТРАНИЦ СТАТЕЙ (news/*)
   ============================================ */

/* ===== ХЛЕБНЫЕ КРОШКИ / ШАПКА СТАТЬИ ===== */
.article-hero {
  padding: 180px 5% 60px;
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.article-hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 206, 201, 0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.article-hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.article-hero .breadcrumbs {
  justify-content: center;
}

.article-category-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--gradient);
  color: white;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.3);
}

.article-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--dark-light);
  font-size: 0.9rem;
  font-weight: 600;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== КОНТЕНТ СТАТЬИ ===== */
.article-body {
  padding: 60px 5% 80px;
  background: var(--light);
}

.article-content {
  max-width: 780px;
  margin: 0 auto;
  background: white;
  border-radius: 32px;
  padding: 60px;
  box-shadow: var(--shadow-md);
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--dark);
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content > *:last-child {
  margin-bottom: 0;
}

/* Лид-абзац */
.article-content .lead {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.55;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.article-content .lead::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--gradient);
}

/* Заголовки */
.article-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 48px 0 20px;
  color: var(--dark);
  letter-spacing: -0.01em;
  line-height: 1.3;
  position: relative;
  padding-left: 20px;
}

.article-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--primary);
}

/* Параграфы */
.article-content p {
  margin-bottom: 20px;
  color: var(--dark);
}

/* Списки */
.article-content ul,
.article-content ol {
  margin: 20px 0 24px;
  padding-left: 28px;
}

.article-content ul li,
.article-content ol li {
  margin-bottom: 10px;
  color: var(--dark);
  line-height: 1.7;
}

.article-content ul li {
  list-style: none;
  position: relative;
}

.article-content ul li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--gradient);
  border-radius: 50%;
}

.article-content ol li {
  list-style: decimal;
}

.article-content ol li::marker {
  color: var(--primary);
  font-weight: 700;
}

/* Цитаты / выделение */
.article-content blockquote {
  margin: 32px 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.06), rgba(0, 206, 201, 0.06));
  border-left: 4px solid var(--primary);
  border-radius: 0 16px 16px 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--dark);
}

.article-content blockquote p {
  margin-bottom: 0;
}

.article-content blockquote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

/* Инфо-блоки */
.article-content .info-box {
  margin: 32px 0;
  padding: 28px 32px;
  background: var(--light);
  border-radius: 20px;
  border-left: 4px solid var(--secondary);
}

.article-content .info-box h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--secondary);
}

.article-content .info-box p:last-child {
  margin-bottom: 0;
}

/* Акцентный блок */
.article-content .highlight {
  margin: 32px 0;
  padding: 32px;
  background: var(--gradient);
  border-radius: 24px;
  color: white;
  text-align: center;
}

.article-content .highlight p {
  color: white;
  margin-bottom: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.article-content .highlight .big-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

/* Ссылки в тексте */
.article-content a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: all var(--transition);
}

.article-content a:hover {
  color: var(--secondary);
  text-decoration-color: var(--secondary);
}

/* Изображение / визуал статьи */
.article-visual {
  margin: 40px 0;
  height: 320px;
  background: var(--gradient);
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.article-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255, 255, 255, 0.15));
}

/* Поделиться */
.article-share {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

.article-share h3 {
  font-size: 1rem;
  margin: 0 0 16px;
  color: var(--dark);
}

.article-share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--light);
  border: 2px solid var(--border);
  border-radius: 50px;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: inherit;
}

.share-btn:hover {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Навигация между статьями */
.article-nav {
  max-width: 780px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.article-nav-link {
  background: white;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--dark);
  border: 2px solid transparent;
}

.article-nav-link:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.article-nav-link .direction {
  color: var(--dark-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.article-nav-link .title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--dark);
}

.article-nav-link.next {
  text-align: right;
}

/* Тёмная тема */
[data-theme="dark"] .article-content,
[data-theme="dark"] .article-nav-link {
  background: var(--white);
  color: var(--dark);
}

[data-theme="dark"] .article-content .info-box {
  background: #252738;
}

[data-theme="dark"] .share-btn {
  background: #252738;
  border-color: var(--border);
  color: var(--dark);
}

[data-theme="dark"] .share-btn:hover {
  background: var(--gradient);
  color: white;
  border-color: transparent;
}

/* Адаптив */
@media (max-width: 768px) {
  .article-hero {
    padding: 140px 5% 40px;
  }

  .article-body {
    padding: 40px 5% 60px;
  }

  .article-content {
    padding: 32px 24px;
    border-radius: 24px;
    font-size: 1rem;
  }

  .article-content h2 {
    font-size: 1.35rem;
    margin-top: 36px;
  }

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

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

  .article-content blockquote,
  .article-content .info-box,
  .article-content .highlight {
    padding: 20px;
  }

  .article-visual {
    height: 220px;
    font-size: 3.5rem;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav-link.next {
    text-align: left;
  }
}