/* ============================================
   article.css – Стили для статей и списка тем
   ============================================ */

/* ---------- 1. Общие стили статьи ---------- */
.article-modern {
    max-width: 1000px;
    margin: 20px auto;
    padding: 30px 35px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0f0f5;
}

/* ---------- 2. Заголовок статьи ---------- */
.article-header {
    margin-bottom: 30px;
}

.article-header h1 {
    color: #045d68;
    font-size: 2.0rem;
    font-family: 'Gorgie', Arial, sans-serif;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #F1592A;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.article-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 14px;
}

.article-intro strong {
    color: #045d68;
}

/* ---------- 3. Оглавление ---------- */
.toc {
    background: #ffffff;
    border: 1px solid #e0f0f5;
    border-radius: 16px;
    padding: 20px 28px;
    margin: 30px 0 40px 0;
    box-shadow: 0 2px 12px rgba(4, 93, 104, 0.06);
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef7fa;
}

.toc-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.toc-header h3 {
    color: #045d68;
    font-size: 1.2rem;
    margin: 0;
    font-family: 'Gorgie', Arial, sans-serif;
    font-weight: 600;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
}

.toc-list li {
    font-size: 0.95rem;
}

.toc-list li a {
    display: block;
    color: #2c3e50;
    text-decoration: none;
    padding: 5px 0 5px 16px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.toc-list li a:hover {
    color: #F1592A;
    border-left-color: #F1592A;
    padding-left: 20px;
}

/* ---------- 4. Разделы статьи ---------- */
.article-section {
    margin: 40px 0;
}

.article-section h2 {
    color: #045d68;
    font-size: 1.3rem;
    font-family: 'Gorgie', Arial, sans-serif;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    line-height: 1.3;
}

.article-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 16px;
}

.article-section strong {
    color: #045d68;
    font-weight: 700;
}

/* ---------- 5. Сетка тем (карточки с галочками) ---------- */
.topics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0 10px 0;
}

.topic-card {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e0f0f5;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(4, 93, 104, 0.04);
}

.topic-card:hover {
    border-color: #F1592A;
    box-shadow: 0 6px 20px rgba(241, 89, 42, 0.15);
    transform: translateY(-3px);
    text-decoration: none;
}

.topic-check {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.topic-card:hover .topic-check {
    background: #F1592A;
    color: #ffffff;
}

.topic-content {
    flex: 1;
}

.topic-content h3 {
    color: #045d68;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.4;
    font-family: 'Gorgie', Arial, sans-serif;
}

.topic-content p {
    color: #5d6d7e;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* ---------- 6. Список причин ---------- */
.causes-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 20px 20px;
}

.causes-list li {
    font-size: 1.05rem;
    line-height: 1.8;
    padding-left: 28px;
    position: relative;
    margin-bottom: 8px;
    color: #2c3e50;
}

.causes-list li::before {
    content: "◆";
    color: #F1592A;
    position: absolute;
    left: 0;
    font-size: 1rem;
}

/* ---------- 7. Блок с призывом к действию ---------- */
.cta-block {
    background: linear-gradient(135deg, #f8fcfd 0%, #eef7fa 100%);
    border: 2px solid #F1592A;
    border-radius: 16px;
    padding: 30px 35px;
    margin: 40px 0 10px 0;
    text-align: center;
}

.cta-block h3 {
    color: #045d68;
    font-size: 1.8rem;
    margin: 0 0 12px 0;
    font-family: 'Gorgie', Arial, sans-serif;
}

.cta-block p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #2c3e50;
    line-height: 1.6;
}

.cta-block .btn-primary {
    display: inline-block;
    background: #F1592A;
    color: #fff !important;
    padding: 14px 40px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 30px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(241, 89, 42, 0.3);
}

.cta-block .btn-primary:hover {
    background: #e04a20;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(241, 89, 42, 0.4);
    text-decoration: none !important;
}

/* ---------- 8. Адаптивность ---------- */
@media (max-width: 768px) {
    .article-modern {
        padding: 18px 16px;
        margin: 10px;
        border-radius: 12px;
    }

    .article-header h1 {
        font-size: 1.7rem;
    }

    .article-intro {
        font-size: 1rem;
    }

    .article-section h2 {
        font-size: 1.3rem;
    }

    .article-section p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .toc {
        padding: 16px 18px;
    }

    .toc-list {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .toc-list li a {
        padding: 4px 0 4px 14px;
    }

    .topics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .topic-card {
        padding: 14px 16px;
    }

    .topic-check {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .topic-content h3 {
        font-size: 0.98rem;
    }

    .topic-content p {
        font-size: 0.85rem;
    }

    .causes-list li {
        font-size: 0.95rem;
    }

    .cta-block {
        padding: 20px 18px;
    }

    .cta-block h3 {
        font-size: 1.3rem;
    }

    .cta-block .btn-primary {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .article-header h1 {
        font-size: 1.4rem;
    }

    .article-section h2 {
        font-size: 1.15rem;
    }

    .article-section p {
        font-size: 0.9rem;
    }

    .toc {
        padding: 12px 16px;
    }

    .toc-header h3 {
        font-size: 1rem;
    }

    .cta-block h3 {
        font-size: 1.1rem;
    }

    .cta-block .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
.back {
    text-align: right;
    margin-bottom: 6px;
    text-decoration: none;
}/* ---------- Нумерованный список в статье ---------- */
.article-section ol {
    margin: 18px 0 22px 0;
    padding-left: 28px;
}

.article-section ol > li {
    margin-bottom: 8px;
    padding-left: 4px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #2c3e50;
}

.article-section ol > li::marker {
    color: #045d68;
    font-weight: 600;
}
/* ---------- Ссылка «Ко всем статьям» ---------- */
.article-modern .back {
    margin-bottom: 18px;
}

.article-modern .back a {
    display: inline-flex;
    align-items: center;
    color: #045d68;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-modern .back a:hover {
    color: #F1592A;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 480px) {
    .article-modern .back a {
        font-size: 0.9rem;
    }
}
/* ---------- Таблица периодов ---------- */
.periods-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 24px 0;
    font-size: 1rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(4, 93, 104, 0.08);
}

.periods-table th,
.periods-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eef7fa;
}

.periods-table thead th {
    background: #045d68;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.periods-table tbody tr:nth-child(even) {
    background: #f8fcfd;
}

.periods-table tbody tr:hover {
    background: #eef7fa;
}

.periods-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 600px) {
    .periods-table {
        font-size: 0.9rem;
    }
    .periods-table th,
    .periods-table td {
        padding: 8px 10px;
    }
}
/* ---------- Статьи по теме ---------- */
.related-articles {
    background: #f8fcfd;
    border: 1px solid #e0f0f5;
    border-radius: 16px;
    padding: 20px 28px;
    margin: 30px 0;
}

.related-articles h2 {
    color: #045d68;
    font-size: 1.3rem;
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #F1592A;
    font-family: 'Gorgie', Arial, sans-serif;
}

.related-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-articles li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.related-articles li::before {
    content: "◆";
    color: #F1592A;
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    top: 0.35em;
}

.related-articles a {
    color: #045d68;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.5;
    transition: color 0.2s;
}

.related-articles a:hover {
    color: #F1592A;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .related-articles {
        padding: 16px 18px;
    }
    .related-articles h2 {
        font-size: 1.15rem;
    }
    .related-articles a {
        font-size: 0.95rem;
    }
}