/* Рекламные блоки (верхний и нижний) */
.advertising-section {
   margin-bottom: 2rem;
}

.advertising-block {
   background: linear-gradient(135deg, #dc3545, #e85a66);
   border-radius: 16px;
   padding: 1.5rem 2rem;
   box-shadow: var(--shadow-medium);
   transition: all 0.3s ease;
}

.advertising-block:hover {
   transform: translateY(-2px);
   box-shadow: var(--shadow-heavy);
}

.ad-content {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 1rem;
   color: white;
   font-weight: 500;
   text-align: center;
}

.ad-content span {
   font-size: 2rem;
}

/* Основная структура контента */
.content-wrapper {
   /* display: grid;
   grid-template-columns: 1fr 350px;
   gap: 2rem;
   margin-bottom: 3rem; */
}

/* Основная статья */
.article {
   background: var(--bg-primary);
   border-radius: 20px;
   box-shadow: var(--shadow-light);
   border: 1px solid var(--border-color);
   overflow: hidden;
   transition: all 0.3s ease;
}

.article:hover {
   box-shadow: var(--shadow-medium);
}

/* Заголовок статьи */
.article-header {
  background: var(--gradient-primary);
  color: white;
  padding: 3rem 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.article-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 1;
}

/* Контейнер для заголовка и изображения */
.article-header-top {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

/* Контент заголовка */
.article-header-content {
  flex: 1;
}

.article-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

/* Изображение в заголовке */
.article-header-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-heavy);
  border: 3px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* Мета информация */
.article-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

/* Адаптивность */
@media (max-width: 768px) {
  .article-header {
      padding: 2rem 1.5rem;
  }

  .article-header-top {
      flex-direction: column;
      gap: 1.5rem;
      margin-bottom: 1.5rem;
  }

  .article-header-image {
      width: 100%;
      height: 180px;
      order: -1;
  }

  .article-title {
      font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .article-header {
      padding: 1.5rem 1rem;
  }

  .article-header-image {
      height: 150px;
  }

  .article-title {
      font-size: 1.5rem;
      line-height: 1.4;
  }

  .article-meta {
      flex-direction: column;
      gap: 0.5rem;
  }
}
/* Содержимое статьи */
.article-content {
   padding: 0rem 2.5rem 2.5rem 2.5rem;
   line-height: 1.8;
   color: var(--text-primary);
}

.article-intro {
   font-size: 1.1rem;
   font-weight: 500;
   color: var(--primary-color);
   background: rgba(107, 70, 193, 0.05);
   padding: 1.5rem;
   border-radius: 12px;
   border-left: 4px solid var(--primary-color);
   position: relative;
}

.article-intro::before {
   content: "💡";
   position: absolute;
   top: -10px;
   left: 15px;
   background: var(--bg-primary);
   padding: 0 5px;
   font-size: 1.2rem;
}

.article-content h2 {
   color: var(--text-primary);
   font-size: 1.6rem;
   font-weight: 600;
   margin: 2.5rem 0 1rem;
   position: relative;
   padding-bottom: 0.5rem;
}

.article-content h2::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 60px;
   height: 3px;
   background: var(--gradient-secondary);
   border-radius: 2px;
}

.article-content h3 {
   color: #ffffff;
   font-size: 1.3rem;
   font-weight: 600;
   margin: 2rem 0 1rem;
}

.article-content p {
   margin-bottom: 1.5rem;
   text-align: justify;
   font-size: 1rem;
}

.article-content ul {
   margin-bottom: 1.5rem;
}

.article-content li {
   margin-bottom: 0.5rem;
   line-height: 1.6;
}

/* Выделенные блоки */
.article-highlight {
   background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
   border: 1px solid rgba(245, 158, 11, 0.3);
   border-radius: 16px;
   padding: 2rem;
   margin: 2rem 0;
   position: relative;
}

.article-highlight::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 3px;
   background: var(--gradient-secondary);
   border-radius: 16px 16px 0 0;
}

.article-highlight h3 {
   color: var(--accent-color);
   margin-bottom: 1rem;
   font-size: 1.2rem;
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

.article-highlight ul {
   margin: 0;
   padding-left: 1.5rem;
}

.article-highlight li {
   margin-bottom: 0.5rem;
   color: var(--text-secondary);
   line-height: 1.6;
}

.article-highlight li::marker {
   color: var(--accent-color);
}

/* Заключение */
.article-conclusion {
   background: rgba(107, 70, 193, 0.05);
   border: 1px solid rgba(107, 70, 193, 0.2);
   border-radius: 16px;
   padding: 2rem;
   margin: 2rem 0;
   position: relative;
}

.article-conclusion::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 3px;
   background: var(--gradient-primary);
   border-radius: 16px 16px 0 0;
}

.article-conclusion h3 {
   color: var(--primary-color);
   margin-bottom: 1rem;
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

.article-conclusion p {
   color: var(--text-secondary);
   margin-bottom: 0;
   font-weight: 500;
}

/* Теги статьи */
.article-tags {
   padding: 0 2.5rem 2.5rem;
   display: flex;
   flex-wrap: wrap;
   gap: 0.75rem;
   justify-content: space-between;
   align-items: flex-start;
}

/* Контейнер для тегов слева */
.tags-left {
   display: flex;
   flex-wrap: wrap;
   gap: 0.75rem;
   flex: 1;
}

/* Автор справа */
.article-author {
   color: #666;
   font-size: 0.85rem;
   font-style: italic;
   font-weight: 400;
   white-space: nowrap;
   margin-left: auto;
   opacity: 0.8;
}

.tag {
   background: var(--bg-accent);
   color: var(--primary-color);
   padding: 0.5rem 1rem;
   border-radius: 50px;
   font-size: 0.9rem;
   font-weight: 500;
   border: 1px solid var(--border-color);
   transition: all 0.3s ease;
   cursor: pointer;
   text-decoration: none;
}

.tag:hover {
   background: var(--primary-color);
   color: white;
   transform: translateY(-2px);
   box-shadow: var(--shadow-light);
}
/* Сайдбар */
.sidebar {
   display: flex;
   flex-direction: column;
   gap: 1.5rem;
}

.sidebar-block {
   background: var(--bg-primary);
   border-radius: 16px;
   box-shadow: var(--shadow-light);
   transition: all 0.3s ease;
   overflow: hidden;
}

.sidebar-block:hover {
   transform: translateY(-2px);
   box-shadow: var(--shadow-medium);
}

/* Рекламные блоки в сайдбаре */
.sidebar-ad {
   background: linear-gradient(135deg, var(--secondary-color), #f472b6);
   color: white;
   padding: 1.5rem;
   text-align: center;
   min-height: 120px;
   display: flex;
   align-items: center;
   justify-content: center;
}

.sidebar-ad .ad-content {
   flex-direction: column;
   gap: 0.75rem;
}

.sidebar-ad .ad-content span {
   font-size: 2.5rem;
}


/* Адаптивность для статьи */
@media (max-width: 1024px) {
   .content-wrapper {
       grid-template-columns: 1fr;
       gap: 2rem;
   }

   .sidebar {
       order: 2;
   }
}

@media (max-width: 768px) {
   .article-header {
       padding: 2rem 1.5rem;
   }

   .article-title {
       font-size: 1.8rem;
   }

   .article-meta {
       gap: 1rem;
   }

   .article-meta span {
       font-size: 0.85rem;
       padding: 0.4rem 0.8rem;
   }

   .article-content {
       padding: 2rem 1.5rem;
   }

   .article-content h2 {
       font-size: 1.4rem;
       margin: 2rem 0 0.8rem;
   }

   .article-intro,
   .article-highlight,
   .article-conclusion {
       padding: 1.5rem;
       margin: 1.5rem 0;
   }

   .article-tags {
       padding: 0 1.5rem 2rem;
   }

   .advertising-block {
       padding: 1rem;
   }

   .sidebar-block {
       padding: 1rem;
   }

   .sidebar-ad {
       padding: 1rem;
       min-height: 100px;
   }

   .ad-content span {
       font-size: 1.5rem;
   }

   .sidebar-ad .ad-content span {
       font-size: 2rem;
   }
}

@media (max-width: 480px) {
   .article-header {
       padding: 1.5rem 1rem;
   }

   .article-title {
       font-size: 1.5rem;
       line-height: 1.4;
   }

   .article-meta {
       flex-direction: column;
       gap: 0.5rem;
   }

   .article-content {
       padding: 1.5rem 1rem;
   }

   .article-content h2 {
       font-size: 1.2rem;
   }

   .article-intro,
   .article-highlight,
   .article-conclusion {
       padding: 1rem;
       margin: 1rem 0;
   }

   .article-tags {
       padding: 0 1rem 1.5rem;
   }

   .tag {
       font-size: 0.8rem;
       padding: 0.4rem 0.8rem;
   }

   .advertising-block {
       padding: 1rem;
   }

   .sidebar-list a {
       font-size: 0.9rem;
   }
}

/* ==================== НАВИГАЦИЯ МЕЖДУ СТАТЬЯМИ ==================== */
/* ==================== НАВИГАЦИЯ МЕЖДУ СТАТЬЯМИ ==================== */
.article-navigation {
   margin: 3rem 0;
   padding: 2rem 0;
   border-top: 1px solid var(--border-color);
   border-bottom: 1px solid var(--border-color);
}

.article-navigation .nav-container {
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   gap: 1.5rem;
   max-width: 1200px;
   margin: 0 auto;
}

.article-navigation .nav-item {
   flex: 1;
   min-width: 0;
}

.article-navigation .nav-link {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   text-decoration: none;
   transition: all 0.3s ease;
   padding: 0.5rem 0;
   color: inherit;
}

.article-navigation .nav-link:hover {
   padding-left: 0.5rem;
   padding-right: 0.5rem;
}

/* Стрелки */
.article-navigation .nav-arrow {
   font-size: 1.2rem;
   color: var(--primary-color);
   opacity: 0;
   transition: all 0.3s ease;
   flex-shrink: 0;
}

.article-navigation .nav-link:hover .nav-arrow {
   opacity: 1;
}

.article-navigation .nav-prev .nav-arrow {
   transform: translateX(5px);
}

.article-navigation .nav-prev .nav-link:hover .nav-arrow {
   transform: translateX(0);
}

.article-navigation .nav-next .nav-arrow {
   transform: translateX(-5px);
}

.article-navigation .nav-next .nav-link:hover .nav-arrow {
   transform: translateX(0);
}

/* Контент навигации */
.article-navigation .nav-content {
   display: flex;
   flex-direction: column;
   gap: 0.3rem;
   flex: 1;
   min-width: 0;
}

.article-navigation .nav-prev .nav-content {
   align-items: flex-start;
}

.article-navigation .nav-next .nav-content {
   align-items: flex-end;
   text-align: right;
}

.article-navigation .nav-label {
   font-size: 0.75rem;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   color: var(--text-secondary);
   font-weight: 600;
   opacity: 0.7;
   transition: all 0.3s ease;
   white-space: nowrap;
}

.article-navigation .nav-link:hover .nav-label {
   opacity: 1;
   color: var(--primary-color);
}

.article-navigation .nav-title {
   font-size: 0.95rem;
   font-weight: 400;
   color: var(--text-secondary);
   line-height: 1.4;
   transition: all 0.3s ease;
   position: relative;
   overflow: hidden;
   text-overflow: ellipsis;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
}

.article-navigation .nav-link:hover .nav-title {
   color: var(--primary-color);
   font-weight: 500;
}

/* Подчеркивание при наведении */
.article-navigation .nav-title::after {
   content: '';
   position: absolute;
   bottom: -2px;
   left: 0;
   width: 0;
   height: 2px;
   background: var(--gradient-primary);
   transition: width 0.3s ease;
   border-radius: 1px;
}

.article-navigation .nav-next .nav-title::after {
   left: auto;
   right: 0;
}

.article-navigation .nav-link:hover .nav-title::after {
   width: 100%;
}

/* Плейсхолдер для пустых мест */
.article-navigation .nav-placeholder {
   height: 1px;
}

/* Адаптивность - сначала сжимаем на одной линии */
@media (max-width: 900px) {
   .article-navigation .nav-container {
       gap: 1rem;
   }

   .article-navigation .nav-title {
       font-size: 0.9rem;
   }

   .article-navigation .nav-label {
       font-size: 0.7rem;
   }
}

@media (max-width: 700px) {
   .article-navigation .nav-arrow {
       font-size: 1rem;
   }

   .article-navigation .nav-title {
       font-size: 0.85rem;
   }
}

/* Вертикальная раскладка с центрированием */
@media (max-width: 500px) {
   .article-navigation .nav-container {
       flex-direction: column;
       gap: 1.5rem;
       align-items: center;
   }

   .article-navigation .nav-item {
       max-width: 100%;
       width: 100%;
   }

   /* Центрируем оба блока */
   .article-navigation .nav-prev .nav-content,
   .article-navigation .nav-next .nav-content {
       align-items: center;
       text-align: center;
   }

   /* Центрируем подчеркивание */
   .article-navigation .nav-title::after,
   .article-navigation .nav-next .nav-title::after {
       left: 50%;
       transform: translateX(-50%);
   }
}