/* ============================================================
   NEWS SECTION — Секция «Новости»
   ============================================================ */

.news-section {
    position: relative;
    background: var(--milk-bg);
    padding: 80px 0;
    overflow: hidden;
}

.news-section__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* ---- Шапка ---- */

.news-section__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
    margin-bottom: 40px;
}

.news-section__header-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.news-section__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
    transition: color 0.2s;
}

.news-section__all:hover {
    color: var(--primary-hover);
}

/* ---- Слайдер / обёртка ---- */

.news-section__slider-wrap {
    position: relative;
    z-index: 1;
}

/* ---- Кнопки навигации (только mobile) ---- */

.news-section__nav-btn {
    position: absolute;
    top: auto;
    bottom: 0;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid var(--primary);
    border-radius: 3px;
    background: var(--white);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.news-section__nav-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.news-section__nav-btn.swiper-button-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.news-section__prev { left: 0; }
.news-section__next { right: 0; }

/* Desktop: скрываем кнопки, убираем padding под них */
@media (min-width: 769px) {
    .news-section__nav-btn {
        display: none;
    }
}

/* ---- Карточка ---- */

.news-section__card {
    display: flex;
    flex-direction: column;
    background: #F3FAF6;

    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #026D44;
    box-shadow: 0px 2px 2px 0px #69C7BD1A;
    padding: 20px;
    text-decoration: none;
    transition: border-color 0.2s;
    height: 100%;
}

.news-section__card:hover {
    border-color: var(--mint);
}

.news-section__card-image {
    height: 221px;
    width: 100%;
    background-color: var(--graphite-pale);
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 6px;
}

.news-section__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.news-section__card:hover .news-section__card-image img {
    transform: scale(1.04);
}

.news-section__card-body {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.news-section__card-title {
    color: var(--graphite-dark);
    transition: color 0.2s;
}

.news-section__card:hover .news-section__card-title {
    color: var(--primary);
}

.news-section__card-excerpt {
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-section__card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    margin-top: 4px;
    transition: gap 0.2s;
}

.news-section__card:hover .news-section__card-link {
    gap: 10px;
}

/* ---- Swiper slide высота ---- */

.news-swiper .swiper-slide {
    height: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .news-section {
        padding: 48px 0;
    }

    .news-section__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 28px;
    }

    .news-section__slider-wrap {
        padding-bottom: 60px;
    }
}
