.blog-page {
    margin: 0 150px;
    padding: 0;
}

.blog-page__header {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    justify-content: left;
}

.blog-page__title {
    font-family: 'Nunito', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: left;
    margin: 0;
}

.blog-tabs {
    display: flex;
    padding: 4px;
    border-radius: 8px;
    overflow: hidden;
}

.blog-tab {
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: #2e3238;
    transition: all 0.2s ease;
}

.blog-tab.active {
    background: #0088cc;
    color: #fff;
}

.blog-tab:hover:not(.active) {
    background: #3d424a;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Обложки 16:9 с текстом на баннере - показываем целиком, без обрезки */
.blog-card__img img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #f2f4f7;
}

.blog-card__body {
    padding: 16px;
    flex: 1;
}

.blog-card__date {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.blog-card__title {
    font-family: 'Nunito', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 10px;
}

.blog-card__excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 16px;
}

.left_btn {
    border-radius: 10px 0 0 10px;
}

.right_btn {
    border-radius: 0 10px 10px 0;
}

@media (max-width: 1200px) {
    .blog-page {
        margin: 0 60px;
    }
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .blog-page {
        margin: 0 30px;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-page {
        margin: 0 15px;
        padding: 20px 0;
    }
    .blog-page__header {
        margin-bottom: 20px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .blog-card__title {
        font-size: 16px;
    }
    .blog-card__excerpt {
        font-size: 13px;
    }
    .blog-card__body {
        padding: 12px;
    }
    .blog-tab {
        padding: 8px 16px;
        font-size: 14px;
    }
}
