.page-news {
  --news-radius: var(--radius-m);
  --news-gap: 20px;
  --news-card-bg: var(--c-bg-soft);
  --news-card-border: var(--c-line);
  --news-card-hover: var(--c-accent);
}

.page-news .container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
}

.page-news .page-hero {
  padding: 28px 20px 12px;
}

.page-news .page-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-news .breadcrumb {
  margin-bottom: 20px;
}

.page-news .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--c-muted);
}

.page-news .breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--c-line);
}

.page-news .breadcrumb a {
  color: var(--c-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.page-news .breadcrumb a:hover {
  color: var(--c-accent);
}

.page-news .page-hero__title {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 4.6vw, 2.6rem);
  line-height: 1.22;
  margin: 14px 0 16px;
  max-width: 780px;
  letter-spacing: -0.01em;
}

.page-news .page-hero__lead {
  max-width: 680px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-muted);
}

.page-news .featured-post {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  border: 1px solid var(--c-line);
  background: var(--c-bg-deep);
  margin-top: 28px;
}

.page-news .featured-post__media {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  margin: 0;
}

.page-news .featured-post__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-news .featured-post__overlay {
  position: relative;
  z-index: 2;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(to top, rgba(10, 18, 42, 0.92) 0%, rgba(10, 18, 42, 0.55) 70%, transparent 100%);
}

.page-news .featured-post__overlay h2 {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  line-height: 1.3;
  color: var(--c-text);
  margin: 4px 0 0;
  max-width: 700px;
}

.page-news .featured-post__overlay p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--c-light);
  margin: 0;
  max-width: 640px;
  opacity: 0.92;
}

.page-news .featured-post__overlay .btn {
  margin-top: 6px;
}

.page-news .section--tight {
  padding-block: 28px 24px;
  padding-inline: 20px;
}

.page-news .section {
  padding-block: 52px 40px;
  padding-inline: 20px;
}

.page-news .section__head {
  margin-bottom: 20px;
}

.page-news .section__head h2 {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 10px 0 6px;
  color: var(--c-text);
}

.page-news .section__head p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--c-muted);
}

.page-news .article-zone {
  position: relative;
}

.page-news .filter-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.page-news .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 6px;
  padding-bottom: 4px;
}

.page-news .filter-label {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-muted);
  font-size: 0.85rem;
  font-family: var(--f-body);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  user-select: none;
}

.page-news .filter-label:hover {
  border-color: var(--c-accent);
  color: var(--c-text);
}

.page-news #filter-all:checked ~ .filter-bar label[for="filter-all"],
.page-news #filter-product:checked ~ .filter-bar label[for="filter-product"],
.page-news #filter-guide:checked ~ .filter-bar label[for="filter-guide"],
.page-news #filter-device:checked ~ .filter-bar label[for="filter-device"],
.page-news #filter-version:checked ~ .filter-bar label[for="filter-version"],
.page-news #filter-local:checked ~ .filter-bar label[for="filter-local"] {
  background: var(--grad-accent);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(255, 107, 53, 0.28);
}

.page-news .article-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--news-gap);
  margin-top: 22px;
}

.page-news .article-card {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  background: var(--news-card-bg);
  border: 1px solid var(--news-card-border);
  border-radius: var(--news-radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s ease;
  min-width: 0;
}

.page-news .article-card:hover {
  transform: translateY(-5px);
  border-color: var(--news-card-hover);
  box-shadow: var(--shadow);
}

.page-news .article-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-bg-deep);
  flex-shrink: 0;
}

.page-news .article-card__media img,
.page-news .article-card__media .media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}

.page-news .article-card:hover .article-card__media img,
.page-news .article-card:hover .article-card__media .media-placeholder {
  transform: scale(1.03);
}

.page-news .article-card__index {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--c-text);
  background: rgba(15, 26, 58, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 9px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.page-news .article-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 20px 18px 18px;
  flex: 1;
}

.page-news .article-card__body h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--c-text);
}

.page-news .article-card__body h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.page-news .article-card__body h3 a:hover {
  color: var(--c-accent);
}

.page-news .article-card__body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--c-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news .article-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--c-line);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--c-muted);
}

.page-news .article-card__link {
  color: var(--c-accent);
  text-decoration: none;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.85rem;
  transition: letter-spacing 0.25s ease;
}

.page-news .article-card__link:hover {
  letter-spacing: 0.03em;
}

.page-news .article-card--wide {
  grid-column: span 12;
}

.page-news .article-card--tall .article-card__media {
  aspect-ratio: 4 / 5;
}

.page-news .article-card--narrow .article-card__media {
  aspect-ratio: 16 / 9;
}

.page-news .categories-band {
  background: var(--c-light);
}

.page-news .categories-band .section-label,
.page-news .categories-band .section__head h2 {
  color: var(--c-dark);
}

.page-news .categories-band .section__head p {
  color: #5A6A80;
}

.page-news .category-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.page-news .category-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 20px 16px 16px;
  border-radius: var(--radius-m);
  background: #fff;
  border: 1px solid #DCE4EC;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 108px;
}

.page-news .category-tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--c-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-news .category-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(26, 34, 51, 0.1);
  border-color: rgba(255, 107, 53, 0.35);
}

.page-news .category-tile:hover::before {
  opacity: 1;
}

.page-news .category-tile__num {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--c-accent);
  letter-spacing: 0.08em;
}

.page-news .category-tile__name {
  font-family: var(--f-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--c-dark);
  line-height: 1.3;
}

.page-news .category-tile__desc {
  font-size: 0.78rem;
  color: #6A7A90;
  line-height: 1.5;
}

.page-news .category-tile--teal::before {
  background: var(--c-teal);
}

.page-news .category-tile--teal .category-tile__num {
  color: var(--c-teal);
}

.page-news .category-tile--gold::before {
  background: var(--c-gold);
}

.page-news .category-tile--gold .category-tile__num {
  color: #B8952E;
}

.page-news .category-tile--orange::before {
  background: #FF8A50;
}

.page-news .category-tile--orange .category-tile__num {
  color: #E85D2A;
}

.page-news .category-tile--dark::before {
  background: #4A5A78;
}

.page-news .category-tile--dark .category-tile__num {
  color: #3A4A68;
}

.page-news .category-tile--accent::before {
  background: var(--c-accent);
}

.page-news .category-tile--accent .category-tile__num {
  color: var(--c-accent);
}

.page-news .category-tile--all::before {
  background: linear-gradient(90deg, var(--c-accent), var(--c-gold));
}

.page-news .category-tile--all {
  border-style: dashed;
}

.page-news .timeline {
  position: relative;
  max-width: 760px;
  margin: 30px auto 0;
  padding-left: 24px;
}

.page-news .timeline__svg {
  position: absolute;
  left: 24px;
  top: 0;
  height: 100%;
  width: 20px;
  transform: translateX(-50%);
  pointer-events: none;
}

.page-news .timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.page-news .timeline__item {
  position: relative;
  padding-left: 20px;
}

.page-news .timeline__dot {
  position: absolute;
  left: -22px;
  top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--c-bg);
  border: 2px solid var(--c-line);
  border-radius: 50%;
  z-index: 2;
}

.page-news .timeline__item--current .timeline__dot {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.12);
}

.page-news .timeline__content {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  padding: 18px 18px 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-news .timeline__content:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow);
}

.page-news .timeline__content h3 {
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--c-text);
  margin: 8px 0 6px;
}

.page-news .timeline__content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--c-muted);
}

.page-news .timeline__footer {
  text-align: center;
  margin-top: 34px;
}

.page-news .cta-band {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  justify-content: space-between;
  background: linear-gradient(135deg, #14224E 0%, #0F1A3A 100%);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  padding: 30px 24px;
  position: relative;
  overflow: hidden;
}

.page-news .cta-band::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.28) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-news .cta-band__content {
  position: relative;
  z-index: 1;
}

.page-news .cta-band__content h2 {
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: var(--c-text);
  margin: 0 0 8px;
}

.page-news .cta-band__content p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--c-muted);
  max-width: 480px;
}

.page-news .cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.page-news .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), filter 0.28s ease;
}

.page-news .btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.page-news .btn--primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.3);
}

.page-news .btn--ghost {
  border: 1px solid rgba(232, 236, 244, 0.35);
  color: var(--c-text);
  background: transparent;
}

.page-news .btn--ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.page-news .tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--c-text);
}

.page-news .tag--gold {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--c-gold);
}

.page-news .tag--accent {
  background: rgba(255, 107, 53, 0.14);
  border-color: rgba(255, 107, 53, 0.38);
  color: var(--c-accent);
}

.page-news .tag--teal {
  background: rgba(45, 212, 191, 0.13);
  border-color: rgba(45, 212, 191, 0.38);
  color: var(--c-teal);
}

.page-news .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--c-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-news .section-label::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}

.page-news .media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--c-bg-deep) 0%, var(--c-bg-soft) 60%, #1B2A4E 100%);
  color: var(--c-muted);
  font-family: var(--f-mono);
  font-size: 0.82rem;
  text-align: center;
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.page-news .media-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255, 107, 53, 0.18) 0%, transparent 45%),
              radial-gradient(circle at 20% 80%, rgba(45, 212, 191, 0.12) 0%, transparent 40%);
}

.page-news .media-placeholder::after {
  content: attr(data-label);
  position: relative;
  z-index: 1;
}

@media (min-width: 560px) {
  .page-news .page-hero {
    padding-top: 44px;
  }

  .page-news .featured-post__media {
    min-height: 420px;
  }

  .page-news .featured-post__overlay {
    padding: 40px 34px 34px;
  }

  .page-news .article-card--wide {
    grid-column: span 12;
  }

  .page-news .article-card--tall {
    grid-column: span 6;
  }

  .page-news .article-card--narrow {
    grid-column: span 6;
  }

  .page-news .article-card__body {
    padding: 22px 20px 20px;
  }

  .page-news .cta-band {
    flex-direction: row;
    align-items: center;
    padding: 36px 34px;
  }
}

@media (min-width: 820px) {
  .page-news .article-card--wide {
    grid-column: span 7;
  }

  .page-news .article-card--narrow {
    grid-column: span 6;
  }

  .page-news .article-grid > :nth-child(2),
  .page-news .article-grid > :nth-child(3) {
    grid-column: span 5;
  }

  .page-news .article-grid > :nth-child(4) {
    grid-column: span 5;
  }

  .page-news .article-grid > :nth-child(5),
  .page-news .article-grid > :nth-child(6) {
    grid-column: span 4;
  }

  .page-news .article-grid > :nth-child(7) {
    grid-column: span 6;
  }

  .page-news .article-grid > :nth-child(8) {
    grid-column: span 6;
  }

  .page-news .category-wall {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-news .timeline__item {
    padding-left: 28px;
  }

  .page-news .timeline__dot {
    left: -28px;
  }
}

@media (min-width: 1080px) {
  .page-news .page-hero__inner {
    padding-left: 24px;
  }

  .page-news .featured-post__media {
    min-height: 480px;
  }

  .page-news .featured-post__overlay {
    padding: 48px 44px 40px;
  }

  .page-news .category-wall {
    grid-template-columns: repeat(6, 1fr);
  }

  .page-news .timeline {
    padding-left: 32px;
  }

  .page-news .timeline__list {
    gap: 26px;
  }

  .page-news .timeline__content {
    padding: 20px 24px;
  }
}

.page-news #filter-product:checked ~ .article-grid .article-card[data-category="product"],
.page-news #filter-guide:checked ~ .article-grid .article-card[data-category="guide"],
.page-news #filter-device:checked ~ .article-grid .article-card[data-category="device"],
.page-news #filter-version:checked ~ .article-grid .article-card[data-category="version"],
.page-news #filter-local:checked ~ .article-grid .article-card[data-category="local"] {
  display: flex;
}

.page-news #filter-product:checked ~ .article-grid .article-card:not([data-category="product"]),
.page-news #filter-guide:checked ~ .article-grid .article-card:not([data-category="guide"]),
.page-news #filter-device:checked ~ .article-grid .article-card:not([data-category="device"]),
.page-news #filter-version:checked ~ .article-grid .article-card:not([data-category="version"]),
.page-news #filter-local:checked ~ .article-grid .article-card:not([data-category="local"]) {
  display: none;
}

.page-news .article-grid > .article-card:last-child {
  margin-bottom: 0;
}

.page-news .section--tight {
  padding-inline: 20px;
}
