/* ==========================================================================
   Блог «НЕРУД БЕТОН» — серая тема. Лента статей + страница статьи.
   Подключается на informacija/index.html (лента) и informacija/article.html (статья).
   ========================================================================== */

.blog-wrap{
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 15px 70px;
}
.blog-head{ text-align: center; margin-bottom: 40px; }
.blog-head h1{ font-size: 34px; font-weight: 800; color: #2a2c30; margin: 0 0 12px; }
.blog-head p{ color: #6b7280; font-size: 16px; margin: 0 auto; max-width: 640px; }

/* Раскладка: список статей + боковая колонка категорий */
.blog-layout{ display: flex; gap: 36px; align-items: flex-start; }
.blog-main{ flex: 1 1 auto; min-width: 0; }
.blog-aside{ flex: 0 0 280px; }
@media (max-width: 860px){
    .blog-layout{ flex-direction: column; }
    .blog-aside{ flex-basis: auto; width: 100%; }
}

/* ---- Карточка статьи в ленте ---- */
.blog-list{ display: flex; flex-direction: column; gap: 20px; }
.post-card{
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 16px;
    padding: 26px 28px;
    box-shadow: 0 5px 30px 0 rgba(0,0,0,.05);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.post-card:hover{ box-shadow: 0 14px 38px rgba(0,0,0,.12); transform: translateY(-2px); border-color: #d6dade; }
.post-card .meta{ display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.post-card .cat{
    font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: #fff; background: #6b7280; padding: 4px 12px; border-radius: 50px;
}
.post-card .date{ font-size: 13px; color: #9aa1a9; margin-left: auto; }
.post-card h2{ margin: 0 0 10px; font-size: 22px; line-height: 1.25; font-weight: 700; }
.post-card h2 a{ color: #2a2c30; text-decoration: none; }
.post-card h2 a:hover{ color: #6b7280; }
.post-card .excerpt{ color: #5b6068; font-size: 15px; line-height: 1.6; margin: 0 0 18px; }
.post-card .read-more{
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; font-size: 15px; color: #474A51; text-decoration: none;
}
.post-card .read-more .mdi{ transition: transform .2s; }
.post-card:hover .read-more .mdi{ transform: translateX(4px); }

/* ---- Категории ---- */
.blog-cats{
    background: #fff; border: 1px solid #e6e8ec; border-radius: 16px;
    padding: 24px 24px; box-shadow: 0 5px 30px 0 rgba(0,0,0,.05);
}
.blog-cats h3{ font-size: 16px; font-weight: 700; color: #2a2c30; margin: 0 0 16px; }
.blog-cats ul{ list-style: none; margin: 0; padding: 0; }
.blog-cats li{ margin-bottom: 8px; }
.blog-cats a{
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 14px; border-radius: 10px; text-decoration: none;
    color: #5b6068; font-size: 14px; font-weight: 500; transition: all .15s;
}
.blog-cats a:hover{ background: #f1f3f5; color: #2a2c30; }
.blog-cats a.active{ background: #6b7280; color: #fff; }
.blog-cats a .count{ font-size: 12px; opacity: .7; }

/* ---- Пагинация ---- */
.blog-pagination{ display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.blog-pagination button{
    min-width: 42px; height: 42px; padding: 0 12px;
    border: 1px solid #d6dade; background: #fff; color: #474A51;
    border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer; transition: all .15s;
}
.blog-pagination button:hover:not(:disabled){ border-color: #6b7280; color: #2a2c30; }
.blog-pagination button.active{ background: #6b7280; border-color: #6b7280; color: #fff; cursor: default; }
.blog-pagination button:disabled{ opacity: .4; cursor: default; }

/* ---- Состояния ---- */
.blog-empty, .blog-loading{ text-align: center; color: #9aa1a9; padding: 60px 0; font-size: 16px; }

/* ==========================================================================
   Страница одной статьи
   ========================================================================== */
.article-wrap{ max-width: 800px; margin: 0 auto; padding: 28px 15px 70px; }
.article-breadcrumbs{ font-size: 13px; color: #9aa1a9; margin-bottom: 22px; }
.article-breadcrumbs a{ color: #6b7280; text-decoration: none; }
.article-breadcrumbs a:hover{ text-decoration: underline; }
.article-breadcrumbs .sep{ margin: 0 6px; }

.article-head .meta{ display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.article-head .cat{
    font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: #fff; background: #6b7280; padding: 4px 12px; border-radius: 50px;
}
.article-head .date{ font-size: 14px; color: #9aa1a9; }
.article-head h1{ font-size: 34px; line-height: 1.2; font-weight: 800; color: #1f2125; margin: 0 0 24px; }

.article-cover{ width: 100%; border-radius: 16px; margin-bottom: 30px; display: block; }

.article-body{ color: #33373d; font-size: 17px; line-height: 1.75; }
.article-body h2{ font-size: 26px; font-weight: 700; color: #2a2c30; margin: 38px 0 14px; }
.article-body h3{ font-size: 21px; font-weight: 700; color: #2a2c30; margin: 30px 0 12px; }
.article-body p{ margin: 0 0 18px; }
.article-body ul, .article-body ol{ margin: 0 0 18px; padding-left: 22px; }
.article-body li{ margin-bottom: 8px; }
.article-body a{ color: #474A51; font-weight: 600; text-decoration: underline; }
.article-body img{ max-width: 100%; height: auto; border-radius: 12px; margin: 14px 0; }
.article-body blockquote{
    border-left: 3px solid #6b7280; margin: 22px 0; padding: 6px 0 6px 20px;
    color: #5b6068; font-style: italic;
}

.article-back{ margin-top: 44px; }
.article-back a{
    display: inline-flex; align-items: center; gap: 8px;
    color: #474A51; font-weight: 600; text-decoration: none;
}
.article-back a:hover{ color: #6b7280; }
