/* =============================================
   СТРАНИЦА: БЛОГ
   ============================================= */
.blg-page {
    padding: 60px var(--gap) 80px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.blg-page__header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

.blg-page__title {
    font-family: var(--h2-font-family);
    font-size: var(--h2-font-size);
    font-weight: var(--h2-font-weight);
    line-height: var(--h2-line-height);
    text-transform: uppercase;
    color: var(--main);
}

.blg-page__line {
    width: 64px; height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.blg-page__desc {
    font-family: 'Manrope', sans-serif;
    font-size: 22px; font-weight: 500;
    line-height: 140%; color: var(--text);
}

/* Сетка */
.blg-page__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

/* Карточка */
.blg-page__card {
    background: var(--fon);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
}

.blg-page__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ten-box-shadow);
    opacity: 1;
}

.blg-page__img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.blg-page__img--stub { background: #d9d9d9; }

.blg-page__body {
    padding: 20px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.blg-page__meta {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.blg-page__cat {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(226,13,26,0.08);
    padding: 2px 10px;
    border-radius: 20px;
}

.blg-page__date {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: var(--text);
}

.blg-page__name {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 130%;
    color: var(--main);
}

.blg-page__excerpt {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 140%;
    color: var(--text);
    flex: 1;
}

.blg-page__more {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    margin-top: auto;
}

/* Кнопка загрузить ещё */
.blg-page__load {
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 16px 60px;
    font-family: var(--button-font-family);
    font-size: var(--button-font-size);
    font-weight: var(--button-font-weight);
    color: var(--accent);
    cursor: pointer;
    transition: background .2s, color .2s;
}

.blg-page__load:hover {
    background: var(--accent);
    color: var(--white);
}

.blg-page__load--loading { opacity: .6; pointer-events: none; }

.blg-page__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    color: var(--text);
}

/* Адаптив */
@media (max-width: 1200px) {
    .blg-page { padding: 48px 40px 60px; }
    .blg-page__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .blg-page { padding: 40px 20px 48px; }
    .blg-page__title { font-size: 28px; }
    .blg-page__grid { grid-template-columns: 1fr; }
    .blg-page__load { width: 100%; }
}

/* =============================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================= */
.bc-wrap {
    padding: 20px var(--gap) 0;
}

.bc {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.bc__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.bc__link {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--border);
    text-decoration: none;
    transition: color .2s;
    white-space: nowrap;
}

.bc__link:hover { color: var(--accent); opacity: 1; }

.bc__sep { flex-shrink: 0; }

.bc__current {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--main);
}

/* =============================================
   ШАБЛОН СТАТЬИ
   ============================================= */


.post__meta {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.post__cat {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(226,13,26,0.08);
    padding: 2px 12px;
    border-radius: 20px;
}

.post__date {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: var(--text);
}

.post__title {
    font-family: var(--h2-font-family);
    font-size: 44px;
    font-weight: var(--h2-font-weight);
    line-height: 120%;
    color: var(--main);
    margin-bottom: 32px;
}

.post__cover {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    max-height: 480px;
    margin-bottom: 32px;
    display: block;
}

.post__excerpt {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 150%;
    color: var(--text);
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    margin-bottom: 32px;
}


/* Типографика контента */
.post__body {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 170%;
    color: var(--main);
    
}

.post__body h2 {
    font-family: var(--h2-font-family);
    font-size: 32px;
    font-weight: 500;
    line-height: 120%;
    color: var(--main);
    margin: 40px 0 16px;
}

.post__body h3 {
    font-family: var(--h3-font-family);
    font-size: 26px;
    font-weight: 400;
    line-height: 130%;
    color: var(--main);
    margin: 32px 0 12px;
}

.post__body p { margin-bottom: 20px; }

.post__body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post__body ul li {
    padding-left: 24px;
    position: relative;
}

.post__body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.post__body ol {
    padding-left: 24px;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post__body ol li { padding-left: 8px; }

.post__body blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    margin: 32px 0;
    background: var(--fon);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text);
}

.post__body blockquote + p {
    font-size: 15px;
    color: var(--border);
    margin-top: -20px;
    margin-bottom: 32px;
    padding-left: 24px;
}

.post__body a {
    color: var(--accent);
    text-decoration: underline;
}

.post__body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 24px 0;
}

.post__body strong { font-weight: 700; }


/* CTA баннер */
.post-cta {
    margin: 0 40px 60px;
   
    overflow: hidden;
}

.post-cta__inner {
    padding: 40px 60px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    position: relative;
    background: var(--acctnt2);
    border-radius: 20px;
    max-width: 1140px;
    align-self: center;
    width: 100%;
    margin: 0 auto;
}

.post-cta__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.post-cta__title {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--white);
    text-align: center;
}

.post-cta__sub {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    color: var(--border);
    text-align: center;
}

.post-cta__img {
    width: 44%;
    
    object-fit: contain;
    border-radius: 12px;
    flex-shrink: 0;
}

.post-cta__btn {
    margin-top: 20px;
    background: var(--accent);
    border-radius: 10px;
    padding: 16px 32px;
    font-family: var(--button-font-family);
    font-size: var(--button-font-size);
    font-weight: var(--button-font-weight);
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.post-cta__btn:hover { background: #c00b16; opacity: 1; }

/* Похожие статьи */
.post-related {
    padding: 0 var(--gap) 80px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.post-related__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.post-related__title {
    font-family: var(--h2-font-family);
    font-size: 36px;
    font-weight: var(--h2-font-weight);
    text-transform: uppercase;
    color: var(--main);
}

.post-related__all {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: gap .2s;
}

.post-related__swiper { width: 100%; padding-bottom: 48px !important; }

.post-related__pagination {
    display: flex !important;
    justify-content: center;
    gap: 6px;
}

.post-related__pagination .swiper-pagination-bullet {
    width: 10px; height: 10px;
    background: var(--border); opacity: 1; border-radius: 50%;
}

.post-related__pagination .swiper-pagination-bullet-active { background: var(--accent); }

/* Адаптив */
@media (max-width: 1200px) {
    .post { padding: 32px 40px 60px; }
    .post-cta { margin: 0 40px 48px; }
    .post-related { padding: 0 40px 60px; }
    .bc-wrap { padding: 16px 40px 0; }
}

@media (max-width: 1024px) {
    .post-cta__inner { flex-direction: column; }
    .post-cta__img { width: 100%;  }
    .post-cta__title { font-size: 24px; }
    .post-cta__sub { font-size: 16px; }
    .post-cta__btn { font-size: 16px; }
}

@media (max-width: 640px) {
    .post { padding: 40px; }
    .post-cta__inner { flex-direction: column; padding: 28px 24px; }
    
    .post-cta__title { font-size: 24px; }
    .post-related { padding: 0 20px 48px; }
    .bc-wrap { padding: 12px 20px 0; }
}

/* =============================================
   КОНТЕНТ СТАТЬИ — ДОРАБОТКА СТИЛЕЙ
   ============================================= */

/* Обёртка страницы статьи */
.post {
    padding: 0 40px 80px ;
}

.post-img {
    display: flex;
    justify-content: center;
    margin: 40px 0 0;
    padding: 0 40px;
}


/* Обложка — на всю ширину с закруглением снизу */

.post__cover {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 30px 30px 0 0;
    margin-bottom: 0;
    display: block;
    max-width: 1140px;
}

/* Серый блок под обложкой */
.post__inner {
    background: var(--fon);
    border-radius: 0 0 30px 30px;
    padding:60px 50px ;
    gap: 60px;
    align-items: start;
        display: flex;
        flex-direction: column;
        max-width: 1140px;
        align-self: center;
        width: 100%;
        margin: 0 auto;
       
    
}

/* Мета: категория + дата */
.post__meta {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    justify-content: center;
}

.post__cat {
    background: rgba(226,13,26,0.1);
    border-radius: 10px;
    padding: 5px 15px;
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--accent);
}

.post__date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

/* Заголовок статьи */
.post__title {
    font-family: var(--h2-font-family);
    font-size: 50px;
    font-weight: var(--h2-font-weight);
    line-height: 120%;
    text-transform: uppercase;
    color: var(--main);
    text-align: center;
    margin-bottom: 32px;
    max-width: 1034px;
    align-self: center;
    width: 100%;
}

/* Вводный абзац */
.post__excerpt {
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 140%;
    color: var(--text);
    border-left: none;
    padding-left: 0;
    margin-bottom: 30px;
    max-width: 1034px;
}

/* ── Типографика тела статьи ── */
.post__body {
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 140%;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post__body h2 {
    font-family: var(--h3-font-family);
    font-size: 40px;
    font-weight: 400;
    line-height: 130%;
    color: var(--main);
    margin: 20px 0 0;
}

.post__body h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 130%;
    color: var(--main);
    margin: 12px 0 0;
}

.post__body p {
    margin: 0;
    max-width: 1034px;
}

/* Маркированный список */
.post__body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1034px;
}

.post__body ul li {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    padding-left: 22px;
}

.post__body ul li::before {
    content: '';
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 0px;
}

/* Нумерованный список — цифры красные */
.post__body ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    counter-reset: post-counter;
    max-width: 1034px;
}

.post__body ol li {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    counter-increment: post-counter;
    padding-left: 0;
}

.post__body ol li::before {
    content: counter(post-counter) '.';
    flex-shrink: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--accent);
    min-width: 12px;
    line-height: 1.4;
}

/* Цитата */
.post__body blockquote {
    border-left: 5px solid var(--accent);
    border-top: none;
    border-right: none;
    border-bottom: none;
    padding: 30px 20px 30px 40px;
    margin: 0 ;
    background: var(--white);
    border-radius: 0;
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post__body blockquote p {
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 140%;
    color: var(--text);
    max-width: 100%;
}

/* Подпись под цитатой (следующий p после blockquote) */
.post__body blockquote + p,
.post__body blockquote p:last-child {
    font-size: 22px;
    color: var(--text);
    padding-left: 0;
    margin: 0;
    max-width: 100%;
}

/* Блок автора */
.post__author {
    background: var(--white);
    border-radius: 30px;
    padding: 40px 60px;
    display: flex;
    flex-direction: row;
    gap: 28px;
    align-items: flex-start;
    margin-top: 60px;
}

.post__author-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 1px solid var(--border);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: -4px -3px 4px 0px rgba(227, 6, 19, 1);
}

.post__author-img--stub {
    background: var(--fon);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post__author-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post__author-name {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 130%;
    color: var(--main);
}

.post__author-role {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: -16px;
}

.post__author-bio {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 120%;
    color: var(--text);
    max-width: 481px;
}


/* Адаптив */

@media (max-width: 1440px) {
    .post__body p {
        font-size: 18px;
        line-height: 120%;
    }

    .post__body ul {
        gap: 9px;
    }
}


@media (max-width: 1200px) {
    .post__inner { padding: 40px; gap: 40px; }
    .post__title { font-size: 38px; }
    .post__cover { height: 380px; }
}

@media (max-width: 1024px) {
    
    
    .post__cover { height: 320px; }
}

@media (max-width: 640px) {
    .post { padding: 0 16px 40px; }
    .post-img { padding: 0 16px; border-radius: 20px 20px 0 0;}
    .post__inner { padding: 24px 16px; border-radius: 0 0 20px 20px; }
    .post__title { font-size: 28px; }
    .post__cover { height: 220px; }
    .post__excerpt { font-size: 18px; }
    .post__body { font-size: 16px; }
    .post__body h2 { font-size: 28px; }
    .post__author { flex-direction: column; padding: 24px; border-radius: 20px;}
    .post__author-img { width: 90px; height: 90px; }
    .post__author-name { font-size: 24px; }
    .post__author-role { font-size: 12px; }
    .post__author-bio { font-size: 14px; }
.post__body blockquote {
    border-left: 3px solid var(--accent);
    padding: 20px 15px 20px 20px;
    gap: 10px;
}

.post__body blockquote p {
    font-size: 18px;
}

.post__body blockquote + p,
.post__body blockquote p:last-child {
    font-size: 18px;
  
}
.post__body ul li::before {
    top: 6px;
    width: 8px;
    height: 8px;
}

.post__body ol li::before {
    font-size: 16px;
}


.post__cat { font-size: 14px; }
.post_date { font-size: 16px; }



}