/* =========================================================
   ARTICLE PAGE STYLES (ENHANCED)
   ========================================================= */

.article-wrapper {
    width: 100%;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    padding-bottom: 30px;
}

/* --- Заголовок --- */
.article-header-centered {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    text-align: center;
}

.article-breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.article-breadcrumbs a { border-bottom: 1px solid transparent; transition: 0.2s; }
.article-breadcrumbs a:hover { color: var(--accent); border-color: var(--accent); }
.article-breadcrumbs i { font-size: 10px; opacity: 0.6; }

.article-h1 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 46px; /* Крупнее для выразительности */
    line-height: 1.15;
    color: var(--bg-dark);
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.am-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-main); font-weight: 600; }
.am-item i { color: var(--accent); font-size: 18px; }
.am-tag {
    background: var(--bg-dark);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Изображение --- */
.article-image-wide {
    width: 100%;
    margin-bottom: 50px;
    position: relative;
}

.article-image-wide img {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: cover;
    display: block;
}

.article-image-caption {
    background: #f4f6f8;
    color: var(--text-muted);
    font-size: 12px;
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-body);
}

/* --- ТЕКСТ (Типографика) --- */
.article-body-narrow {
    max-width: 800px; /* Оптимально для чтения */
    margin: 0 auto;
    padding: 0 20px 50px;
    /* Шрифт с засечками для чтения лонгридов (Merriweather подключен в head) */
    font-family: 'Merriweather', serif;
    font-size: 19px;
    line-height: 1.8;
    color: #2c3e50;
}

/* Отступы параграфов */
.article-body-narrow p {
    margin-bottom: 28px;
}

/* === ИНТЕРЕСНОЕ ФОРМАТИРОВАНИЕ === */

/* 1. Лид-абзац (первый) - жирнее и чуть крупнее */
.article-lead {
    font-size: 22px;
    line-height: 1.6;
    font-weight: 400; /* В Merriweather 300-400 смотрится хорошо */
    color: #000;
    margin-bottom: 35px !important;
}

/* 2. Буквица (Drop Cap) только для лид-абзаца */
.article-lead::first-letter {
    float: left;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 84px;
    line-height: 0.85;
    padding-top: 4px;
    padding-right: 12px;
    padding-left: 0;
    color: var(--accent);
}

/* Цитаты */
.article-body-narrow blockquote {
    font-family: var(--font-head); /* Санс-сериф для контраста */
    font-weight: 600;
    font-size: 20px;
    line-height: 1.5;
    margin: 40px 0;
    padding: 30px;
    background: #fff;
    border: 2px solid var(--border);
    border-left: 6px solid var(--bg-dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 8px;
    color: var(--bg-dark);
}

/* --- Footer --- */
.article-footer-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    border-top: 1px solid var(--border);
}

.share-title {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 50px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px; /* Pill shape */
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-family: var(--font-body);
}

.share-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.sb-tg { background: linear-gradient(135deg, #2AABEE, #229ED9); }
.sb-vk { background: linear-gradient(135deg, #4680C2, #2787F5); }
.sb-wa { background: linear-gradient(135deg, #25D366, #128C7E); }
.sb-copy { background: var(--bg-dark); }
.share-btn i { font-size: 20px; }

.source-link-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    background: #fcfcfc;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
    gap: 20px;
}

.source-text { font-size: 14px; color: var(--text-muted); flex: 1; line-height: 1.5; }
.source-text strong { color: var(--bg-dark); }

.btn-origin {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: 2px solid var(--bg-dark);
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
    color: var(--bg-dark);
    text-transform: uppercase;
    transition: 0.3s;
    background: transparent;
    letter-spacing: 0.5px;
}

.btn-origin:hover { background: var(--bg-dark); color: #fff; }

/* --- 404 --- */
.article-404 { text-align: center; padding: 120px 20px; }
.icon-404 { font-size: 80px; color: #dfe3e8; margin-bottom: 20px; }
.article-404 h1 { font-size: 32px; color: var(--bg-dark); }
.article-404 p { color: var(--text-muted); margin-bottom: 30px; }

/* --- Адаптив --- */
@media (max-width: 1024px) {
    .article-h1 { font-size: 36px; }
    .article-lead::first-letter { font-size: 64px; }
}

@media (max-width: 768px) {
    .article-header-centered { padding: 40px 20px 20px; text-align: left; }
    .article-breadcrumbs { justify-content: flex-start; }
    .article-meta-bar { justify-content: flex-start; }
    .article-h1 { font-size: 28px; }
    
    .article-body-narrow { padding: 0 20px 30px; font-size: 17px; }
    /* Отключаем буквицу на мобильных, чтобы не ломала верстку */
    .article-lead::first-letter { float: none; font-size: inherit; line-height: inherit; color: inherit; padding: 0; }
    .article-lead { font-size: 19px; }

    .share-btn { flex: 1; justify-content: center; padding: 12px 16px; }
    .share-btn span { display: none; }
    .source-link-block { text-align: center; flex-direction: column; }
    .btn-origin { width: 100%; justify-content: center; }
}