.articles_container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 20px 48px;
}

.articles_container_header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.articles_container_title {
    margin: 0;
    color: #2f2f35;
    font-family: var(--site-font-family);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.articles_container_more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-family: var(--site-font-family);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

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

.articles_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    overflow: visible;
    padding-bottom: 8px;
}

.articles_list_blog_page {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    overflow: visible;
    padding-bottom: 0;
}

.articles_list_blog_page .articles_item {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: calc(50% - 10px);
    min-width: 280px;
    max-width: calc(50% - 10px);
}

.articles_list_blog_page .articles_item_first {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 100%;
    min-width: 100%;
    max-width: 100%;
}

.articles_item {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: calc(33.333% - 11px);
    min-width: 280px;
    max-width: 380px;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    color: #2f2f35;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.articles_item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(171, 57, 127, 0.16);
    text-decoration: none;
    color: #2f2f35;
}

.articles_item_first {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 100%;
    min-width: 100%;
    max-width: 100%;
    flex-direction: row;
    min-height: 280px;
}

.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);
}

.article_photo {
    width: 100%;
    height: 180px;
    background-color: #f4f0f3;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.articles_item_first .article_photo {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 42%;
    width: 42%;
    height: auto;
    min-height: 280px;
}

.article_photo_placeholder {
    background: linear-gradient(135deg, rgba(171, 57, 127, 0.14), rgba(228, 112, 127, 0.2));
}

.article_content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
    min-height: 0;
    padding: 18px 18px 16px;
}

.articles_item_first .article_content {
    flex-basis: 58%;
    padding: 24px 24px 20px;
}

.article_overflow_text {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
    min-height: 0;
}

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

.articles_item_first .article_overflow_text h4 {
    font-size: 26px;
}

.article_overflow_text p {
    margin: 0;
    color: #5f6670;
    font-family: var(--site-font-family);
    font-size: 14px;
    line-height: 1.55;
}

.articles_item_first .article_overflow_text p {
    font-size: 15px;
}

.articles_date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.articles_date p {
    margin: 0;
    color: #8a8f98;
    font-family: var(--site-font-family);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.article_item_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-grow: 0;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.article_item_btn svg {
    display: block;
}

/* Страница списка статей */
.articles_blog_page {
    padding: 36px 0 64px;
}

.articles_blog_header {
    max-width: 1240px;
    margin: 0 auto 28px;
    padding: 0 20px;
    text-align: center;
}

.articles_blog_title {
    margin: 0;
    color: #2f2f35;
    font-family: var(--site-font-family);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
}

.articles_blog_list_wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Страница одной статьи */
.article_page {
    padding: 24px 0 64px;
}

.article_page_container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.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: #2f2f35;
    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: 12px;
}

.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: #2f2f35;
    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: 10px;
    background: rgba(171, 57, 127, 0.08);
    color: var(--primary-color);
    font-size: 18px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.article_share_social a:hover {
    background: rgba(171, 57, 127, 0.16);
    text-decoration: none;
}

@media (max-width: 991px) {
    .articles_item_first {
        flex-direction: column;
        min-height: 0;
    }

    .articles_item_first .article_photo {
        width: 100%;
        flex-basis: auto;
        min-height: 220px;
    }

    .articles_item_first .article_content {
        flex-basis: auto;
    }
}

@media (max-width: 767px) {
    .articles_container {
        padding-top: 28px;
        padding-bottom: 36px;
    }

    .articles_container_title {
        font-size: 22px;
    }

    .articles_list:not(.articles_list_blog_page) .articles_item {
        flex-basis: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .articles_list_blog_page .articles_item,
    .articles_list_blog_page .articles_item_first {
        flex-basis: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .articles_blog_title {
        font-size: 32px;
    }

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