/* ===== HERO: три колонки ===== */
#home {
    opacity: 0;
}

#home.is-ready {
    opacity: 1;
    transition: opacity .22s ease;
}

.home__top {
    display: flex;
    align-items: stretch;
    /* колонки растягиваются по высоте контейнера */
    gap: 24px;
    height: auto;
    /* реальную высоту выставит JS под левую колонку */
    overflow: visible;
}

/* Левая колонка (две мини-карточки) */
.home__left {
    display: flex;
    flex: 0 0 383px;
    /* фикс ширина на десктопе по макету */
    flex-direction: column;
    gap: 30px;
}

/* — только внешний вид карточек в левой колонке; без fixed-height — */
.home__left .post-card {
    flex-direction: column;
    gap: 0;
    min-height: 510px;
}

.home__left .post-card__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 300px;
}


/* Центр (главный пост/слайд) */
.home__center {
    flex: 0 0 512px;
    display: flex;
}

.home__center .post-card,
.home__feature {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* Фича в центре — как раньше визуально */
.home__feature {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
}

.home__feature .post-card__thumb {
    flex: 1 1 auto;
    height: auto;
    max-height: 460px;
    /* как у тебя было */
    width: 100%;
}

.home__feature .post-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home__feature .post-card__title {
    font-size: 32px;
}

.home__feature .post-card__body {
    flex: 0 0 auto;
    padding: 18px 20px 20px;
    min-height: 550px;
}

/* Правая колонка (сниппет) */
.home__right {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
}

.snippet {
    background: #eceaea;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    width: 100%;
}

.snippet__title {
    font-size: 24px;
    margin: 0 0 15px;
}

.snippet__meta {
    font-size: 16px;
    margin-bottom: 15px;
}

.snippet__author {
    margin-right: 12px;
}

.snippet__tags {
    display: flex;
    flex-wrap: wrap;
    font-size: 16px;
    gap: 10px 12px;
    margin-bottom: 30px;
}

/* Текст со скрытием по высоте + маска; "читать далее" включит JS */
.snippet__text {
    flex: 1 1 auto;
    font-size: 18px;
    line-height: 1.48;
    min-height: 0;
    overflow: hidden;
    /* для клампа */
    position: relative;
}

.snippet__text.is-clamped::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(236, 234, 234, 0), #eceaea 70%);
}

.snippet__more {
    display: none;
    margin-top: 7px;
}

.snippet__more[hidden] {
    display: none !important;
}

.snippet.has-more .snippet__more {
    display: inline-block;
}

/* ===== <1280px: скрыть правую; левая остается; центр занимает остаток ===== */
@media (max-width:1279px) {
    .home__right {
        display: none !important;
    }

    .home__left {
        flex: 0 0 383px;
    }

    /* оставить как на десктопе */
    .home__center {
        flex: 1 1 auto;
        min-width: 0;
    }
}

/* ===== ≤1024px (планшет): скрыть левую; центр на всю ширину ===== */
@media (max-width:1024px) {
    .home__left {
        display: none !important;
    }

    .home__center {
        flex: 1 1 100%;
        min-width: 0;
    }

    .home__feature .post-card__body {
        min-height: 230px;
    }
}

/* ===== ≤900px: компактнее заголовок фичи ===== */
@media (max-width:900px) {
    .home__feature .post-card__title {
        font-size: 24px;
        line-height: 1.25;
    }
}

/* ===== ≤640px: компактные паддинги ===== */
@media (max-width:640px) {
    .home__feature .post-card__body {
        padding: 14px 16px 16px;
    }

    .snippet {
        padding: 16px;
    }
}