/* Типографика блога и базы знаний — читаемость */

.blog-view,
.kb-view {
    width: 100%;
    max-width: none;
}

.blog-index h1,
.kb-index h1,
.kb-category h1,
.content-article-header h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.125rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 0.75rem;
}

.blog-lead,
.kb-lead,
.kb-category > p {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 1.5rem;
}

.content-prose.content-body {
    font-size: 1.0625rem;
    line-height: 1.75;
    max-width: none;
    width: 100%;
}

.content-body {
    color: #1e293b;
}

.content-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: #0f172a;
    margin: 2.25rem 0 0.875rem;
}

.content-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
    margin: 1.75rem 0 0.75rem;
}

.content-body h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
}

.content-body p,
.content-body ul,
.content-body ol {
    margin-bottom: 1.125rem;
}

.content-body li {
    margin-bottom: 0.4rem;
}

.content-body ul,
.content-body ol {
    padding-left: 1.5rem;
}

.content-body blockquote {
    margin: 1.5rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.content-body a:not(.btn-cta) {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content-body a:not(.btn-cta):hover {
    color: #1d4ed8;
}

.blog-card h2,
.kb-category-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.5rem;
}

.blog-card h2 a {
    color: #0f172a;
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: #2563eb;
}

.blog-card p,
.kb-category-card p {
    font-size: 1rem;
    line-height: 1.55;
    color: #475569;
}

.kb-list a {
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.45;
    color: #0f172a;
    text-decoration: none;
}

.kb-list a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.blog-meta {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0 0 0.25rem;
}

.content-author {
    font-size: 0.9375rem;
    line-height: 1.5;
}

.content-related h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: #0f172a;
}

.content-related li {
    margin-bottom: 0.5rem;
}

.content-related a {
    font-size: 1.0625rem;
}

.content-cta h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.blog-view .content-cta .btn-cta-primary,
.kb-view .content-cta .btn-cta-primary,
.blog-view .content-cta .btn-cta-primary:visited,
.kb-view .content-cta .btn-cta-primary:visited {
    color: #fff;
    text-decoration: none;
}

.content-toc-title {
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 640px) {
    .content-prose.content-body {
        font-size: 1rem;
    }

    .content-body h2 {
        font-size: 1.375rem;
    }

    .content-body h3 {
        font-size: 1.175rem;
    }
}
