/**
 * ═══════════════════════════════════════════════════════════════
 * 📚 EXPERT ARTICLES - Экспертный дайджест материалов
 * ═══════════════════════════════════════════════════════════════
 * 
 * SEO-first блок статей с превью-изображениями
 * Визуально: карточки с ценностью и причиной кликнуть
 * 
 * @version 2.0
 * @date 2026-02-01
 */

/* ═══════════════════════════════════════════════════════════════
   БАЗОВЫЕ СТИЛИ СЕКЦИИ
   ═══════════════════════════════════════════════════════════════ */

.expert-articles {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
    overflow: hidden;
}

.expert-articles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.expert-articles .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   ЗАГОЛОВОК И ПОДЗАГОЛОВОК
   ═══════════════════════════════════════════════════════════════ */

.expert-articles .section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 1rem;
    text-align: center;
    line-height: 1.2;
}

.expert-articles .section-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 3rem;
    text-align: center;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════
   E-E-A-T МИКРО-БЛОК
   ═══════════════════════════════════════════════════════════════ */

.expert-articles-eat {
    text-align: center;
    margin: 0 0 2.5rem;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border-left: 3px solid rgba(59, 130, 246, 0.5);
    border-radius: 8px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
}

/* ═══════════════════════════════════════════════════════════════
   СЕТКА СТАТЕЙ
   ═══════════════════════════════════════════════════════════════ */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .articles-grid {
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════════
   КАРТОЧКА СТАТЬИ
   ═══════════════════════════════════════════════════════════════ */

.article-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.article-card:focus-within {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   ССЫЛКА-ОБЁРТКА (ВСЯ КАРТОЧКА КЛИКАБЕЛЬНА)
   ═══════════════════════════════════════════════════════════════ */

.article-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* ═══════════════════════════════════════════════════════════════
   МЕДИА-БЛОК (ПРЕВЬЮ ИЗОБРАЖЕНИЕ)
   ═══════════════════════════════════════════════════════════════ */

.article-card-media {
    aspect-ratio: 16 / 9;
    min-height: 140px;
    background: #e2e8f0;
    overflow: hidden;
    position: relative;
}

.article-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}


.article-card:hover .article-card-media img {
    transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════════
   КОНТЕНТ КАРТОЧКИ
   ═══════════════════════════════════════════════════════════════ */

.article-card-content {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ═══════════════════════════════════════════════════════════════
   ЗАГОЛОВОК СТАТЬИ
   ═══════════════════════════════════════════════════════════════ */

.article-card-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

/* ═══════════════════════════════════════════════════════════════
   ОПИСАНИЕ СТАТЬИ
   ═══════════════════════════════════════════════════════════════ */

.article-card-excerpt {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    flex-grow: 1;
}

/* ═══════════════════════════════════════════════════════════════
   CTA (ЧИТАТЬ СТАТЬЮ)
   ═══════════════════════════════════════════════════════════════ */

.article-card-cta {
    font-weight: 500;
    color: rgba(59, 130, 246, 1);
    margin-top: auto;
    transition: color 0.2s ease;
}

.article-card:hover .article-card-cta {
    color: rgba(96, 165, 250, 1);
}

/* ═══════════════════════════════════════════════════════════════
   АДАПТИВНОСТЬ
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .expert-articles {
        padding: 3rem 1rem;
    }

    .expert-articles .container {
        padding: 0;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .article-card-content {
        padding: 14px 16px 18px;
    }

    .article-card-title {
        font-size: 1rem;
    }

    .article-card-excerpt {
        font-size: 0.875rem;
    }
}

.articles-hub-link-wrap {
    text-align: center;
    margin: 1.5rem 0 0;
}

.articles-hub-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 2px;
}

.articles-hub-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}
