.blog-index-section,
.article-view-section {
    position: relative;
    padding-bottom: 44px;
    background-color: var(--z-green-dark);
    min-height: 100vh;
    z-index: 10;
}

.blog-index-container,
.article-view-container {
    position: relative;
    z-index: 2;
}

.blog-header-row {
    margin-bottom: 60px;
}

.blog-breadcrumbs {
    margin-bottom: 40px;
}

.blog-header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.blog-description {
    font-size: 18px;
    color: rgba(253, 251, 237, 0.8);
    line-height: 1.6;
    margin: 0;
}

.blog-grid-row {
    row-gap: 2rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.article-meta-item {
    font-size: 13px;
    color: rgba(253, 251, 237, 0.5);
}

.article-meta-divider {
    color: var(--z-yellow);
    font-size: 10px;
}

.article-excerpt {
    font-size: 15px;
    color: rgba(253, 251, 237, 0.7);
    line-height: 1.6;
    margin: 0 0 24px 0;
    flex-grow: 1;
}

.article-layout-row {
    row-gap: 40px;
}

.article-breadcrumbs {
    margin-bottom: 30px;
}

.article-main-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    color: #ffffff;
    font-family: 'Benzin', sans-serif;
    line-height: 1.3;
    margin-bottom: 24px;
}

.article-meta-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(253, 251, 237, 0.1);
}

.article-author-mini {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-mini-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--z-yellow);
}

.author-mini-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.article-meta-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-stat-item {
    font-size: 14px;
    color: rgba(253, 251, 237, 0.6);
}

.meta-stat-divider {
    color: var(--z-yellow);
    font-size: 12px;
}

.article-hero-image-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 40px;
}

.article-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body-content {
    padding: 24px 0;
    border-radius: 24px;
    color: rgba(253, 251, 237, 0.85);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.article-body-content p {
    margin-bottom: 24px;
}

.article-body-content p:last-child {
    margin-bottom: 0;
}

.article-author-card {
    padding: 32px;
    border-radius: 24px;
    display: flex;
    gap: 32px;
    align-items: center;
}

.author-card-visual {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 230, 0, 0.2);
}

.author-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-card-label {
    font-size: 12px;
    color: rgba(253, 251, 237, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.author-card-name {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.author-card-role {
    font-size: 14px;
    color: var(--z-yellow);
    font-weight: 600;
    margin-bottom: 16px;
}

.author-card-bio {
    font-size: 15px;
    color: rgba(253, 251, 237, 0.7);
    line-height: 1.5;
    margin-bottom: 16px;
}

.author-profile-link {
    color: var(--z-yellow);
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 130px;
}

.sidebar-widget {
    padding: 32px;
    border-radius: 24px;
}

.sidebar-widget-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 230, 0, 0.2);
}

.sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(253, 251, 237, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-category-link:hover {
    color: var(--z-yellow);
}

.category-name {
    font-size: 15px;
    font-weight: 600;
}

.category-count {
    background: rgba(253, 251, 237, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
}

.sidebar-recent-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-recent-item {
    display: flex;
    gap: 16px;
    text-decoration: none;
    align-items: center;
}

.sidebar-recent-item:hover .recent-title {
    color: var(--z-yellow);
}

.recent-visual {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recent-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.recent-date {
    font-size: 12px;
    color: rgba(253, 251, 237, 0.5);
}

.widget-cta {
    background: linear-gradient(145deg, var(--card-background) 0%, rgba(20, 36, 23, 0.6) 100%);
    border-color: rgba(255, 230, 0, 0.3);
    text-align: center;
}

.cta-widget-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--z-yellow);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.cta-widget-desc {
    font-size: 14px;
    color: rgba(253, 251, 237, 0.8);
    line-height: 1.6;
    margin-bottom: 24px;
}

.btn-sidebar-cta {
    width: 100%;
    justify-content: center;
}

@media (max-width: 1199.98px) {
    .article-author-card { flex-direction: column; text-align: center; }
}

@media (max-width: 991.98px) {
    .blog-sidebar { position: static; margin-top: 40px; }
}

@media (max-width: 768px) {
    .blog-index-section, .article-view-section { padding: 100px 0 60px; }
    .article-hero-image-wrapper { height: 250px; }
    .article-body-content { padding: 24px; }
    .article-meta-info { flex-direction: column; align-items: flex-start; }
}

/* =========================================
   КАРТОЧКИ СТАТЕЙ (СЕТКА)
   ========================================= */
.blog-card-wrapper {
    display: flex;
    flex-direction: column;
}

.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.article-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 230, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 230, 0, 0.05);
    background: rgba(20, 36, 23, 0.8);
}

.article-visual {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-bottom: 1px solid rgba(253, 251, 237, 0.08);
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .article-img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(20, 36, 23, 0.85);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 100px;
    color: var(--z-yellow);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(255, 230, 0, 0.2);
    z-index: 2;
}

.article-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.article-meta-item {
    font-size: 13px;
    font-weight: 500;
    color: rgba(253, 251, 237, 0.5);
}

.article-meta-divider {
    color: var(--z-yellow);
    font-size: 10px;
}

.article-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.4;
    margin: 0 0 16px 0;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: var(--z-yellow);
}

.article-excerpt {
    font-size: 15px;
    color: rgba(253, 251, 237, 0.7);
    line-height: 1.6;
    margin: 0 0 24px 0;
    flex-grow: 1;
}

.article-read-more {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--z-yellow);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: gap 0.3s ease;
}

.article-card:hover .article-read-more {
    gap: 12px;
}

@media (max-width: 768px) {
    .article-visual {
        height: 200px;
    }
    .article-content {
        padding: 24px;
    }
    .article-title {
        font-size: 18px;
    }
}

.article-body-content {
    color: rgba(253, 251, 237, 0.85);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 60px;
}

.clean-typography p {
    margin-bottom: 24px;
}

.clean-typography p:last-child {
    margin-bottom: 0;
}

.clean-typography h2 {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 48px 0 24px 0;
    font-family: 'Benzin', sans-serif;
    scroll-margin-top: 100px;
}

.article-author-flat {
    display: flex;
    gap: 32px;
    align-items: center;
    padding: 40px 0;
    border-top: 1px solid rgba(253, 251, 237, 0.1);
    border-bottom: 1px solid rgba(253, 251, 237, 0.1);
}

.author-flat-visual {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

.author-flat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-flat-label {
    font-size: 12px;
    color: rgba(253, 251, 237, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.author-flat-name {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.author-flat-role {
    font-size: 14px;
    color: var(--z-yellow);
    font-weight: 600;
    margin-bottom: 12px;
}

.author-flat-bio {
    font-size: 15px;
    color: rgba(253, 251, 237, 0.7);
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.author-profile-link {
    color: var(--z-yellow);
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc-link {
    color: rgba(253, 251, 237, 0.7);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    transition: color 0.3s ease, padding-left 0.3s ease;
    border-left: 2px solid transparent;
    padding-left: 0;
}

.toc-link:hover {
    color: var(--z-yellow);
    padding-left: 12px;
    border-left-color: var(--z-yellow);
}

.subscribe-desc {
    font-size: 14px;
    color: rgba(253, 251, 237, 0.7);
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.subscribe-input {
    width: 100%;
    background: rgba(253, 251, 237, 0.05);
    border: 1px solid rgba(253, 251, 237, 0.1);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.subscribe-input:focus {
    border-color: var(--z-yellow);
}

.subscribe-input::placeholder {
    color: rgba(253, 251, 237, 0.3);
}

.subscribe-btn {
    width: 100%;
    justify-content: center;
    border: none;
}

.recent-meta {
    font-size: 12px;
    color: var(--z-yellow);
}

@media (max-width: 1199.98px) {
    .article-author-flat { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .clean-typography h2 { font-size: 22px; margin: 32px 0 16px 0; }
    .article-body-content { font-size: 16px; }
}

.pagination-row {
    margin-top: 60px;
}

.pagination-col {
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-item {
    display: flex;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: rgba(253, 251, 237, 0.8);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(253, 251, 237, 0.1);
    background: rgba(20, 36, 23, 0.6);
}

.pagination-link:hover {
    color: #ffffff;
    border-color: rgba(255, 230, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.pagination-item.active .pagination-link {
    background: var(--z-yellow);
    color: var(--z-green-dark);
    border-color: var(--z-yellow);
    pointer-events: none;
}

.pagination-link.disabled {
    opacity: 0.4;
    pointer-events: none;
    background: transparent;
    border-color: rgba(253, 251, 237, 0.05);
}

.pagination-prev .pagination-link,
.pagination-next .pagination-link {
    width: auto;
    padding: 0 16px;
}

@media (max-width: 768px) {
    .pagination-row {
        margin-top: 40px;
    }
    .pagination-list {
        gap: 8px;
    }
    .pagination-link {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .pagination-prev .pagination-link,
    .pagination-next .pagination-link {
        padding: 0 12px;
    }
}