.news-detail-page {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 20px;
    /* убрали max-width и margin auto, чтобы контент занял всю ширину */
    width: 100%;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: -16px;
}
.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs i { font-size: 0.65rem; opacity: 0.6; }
.breadcrumbs span {
    color: var(--text-primary);
    font-weight: 600;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-article {
    background: var(--card-bg);
    border-radius: 28px;
    padding: 40px;
    border: 1px solid var(--border-light);
    box-shadow: 0 12px 30px rgba(214, 51, 132, 0.06);
    color: var(--text-primary);
}

.news-article-header {
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
}

.news-article-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.news-article-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-date,
.meta-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-date i,
.meta-author i {
    color: var(--accent);
}

/* ===== Тело новости (все HTML‑теги) ===== */
.news-article-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
}

/* Заголовки */
.news-article-body h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 28px 0 14px;
    color: var(--text-primary);
}

.news-article-body h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 22px 0 10px;
    color: var(--text-primary);
}

.news-article-body h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 18px 0 8px;
    color: var(--text-primary);
}

/* Параграфы */
.news-article-body p {
    margin-bottom: 14px;
}

/* Жирный и курсив */
.news-article-body strong {
    color: var(--accent);
}

.news-article-body em {
    font-style: italic;
    color: var(--text-secondary);
}

/* Ссылки */
.news-article-body a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.news-article-body a:hover {
    text-decoration: underline;
}

/* Списки */
.news-article-body ul,
.news-article-body ol {
    margin: 12px 0;
    padding-left: 28px;
}

.news-article-body li {
    margin-bottom: 8px;
}

/* Цитаты */
.news-article-body blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    background: rgba(214, 51, 132, 0.05);
    border-radius: 12px;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.news-article-body blockquote p {
    margin: 0;
}

/* Блок с кодом */
.news-article-body pre {
    background: rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 16px 20px;
    overflow-x: auto;
    margin: 16px 0;
}

.news-article-body code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--accent);
}

/* Таблица */
.news-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.05);
}

.news-article-body th,
.news-article-body td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--border-light);
}

.news-article-body th {
    background: rgba(214, 51, 132, 0.08);
    font-weight: 700;
    color: var(--text-primary);
}

.news-article-body tr:nth-child(even) td {
    background: rgba(214, 51, 132, 0.02);
}

/* Чеклист */
.checklist {
    margin: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

/* Кнопка в теле новости */
.download-btn {
    margin-top: 20px;
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.3);
    transition: background 0.2s, transform 0.2s;
}

.download-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Кнопка-призыв внутри текста статьи — глассморфизм */
.news-article-body .article-cta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 20px 0 28px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(214, 51, 132, 0.12), rgba(233, 30, 99, 0.06));
    border: 1px solid rgba(214, 51, 132, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
}
.news-article-body .article-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(214, 51, 132, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s ease, background 0.2s ease;
}
.news-article-body .article-cta-btn i { color: var(--accent); }
.news-article-body .article-cta-btn:hover {
    text-decoration: none;
    background: rgba(214, 51, 132, 0.22);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(214, 51, 132, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.news-article-body .article-cta-btn.outline {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent);
    border: 1px solid rgba(214, 51, 132, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.news-article-body .article-cta-btn.outline:hover {
    background: rgba(214, 51, 132, 0.16);
    color: var(--accent);
}

/* Кнопка Назад */
.news-back {
    text-align: center;
}

.btn-accent-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-accent-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* Адаптив */
@media (max-width: 768px) {
    .news-article {
        padding: 24px 20px;
    }
    .news-article-title {
        font-size: 1.8rem;
    }
}

/* Карточка с акцентной мыслью/советом внутри статьи */
.news-article-body .article-highlight {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 24px 0;
    padding: 20px 24px;
    border-radius: 20px;
    background: rgba(214, 51, 132, 0.06);
    border: 1px solid rgba(214, 51, 132, 0.15);
}
.news-article-body .article-highlight .highlight-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #D63384, #E91E63);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.news-article-body .article-highlight p {
    margin: 0;
    font-size: 1rem;
}
.news-article-body .article-highlight strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Карточки "Читайте также" вместо плоского списка ссылок */
.news-article-body .article-related {
    margin: 28px 0;
}
.news-article-body .article-related h2 {
    margin-bottom: 14px !important;
}
.news-article-body .article-related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    list-style: none;
    padding-left: 0 !important;
    margin: 0 !important;
}
.news-article-body .article-related-grid li {
    margin-bottom: 0 !important;
}
.news-article-body .article-related-grid a {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    font-size: 0.92rem;
    line-height: 1.35;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.news-article-body .article-related-grid a:hover {
    text-decoration: none !important;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(214, 51, 132, 0.12);
}
.news-article-body .article-related-grid a::before {
    content: '\f0da';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent);
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .news-article-body .article-related-grid { grid-template-columns: 1fr; }
}
/* Блок "Читайте также" под статьёй (динамический, только опубликованные) */
.article-related-section { width: 100%; }
.article-related-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.article-related-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.article-related-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.article-related-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 12px 28px rgba(214, 51, 132, 0.14);
}
.article-related-card-title { color: var(--text-primary); font-weight: 700; font-size: 1.02rem; line-height: 1.35; }
.article-related-card-excerpt { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.5; }
.article-related-card-more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 0.9rem; }
@media (max-width: 700px) { .article-related-cards { grid-template-columns: 1fr; } }

/* Предыдущая / следующая статья */
.article-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.article-pager .ap { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; border-radius: 18px; background: var(--card-bg); border: 1px solid var(--border-light); text-decoration: none; transition: .2s; }
.article-pager .ap:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(214,51,132,.12); }
.article-pager .ap small { color: var(--accent); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.article-pager .ap span { color: var(--text-primary); font-weight: 700; line-height: 1.35; }
.article-pager .next { text-align: right; grid-column: 2; }
@media (max-width: 700px) { .article-pager { grid-template-columns: 1fr; } .article-pager .next { grid-column: 1; text-align: left; } }
