.articles-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.articles-header {
    text-align: center;
    margin-bottom: 40px;
}

.articles-header h1 {
    font-size: 2.5em;
    color: #2c3e50;
}

/* ТОЧНАЯ КОПИЯ структуры с главной */
.articles-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
    flex-wrap: wrap;  /* перенос на новые строки */
}

/* Карточка — ТОЧНО КАК НА ГЛАВНОЙ */
.article-card-horizontal {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: 350px;
    height: 550px;
    flex-shrink: 0;
}

/* ВСЕ остальные стили карточки — копируем из #section2 */
.article-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.article-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card-horizontal:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 15px;
    height: 300px;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 0.7em;
    margin: 0 0 8px 0;
    color: #2c3e50;
    line-height: 1.3;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    color: #555;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    /* -webkit-line-clamp: 3; */
    -webkit-box-orient: vertical;
    overflow: hidden;
    hyphens: auto;
    text-overflow: left;
    flex-grow: 1;
    font-size: 0.5em;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.5em;
    color: #6c757d;
    margin-top: auto;
}

.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    width: 100%;
}

.articles-page-header {
    max-width: 1200px;
    margin: 40px auto;  /* сверху и снизу отступ, авто слева/справа */
    text-align: center;
    padding: 0 20px;    /* чтобы на мобилках не прилипало */
}

.articles-page-header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin: 0;
    padding: 0;
    font-weight: normal;
}

/* Единые интервалы для всего контента, созданного через TinyMCE */
.article-content p,
.article-content div,
.article-content .text-paragraph,
.product-description-content p,
.product-description-content div {
    margin: 0 0 1em 0; /* нижний отступ 1em — единый для всех блоков */
    line-height: 1.5;
}

/* Пустые абзацы — не даём им лишней высоты */
.article-content p:empty,
.product-description-content p:empty {
    display: none;
    margin: 0;
    padding: 0;
}

/* Перенос строки — без лишних отступов */
.article-content br,
.product-description-content br {
    display: block;
    content: "";
    margin: 0;
    line-height: 0;
}