/* ── mod_articles blog/news slider layout ── */

.news-swiper-wrapper {
    position: relative;
    margin-top: 40px;
}

.news-swiper-wrapper .swiper {
    overflow: hidden;
}

/* Выравнивание высоты слайдов */
.news-swiper-wrapper .swiper-wrapper { align-items: stretch; }
.news-swiper-wrapper .swiper-slide {
    height: auto;
    display: flex;
}
.news-swiper-wrapper .swiper-slide > .news-card { width: 100%; }



/* Скрываем слайдер до инициализации Swiper — чтобы картинки не прыгали */
.news-swiper-wrapper .swiper:not(.swiper-initialized) .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.news-swiper-wrapper .swiper:not(.swiper-initialized) .swiper-slide:nth-child(n+5) {
    display: none;
}
@media (max-width: 1399.98px) {
    .news-swiper-wrapper .swiper:not(.swiper-initialized) .swiper-wrapper { grid-template-columns: repeat(3, 1fr); }
    .news-swiper-wrapper .swiper:not(.swiper-initialized) .swiper-slide:nth-child(n+4) { display: none; }
}
@media (max-width: 1199.98px) {
    .news-swiper-wrapper .swiper:not(.swiper-initialized) .swiper-wrapper { grid-template-columns: repeat(2, 1fr); }
    .news-swiper-wrapper .swiper:not(.swiper-initialized) .swiper-slide:nth-child(n+3) { display: none; }
}
@media (max-width: 991.98px) {
    .news-swiper-wrapper .swiper:not(.swiper-initialized) .swiper-wrapper { grid-template-columns: 1fr; }
    .news-swiper-wrapper .swiper:not(.swiper-initialized) .swiper-slide:nth-child(n+2) { display: none; }
}

.news-card__body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

/* Мета-строка: теги + дата */
.news-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #272729;
}
.news-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
}
.news-card__tag { color: inherit; }
.news-card__date {
    position: relative;
    padding-left: 14px;
    color: #272729;
}
.news-card__date::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%);
}
.news-card__meta > :first-child .news-card__tag:first-child,
.news-card__meta:has(> .news-card__date:first-child) .news-card__date { padding-left: 0; }
.news-card__meta:has(> .news-card__date:first-child) .news-card__date::before { display: none; }

.news-card__title {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #272729;
    margin: 0;
    transition: color 0.2s;
}
.news-card:hover .news-card__title { color: #393d40; }

.news-card__author {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: rgba(152, 144, 144, 0.6);
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.news-card__author::before {
    content: '';
    width: 20px;
    height: 1px;
    background: rgba(152, 144, 144, 0.6);
}

.news-card__more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #18181a;
    padding-top: 8px;
    transition: color 0.2s, gap 0.2s;
}
.news-card:hover .news-card__more { color: #232325; gap: 14px; }
.news-card__more .svc-arrow { width: 11px; height: 11px; transition: transform 0.2s; }
.news-card:hover .news-card__more .svc-arrow { transform: rotate(45deg); }

/* Навигация */
.news-swiper-nav {
    position: absolute;
    top: -78px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
}

/* Пагинация сбоку от стрелок */
.news-swiper-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.news-swiper-pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #181d21;
    opacity: 1;
    transition: background 0.2s, width 0.3s, transform 0.2s;
    border-radius: 999px;
    margin: 0 !important;
}
.news-swiper-pagination .swiper-pagination-bullet-active {
    background: #ff691d;
    width: 24px;
    transform: scale(1.1);
}

.news-swiper-nav__btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
   border: 1px solid rgba(45, 45, 45, 0.18);
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.news-swiper-nav__btn:hover {
  background: #ff691d;
  color: #181d21;
  border-color: #ff691d;
}
.news-swiper-nav__btn:disabled,
.news-swiper-nav__btn.swiper-button-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}
.news-swiper-nav__btn .svc-arrow { width: 14px; height: 14px; }

@media (max-width: 767px) {
    .news-swiper-nav {
        position: static;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-top: 20px;margin-bottom: 20px;
    }
	.news-swiper-wrapper{margin-bottom: 40px;}
    .news-swiper-pagination {
        gap: 6px;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
}
