/* ION Heat — Blog Archive */

.blog-archive .container {
    flex-direction: column;
    gap: 45px;
    align-items: flex-start;
    padding-top: 45px;
    padding-bottom: 100px;
}

/* Фильтры-категории */
.blog-filters {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.blog-filter {
    color: var(--active);
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 130%;
    font-weight: 300;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
}

.blog-filter:hover,
.blog-filter.is-active {
    color: var(--main);
}

/* Список постов */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-self: stretch;
}

/* Карточка поста */
.blog-card {
    border: 1px solid var(--obvodka);
    display: flex;
    flex-direction: row;
    gap: 67px;
    align-items: flex-start;
    align-self: stretch;
    text-decoration: none;
    transition: box-shadow 0.25s;
}

.blog-card:hover {
    box-shadow: var(--card-shadow);
}

.blog-card__img {
    flex-shrink: 0;
    width: 514px;
    height: 514px;
    object-fit: cover;
    display: block;
}

.blog-card__body {
    padding: 20px 20px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.blog-card__meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
}

.blog-card__meta-left {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
}

.blog-card__date,
.blog-card__read {
    color: var(--text);
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    line-height: 130%;
    font-weight: 300;
}

.blog-card__dot {
    width: 2px;
    height: 2px;
    background: var(--text);
    border-radius: 50%;
    flex-shrink: 0;
}

.blog-card__bookmark {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

.blog-card__cat {
    background: var(--fon-light);
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
}

.blog-card__cat span {
    color: var(--active);
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 130%;
    font-weight: 300;
    white-space: nowrap;
}

.blog-card__text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-self: stretch;
}

.blog-card__title {
    color: var(--text);
    font-family: "Manrope", sans-serif;
    font-size: clamp(20px, 2vw, 32px);
    line-height: 130%;
    font-weight: 500;
    align-self: stretch;
}

.blog-card__excerpt {
    color: var(--text);
    font-family: var(--text1-font-family);
    font-size: var(--text1-font-size);
    line-height: var(--text1-line-height);
    font-weight: var(--text1-font-weight);
    align-self: stretch;
}

/* Пагинация */
.blog-pagination {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    margin-top: 20px;
}

.blog-pagination .page-numbers {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--obvodka);
    color: var(--text);
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--main);
    border-color: var(--main);
    color: var(--white);
}

/* Скрытие при фильтрации */
.blog-card[data-hidden="true"] {
    display: none;
}

/* ── Адаптив ────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .blog-card {
        flex-direction: column;
        gap: 0;
    }

    .blog-card__img {
        width: 100%;
        height: 320px;
    }

    .blog-card__body {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .blog-archive .container {
        padding-top: 24px;
        padding-bottom: 60px;
    }

    .blog-filters {
        gap: 20px;
    }

    .blog-card__img {
        height: 220px;
    }

    .blog-card__title {
        font-size: 20px;
    }

    .blog-card__excerpt {
        font-size: 16px;
    }
}