/* ============================================
   Article / News enhance — single + archive
   ============================================ */

/* Progress bar чтения */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #0f8a7a, #e4a11b);
    z-index: 9999;
    transition: width .12s linear;
    pointer-events: none;
}

/* Хлебные крошки в hero */
.main__full-screen .breadcrumbs {
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 0 40px;
    font-size: 14px;
    color: #fff;
}
.breadcrumbs { color: rgba(255, 255, 255, .85); }
.breadcrumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; transition: color .15s ease; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs .sep { margin: 0 8px; opacity: .55; }
.breadcrumbs .current { color: #fff; opacity: .95; }

/* Мета-данные в hero (дата, время чтения, обновлено) */
.hero-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
}
.hero-meta > span,
.hero-meta time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: .95;
}
.hero-meta .dot {
    width: 4px;
    height: 4px;
    background: #fff;
    opacity: .55;
    border-radius: 50%;
    margin: 0 -2px;
}
.hero-meta svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Типографика тела статьи */
.alone-news__decription {
    font-size: 18px;
    line-height: 1.72;
    color: #2b2b2b;
    max-width: 780px;
    word-wrap: break-word;
}
.alone-news__decription h2 {
    font-size: 28px;
    line-height: 1.28;
    margin: 36px 0 14px;
    color: #1b1b1b;
    scroll-margin-top: 24px;
}
.alone-news__decription h3 {
    font-size: 22px;
    line-height: 1.35;
    margin: 26px 0 10px;
    color: #1b1b1b;
    scroll-margin-top: 24px;
}
.alone-news__decription p { margin: 0 0 16px; }
.alone-news__decription ul,
.alone-news__decription ol { margin: 0 0 16px 22px; }
.alone-news__decription ul li,
.alone-news__decription ol li { margin: 6px 0; }
.alone-news__decription img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 18px 0;
    cursor: zoom-in;
    display: block;
}
.alone-news__decription blockquote {
    margin: 22px 0;
    padding: 16px 22px;
    border-left: 4px solid #e4a11b;
    background: #faf7f0;
    border-radius: 8px;
    font-style: italic;
    color: #3a3a3a;
}
.alone-news__decription a {
    color: #0f8a7a;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.alone-news__decription a:hover { color: #e4a11b; }

/* Заголовок в теле (визуально как h2, но под капотом h2) */
.aline-news__title { margin-bottom: 14px; }
.aline-news__title h2 {
    font-size: 32px;
    line-height: 1.25;
    margin: 0;
    color: #1b1b1b;
    font-weight: 700;
}

/* Оглавление (TOC) */
.article-toc {
    background: #f4f7f9;
    border-left: 3px solid #e4a11b;
    padding: 16px 20px;
    margin: 0 0 28px;
    border-radius: 8px;
}
.article-toc__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #5a6470;
    margin: 0 0 10px;
    letter-spacing: .05em;
}
.article-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
}
.article-toc__list li { margin: 6px 0; }
.article-toc__list li.lvl-3 { padding-left: 18px; font-size: 15px; }
.article-toc__list a {
    color: #1b1b1b;
    text-decoration: none;
    border-bottom: 1px dashed #9aa4ad;
    transition: all .15s ease;
}
.article-toc__list a:hover {
    color: #e4a11b;
    border-bottom-color: #e4a11b;
}

/* Share кнопки */
.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 28px 0;
    padding: 14px 0;
    border-top: 1px solid #e9edf0;
    border-bottom: 1px solid #e9edf0;
}
.article-share__label {
    font-size: 14px;
    color: #5a6470;
    margin-right: 4px;
}
.article-share a,
.article-share button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #eff2f4;
    color: #2b2b2b;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
}
.article-share a:hover,
.article-share button:hover {
    background: #e4a11b;
    color: #fff;
    transform: translateY(-2px);
}
.article-share svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.article-share .copied-msg {
    font-size: 13px;
    color: #2e7d32;
    margin-left: 8px;
    opacity: 0;
    transition: opacity .25s ease;
    font-weight: 500;
}
.article-share .copied-msg.is-visible { opacity: 1; }

/* Блок "Похожие статьи" под телом */
.related-articles {
    margin: 48px 0 20px;
    max-width: 1200px;
}
.related-articles__title {
    font-size: 26px;
    margin: 0 0 22px;
    color: #1b1b1b;
    font-weight: 700;
}
.related-articles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.related-articles__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e9edf0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all .22s ease;
}
.related-articles__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
    border-color: #e4a11b;
}
.related-articles__img {
    aspect-ratio: 16/10;
    background: #eef1f3;
    overflow: hidden;
}
.related-articles__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.related-articles__card:hover .related-articles__img img { transform: scale(1.05); }
.related-articles__body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.related-articles__date {
    font-size: 13px;
    color: #8b949b;
}
.related-articles__ttl {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #1b1b1b;
    margin: 0;
}

/* Кнопка "Наверх" */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #1b1b1b;
    color: #fff;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all .25s ease;
    z-index: 100;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.back-to-top.is-visible {
    opacity: .92;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover {
    opacity: 1;
    background: #e4a11b;
}
.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Lightbox для картинок */
.enhance-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.enhance-lightbox.is-visible { display: flex; }
.enhance-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}
.enhance-lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    transition: background .2s ease;
}
.enhance-lightbox__close:hover { background: rgba(255, 255, 255, .22); }

/* Пагинация (архив) */
.page-list {
    margin-top: 24px;
}
.page-list ul.page-numbers,
.page-list .page-items {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 0;
    justify-content: center;
    flex-wrap: wrap;
}
.page-list ul.page-numbers a,
.page-list ul.page-numbers span,
.page-list .page-items a,
.page-list .page-items span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: #f2f5f7;
    color: #2b2b2b;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all .15s ease;
    border: 1px solid transparent;
}
.page-list ul.page-numbers a:hover,
.page-list .page-items a:hover {
    background: #e4a11b;
    color: #fff;
}
.page-list ul.page-numbers .current,
.page-list .page-items .current {
    background: #1b1b1b;
    color: #fff;
}

/* Адаптив: меньше отступы на мобильном */
@media (max-width: 768px) {
    .alone-news__decription { font-size: 16px; line-height: 1.65; }
    .alone-news__decription h2 { font-size: 22px; }
    .alone-news__decription h3 { font-size: 18px; }
    .aline-news__title h2 { font-size: 24px; }
    .main__full-screen .breadcrumbs { top: 70px; padding: 0 20px; font-size: 13px; }
    .hero-meta { font-size: 14px; gap: 10px; }
    .related-articles__title { font-size: 22px; }
    .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}
