/* ============================================================
   jeksport — стили контента статьи сертификации (.cert-article-content)
   Брендбук: бежевый/золотой (#1c1814 текст, #b07d2e акцент,
   #ddd5c8 границы, #f7f3ee/#ede7de фоны).
   Покрывает: секции, заголовки, параграфы, таблицы, списки,
   цитаты, ссылки, выделения, адаптив.
   ============================================================ */

/* ---------- Базовый контент ---------- */
.cert-article-content {
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #1c1814;
}
.cert-article-content > *:first-child { margin-top: 0; }
.cert-article-content > *:last-child { margin-bottom: 0; }

/* ---------- Секции (отступы между блоками) ---------- */
.cert-article-content section {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e9e2d6;
}
.cert-article-content section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.cert-article-content section > *:first-child { margin-top: 0; }
.cert-article-content section > *:last-child { margin-bottom: 0; }

/* ---------- Заголовки ---------- */
.cert-article-content h2 {
    font-family: 'Cormorant Garamond', 'DM Sans', serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #1c1814;
    margin: 0 0 20px;
    padding-bottom: 12px;
    position: relative;
}
.cert-article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: #b07d2e;
    border-radius: 2px;
}
.cert-article-content h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    color: #1c1814;
    margin: 28px 0 14px;
}
.cert-article-content h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #6b6055;
    margin: 24px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 13px;
}
.cert-article-content h3 + p,
.cert-article-content h4 + p { margin-top: 0; }

/* ---------- Параграфы ---------- */
.cert-article-content p {
    margin: 0 0 18px;
    color: #1c1814;
}
.cert-article-content p + p { margin-top: -8px; }

/* ---------- Ссылки ---------- */
.cert-article-content a {
    color: #b07d2e;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, color .2s ease;
}
.cert-article-content a:hover {
    color: #8a6914;
    border-bottom-color: #8a6914;
}

/* ---------- Выделения ---------- */
.cert-article-content strong,
.cert-article-content b {
    color: #1c1814;
    font-weight: 700;
}
.cert-article-content em,
.cert-article-content i { color: #6b6055; }

/* ---------- Маркированные списки ---------- */
.cert-article-content ul {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}
.cert-article-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    line-height: 1.7;
}
.cert-article-content ul li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b07d2e;
}
.cert-article-content ul li:last-child { margin-bottom: 0; }

/* ---------- Нумерованные списки ---------- */
.cert-article-content ol {
    list-style: none;
    counter-reset: cert-ol;
    margin: 0 0 20px;
    padding: 0;
}
.cert-article-content ol li {
    counter-increment: cert-ol;
    position: relative;
    padding-left: 38px;
    margin-bottom: 12px;
    line-height: 1.7;
}
.cert-article-content ol li::before {
    content: counter(cert-ol);
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #b07d2e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ---------- Вложенные списки ---------- */
.cert-article-content ul ul,
.cert-article-content ol ol,
.cert-article-content ul ol,
.cert-article-content ol ul {
    margin: 10px 0 0;
}
.cert-article-content li > ul,
.cert-article-content li > ol { margin-bottom: 0; }

/* ---------- Таблицы ---------- */
.cert-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(28, 24, 20, 0.05);
    font-size: 14.5px;
}
.cert-article-content thead { background: #f7f3ee; }
.cert-article-content thead th {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b6055;
    padding: 16px 18px;
    text-align: left;
    border-bottom: 2px solid #b07d2e;
    vertical-align: top;
}
.cert-article-content tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid #e9e2d6;
    color: #1c1814;
    vertical-align: top;
    line-height: 1.6;
}
.cert-article-content tbody tr:last-child td { border-bottom: none; }
.cert-article-content tbody tr:nth-child(even) { background: #fdfbf8; }
.cert-article-content tbody tr:hover { background: #f7f3ee; }
.cert-article-content td strong,
.cert-article-content th strong { color: #1c1814; }

/* ---------- Цитаты ---------- */
.cert-article-content blockquote {
    margin: 0 0 24px;
    padding: 20px 24px;
    border-left: 4px solid #b07d2e;
    background: #f7f3ee;
    border-radius: 0 10px 10px 0;
    color: #6b6055;
    font-style: italic;
    line-height: 1.7;
}
.cert-article-content blockquote p:last-child { margin-bottom: 0; }
.cert-article-content blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #9a9088;
    font-style: normal;
}

/* ---------- Горизонтальные разделители ---------- */
.cert-article-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd5c8, transparent);
    margin: 36px 0;
}

/* ---------- Изображения внутри контента ---------- */
.cert-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 8px 0;
    box-shadow: 0 4px 16px rgba(28, 24, 20, 0.08);
}
.cert-article-content figure { margin: 0 0 24px; }
.cert-article-content figcaption {
    font-size: 13px;
    color: #9a9088;
    text-align: center;
    margin-top: 8px;
}

/* ---------- Inline-код ---------- */
.cert-article-content code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9em;
    background: #f7f3ee;
    color: #8a6914;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #e9e2d6;
}
.cert-article-content pre {
    background: #1c1814;
    color: #ede7de;
    padding: 20px 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 0 0 24px;
    line-height: 1.6;
    font-size: 13.5px;
}
.cert-article-content pre code {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
}

/* ---------- Карты/фреймы ---------- */
.cert-article-content iframe {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid #ddd5c8;
}

/* ---------- Адаптив ---------- */
@media (max-width: 768px) {
    .cert-article-content { font-size: 15px; line-height: 1.7; }
    .cert-article-content h2 { font-size: 24px; margin-bottom: 16px; }
    .cert-article-content h3 { font-size: 19px; }
    .cert-article-content section { margin-bottom: 28px; padding-bottom: 24px; }
    .cert-article-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        font-size: 13.5px;
    }
    .cert-article-content thead th,
    .cert-article-content tbody td { padding: 12px 14px; }
    .cert-article-content blockquote { padding: 16px 18px; }
    .cert-article-content ul li,
    .cert-article-content ol li { padding-left: 24px; }
}
@media (max-width: 480px) {
    .cert-article-content h2 { font-size: 22px; }
    .cert-article-content h3 { font-size: 18px; }
    .cert-article-content table { font-size: 13px; }
}
