/* === Карточка новости === */
.news__item {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: var(--radius-md, 16px);
    overflow: hidden;
    border: 1px solid rgba(30, 128, 73, .15);
    transition:
        transform var(--transition, 200ms cubic-bezier(.4, 0, .2, 1)),
        border-color var(--transition, 200ms cubic-bezier(.4, 0, .2, 1));
}

@media (hover: hover) {
    .news__item:hover {
        transform: translateY(-4px);
        border-color: var(--brand-light, #8BE09E);
    }
}

/* === Изображение === */
.news__media {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.news__media-link {
    display: block;
    text-decoration: none;
}

.header-img {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    height: clamp(180px, 22vw, 220px);
    width: 100%;
    transition: transform 450ms cubic-bezier(.4, 0, .2, 1);
}

.header-img--placeholder {
    background:
        linear-gradient(135deg, rgba(30, 128, 73, .08) 0%, rgba(31, 166, 55, .04) 100%),
        var(--brand-bg, #F2FAF4);
}

@media (hover: hover) {
    .news__item:hover .header-img {
        transform: scale(1.05);
    }
}

/* === Дата на картинке === */
.news__time {
    position: absolute;
    left: clamp(.75rem, 2vw, 1rem);
    bottom: clamp(.75rem, 2vw, 1rem);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    padding: .45rem .85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(15, 30, 20, .35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: clamp(.75rem, 1.1vw, .875rem);
    line-height: 1.3;
    font-weight: 500;
    color: #fff;
    pointer-events: none;
}

.news__time i {
    color: rgba(255, 255, 255, .85);
    font-size: .95em;
}

.news__media:has(.header-img--placeholder) .news__time {
    border-color: rgba(30, 128, 73, .2);
    background: rgba(255, 255, 255, .55);
    color: var(--brand-deep, #1E8049);
}

.news__media:has(.header-img--placeholder) .news__time i {
    color: var(--brand-primary, #1FA637);
}

/* === Контент === */
.news__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.news__title {
    margin: 0 0 .875rem;
    font-family: var(--font-secondary, "Inter", system-ui, sans-serif);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.3;
    font-weight: 700;
    color: #000;
}

.news__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition, 200ms cubic-bezier(.4, 0, .2, 1));
}

@media (hover: hover) {
    .news__title a:hover {
        color: var(--brand-deep, #1E8049);
    }
}

.news__text {
    flex: 1 1 auto;
    margin-bottom: 1.25rem;
    font-family: var(--font-secondary, "Inter", system-ui, sans-serif);
    font-size: clamp(.8125rem, 1.2vw, .9375rem);
    line-height: 1.5;
    font-weight: 400;
    color: #666;
}

/* === Обрезка текста === */
.mhd75 {
    min-height: 75px;
}

@media (max-width: 568px) {
    .mhd75 {
        min-height: 50px;
    }
}

.b4line,
.b3line {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-wrap: unset;
}

.b3line,
.news__title.b3line {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.b4line,
.news__text.b4line {
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

/* === Подвал карточки === */
.news__footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(30, 128, 73, .1);
}

@media (max-width: 767px) {
    .news__footer .btn {
        width: 100%;
    }
}

/* === Карусель === */
.news__carousel .owl-stage {
    display: flex;
}

.news__carousel .owl-item {
    display: flex;
}

/* Dots вместо нумерации из глобальных стилей */
.news__carousel .owl-dots {
    counter-reset: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .625rem;
    margin-top: clamp(1.5rem, 3vw, 2rem);
    padding-top: 0;
}

.news__carousel .owl-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
}

.news__carousel .owl-dot::before {
    content: none;
    display: none;
}

.news__carousel .owl-dot span {
    display: block;
    width: 10px;
    height: 10px;
    margin: 0;
    border-radius: 50%;
    background: rgba(30, 128, 73, .25);
    transition:
        background var(--transition, 200ms cubic-bezier(.4, 0, .2, 1)),
        transform var(--transition, 200ms cubic-bezier(.4, 0, .2, 1));
}

.news__carousel .owl-dot.active span,
.news__carousel .owl-dot:hover span {
    background: var(--brand-deep, #1E8049);
    transform: scale(1.15);
}

.news__carousel .owl-dot:focus {
    outline: none;
}

.news__carousel .owl-dot:focus-visible span {
    outline: 2px solid var(--brand-primary, #1FA637);
    outline-offset: 2px;
}
