/* ==========================================================================
   Статьи stroisert.ru: блоки статьи, карточка анонса, сетка. Подключается в header.php после style.css.
   Стили типографии ограничены контейнером статьи (.news-detail-text-detail), чтобы не затрагивать остальной сайт.
   ========================================================================== */

/* ===== Общие стили типографии статьи (h1-h4, p, ul, ol, table) ===== */
.news-detail-text-detail h1 { font-size: 34px; line-height: 1.2; font-weight: 800; margin: 0 0 24px; color: #2b2e38; }
.news-detail-text-detail h2 { font-size: 28px; line-height: 1.25; font-weight: 700; margin: 44px 0 18px; padding-bottom: 10px; color: #2b2e38; border-bottom: 2px solid #e6edf5; }
.news-detail-text-detail h3 { font-size: 21px; line-height: 1.3; font-weight: 700; margin: 30px 0 12px; color: #1a6db0; }
.news-detail-text-detail h4 { font-size: 18px; line-height: 1.3; font-weight: 700; margin: 24px 0 10px; color: #383b47; }
.news-detail-text-detail p { font-size: 16px; line-height: 1.75; margin: 0 0 16px; color: #333; }
.news-detail-text-detail strong, .news-detail-text-detail b { font-weight: 700; color: #1f2430; }
.news-detail-text-detail a { color: #1a6db0; text-decoration: underline; text-underline-offset: 2px; }
.news-detail-text-detail a:hover { color: #383b47; }
.news-detail-text-detail ul { margin: 0 0 18px; padding-left: 22px; }
.news-detail-text-detail ol { margin: 0 0 22px; padding-left: 26px; }
.news-detail-text-detail ul li, .news-detail-text-detail ol li { font-size: 16px; line-height: 1.7; margin-bottom: 10px; color: #333; }
.news-detail-text-detail table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }

/* ===== Маркированный список (reg_docs, иконка сайта) ===== */
.news-detail-text-detail .reg_docs { margin: 10px 0 22px; }
.news-detail-text-detail .reg_docs .inner { display: block; }
.news-detail-text-detail .reg_docs ul { margin: 0; padding: 0; }
.news-detail-text-detail .reg_docs li { display: flex; align-items: flex-start; list-style: none; max-width: 100%; margin-bottom: 14px; font-size: 16px; line-height: 1.7; }
.news-detail-text-detail .reg_docs li img { flex: 0 0 24px; width: 24px; height: 24px; margin-top: 3px; }
.news-detail-text-detail .reg_docs li span { margin-left: 14px; line-height: 1.7; }

/* ===== Таблица ===== */
.TableBlock { margin: 22px 0 26px; }
.TableBlock .TableWrap { overflow-x: auto; border: 1px solid #dfe6ee; border-radius: 8px; background: #fff; }
.TableBlock table { min-width: 560px; margin: 0; }
.TableBlock th { background: #1a6db0; color: #fff; font-weight: 600; text-align: left; padding: 12px 16px; border: 0; }
.TableBlock td { padding: 12px 16px; border-top: 1px solid #e6edf5; vertical-align: top; color: #333; }
.TableBlock tbody tr:nth-child(even) td { background: #f6f9fc; }
.TableBlock td:first-child { font-weight: 600; }

/* ===== FAQ ===== */
.FaqMain { margin: 18px 0 30px; }
.FaqMain ._block { background: #fafafa; border-left: 5px solid #1a6db0; border-radius: 0 10px 10px 0; padding: 18px 22px; margin-bottom: 14px; }
.FaqMain ._block .name { font-size: 18px; font-weight: 700; line-height: 1.4; color: #2b2e38; margin-bottom: 8px; }
.FaqMain ._block .text p { margin: 0 0 10px; font-size: 16px; line-height: 1.7; }
.FaqMain ._block .text p:last-child { margin-bottom: 0; }

/* ===== CTA ===== */
.AreWorking { margin: 38px 0 10px; padding: 30px 34px; background: #383b47; border-radius: 12px; color: #fff; }
.AreWorking .title { font-size: 26px; font-weight: 800; line-height: 1.3; margin-bottom: 12px; color: #fff; }
.AreWorking .text { font-size: 16px; line-height: 1.7; margin-bottom: 20px; color: #e8ebf1; }
.AreWorking .text a { color: #fff; text-decoration: underline; }
.AreWorking .btn { display: inline-block; padding: 13px 30px; background: #1a6db0; color: #fff !important; font-weight: 700; border-radius: 8px; text-decoration: none !important; transition: background .3s; }
.AreWorking .btn:hover { background: #2498fc; }

/* ===== Список с длинным описанием ===== */
.ProgramList { margin: 18px 0 26px; }
.ProgramList .list { background: #fafafa; border-left: 5px solid #1a6db0; border-radius: 0 10px 10px 0; padding: 16px 22px; margin-bottom: 12px; font-size: 16px; line-height: 1.7; }

/* ===== Нумерованные карточки ===== */
.NumCards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 20px 0 28px; counter-reset: numcard; }
.NumCards > div { position: relative; padding: 20px 22px 20px 70px; background: #f6f9fc; border-radius: 10px; counter-increment: numcard; font-size: 16px; line-height: 1.65; }
.NumCards > div::before { content: counter(numcard); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; line-height: 36px; text-align: center; background: #1a6db0; color: #fff; font-weight: 700; border-radius: 50%; }

/* ===== Информационные блоки ===== */
.InfoBox, .WarnBox { margin: 22px 0; padding: 18px 22px; border-radius: 10px; font-size: 16px; line-height: 1.7; }
.InfoBox { background: #eaf3fb; border-left: 5px solid #1a6db0; }
.WarnBox { background: #fff4e5; border-left: 5px solid #f5a623; }
.Quote { margin: 24px 0; padding: 6px 0 6px 24px; border-left: 4px solid #1a6db0; font-size: 18px; line-height: 1.7; font-style: italic; color: #444; }
.ListAction { margin: 18px 0 26px; padding: 0; list-style: none; }
.ListAction li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid #e6edf5; font-size: 16px; line-height: 1.6; }
.ListAction li::before { content: ""; position: absolute; left: 6px; top: 17px; width: 10px; height: 10px; background: #1a6db0; border-radius: 50%; }

/* ===== Сетка статей (3 колонки, адаптив) ===== */
.ArticlesGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; padding: 30px 0; }
@media (max-width: 900px) { .ArticlesGrid { grid-template-columns: repeat(2, 1fr); } .NumCards { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    .ArticlesGrid { grid-template-columns: 1fr; }
    .news-detail-text-detail h2 { font-size: 23px; }
    .news-detail-text-detail h3 { font-size: 19px; }
    .AreWorking { padding: 22px 20px; }
    .AreWorking .title { font-size: 22px; }
}

/* ==== Карточка статьи - с акцентной полосой === */
.ArticleCard.accent { background: #fafafa; border-left: 5px solid #1a6db0; border-radius: 0 10px 10px 0; padding: 22px 25px; transition: background .3s, border-left-color .3s; height: 100%; box-sizing: border-box; }
.ArticleCard.accent:hover { background: #f0f7ff; border-left-color: #383b47; }
.ArticleCard.accent .ac-link { text-decoration: none; color: #333; display: flex; flex-direction: column; height: 100%; }
.ArticleCard.accent .ac-body { display: flex; flex-direction: column; height: 100%; }
.ArticleCard.accent .ac-title { font-size: 18px; font-weight: 800; line-height: 1.35; padding-bottom: 10px; }
.ArticleCard.accent .ac-desc { font-size: 14px; line-height: 1.5; color: #666; padding-bottom: 15px; }
.ArticleCard.accent .ac-meta { font-size: 12px; color: #9c9da4; display: flex; justify-content: space-between; margin-top: auto; }
