/* Стили блога Росдекс B2B-портал: типографика статей и карточки списка */
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.mobile-menu-open { overflow: hidden; }
@media (max-width: 1280px) {
    #mobile-menu { display: none; }
    #mobile-menu.active { display: flex; }
}
/* У шапки есть backdrop-blur, из-за него fixed-меню считает размеры от шапки (64px) — задаём высоту явно */
#mobile-menu { height: calc(100vh - 64px); }
.btn-hover { transition: transform .2s, box-shadow .2s; }
.btn-hover:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 35, 111, .2); }

/* Текст статьи */
.article { color: #1a1b21; font-size: 17px; line-height: 1.75; }
.article > * + * { margin-top: 1.1em; }
.article h2 { font-size: 30px; line-height: 38px; font-weight: 700; color: #00236f; letter-spacing: -.01em; margin-top: 2.2em; scroll-margin-top: 100px; }
.article h3 { font-size: 18px; line-height: 26px; font-weight: 600; color: #0F172A; }
.article a { color: #00687a; text-decoration: underline; text-underline-offset: 3px; }
.article a:hover { color: #00236f; }
.article strong { color: #0F172A; }
.article ul, .article ol { padding-left: 1.4em; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li + li { margin-top: .5em; }
.article li::marker { color: #00687a; font-weight: 700; }
@media (max-width: 640px) {
    .article { font-size: 16px; }
    .article h2 { font-size: 24px; line-height: 32px; }
}

/* Оглавление */
.article .toc { background: #f4f3fa; border: 1px solid #E2E8F0; border-radius: 16px; padding: 24px 28px; }
.article .toc-title { font-weight: 700; color: #0F172A; margin-bottom: .5em; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; }
.article .toc ol { margin: 0; }
.article .toc a { text-decoration: none; color: #444651; }
.article .toc a:hover { color: #00236f; text-decoration: underline; }

/* Выноска */
.article .callout { display: flex; gap: 16px; background: #e8f9fd; border-left: 4px solid #00687a; border-radius: 12px; padding: 20px 24px; }
.article .callout .material-symbols-outlined { color: #00687a; font-size: 28px; flex-shrink: 0; }
.article .callout p { margin: 0; }

/* Сетка возможностей */
.article .feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.article .feature { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 20px; }
.article .feature .material-symbols-outlined { color: #00236f; background: rgba(0, 35, 111, .08); border-radius: 10px; padding: 8px; margin-bottom: 12px; }
.article .feature h3 { margin-bottom: 6px; }
.article .feature p { font-size: 15px; line-height: 1.6; color: #444651; margin: 0; }
@media (max-width: 640px) { .article .feature-grid { grid-template-columns: 1fr; } }

/* Таблицы */
.article .table-wrap { overflow-x: auto; border: 1px solid #E2E8F0; border-radius: 12px; }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 560px; }
.article th, .article td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #E2E8F0; }
.article thead th { background: #0F172A; color: #fff; font-weight: 600; }
.article tbody tr:last-child td { border-bottom: 0; }
.article tbody td:first-child { font-weight: 600; color: #0F172A; }
.article th.hl { background: #00687a; }
.article td.hl { background: #e8f9fd; font-weight: 600; color: #004e5c; }
.article td.num { font-weight: 700; color: #0D9488; white-space: nowrap; }

/* Чек-лист */
.article ul.checklist { list-style: none; padding-left: 0; }
.article ul.checklist li { position: relative; padding-left: 36px; }
.article ul.checklist li::before { content: 'check_box'; font-family: 'Material Symbols Outlined'; position: absolute; left: 0; top: -1px; font-size: 24px; color: #0D9488; }

/* Шаги */
.article ol.steps { list-style: none; padding-left: 0; counter-reset: step; }
.article ol.steps li { counter-increment: step; position: relative; padding-left: 52px; min-height: 36px; }
.article ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: #0D9488; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* CTA в тексте */
.article .cta-inline { display: flex; align-items: center; gap: 24px; background: #00236f; color: #fff; border-radius: 20px; padding: 28px 32px; margin-top: 2em; }
.article .cta-inline p { margin: 0; color: rgba(255, 255, 255, .8); }
.article .cta-inline .cta-title { color: #fff; font-weight: 700; font-size: 20px; line-height: 1.3; margin-bottom: 6px; }
.article .cta-inline .cta-btn { flex-shrink: 0; background: #57dffe; color: #001f26; text-decoration: none; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; padding: 14px 22px; border-radius: 12px; }
.article .cta-inline .cta-btn:hover { background: #fff; color: #00236f; }
@media (max-width: 640px) { .article .cta-inline { flex-direction: column; align-items: stretch; text-align: center; padding: 24px; } }

/* Фото */
.article figure img { width: 100%; height: auto; border-radius: 16px; }
.article figcaption { font-size: 14px; line-height: 1.5; color: #757682; margin-top: 10px; }

/* FAQ */
.article .faq details { border: 1px solid #E2E8F0; border-radius: 12px; background: #fff; }
.article .faq details + details { margin-top: 10px; }
.article .faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600; color: #0F172A; display: flex; justify-content: space-between; gap: 16px; }
.article .faq summary::-webkit-details-marker { display: none; }
.article .faq summary::after { content: 'expand_more'; font-family: 'Material Symbols Outlined'; font-size: 24px; color: #00687a; transition: transform .2s; }
.article .faq details[open] summary::after { transform: rotate(180deg); }
.article .faq details p { padding: 0 20px 18px; margin: 0; color: #444651; }

/* Автор и ссылки */
.article .author { display: flex; gap: 20px; align-items: center; border-top: 1px solid #E2E8F0; border-bottom: 1px solid #E2E8F0; padding: 24px 0; margin-top: 2.5em; }
.article .author img { width: 120px; height: 80px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.article .author p { margin: 0; font-size: 15px; line-height: 1.6; color: #444651; }
.article .author .author-name { font-weight: 700; color: #0F172A; font-size: 16px; }
@media (max-width: 640px) { .article .author { flex-direction: column; align-items: flex-start; } .article .author img { width: 100%; height: 180px; } }
.article .more-title { font-weight: 700; color: #0F172A; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; }
.article .more-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.article .more-links a { display: flex; align-items: center; gap: 10px; border: 1px solid #E2E8F0; border-radius: 12px; padding: 14px 16px; text-decoration: none; color: #0F172A; font-weight: 600; font-size: 15px; line-height: 1.4; background: #fff; }
.article .more-links a:hover { border-color: #00236f; color: #00236f; }
.article .more-links .material-symbols-outlined { color: #00687a; }
@media (max-width: 640px) { .article .more-links { grid-template-columns: 1fr; } }
