/* ===== ОБЩИЙ КОНТЕЙНЕР ===== */
.articles-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ===== ЗАГОЛОВОК ===== */
.articles-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 30px;
}

/* ===== СЕТКА ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== КАРТОЧКА ===== */
.article-card {
    position: relative;
    display: block;
    height: 260px;
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;

    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* ===== КАРТИНКА ===== */
.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.article-card:hover .article-image {
    transform: scale(1.08);
}

/* ===== ГРАДИЕНТ ===== */
.article-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.3) 50%,
        transparent
    );
}

/* ===== ТЕКСТОВЫЙ БЛОК ===== */
.article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 16px;
    z-index: 2;
}

/* ===== ДАТА ===== */
.article-meta {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

/* ===== ЗАГОЛОВОК ===== */
.article-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

/* ===== ПРЕВЬЮ ===== */
.article-excerpt {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 6px;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== КНОПКА ===== */
.article-btn {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;

    display: inline-block;
    padding: 5px 10px;
    border-radius: 6px;

    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);

    transition: 0.2s;
}

.article-card:hover .article-btn {
    background: rgba(255,255,255,0.3);
}

.article-overlay {
    color: #fff;
}

.article-title {
    color: #fff;
}

.article-excerpt {
    color: rgba(255,255,255,0.9);
}

.article-meta {
    color: rgba(255,255,255,0.8);
}

.article-btn {
    color: #fff;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-card {
        height: 220px;
    }
}

/* ===== ФОН ===== */
.article-wrapper {
    background: #f4f6f9;
    padding: 40px 15px;
}

/* ===== КОНТЕЙНЕР ===== */
.article-container {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    padding: 35px;
    border-radius: 18px;

    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}

/* ===== КНОПКА НАЗАД ===== */
.article-back {
    display: inline-block;
    margin-bottom: 15px;
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

.article-back:hover {
    text-decoration: underline;
}

/* ===== ЗАГОЛОВОК ===== */
.article-title-main {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* ===== МЕТА ===== */
.article-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

/* ===== ОБЛОЖКА ===== */
.article-cover-wrap {
    margin: 25px 0;
    border-radius: 14px;
    overflow: hidden;
}

.article-cover {
    width: 100%;
    display: block;
    transition: 0.4s;
}

.article-cover:hover {
    transform: scale(1.02);
}

/* ===== ТЕКСТ ===== */
.article-text {
    font-size: 17px;
    line-height: 1.8;
    color: #222;
}

/* параграфы */
.article-text p {
    margin-bottom: 18px;
}

/* заголовки */
.article-text h2 {
    font-size: 24px;
    margin: 30px 0 10px;
}

.article-text h3 {
    font-size: 20px;
    margin: 25px 0 10px;
}

/* списки */
.article-text ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.article-text li {
    margin-bottom: 8px;
}

/* цитаты */
.article-text blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 15px;
    margin: 20px 0;
    color: #555;
    font-style: italic;
}

/* выделение */
.article-text strong {
    color: #000;
}

/* адаптив */
@media (max-width: 768px) {
    .article-container {
        padding: 20px;
    }

    .article-title-main {
        font-size: 26px;
    }
}

/* ===== HEADER ===== */
.articles-header {
    text-align: center;
    margin-bottom: 30px;
}

/* сам заголовок */
.articles-title {
    display: inline-block;

    font-size: 32px !important;
    font-weight: 800 !important;
    color: #111 !important;

    position: relative;
    padding-bottom: 10px;
}

/* линия под заголовком */
.articles-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;

    width: 60px;
    height: 4px;

    background: linear-gradient(90deg, #0d6efd, #00c6ff);
    transform: translateX(-50%);
    border-radius: 4px;
}