/*
Theme Name: Reboot Child
Theme URI: https://wpshop.ru/themes/reboot
Author: WPShop.biz
Author URI: http://wpshop.biz/
Template: reboot
Version: 1.0.0
*/

/* Below you can add your CSS styles */
/* Ниже Вы можете добавить свои CSS стили */

html body .section-posts:not(:last-of-type) {
    margin-bottom: 26px;
}

.home-title {
    font-weight: 700;
    font-size: 40px;
    line-height: 100%;
    color: #111111;
    padding: 30px 0 50px;
    margin: 0;
}

.home-title span {
    color: #f96b6b;
}

@media (max-width: 900px) {
    .home-title {
        font-size: 26px;
        line-height: 120%;
        padding: 10px 0 50px;
        width: 90%;
    }
}

.element-for-mb {
    display: none;
}

.blog-list__latest {
    display: flex;
    flex-direction: column;
    margin: 0 0 56px;
}

.latest-post__link {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 5;
}

.latest-post__img img {
    display: block;
    width: 100%;
    height: 400px;
    -o-object-fit: cover;
    object-fit: cover;
    filter: brightness(.6);
    border-radius: 20px;
}

.latest-post__content {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    top: 0;
    left: 0;
    padding: 0 56px;
    box-sizing: border-box;
    justify-content: center;
    -webkit-justify-content: center;
}

.latest-post__term {
    border-radius: 20px;
    padding: 6px 12px;
    background: #f96b6b;
    font-weight: 400;
    font-size: 14px;
    line-height: 143%;
    text-align: center;
    color: #fff;
    margin-bottom: 24px;
}

.latest-post__title {
    font-weight: 700;
    font-size: 34px;
    line-height: 120%;
    color: #fff;
    margin-bottom: 16px;
}

.latest-post__desc {
    font-weight: 400;
    font-size: 16px;
    line-height: 160%;
    color: #bbb;
}

.blog-list__latest .swiper-main {
    width: 100%;
    margin: 0 0 15px;
}

.blog-list__latest .swiper-main .swiper-pagination {
    /*left: 0!important;
    right: 0!important;*/
    background: none;
}

.blog-list__latest .swiper-main .swiper-pagination .swiper-pagination-bullet {
    background: #fff;
}

.blog-list__latest .swiper-main .swiper-pagination .swiper-pagination-bullet-active {
    background: #f96b6b;
}


.blog-list__latest .swiper-main .swiper-button-prev:after {
    display: block;
    color: #ffffff;
}

.blog-list__latest .swiper-main .swiper-button-next:after {
    display: block;
    color: #ffffff;
}

.thumb-post__img img {
    width: 100%;
    height: 150px;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 20px;
}


.thumb-post__title {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: #fff;
    background: rgba(255, 255, 255, .5);
    padding: 10px 24px;
    box-sizing: border-box;
    cursor: pointer;
    border-radius: 20px;
}

.thumb-post__title:hover, .blog-list__latest .swiper-thumb .swiper-slide-thumb-active .thumb-post__title:hover {
    background: rgba(249, 107, 107, 0.2);
}

.blog-list__latest .swiper-button-prev, .blog-list__latest .swiper-button-next {
    width: 32px;
    height: 32px;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.05);
    border-radius: 100%;
    background: #fff;
}

.blog-list__latest .swiper-button-prev {
    left: 0;
}

.blog-list__latest .swiper-button-next {
    right: 0;
}

.blog-list__latest .swiper-button-prev:after, .blog-list__latest .swiper-button-next:after {
    font-size: 11px !important;
    color: #000 !important;
}

.blog-list__latest .swiper-thumb {
    width: 100%;
}

.blog-list__latest .swiper-thumb .swiper-slide-thumb-active .thumb-post__title {
    background: rgba(0, 0, 0, .5);
}

.widget .wp-block-categories-list {
    padding: 0;
    margin: -3px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.widget .wp-block-categories-list .cat-item {
    margin: 3px;
}

.widget .wp-block-categories-list .cat-item a {
    padding: 6px 12px;
    display: block;
    background: #f9fafb;
    font-size: 14px;
    line-height: 20px;
    color: #999;
    text-decoration: none;
}

.widget .wp-block-categories-list .cat-item.active a, .widget .wp-block-categories-list .cat-item a:hover {
    background-color: #f96b6b;
    color: #fff;
}

html body .post-card{
    max-width: 100%;
}

.widget .widget-articles .post-card {
    margin-bottom: 30px;
    display: flex;
}

.widget .widget-articles .post-card__thumbnail {
    margin: 0 16px 0 0;
    display: flex;
    width: 56px;
    height: 56px;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: unset;
}


.widget .widget-articles .post-card__thumbnail a {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}


.widget .widget-articles .post-card__thumbnail a img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: auto;
    max-width: inherit;
    max-height: 56px;
}

.widget .widget-articles .post-card__title {
    margin: 0;
    font-size: 14px;
    line-height: 120%;
    font-weight: 400;
}

.widget .widget-articles .post-card__title a {
    padding: 2px 0;
    display: inline-block;
    color: #999;
}

@media (max-width: 992px) {
    .blog-list__latest .swiper-thumb {
        display: none;
    }

    .latest-post__title {
        font-size: 20px;
    }

    .latest-post__content {
        padding: 0 10%;
    }

    .blog-list__latest .swiper-button-prev, .blog-list__latest .swiper-button-next {
        width: 20px;
        height: 20px;
    }

    .latest-post__desc {
        font-size: 14px;
    }

    .latest-post__term {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .section-posts .post-cards.post-cards--vertical {
        display: grid;
        grid-gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        justify-content: space-between;
    }

    .section-posts .post-cards.post-cards--vertical .post-card--vertical {
        max-width: unset;
        width: 100%;
        margin: 0;
    }

    html body .section-posts:not(:last-of-type) {
        margin-bottom: 56px;
    }

    .section-block__title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    html body.archive.category .page-title {
        font-size: 26px;
        margin-bottom: 25px;
    }

    html body.archive.category .breadcrumb {
        margin-bottom: 30px;
    }

    html body.archive.category .post-cards .post-card__thumbnail .post-card__category {
        font-size: 12px;
    }

    html body.archive.category .post-cards .post-card__title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    html body.archive.category .post-cards .post-card__thumbnail {
        margin-bottom: 15px;
    }

    html body.archive.category .post-card--standard:last-of-type {
        margin-bottom: 0;
    }

    html body.archive.category .post-cards .post-card__description {
        margin-bottom: 15px;
    }

    html body.archive.category .post-cards .post-card__thumbnail a img {
        height: 200px;
    }
}