

/* Start:/local/templates/puh/src/css/blog.css?17870589999959*/
.blog{
    padding: 20px 0 40px 0;
}

.blog__article-main{
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: 60px;
}

.section-left-title{
    font-size: 36px;
}
.blog__title{
    margin-bottom: 20px;
}
.blog-articles__item-large{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: 422px;
    max-height: 422px;
    height: 100%;
    gap: 50px;
}
.blog-articles__item-large .articles__img{
    justify-self: end;
    margin-left: 0;
}
.blog-articles__item-large .articles__img img{
    width: auto;
    height: 100%;
}
.blog-articles__item-large.articles__item:last-child::after{
    content: none;
}

.blog-articles__item-large .articles__img img{
    border-radius: 0;
}
.blog__articles{
    display: flex;
    flex-direction: column;
}
.blog__articles-filter{
    margin-bottom: 32px ;
}
.blog__filters-types .catalog__filters-button-type{
    text-transform: uppercase;
}
.blog__articles-list{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-content: center;
    margin-bottom: 32px;
}
.blog-articles__item:last-child::after{
    content: none;
}
.blog-articles__item{
    max-width: 690px;
    width: 100%;
}

@media screen and (min-width: 999px) {
    .blog-articles__item .articles__img img{
        height: 100%;
        width: auto;
    }
}


@media screen and (max-width: 998px){
    .section-left-title{
        font-size: 20px;
    }
    .blog__title{
        margin-bottom: 8px;
    }
    .blog__article-main{
        margin-bottom: 40px;
    }

    /* Не column-reverse: на части Android Chrome abspos (плашка/дата) считает bottom от высоты картинки */
    .blog .articles__item {
        width: 100%;
        min-height: unset;
        height: auto;
        flex-direction: column;
        justify-content: flex-start;
    }
    .blog__articles-list .blog-articles__item > .articles__img {
        order: -1;
    }

    .blog-articles__item-large{
        grid-template-rows: minmax(0, 287px);
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-height: none;
        height: auto;
    }
    .blog .articles__info,
    .blog-articles__item-large .articles__info{
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "name date"
            "desc desc"
            "teg .";
        align-items: start;
        column-gap: 12px;
        padding: 15px 19px 0 19px;
        position: relative;
    }
    .blog-articles__item-large .articles__info{
        padding: 42px 21px 0 21px;
    }
    .blog .articles__name {
        grid-area: name;
        max-width: none;
        margin-bottom: 7px;
        line-height: 1.2;
    }
    .blog .articles__desc {
        grid-area: desc;
        max-width: none;
    }
    .blog-articles__item-large .articles__name, .blog-articles__item-large .articles__desc{
        max-width: unset;
    }
    .blog .articles__date,
    .blog-articles__item-large .articles__date{
        grid-area: date;
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        white-space: nowrap;
        justify-self: end;
        line-height: 1.2;
    }
    .blog .articles__teg,
    .blog-articles__item-large .articles__teg{
        grid-area: teg;
        position: static;
        left: auto;
        bottom: auto;
        justify-self: start;
        width: max-content;
        margin-top: 8px;
        margin-left: 11px;
    }
    .blog-articles__item-large .articles__img,
    .blog-articles__item-large .articles__img-large {
        height: 100%;
        min-height: 0;
        overflow: hidden;
        position: relative;
    }
    .blog-articles__item-large .articles__img picture,
    .blog-articles__item-large .articles__img-large picture {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
    }
    .blog-articles__item-large .articles__img img,
    .blog-articles__item-large .articles__img-large picture img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: center;
    }

    .blog__articles-list{
        margin-bottom: 20px;
    }

    /* Список статей блога: портрет 3:4 */
    .blog__articles-list .blog-articles__item{
        max-width: 100%;
    }
    .blog__articles-list .blog-articles__item .articles__img{
        margin-left: unset;
    }
    .blog__articles-list .blog-articles__img{
        position: relative;
        overflow: hidden;
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: 3 / 4;
        display: block;
        border-radius: 8px 8px 0 0;
    }
    .blog__articles-list .blog-articles__img::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: var(--blur-bg);;
        background-size: cover;
        background-position: center;
        filter: blur(10px);
        z-index: 1;
        opacity: 0.7;
    }
    .blog__articles-list .blog-articles__img picture {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: block;
        width: 100%;
        height: 100%;
    }
    .blog__articles-list .blog-articles__item .articles__img picture img,
    .blog__articles-list .blog-articles__img picture img{
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: center;
        border-radius: 0;
    }
}

@media screen and (max-width: 830px){
    .blog__articles-list{
        grid-template-columns: 1fr;
        justify-content: center;
    }
    .blog-articles__item-large .articles__img{
        max-width: none;
    }
}

@media screen and (max-width: 572px){
    .blog-articles__item-large{
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: unset;
        gap: 0;
    }
    .blog-articles__item-large > .articles__img,
    .blog-articles__item-large > .articles__img-large {
        order: -1;
    }
    .blog .blog__article-main .articles__img-large,
    .blog .articles__img-large{
        position: relative;
        overflow: hidden;
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: 3 / 4;
        display: block;
        border-radius: 8px 8px 0 0;
    }
    .blog .articles__img-large::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: var(--blur-bg);
        background-size: cover;
        background-position: center;
        filter: blur(10px);
        z-index: 1;
        opacity: 0.7;
    }
    .blog .articles__img-large picture {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: block;
        width: 100%;
        height: 100%;
    }
    .blog-articles__item-large .articles__img{
        max-width: unset;
    }
    .blog-articles__item-large .articles__img img,
    .blog .articles__img-large picture img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: center;
    }
    .blog-articles__item-large .articles__info{
        padding: 15px 19px 0 20px;
    }
}

@media screen and (max-width: 376px){
    .blog__articles-list .blog-articles__img::before{
        content: none ;
    }
    .blog .blog__article-main .articles__img-large::before,
    .blog .articles__img-large::before{
        content: none;
    }
}

/* Главная: слайдер «БУДЬ В КУРСЕ» — портрет 3:4 (blog.css подключается через news.php) */
@media screen and (max-width: 998px) {
    .articles__list .blog-articles__item {
        flex-direction: column;
        justify-content: flex-start;
        min-height: unset;
        height: auto;
    }
    .articles__list .blog-articles__item > .articles__img {
        order: -1;
    }
    .articles__list .blog-articles__img {
        position: relative;
        height: auto;
        max-height: none;
        aspect-ratio: 3 / 4;
    }
    .articles__list .blog-articles__img picture {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
    }
    .articles__list .blog-articles__item .articles__img picture img,
    .articles__list .blog-articles__item .articles__img img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: center;
    }
    .articles__list .blog-articles__item .articles__info {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "name date"
            "desc desc"
            "teg .";
        align-items: start;
        column-gap: 12px;
        padding: 15px 19px 0 19px;
        position: relative;
    }
    .articles__list .blog-articles__item .articles__name {
        grid-area: name;
        max-width: none;
        margin-bottom: 7px;
        line-height: 1.2;
    }
    .articles__list .blog-articles__item .articles__desc {
        grid-area: desc;
        max-width: none;
    }
    .articles__list .blog-articles__item .articles__date {
        grid-area: date;
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        white-space: nowrap;
        justify-self: end;
        line-height: 1.2;
    }
    .articles__list .blog-articles__item .articles__teg {
        grid-area: teg;
        position: static;
        left: auto;
        bottom: auto;
        justify-self: start;
        width: max-content;
        margin-top: 8px;
        margin-left: 11px;
    }
}

.blog__pagination{
    grid-column: 1 / -1;
    margin-top: 8px;
    display: flex;
    justify-content: center;
    text-transform: none;
}
.blog__pagination .button-more{
    min-width: 200px;
}

/* End */
/* /local/templates/puh/src/css/blog.css?17870589999959 */
