/* =====================================================================
   ARTICLE BLOCKS CSS — certification.vnesenie-v-reestr.ru
   Компоненты авторства, экспертного совета, перелинковки и коммерческих офферов
   ===================================================================== */

/* Иконки Material Symbols */
.ms {
    font-family: 'Material Symbols Outlined', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 18px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    vertical-align: -3px;
}

/* ═══════════════════════════════════════════════════════════════════════
   1. ШАПКА АВТОРА ПОД H1 (.news-author-header-bar)
   ═══════════════════════════════════════════════════════════════════════ */
.news-author-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    margin: 20px 0 28px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(18, 64, 138, 0.12);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 24, 48, 0.04);
}

.news-author-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 260px;
}

.news-author-header-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.news-author-header-profile:hover {
    opacity: 0.9;
}

.news-author-header-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #12408A;
    box-shadow: 0 2px 8px rgba(18, 64, 138, 0.2);
    flex-shrink: 0;
}

.news-author-header-meta {
    display: flex;
    flex-direction: column;
}

.news-author-header-by {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5a6075;
    font-weight: 600;
}

.news-author-header-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f1830;
    line-height: 1.25;
}

.news-author-header-role {
    font-size: 12px;
    color: #5a6075;
    line-height: 1.3;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-author-header-center {
    display: flex;
    align-items: center;
}

.news-author-reviewed-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 100px;
    font-size: 12px;
    color: #065f46;
}

.news-author-reviewed-pill .ms {
    font-size: 16px;
    color: #059669;
}

.news-author-reviewed-pill strong {
    font-weight: 600;
}

.news-author-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.news-author-header-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: #5a6075;
}

.news-author-header-stat .ms {
    font-size: 16px;
    color: #8a90a5;
}

.news-author-header-shares {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
}

.news-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.15s, opacity 0.15s;
}

.news-share-btn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.news-share-btn--vk {
    background: #0077ff;
}

.news-share-btn--tg {
    background: #229ed9;
}

/* ═══════════════════════════════════════════════════════════════════════
   2. КОММЕРЧЕСКИЙ ОФФЕР В СТАТЬЕ (.news-commercial-card)
   ═══════════════════════════════════════════════════════════════════════ */
.news-commercial-card {
    background: linear-gradient(135deg, #0e1e38 0%, #15274d 60%, #1e3a72 100%);
    border-radius: 20px;
    padding: 32px;
    margin: 36px 0;
    color: #fff;
    box-shadow: 0 12px 36px rgba(15, 24, 48, 0.18);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.news-commercial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #12408A 0%, #a487f6 50%, #38bdf8 100%);
}

.news-commercial-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.news-commercial-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: rgba(164, 135, 246, 0.18);
    border: 1px solid rgba(164, 135, 246, 0.4);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: #d3c4ff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.news-commercial-badge .ms {
    font-size: 17px;
    color: #a487f6;
}

.news-commercial-guarantee {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 50px;
    font-size: 12px;
    color: #6ee7b7;
    font-weight: 500;
}

.news-commercial-guarantee .ms {
    font-size: 16px;
    color: #10b981;
}

.news-commercial-card-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: center;
}

.news-commercial-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.news-commercial-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.18s;
}

.news-commercial-title a:hover {
    color: #a487f6;
}

.news-commercial-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 16px;
}

.news-commercial-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.news-commercial-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
}

.news-commercial-bullets li .ms {
    color: #34d399;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.news-commercial-card-action {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    backdrop-filter: blur(8px);
}

.news-commercial-meta-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-commercial-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.news-commercial-meta-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.news-commercial-meta-val {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.news-commercial-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
    border: none;
    font-family: inherit;
    text-align: center;
}

.news-commercial-btn--primary {
    background: linear-gradient(135deg, #12408A 0%, #1e3a72 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(18, 64, 138, 0.4);
}

.news-commercial-btn--primary:hover {
    background: linear-gradient(135deg, #0e2f63 0%, #172e5e 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(18, 64, 138, 0.55);
}

.news-commercial-btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-commercial-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #a487f6;
}

/* ═══════════════════════════════════════════════════════════════════════
   3. БЛОК АВТОРА И РЕЦЕНЗЕНТА В КОНЦЕ СТАТЬИ (.news-expert-author-box)
   ═══════════════════════════════════════════════════════════════════════ */
.news-expert-author-box {
    background: #ffffff;
    border: 1px solid rgba(20, 28, 55, 0.12);
    border-radius: 20px;
    padding: 32px;
    margin: 36px 0;
    box-shadow: 0 8px 30px rgba(15, 24, 48, 0.06);
    position: relative;
}

.news-expert-author-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(20, 28, 55, 0.08);
}

.news-expert-author-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #12408A;
}

.news-expert-author-kicker .ms {
    font-size: 16px;
    color: #12408A;
}

.news-expert-author-fsa {
    font-size: 11.5px;
    font-weight: 600;
    color: #059669;
    background: #ecfdf5;
    padding: 3px 10px;
    border-radius: 50px;
    border: 1px solid #a7f3d0;
}

.news-expert-author-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 28px;
    align-items: start;
}

.news-expert-author-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.news-expert-author-photo {
    width: 140px;
    height: 175px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid rgba(18, 64, 138, 0.16);
    box-shadow: 0 6px 20px rgba(15, 24, 48, 0.1);
}

.news-expert-author-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #065f46;
    background: #f0fdf4;
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid #bbf7d0;
}

.news-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.news-expert-author-name {
    margin: 0 0 4px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
}

.news-expert-author-name a {
    color: #0f1830;
    text-decoration: none;
    transition: color 0.18s;
}

.news-expert-author-name a:hover {
    color: #12408A;
}

.news-expert-author-role {
    font-size: 13.5px;
    font-weight: 600;
    color: #12408A;
    margin: 0 0 4px;
}

.news-expert-author-area {
    font-size: 13px;
    color: #5a6075;
    margin: 0 0 14px;
}

.news-expert-author-area strong {
    color: #2c3247;
}

.news-expert-author-intro {
    background: #f8fafc;
    border-left: 3px solid #12408A;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 16px;
}

.news-expert-author-intro p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #334155;
    font-style: italic;
}

.news-expert-author-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.news-topic-chip {
    display: inline-block;
    padding: 4px 10px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 11.5px;
    color: #334155;
    font-weight: 500;
}

.news-expert-reviewer-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #1e3a8a;
}

.news-reviewer-icon .ms {
    font-size: 20px;
    color: #2563eb;
    margin-top: 2px;
}

.news-reviewer-text strong {
    display: block;
    font-weight: 700;
    margin-bottom: 2px;
}

.news-reviewer-text a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: underline;
}

.news-expert-cases-box {
    margin-bottom: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(20, 28, 55, 0.08);
}

.news-expert-cases-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5a6075;
    margin-bottom: 8px;
}

.news-expert-cases-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-expert-case-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #12408A;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.news-expert-case-link:hover {
    color: #0E2F63;
    text-decoration: underline;
}

.news-expert-case-link .ms {
    font-size: 16px;
    color: #10b981;
    flex-shrink: 0;
}

.news-expert-author-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.news-author-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
    font-family: inherit;
    border: none;
}

.news-author-action-btn--primary {
    background: #12408A;
    color: #fff;
}

.news-author-action-btn--primary:hover {
    background: #0E2F63;
    transform: translateY(-1px);
}

.news-author-action-btn--outline {
    background: transparent;
    color: #12408A;
    border: 1px solid #12408A;
}

.news-author-action-btn--outline:hover {
    background: #f0f4fc;
}

/* ═══════════════════════════════════════════════════════════════════════
   4. САЙДБАР-ВИДЖЕТ ЭКСПЕРТА (.news-sidebar-expert-card)
   ═══════════════════════════════════════════════════════════════════════ */
.news-sidebar-expert-card {
    background: #ffffff;
    border: 1px solid rgba(20, 28, 55, 0.12);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(15, 24, 48, 0.05);
}

.news-sidebar-expert-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.news-sidebar-expert-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #065f46;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.news-sidebar-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.news-sidebar-expert-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: #f1f5f9;
    border-radius: 4px;
    color: #475569;
    font-weight: 600;
}

.news-sidebar-expert-main {
    margin-bottom: 12px;
}

.news-sidebar-expert-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.news-sidebar-expert-img {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #12408A;
    flex-shrink: 0;
}

.news-sidebar-expert-name {
    display: block;
    font-size: 14.5px;
    font-weight: 800;
    color: #0f1830;
    line-height: 1.25;
    margin-bottom: 2px;
}

.news-sidebar-expert-role {
    display: block;
    font-size: 11.5px;
    color: #5a6075;
    line-height: 1.35;
}

.news-sidebar-expert-desc {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 14px;
}

.news-sidebar-expert-btn {
    width: 100%;
    padding: 10px 14px;
    background: #12408A;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    font-family: inherit;
    text-align: center;
}

.news-sidebar-expert-btn:hover {
    background: #0E2F63;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════════════
   5. ПОЛОСА РЕЕСТРОВ И ИНСТРУМЕНТОВ (.news-tools-strip-box)
   ═══════════════════════════════════════════════════════════════════════ */
.news-tools-strip-box {
    background: #f8fafc;
    border: 1px solid rgba(20, 28, 55, 0.1);
    border-radius: 18px;
    padding: 24px;
    margin: 36px 0;
}

.news-tools-strip-head {
    margin-bottom: 18px;
}

.news-tools-strip-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: #0f1830;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-tools-strip-title .ms {
    color: #12408A;
    font-size: 20px;
}

.news-tools-strip-sub {
    font-size: 12.5px;
    color: #5a6075;
}

.news-tools-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.news-tool-card {
    background: #ffffff;
    border: 1px solid rgba(20, 28, 55, 0.1);
    border-radius: 12px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.news-tool-card:hover {
    transform: translateY(-2px);
    border-color: #12408A;
    box-shadow: 0 6px 18px rgba(18, 64, 138, 0.12);
}

.news-tool-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #12408A;
}

.news-tool-card-icon .ms {
    font-size: 20px;
}

.news-tool-card-name {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f1830;
    line-height: 1.3;
    margin-bottom: 3px;
}

.news-tool-card-desc {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.45;
    color: #5a6075;
}

/* ═══════════════════════════════════════════════════════════════════════
   АДАПТИВНОСТЬ (Responsive Mobile & Tablet)
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .news-commercial-card-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .news-tools-strip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-author-header-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px;
        gap: 12px;
    }
    .news-author-header-right {
        width: 100%;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid rgba(20, 28, 55, 0.08);
    }
    .news-expert-author-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: center;
    }
    .news-expert-author-avatar-wrap {
        align-items: center;
    }
    .news-expert-author-topics {
        justify-content: center;
    }
    .news-expert-reviewer-note {
        text-align: left;
    }
    .news-expert-cases-list {
        text-align: left;
    }
    .news-expert-author-footer-actions {
        justify-content: center;
    }
    .news-commercial-card {
        padding: 22px 18px;
    }
    .news-commercial-title {
        font-size: 19px;
    }
    .news-tools-strip-grid {
        grid-template-columns: 1fr;
    }
}
