.news { padding: clamp(40px,4vw,48px) 0; }
.news__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.news__head .section__title { margin: 0; }
.news__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.news-card { display: flex; flex-direction: column; gap: 10px; color: #fff; text-decoration: none; padding-bottom: 8px; }
.news-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid rgba(255,255,255,0.14); border-radius: 4px; background: #000; transition: border-color 200ms cubic-bezier(0.2,0.6,0.2,1); }
.news-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 800ms cubic-bezier(0.2,0.6,0.2,1); }
.news-card:hover .news-card__media { border-color: var(--baza-yellow, #FFE900); }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 600; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #9a9a9b; }
.news-card__meta span:first-child { color: var(--baza-yellow, #FFE900); }
.news-card__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.15; letter-spacing: -0.01em; text-transform: uppercase; text-wrap: balance; }
.news-card__ex { font-size: 14px; line-height: 1.5; color: #c8c8cc; }
.news-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.news-filter button { appearance: none; min-height: 40px; padding: 0 16px; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; background: transparent; color: #fff; font: 600 12px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.news-filter button.is-active { background: var(--baza-yellow, #FFE900); border-color: var(--baza-yellow, #FFE900); color: #020201; }
.article { padding: clamp(96px,10vw,140px) 0 48px; }
.article__inner { max-width: 760px; margin: 0 auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; font-size: 13px; color: #9a9a9b; }
.crumbs a { color: #c8c8cc; text-decoration: none; } .crumbs a:hover { color: #fff; }
.article h1 { margin: 12px 0 20px; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px,4vw,48px); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; text-wrap: balance; }
.article__cover { margin: 28px 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; border: 1px solid rgba(255,255,255,0.14); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article__body p { font-size: 18px; line-height: 1.65; color: #e6e6e8; margin: 0 0 18px; }
.article__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0; padding: 24px; border: 1px solid rgba(255,255,255,0.14); border-radius: 4px; }
.article__cta strong { font-family: var(--font-display); text-transform: uppercase; font-size: 18px; }

.nav-news, .nav-news:hover, .nav-news.is-active { color: var(--baza-yellow, #FFE900) !important; }

#news .news__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
#news .news-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; row-gap: 8px; align-items: start; padding: 0; }
#news .news-card__media { grid-row: 1 / span 2; aspect-ratio: 1 / 1; }
#news .news-card__meta { font-size: 10px; letter-spacing: 0.14em; gap: 2px 10px; }
#news .news-card__meta time { flex-basis: 100%; }
#news .news-card__title { font-size: 14px; line-height: 1.2; }
#news .news-card__ex { display: none; }
#news .news-card:hover .news-card__title { color: var(--baza-yellow, #FFE900); }
@media (max-width: 900px) { #news .news__grid { grid-template-columns: 1fr; gap: 16px; } #news .news-card { grid-template-columns: 88px minmax(0, 1fr); } }

.header__nav .nav-news { position: relative; display: inline-flex; align-items: center; gap: 10px; margin-left: 12px; padding-left: 28px; }
.header__nav .nav-news::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 18px; transform: translateY(-50%); background: rgba(255,255,255,0.18); }
.header__nav .nav-news::after { content: ""; order: -1; width: 7px; height: 7px; border-radius: 50%; background: var(--baza-yellow, #FFE900); box-shadow: 0 0 0 0 rgba(255,233,0,0.6); animation: navNewsPing 2.4s cubic-bezier(0.2,0.6,0.2,1) infinite; }
@keyframes navNewsPing { 0% { box-shadow: 0 0 0 0 rgba(255,233,0,0.55); } 70%,100% { box-shadow: 0 0 0 8px rgba(255,233,0,0); } }
@media (prefers-reduced-motion: reduce) { .header__nav .nav-news::after { animation: none; } }
.header__nav .nav-news:hover { color: #fff !important; }

/* Блог: большие карточки разных размеров, клуб — жёлтой плашкой на фото */
#news:has(.news-filter) .news__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 16px; }
#news:has(.news-filter) .news-card { position: relative; isolation: isolate; grid-column: span 4; grid-row: span 3; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; background: #0b0b0c; }
#news:has(.news-filter) .news-card__media { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; border: 0; border-radius: 0; }
#news:has(.news-filter) .news-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,2,1,0) 30%, rgba(2,2,1,0.55) 55%, rgba(2,2,1,0.94) 100%); }
#news:has(.news-filter) .news-card:hover { border-color: var(--baza-yellow, #FFE900); }
#news:has(.news-filter) .news-card__meta { gap: 4px 14px; font-size: 11px; color: #d4d4d6; }
#news:has(.news-filter) .news-card__meta time { flex-basis: auto; }
#news:has(.news-filter) .news-card__meta span:nth-child(2) { position: absolute; top: 18px; left: 18px; padding: 8px 14px 8px 12px; background: var(--baza-yellow, #FFE900); color: #020201; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.04em; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
#news:has(.news-filter) .news-card__title { font-size: 22px; line-height: 1.08; color: #fff; }
#news:has(.news-filter) .news-card__ex { display: none; max-width: 56ch; color: #d4d4d6; }
#news:has(.news-filter) .news-card:hover .news-card__title { color: #fff; }
#news:has(.news-filter) .news-card:nth-child(1) { grid-column: span 8; grid-row: span 4; padding: 36px; }
#news:has(.news-filter) .news-card:nth-child(1) .news-card__title { font-size: clamp(28px, 3.2vw, 44px); }
#news:has(.news-filter) .news-card:nth-child(1) .news-card__ex { display: block; font-size: 16px; }
#news:has(.news-filter) .news-card:nth-child(2), #news:has(.news-filter) .news-card:nth-child(3) { grid-row: span 2; }
#news:has(.news-filter) .news-card:nth-child(2) .news-card__title, #news:has(.news-filter) .news-card:nth-child(3) .news-card__title { font-size: 18px; }
#news:has(.news-filter) .news-card:nth-child(4), #news:has(.news-filter) .news-card:nth-child(5) { grid-column: span 6; }
#news:has(.news-filter) .news-card:nth-child(4) .news-card__title, #news:has(.news-filter) .news-card:nth-child(5) .news-card__title { font-size: 28px; }
#news:has(.news-filter) .news-card:nth-child(4) .news-card__ex, #news:has(.news-filter) .news-card:nth-child(5) .news-card__ex { display: block; font-size: 15px; }
@media (max-width: 900px) {
  #news:has(.news-filter) .news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; }
  #news:has(.news-filter) .news-card, #news:has(.news-filter) .news-card:nth-child(n) { grid-column: span 1; grid-row: span 2; padding: 18px; }
  #news:has(.news-filter) .news-card:nth-child(1), #news:has(.news-filter) .news-card:nth-child(4) { grid-column: span 2; grid-row: span 3; }
  #news:has(.news-filter) .news-card__title, #news:has(.news-filter) .news-card:nth-child(n) .news-card__title { font-size: 17px; }
  #news:has(.news-filter) .news-card:nth-child(1) .news-card__title, #news:has(.news-filter) .news-card:nth-child(4) .news-card__title { font-size: 26px; }
  #news:has(.news-filter) .news-card__ex, #news:has(.news-filter) .news-card:nth-child(n) .news-card__ex { display: none; }
}
@media (max-width: 560px) {
  #news:has(.news-filter) .news__grid { grid-template-columns: 1fr; grid-auto-rows: 130px; }
  #news:has(.news-filter) .news-card:nth-child(n) { grid-column: span 1; grid-row: span 2; }
  #news:has(.news-filter) .news-card:nth-child(1) { grid-row: span 3; }
}

/* Фильтры блога: клуб — вкладки с подчёркиванием, тема — тихие текстовые чипы */
.news-filters { display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px; }
.news-filters .news-filter { margin: 0; gap: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.news-filters .news-filter::-webkit-scrollbar { display: none; }
.news-filters [data-filter-group="club"] { gap: 28px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.news-filters [data-filter-group="club"] button {
  position: relative; flex-shrink: 0; min-height: 0; padding: 0 0 14px; border: 0; border-radius: 0; background: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; color: #8a8a8e;
  transition: color 160ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.news-filters [data-filter-group="club"] button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--baza-yellow, #FFE900); transform: scaleX(0); transform-origin: left; transition: transform 240ms cubic-bezier(0.2, 0.6, 0.2, 1); }
.news-filters [data-filter-group="club"] button:hover { color: #fff; }
.news-filters [data-filter-group="club"] button.is-active { background: none; border: 0; color: var(--baza-yellow, #FFE900); }
.news-filters [data-filter-group="club"] button.is-active::after { transform: scaleX(1); }
.news-filters [data-filter-group="topic"] { gap: 6px; }
.news-filters [data-filter-group="topic"] button {
  flex-shrink: 0; min-height: 32px; padding: 0 12px; border: 0; border-radius: 4px; background: none; white-space: nowrap;
  font-weight: 600; font-size: 13px; letter-spacing: 0; text-transform: none; color: #8a8a8e;
  transition: color 160ms cubic-bezier(0.2, 0.6, 0.2, 1), background 160ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.news-filters [data-filter-group="topic"] button:hover { color: #fff; }
.news-filters [data-filter-group="topic"] { margin-left: -12px; }
.news-filters [data-filter-group="topic"] button.is-active { background: var(--baza-yellow, #FFE900); color: #020201; border: 0; }
.news-card.is-in { animation: news-in 360ms cubic-bezier(0.2, 0.6, 0.2, 1) both; }
@keyframes news-in { from { opacity: 0; transform: translateY(8px); } }
.news-empty { margin: 8px 0 0; font-size: 15px; color: #8a8a8e; }
@media (prefers-reduced-motion: reduce) { .news-card.is-in { animation: none; } }

/* Превью статьи в карточке блога: 2–3 строки с многоточием и «Читать дальше» */
#news:has(.news-filter) .news-card__ex,
#news:has(.news-filter) .news-card:nth-child(n) .news-card__ex {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  max-width: 56ch; font-size: 14px; line-height: 1.45; color: #d4d4d6;
}
#news:has(.news-filter) .news-card:nth-child(1) .news-card__ex { -webkit-line-clamp: 3; font-size: 16px; }
.news-card__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 2px;
  font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--baza-yellow, #FFE900);
}
.news-card__more svg { transition: transform 160ms cubic-bezier(0.2, 0.6, 0.2, 1); }
.news-card:hover .news-card__more svg { transform: translateX(4px); }
@media (max-width: 900px) {
  #news:has(.news-filter) .news-card:nth-child(n) .news-card__ex { -webkit-line-clamp: 2; font-size: 13px; }
}
