/* Страница статьи — в стиле главной */
.article-page {
    max-width: 1140px;
    margin: 0 auto;
}

.article-page-card {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: none;
}

.article-page-header {
    padding: 1.5rem 1.5rem 1.5rem;
}

.article-page-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
}

.article-page-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    margin-bottom: 0.75rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.2;
}

.article-page-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.article-page-meta-item .ri {
    font-size: 1.05rem;
    line-height: 1;
    color: #9ca3af;
}

.article-page-meta-item time {
    color: inherit;
}

.article-page-meta-divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
}

.article-page-hero-wrap {
    padding-top: 0;
}

.article-page-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #E5E7EB;
}

.article-page-body {
    padding: 1.5rem;
}

.article-page-body .article-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
}

.article-page-body .article-content h2 {
    margin: 2rem 0 0.85rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
}

.article-page-body .article-content h3 {
    margin: 1.5rem 0 0.65rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
}

.article-page-body .article-content p {
    margin-bottom: 1rem;
}

.article-page-body .article-content ul,
.article-page-body .article-content ol {
    margin-bottom: 1rem;
    padding-left: 1.35rem;
}

.article-page-body .article-content li {
    margin-bottom: 0.35rem;
}

.article-page-body .article-content a {
    color: var(--bs-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-page-body .article-content a:hover {
    color: #1d4ed8;
}

.article-page-body .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-page-body .article-content blockquote {
    border-left: 3px solid #E5E7EB;
    padding-left: 1rem;
    margin: 1.25rem 0;
    color: #6b7280;
}

/* Свежие статьи — плитки 3×2 */
.article-related-section {
    margin-top: 2rem;
    padding-top: 0.25rem;
}

.article-related-title {
    margin: 0 0 0.35rem;
    font-size: 1.7rem;
    font-weight: 700;
    color: #111827;
}

.article-related-subtitle {
    margin: 0 0 1.25rem;
    color: #6b7280;
    font-size: 0.95rem;
}

.article-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.article-related-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    border-color: #d1d5db;
    color: inherit;
    text-decoration: none;
}

.article-related-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: #f3f4f6;
}

.article-related-card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-related-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.85rem 1rem 1rem;
    min-width: 0;
}

.article-related-card-title {
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-related-card-excerpt {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #6b7280;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-related-card-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
}

.article-related-footer {
    margin-top: 1rem;
}

.article-related-all-link {
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bs-primary);
    text-decoration: none;
}

.article-related-all-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .article-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .article-page-header,
    .article-page-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .article-page-hero {
        aspect-ratio: auto;
        height: auto;
        object-fit: contain;
    }

    .article-related-grid {
        grid-template-columns: 1fr;
    }
}
