.page-news {
  --tl-color: var(--summer);
  position: relative;
  padding: 28px 20px 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 6%, rgba(16, 185, 129, 0.14), transparent 26%),
    radial-gradient(circle at 8% 44%, rgba(14, 165, 233, 0.08), transparent 24%),
    linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 42%, #EFF6FF 100%);
}

.page-news__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.page-news__intro {
  position: relative;
}

.page-news__crumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--muted);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.page-news__crumb a {
  color: var(--summer);
  font-weight: 600;
  text-decoration: none;
}

.page-news__crumb a:hover {
  text-decoration: underline;
}

.page-news__title {
  font-family: var(--font-sans);
  font-size: clamp(38px, 8vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--night);
  font-weight: 900;
  margin: 18px 0 14px;
  max-width: 880px;
}

.page-news__title span {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.38em;
  font-weight: 600;
  letter-spacing: 0;
}

.page-news__title span::before {
  content: "";
  width: 26px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--spring), var(--summer), var(--autumn));
}

.page-news__lede {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.8;
  color: var(--ink);
  max-width: 720px;
  margin: 0;
  font-weight: 300;
}

.page-news__layout {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}

.page-news__rail {
  display: grid;
  gap: 26px;
  align-content: start;
}

.page-news__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 18px;
}

.page-news__section-head h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--night);
  margin: 0;
}

.page-news__section-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.page-news__latest {
  display: grid;
  gap: 24px;
  align-content: start;
}

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px -22px rgba(2, 6, 23, 0.18);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px -22px rgba(2, 6, 23, 0.26);
}

.news-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--spring);
  z-index: 1;
}

.news-card--autumn::before {
  background: var(--autumn);
}

.news-card--spring::before {
  background: var(--spring);
}

.news-card--summer::before {
  background: var(--summer);
}

.news-card__image {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 24px;
  flex: 1;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.news-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  color: #067A55;
}

.news-card__tag--autumn {
  background: rgba(245, 158, 11, 0.14);
  color: #9A5E04;
}

.news-card__tag--spring {
  background: rgba(16, 185, 129, 0.12);
  color: #067A55;
}

.news-card__tag--summer {
  background: rgba(14, 165, 233, 0.12);
  color: #0369A1;
}

.news-card__time {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.news-card__title {
  font-size: clamp(19px, 2.6vw, 24px);
  line-height: 1.35;
  font-weight: 800;
  color: var(--night);
  margin: 0;
  letter-spacing: -0.01em;
}

.news-card__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  font-weight: 300;
  margin: 0;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--summer);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.news-card__link:hover {
  color: var(--spring);
  gap: 10px;
}

.news-card__grid {
  display: grid;
  gap: 24px;
}

.page-news__versions,
.page-news__topics {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 24px 20px;
}

.page-news__versions {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96)),
    radial-gradient(circle at 90% 10%, rgba(16, 185, 129, 0.3), transparent 40%);
  border-color: rgba(255, 255, 255, 0.08);
}

.page-news__versions .page-news__section-head h2 {
  color: var(--winter);
}

.page-news__versions .page-news__section-meta {
  color: #CBD5E1;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.page-news__versions-lead {
  color: #CBD5E1;
  font-size: 15px;
  line-height: 1.7;
  margin: 4px 0 0;
}

.page-news__versions-image {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 20px 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.version-timeline {
  list-style: none;
  position: relative;
  margin: 20px 0 0;
  padding: 8px 0 0;
}

.version-timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 30px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(180deg, var(--spring), var(--summer), var(--autumn), var(--winter));
  opacity: 0.45;
  border-radius: var(--radius-pill);
}

.version-timeline__item {
  position: relative;
  padding: 0 0 26px 34px;
}

.version-timeline__item--current {
  --tl-color: var(--autumn);
}

.version-timeline__item:last-child {
  padding-bottom: 0;
}

.version-timeline__dot {
  position: absolute;
  left: 2px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tl-color);
  border: 4px solid rgba(15, 23, 42, 0.36);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.version-timeline__content {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--tl-color);
  border-radius: 14px;
  padding: 14px 16px;
}

.version-timeline__version {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--winter);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.version-timeline__status {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.18);
  color: #FCD34D;
  font-size: 11px;
  font-weight: 600;
  vertical-align: 2px;
}

.version-timeline__content p {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #CBD5E1;
}

.page-news__topics {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(14, 165, 233, 0.1), rgba(245, 158, 11, 0.08));
}

.page-news__topics > p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  margin: 4px 0 0;
}

.topic-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.topic-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.topic-list__item:hover {
  border-color: var(--spring);
  background: rgba(255, 255, 255, 0.95);
}

.topic-list__link {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  flex: 1;
}

.topic-list__link:hover {
  color: var(--summer);
}

.topic-list__label {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: #F1F5F9;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
}

.page-news__topics-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-top: 18px;
  border: 1px solid var(--line);
}

@media (min-width: 720px) {
  .page-news {
    padding: 40px 32px 80px;
  }

  .page-news__layout {
    gap: 32px;
    margin-top: 44px;
  }

  .page-news__rail {
    gap: 28px;
  }

  .news-card--featured {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .news-card--featured .news-card__image {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    min-height: 300px;
  }

  .news-card__grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-card--compact {
    height: 100%;
  }

  .news-card--compact .news-card__body {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .page-news__layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr);
    align-items: start;
    column-gap: 40px;
  }

  .page-news__versions,
  .page-news__topics {
    padding: 28px 24px;
  }
}
