/* Акции: app/themes/proxymo/views/page/tez/widgets/_blog.html.erb */

.articles_container {
    width: 100%;
    margin: 0;
    padding: 55px 0;
    background: #f8f8f8;
    box-sizing: border-box;
}

.articles_limit {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.articles_container_title,
.articles_blog_title {
    margin: 0;
    padding: 0;
    color: #222222;
    font-family: var(--site-font-family);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

.articles_delimiter {
    width: 45px;
    height: 3px;
    margin: 18px 0 28px;
    border-radius: 2px;
    background: var(--quaternary-color);
}

.articles_list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -7px;
}

.articles_item {
    box-sizing: border-box;
    display: block;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 33.333%;
    max-width: 33.333%;
    padding: 0 7px 14px;
    color: #1e1e1e;
    text-decoration: none;
}

.articles_item:hover,
.articles_item:focus {
    color: #1e1e1e;
    text-decoration: none;
}

.articles_item_inner {
    display: block;
    height: 100%;
    padding: 20px;
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.article_photo {
    display: block;
    width: 100%;
    height: 225px;
    margin: 0 0 25px;
    overflow: hidden;
    background-color: #d9dee5;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.article_photo_placeholder {
    background: linear-gradient(135deg, #d9dee5, #e8edf3);
}

.article_overflow_text h4 {
    margin: 0 0 2px;
    color: #1e1e1e;
    font-family: var(--site-font-family);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.article_overflow_text p {
    margin: 8px 0 0;
    color: #1e1e1e;
    font-family: var(--site-font-family);
    font-size: 14px;
    font-weight: 300;
    line-height: 24px;
}

.articles_item_loading {
    filter: blur(10px);
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.articles_item_loading.is_loaded {
    filter: blur(0);
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.articles_container .articles_show_all_wrap,
.articles_blog_page .articles_show_all_wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.articles_container .articles_show_all_btn,
.articles_blog_page .articles_show_all_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 0 24px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    color: var(--primary-color) !important;
    font-family: var(--site-font-family);
    font-size: 14px;
    font-weight: 700;
    line-height: 41px;
    text-transform: uppercase;
    text-decoration: none;
}

.articles_container .articles_show_all_btn:hover,
.articles_blog_page .articles_show_all_btn:hover {
    background: var(--primary-color);
    color: #ffffff !important;
    text-decoration: none;
}

.articles_blog_page {
    padding: 36px 0 64px;
    background: #f8f8f8;
}

.articles_blog_header {
    margin: 0 0 8px;
}

.article_page {
    padding: 24px 0 64px;
    background: #ffffff;
}

.article_page_container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.article_back_link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: var(--site-font-family);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.article_back_link:hover {
    text-decoration: none;
    opacity: 0.85;
}

.article_header {
    margin-bottom: 18px;
}

.article_header_date {
    margin: 0 0 10px;
    color: #8a8f98;
    font-family: var(--site-font-family);
    font-size: 14px;
    font-weight: 600;
}

.article_header_title {
    margin: 0;
    color: #222222;
    font-family: var(--site-font-family);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
}

.article_body {
    color: #3a3f47;
    font-family: var(--site-font-family);
    font-size: 16px;
    line-height: 1.7;
}

.article_body p {
    margin: 0 0 16px;
}

.article_body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article_share {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.article_share_label {
    margin: 0 0 12px;
    color: #222222;
    font-family: var(--site-font-family);
    font-size: 15px;
    font-weight: 600;
}

.article_share_social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.article_share_social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 87, 184, 0.08);
    color: var(--primary-color);
    font-size: 18px;
    text-decoration: none;
}

.article_share_social a:hover {
    background: rgba(0, 87, 184, 0.16);
    text-decoration: none;
}

@media (max-width: 991px) {
    .articles_item {
        flex-basis: 50%;
        max-width: 50%;
    }

    .article_photo {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .articles_container {
        padding: 36px 0;
    }

    .articles_container_title,
    .articles_blog_title {
        font-size: 24px;
    }

    .articles_item {
        flex-basis: 100%;
        max-width: 100%;
    }

    .article_photo {
        height: 210px;
        margin-bottom: 16px;
    }

    .article_header_title {
        font-size: 26px;
    }
}
