/* =========================================================
   news — «Новости и экспертиза» (1:1 из blocks.css, раздел 10. NEWS)
   ========================================================= */

.news-section {
    padding: var(--section-pad) 0;
}

/* В записях (single) низ идёт сразу после post-section: верх вдвое меньше, шапка компактнее.
   База не меняется — «Новости и экспертиза» на главной остаются 80/80 и header 80. */
.post-section + .news-section {
    padding-top: 40px;
}

.post-section + .news-section .news-header {
    margin-bottom: 36px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 80px;
    margin-bottom: 80px;
}

.news-titles {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.news-eyebrow {
    font-size: var(--fs-eyebrow);
    line-height: 1.3;
    color: var(--color-text-gray);
}

.news-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: var(--fs-title);
    line-height: 1;
    color: var(--color-bg-dark);
}

.news-btn {
    flex-shrink: 0;
    background-color: var(--color-bg-dark);
    color: var(--color-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.news-card {
    min-width: 0;
}

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Картинка: плавное приближение + затемнение при ховере (как в блоге Mews) */
.news-card-media {
    position: relative;
    overflow: hidden;
    height: 340px;
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card-link:hover .news-card-image {
    transform: scale(1.03);
}

.news-card-overlay {
    position: absolute;
    inset: 0;
    background-color: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card-link:hover .news-card-overlay {
    opacity: 0.1;
}

/* Кнопка-плей на видео-карточках (блог) */
.news-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    pointer-events: none;
}

.news-card-play svg {
    display: block;
    margin-left: 4px;
}

.news-card-content {
    padding: 24px 0;
}

.news-card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

/* Надзаголовок карточки (кейсы в секции внизу: без тегов и меты) */
.news-card-eyebrow {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.3;
    color: var(--color-text-muted);
}

.news-card-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 24px;
    line-height: 1;
    color: var(--color-bg-dark);
    margin-bottom: 16px;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card-link:hover .news-card-title {
    opacity: 0.7;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: var(--color-text-dark);
    opacity: 0.5;
}

.news-meta-icon {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
}
