/* ============================================
   РЕКЛАМНЫЕ БЛОКИ (верхний и нижний)
   ============================================ */

.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);
}

/* ============================================
   ЛУННЫЕ ДАННЫЕ В СТАТЬЕ
   ============================================ */

.article-lunar-meta {
    margin-top: 20px;
    padding: 18px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 15px;
    border-left: 4px solid #7e57c2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-lunar-meta::before {
    content: '🌜 Лунный календарь на сегодня';
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    color: #5e35b1;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lunar-data-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-lunar-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(126, 87, 194, 0.1);
    border-radius: 20px;
    color: #5e35b1;
    font-size: 0.88em;
    transition: all 0.3s ease;
    border: 1px solid rgba(126, 87, 194, 0.2);
}

/* ============================================
   СОДЕРЖИМОЕ СТАТЬИ
   ============================================ */

.article-content {
    padding: 0rem 1.5rem 1.5rem 1.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);
    margin-bottom: 2rem;
    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: var(--text-primary);
    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.2rem;
    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-footer-section {
    padding: 0 2.5rem 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 2rem;
}

/* Левая часть - теги */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Правая часть - похожие статьи */
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Заголовки секций */
.footer-section-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    padding-bottom: 0.5rem;
    position: relative;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

/* Контейнер тегов */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.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;
    display: inline-block;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.no-tags {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

/* Список похожих статей (стиль sidebar) */
.related-list-compact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.related-item-compact {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.related-item-compact:last-child {
    border-bottom: none;
}

.related-item-compact:hover {
    background: rgba(107, 70, 193, 0.05);
    padding-left: 0.5rem;
    border-radius: 8px;
}

.related-link-compact {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

.related-link-compact::before {
    content: "•";
    color: var(--primary-color);
    margin-right: 0.5rem;
    opacity: 0.7;
}

.related-link-compact:hover {
    color: var(--primary-color);
    font-weight: 500;
}

.no-related {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

/* ============================================
   БЛОК АВТОРА СТАТЬИ
   ============================================ */

.article-author-block {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #7c3aed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.author-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Фото автора */
.author-photo {
    flex-shrink: 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.author-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.author-avatar-placeholder span {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
}

/* Информация об авторе */
.author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.author-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.author-name {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
}

.author-position {
    font-size: 14px;
    color: #7c3aed;
    font-weight: 600;
}

.author-bio {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin-top: 4px;
}

/* ============================================
   НАВИГАЦИЯ МЕЖДУ СТАТЬЯМИ
   ============================================ */

.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;
}

/* ============================================
   САЙДБАР
   ============================================ */

.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;
}

/* ============================================
   СОДЕРЖАНИЕ СТАТЬИ - С ПОДДЕРЖКОЙ ДЛИННЫХ СПИСКОВ
   ============================================ */

.soderganie {
    display: flex;
    gap: 1rem;
    background: var(--bg-primary);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

.soderganie__title {
    flex-shrink: 0;
}

.soderganie__title p {
  /*  font-size: 1.3rem;  */
    font-weight: 600;
    color: #537af1;
    margin: 0;
    white-space: nowrap;
}

.line {
    border-left: 3px solid var(--primary-color);
    margin: 0;
    flex-shrink: 0;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    border: none;
    width: 3px;
    border-radius: 2px;
}

.soderganie__text {
    flex: 1;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Стилизация скроллбара */
.soderganie__text::-webkit-scrollbar {
    width: 6px;
}

.soderganie__text::-webkit-scrollbar-track {
    background: rgba(107, 70, 193, 0.05);
    border-radius: 10px;
}

.soderganie__text::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.soderganie__text::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Для Firefox */
.soderganie__text {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(107, 70, 193, 0.05);
}

.soderganie__spisor {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.content-atical__item {
    position: relative;
    padding-left: 1rem;
    margin: 0;
    transition: all 0.3s ease;
}

.content-atical__item::before {
    content: '';
    position: absolute;
    left: 0.2rem;
    top: 0.8rem;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.content-atical__item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
   /*  font-weight: 500; */
}

.content-atical__item:hover::before {
    background: var(--secondary-color);
    transform: scale(1.3);
}

.content-atical__item:hover a {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.content-atical__item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.content-atical__item:hover a::after {
    width: 100%;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

/* Desktop большой */
@media (min-width: 1024px) {
    .soderganie__spisor {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem 1.5rem;
    }
    
    .soderganie__text {
        max-height: 350px;
    }
}

/* Планшеты */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        order: 2;
    }
    
    .article-footer-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-right {
        order: 2;
    }
}

@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;
    }

    .article-meta {
        gap: 1rem;
    }

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

    .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-footer-section {
        padding: 0 1.5rem 2rem;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
        gap: 2rem;
    }
    
    .footer-section-title {
        font-size: 0.95rem;
    }
    
    .tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .related-link-compact {
        font-size: 0.9rem;
    }
    
    .article-author-block {
        padding: 15px;
        margin: 20px 0;
    }
    
    .author-container {
        gap: 15px;
    }
    
    .author-avatar,
    .author-avatar-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .author-avatar-placeholder span {
        font-size: 24px;
    }
    
    .author-name {
        font-size: 18px;
    }
    
    .author-position {
        font-size: 13px;
    }
    
    .author-bio {
        font-size: 13px;
    }

    .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;
    }
    
    .soderganie {
        padding: 1.5rem;
        margin: 1.5rem 0;
        gap: 1.25rem;
    }
    
    .soderganie__title p {
        font-size: 1.2rem;
    }
    
    .content-atical__item a {
        font-size: 0.95rem;
    }
    
    .soderganie__text {
        max-height: 400px;
    }
}

@media (max-width: 700px) {
    .soderganie {
        flex-direction: column;
        gap: 0;
        padding: 1.5rem;
    }
    
    .soderganie__title {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid var(--border-color);
    }
    
    .line {
        display: none;
    }
    
    .content-atical__item {
        margin-bottom: 0.65rem;
    }
    
    .content-atical__item:last-child {
        margin-bottom: 0;
    }
    
    .soderganie__text {
        max-height: 350px;
    }
    
    .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: 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: 1.5rem 1rem;
    }

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

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

    .article-footer-section {
        padding: 0 1rem 1.5rem;
        padding-top: 1rem;
        margin-top: 1rem;
        gap: 1.5rem;
    }
    
    .footer-section-title {
        font-size: 0.9rem;
    }
    
    .tags-container {
        gap: 0.5rem;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }
    
    .related-item-compact {
        padding: 0.6rem 0;
    }
    
    .related-link-compact {
        font-size: 0.85rem;
    }

    .advertising-block {
        padding: 1rem;
    }

    .sidebar-list a {
        font-size: 0.9rem;
    }
    
    .soderganie {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .soderganie__title p {
        font-size: 1.1rem;
    }
    
    .content-atical__item {
        padding-left: 1.25rem;
    }
    
    .content-atical__item a {
        font-size: 0.9rem;
    }
    
    .soderganie__text {
        max-height: 300px;
    }
    
    .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%);
    }
}