.page-news {
  --page-line: rgba(255, 255, 255, 0.1);
  --page-panel: var(--navy-800);
  --page-text: var(--paper);
  --page-muted: var(--muted);
  --page-accent: var(--orange-500);
  --page-gold: var(--gold-500);
  background: var(--navy-900);
}

.page-news__hero {
  position: relative;
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--page-line);
  overflow: hidden;
}

.page-news__hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-500) 0%, var(--gold-500) 42%, transparent 82%);
  pointer-events: none;
}

.page-news__hero-row {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.page-news__hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  animation: page-news-fade-up 0.5s var(--ease) both;
}

.page-news__title {
  margin: 20px 0 14px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--page-text);
}

.page-news__lead {
  margin: 0;
  max-width: 36em;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.75;
  color: var(--page-muted);
}

.page-news__edition {
  position: static;
  display: block;
  flex-shrink: 0;
  font-size: clamp(5rem, 14vw, 9rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px rgba(201, 160, 99, 0.45);
  user-select: none;
  pointer-events: none;
}

.page-news__block {
  position: relative;
  padding: 64px 0;
  border-bottom: 1px dashed rgba(201, 160, 99, 0.22);
}

.page-news__heading {
  margin-bottom: 32px;
}

.page-news__h2 {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  color: var(--page-text);
}

.page-news__latest {
  padding-top: 72px;
}

.page-news__latest::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.page-news__latest .container {
  position: relative;
}

.page-news__cover {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 56px;
  box-shadow: var(--shadow-card);
}

.page-news__timeline {
  position: relative;
  margin: 0;
  padding: 0;
}

.page-news__item {
  position: relative;
  padding: 0 0 48px 28px;
}

.page-news__item:last-child {
  padding-bottom: 0;
}

.page-news__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 3px solid var(--orange-500);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.18);
}

.page-news__item::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 24px;
  bottom: 0;
  width: 1px;
  background: var(--page-line);
}

.page-news__item:last-child::after {
  display: none;
}

.page-news__ver {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-300);
  line-height: 1.6;
  white-space: nowrap;
}

.page-news__item-body {
  min-width: 0;
}

.page-news__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.page-news__time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.page-news__item-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--paper);
}

.page-news__item-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-news__more {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.page-news__versions {
  background:
    radial-gradient(circle at 88% 12%, rgba(167, 139, 250, 0.08), transparent 34%),
    var(--navy-900);
}

.page-news__versions-grid {
  display: grid;
  gap: 48px;
}

.page-news__versions-intro {
  max-width: 680px;
}

.page-news__versions-lead {
  margin: 16px 0 24px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-news__versions-img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.page-news__version-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-news__version-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-news__version-item:first-child {
  padding-top: 0;
}

.page-news__version-badge {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold-300);
  background: rgba(201, 160, 99, 0.08);
  border: 1px solid rgba(201, 160, 99, 0.3);
  border-radius: 4px;
  padding: 4px 8px;
}

.page-news__version-badge--current {
  color: var(--orange-500);
  border-color: rgba(255, 107, 53, 0.5);
  background: rgba(255, 107, 53, 0.12);
}

.page-news__version-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-news__version-flag {
  display: inline-block;
  margin-right: 8px;
  font-weight: 600;
  color: var(--orange-500);
}

.page-news__version-flag--prev {
  color: var(--gold-300);
}

.page-news__topics-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 48px;
}

.page-news__topic {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--page-panel);
  border: 1px solid var(--page-line);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold-500);
  transition:
    background var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.page-news__topic:hover {
  background: var(--navy-700);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.page-news__topic-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(201, 160, 99, 0.5);
}

.page-news__topic-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--paper);
}

.page-news__topic-text {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-news__topics-img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.page-news__tags {
  background:
    radial-gradient(circle at 12% 18%, rgba(45, 212, 191, 0.06), transparent 30%),
    var(--navy-900);
}

.page-news__tags-lead {
  margin: 16px 0 32px;
  max-width: 860px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-news__tags-img {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 40px;
  box-shadow: var(--shadow-card);
}

.page-news__tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-news__tag-cloud .tag-pill {
  font-size: 0.9rem;
}

.page-news__tag-cloud li:nth-child(4n) .tag-pill {
  border-color: rgba(167, 139, 250, 0.4);
  color: var(--violet-400);
}

.page-news__tag-cloud li:nth-child(5n) .tag-pill {
  border-color: rgba(45, 212, 191, 0.4);
  color: var(--teal-400);
}

.page-news__tag-cloud li:nth-child(6n) .tag-pill {
  border-color: rgba(201, 160, 99, 0.4);
  color: var(--gold-300);
}

.page-news__tags-foot {
  margin-top: 40px;
}

@keyframes page-news-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news__hero-copy {
    animation: none;
  }

  .page-news__topic,
  .page-news__tag-cloud .tag-pill {
    transition: none;
  }
}

@media (min-width: 768px) {
  .page-news__hero {
    padding: 64px 0 56px;
  }

  .page-news__hero-row {
    flex-direction: row;
    align-items: flex-end;
    gap: 24px;
  }

  .page-news__block {
    padding: 96px 0;
  }

  .page-news__latest {
    padding-top: 112px;
  }

  .page-news__item {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 20px;
    padding-left: 28px;
  }

  .page-news__ver {
    margin-bottom: 0;
    padding-top: 4px;
  }

  .page-news__versions-grid {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: start;
  }

  .page-news__versions-intro {
    position: sticky;
    top: 96px;
  }

  .page-news__version-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 24px;
    align-items: start;
  }

  .page-news__version-badge {
    margin-top: 2px;
  }

  .page-news__topics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
  }

  .page-news__topic--tall {
    min-height: 340px;
  }

  .page-news__topic--short {
    min-height: 260px;
  }

  .page-news__topic--medium {
    min-height: 300px;
  }

  .page-news__tag-cloud {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-news__tags-foot {
    text-align: center;
  }
}
