.page-news {
  --news-line: rgba(160, 231, 255, 0.14);
  --news-panel: rgba(26, 35, 45, 0.55);
  --news-fold: cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.page-news [id] {
  scroll-margin-top: 100px;
}

/* ===== Hero ===== */
.page-news .news-hero {
  padding-top: clamp(28px, 5vw, 56px);
  position: relative;
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(210deg, transparent 58%, rgba(0, 208, 255, 0.07) 100%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-news .news-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent 70%);
  pointer-events: none;
}

.page-news .news-hero__topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(20px, 4vw, 32px);
  position: relative;
  z-index: 1;
}

.page-news .news-hero__vol {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 5px 10px;
  transform: skewX(-8deg);
  white-space: nowrap;
}

.page-news .news-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  position: relative;
  z-index: 1;
}

.page-news .news-hero__intro {
  max-width: 640px;
}

.page-news .news-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-headline);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--snow);
  text-transform: uppercase;
  margin: 10px 0 18px;
}

.page-news .news-hero__title-line {
  display: block;
}

.page-news .news-hero__title-line--accent {
  color: var(--ice);
  font-size: 0.62em;
  letter-spacing: 0.08em;
  margin-top: 8px;
}

.page-news .news-hero__lead {
  color: var(--cloud);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 56ch;
}

.page-news .news-hero__trust {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  border-left: 3px solid var(--volt);
  padding-left: 14px;
  max-width: 54ch;
}

.page-news .news-hero__intro::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--volt), var(--electro));
  margin-top: 26px;
  border-radius: 2px;
  transform: skewX(-12deg);
}

.page-news .news-hero__scrollwrap {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.page-news .news-hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--news-fold), border-color 0.3s var(--news-fold);
}

.page-news .news-hero__scroll:hover {
  color: var(--volt);
  border-bottom-color: var(--volt);
}

/* ===== Featured article card ===== */
.page-news .news-feature {
  border-radius: 0 18px 18px 18px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  box-shadow: var(--shadow);
}

.page-news .news-feature__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(160, 231, 255, 0.12), rgba(0, 208, 255, 0.05));
  overflow: hidden;
}

.page-news .news-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-news .news-feature__body {
  padding: clamp(20px, 3vw, 32px);
}

.page-news .news-feature__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.page-news .news-feature__time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.page-news .news-feature__title {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  color: var(--snow);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.page-news .news-feature__excerpt {
  color: var(--cloud);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.page-news .news-feature__more {
  border-top: 1px solid var(--news-line);
  margin-top: 4px;
}

.page-news .news-feature__more-summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--electro);
  transition: color 0.3s var(--news-fold);
}

.page-news .news-feature__more-summary::-webkit-details-marker {
  display: none;
}

.page-news .news-feature__more-summary:hover {
  color: var(--volt);
}

.page-news .news-feature__more-icon {
  transition: transform 0.35s var(--news-fold);
}

.page-news .news-feature__more[open] .news-feature__more-icon {
  transform: rotate(180deg);
}

.page-news .news-feature__full {
  padding: 12px 0 4px;
  color: var(--cloud);
  font-size: 14px;
  line-height: 1.75;
}

.page-news .news-feature__full p + p {
  margin-top: 10px;
}

.page-news .news-feature__full strong {
  color: var(--snow);
  font-weight: 600;
}

/* ===== Desk section base ===== */
.page-news .news-desk {
  padding-top: clamp(48px, 8vw, 88px);
  position: relative;
}

.page-news .news-desk::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, transparent 30.5%, rgba(160, 231, 255, 0.035) 30.8%, transparent 31.2%),
    linear-gradient(115deg, transparent 64.5%, rgba(0, 208, 255, 0.025) 64.8%, transparent 65.2%);
  pointer-events: none;
}

.page-news .news-desk__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 4vw, 52px);
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ===== Fact strip ===== */
.page-news .news-factstrip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: clamp(28px, 5vw, 44px);
}

.page-news .news-factstrip__item {
  border: 1px solid var(--line);
  border-radius: 4px 12px 12px 12px;
  padding: 16px;
  background: rgba(160, 231, 255, 0.04);
}

.page-news .news-factstrip__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--volt);
  line-height: 1;
  margin-bottom: 8px;
}

.page-news .news-factstrip__label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ===== Folder component ===== */
.page-news .news-folder {
  border: 1px solid var(--line-strong);
  border-radius: 6px 16px 16px 16px;
  background: var(--news-panel);
  position: relative;
}

.page-news .news-folder + .news-folder {
  margin-top: 28px;
}

.page-news .news-folder__head {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--news-line);
  background: rgba(160, 231, 255, 0.045);
  border-radius: 6px 16px 0 0;
  user-select: none;
  transition: background 0.3s var(--news-fold);
}

.page-news .news-folder__head::-webkit-details-marker {
  display: none;
}

.page-news .news-folder__head:hover {
  background: rgba(160, 231, 255, 0.09);
}

.page-news .news-folder__icon {
  color: var(--electro);
  flex-shrink: 0;
}

.page-news .news-folder--side .news-folder__icon {
  color: var(--violet);
}

.page-news .news-folder__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--snow);
  line-height: 1.3;
}

.page-news .news-folder__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: rgba(160, 231, 255, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
}

.page-news .news-folder__fold {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.page-news .news-folder__fold-icon {
  transition: transform 0.35s var(--news-fold);
}

.page-news .news-folder[open] .news-folder__fold-icon {
  transform: rotate(180deg);
}

.page-news .news-folder__content {
  padding: 10px 18px 18px;
}

/* ===== News list ===== */
.page-news .news-list {
  display: grid;
}

.page-news .news-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--news-line);
  position: relative;
}

.page-news .news-item:last-child {
  border-bottom: none;
}

.page-news .news-item::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--volt);
  transition: width 0.45s var(--news-fold);
}

.page-news .news-item:hover::before {
  width: 42%;
}

.page-news .news-item__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  padding-top: 5px;
  line-height: 1;
}

.page-news .news-item__body {
  min-width: 0;
}

.page-news .news-item__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.page-news .news-item__time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.page-news .news-item__title {
  font-size: 16px;
  line-height: 1.45;
  color: var(--snow);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.page-news .news-item__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--news-fold);
}

.page-news .news-item__title a:hover {
  color: var(--electro);
}

.page-news .news-item__excerpt {
  color: var(--cloud);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.page-news .news-item__excerpt strong {
  color: var(--snow);
  font-weight: 600;
}

.page-news .news-item__more {
  font-size: 13px;
}

.page-news .news-item__more summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--electro);
  font-weight: 600;
  padding: 6px 0 2px;
  transition: color 0.3s var(--news-fold);
}

.page-news .news-item__more summary::-webkit-details-marker {
  display: none;
}

.page-news .news-item__more summary:hover {
  color: var(--volt);
}

.page-news .news-item__more summary::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
}

.page-news .news-item__more[open] summary::before {
  content: "−";
}

.page-news .news-item__full {
  color: var(--cloud);
  font-size: 13px;
  line-height: 1.75;
  border-left: 2px solid rgba(200, 245, 66, 0.35);
  padding-left: 12px;
  margin-top: 4px;
}

/* ===== Media items inside list ===== */
.page-news .news-item--media .news-item__media {
  grid-column: 1 / -1;
  margin-top: 2px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(160, 231, 255, 0.06);
}

.page-news .news-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Side topics ===== */
.page-news .news-topics {
  display: grid;
}

.page-news .news-topic {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--news-line);
  text-decoration: none;
}

.page-news .news-topic:last-child {
  border-bottom: none;
}

.page-news .news-topic__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 208, 255, 0.1);
  color: var(--electro);
  transform: rotate(-4deg);
  transition: transform 0.3s var(--news-fold), background 0.3s var(--news-fold);
}

.page-news .news-topic:nth-child(2) .news-topic__icon {
  background: rgba(200, 245, 66, 0.1);
  color: var(--volt);
}

.page-news .news-topic:nth-child(3) .news-topic__icon {
  background: rgba(129, 122, 243, 0.12);
  color: var(--violet);
}

.page-news .news-topic:nth-child(4) .news-topic__icon {
  background: rgba(160, 231, 255, 0.1);
  color: var(--ice);
}

.page-news .news-topic:hover .news-topic__icon {
  transform: rotate(0deg) scale(1.06);
}

.page-news .news-topic__text {
  min-width: 0;
}

.page-news .news-topic__title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--snow);
  margin-bottom: 3px;
  transition: color 0.3s var(--news-fold);
}

.page-news .news-topic:hover .news-topic__title {
  color: var(--electro);
}

.page-news .news-topic__desc {
  display: block;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

/* ===== Tags panel ===== */
.page-news .news-tags {
  margin-top: 28px;
  padding: clamp(18px, 3vw, 24px);
  border-radius: 6px 16px 16px 16px;
}

.page-news .news-tags__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--snow);
  margin: 0 0 16px;
}

.page-news .news-tags__heading svg {
  color: var(--volt);
}

.page-news .news-tags__cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-news .news-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 13px;
  color: var(--cloud);
  text-decoration: none;
  transform: skewX(-6deg);
  transition: all 0.3s var(--news-fold);
}

.page-news .news-tag > span {
  display: inline-block;
  transform: skewX(6deg);
}

.page-news .news-tag:hover {
  border-color: var(--volt);
  color: var(--volt);
  background: rgba(200, 245, 66, 0.08);
  transform: skewX(-6deg) translateY(-2px);
}

.page-news .news-tag--lg {
  font-size: 14px;
  padding: 8px 16px;
  border-color: rgba(200, 245, 66, 0.4);
  color: var(--volt);
}

.page-news .news-tag--md {
  font-size: 13px;
  color: var(--snow);
}

.page-news .news-tag--violet {
  border-color: rgba(129, 122, 243, 0.4);
}

.page-news .news-tag--violet:hover {
  border-color: var(--violet);
  color: var(--violet);
  background: rgba(129, 122, 243, 0.08);
}

/* ===== CTA cards ===== */
.page-news .news-cta {
  margin-top: 28px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid rgba(200, 245, 66, 0.4);
  border-radius: 6px 16px 16px 16px;
  background:
    linear-gradient(140deg, rgba(200, 245, 66, 0.1), transparent 65%),
    var(--panel);
  position: relative;
  overflow: hidden;
}

.page-news .news-cta::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(200, 245, 66, 0.2);
  transform: rotate(45deg);
  pointer-events: none;
}

.page-news .news-cta--ghost {
  border-color: var(--line-strong);
  background:
    linear-gradient(140deg, rgba(160, 231, 255, 0.08), transparent 65%),
    var(--panel);
}

.page-news .news-cta--ghost::after {
  border-color: rgba(160, 231, 255, 0.2);
}

.page-news .news-cta__heading {
  font-size: 15px;
  font-weight: 800;
  color: var(--volt);
  margin: 0 0 6px;
}

.page-news .news-cta--ghost .news-cta__heading {
  color: var(--ice);
}

.page-news .news-cta__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--cloud);
  margin-bottom: 14px;
}

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

/* ===== Bottom next bar ===== */
.page-news .news-next {
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(40px, 6vw, 64px);
}

.page-news .news-next__inner {
  border-top: 1px solid var(--news-line);
  padding-top: clamp(24px, 4vw, 40px);
}

.page-news .news-next__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.page-news .news-next__links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-news .news-next__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--news-line);
  border-radius: 4px 12px 12px 12px;
  background: rgba(26, 35, 45, 0.4);
  text-decoration: none;
  transition: border-color 0.3s var(--news-fold), background 0.3s var(--news-fold);
}

.page-news .news-next__link:hover {
  border-color: rgba(200, 245, 66, 0.5);
  background: rgba(200, 245, 66, 0.05);
}

.page-news .news-next__link-num {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--volt);
}

.page-news .news-next__link-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--snow);
}

.page-news .news-next__link-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ===== Desktop: 768px ===== */
@media (min-width: 768px) {
  .page-news .news-feature {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .page-news .news-feature__media {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .page-news .news-feature__media img {
    height: 100%;
  }

  .page-news .news-desk__layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
  }

  .page-news .news-factstrip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-news .news-next__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== Desktop: 900px ===== */
@media (min-width: 900px) {
  .page-news .news-item--media {
    grid-template-columns: auto minmax(0, 1fr) 200px;
    grid-template-rows: auto auto;
    column-gap: 18px;
  }

  .page-news .news-item--media .news-item__num {
    grid-column: 1;
    grid-row: 1;
  }

  .page-news .news-item--media .news-item__body {
    grid-column: 2;
    grid-row: 1;
  }

  .page-news .news-item--media .news-item__media {
    grid-column: 3;
    grid-row: 1 / span 2;
    margin-top: 0;
  }
}

/* ===== Desktop: 1024px ===== */
@media (min-width: 1024px) {
  .page-news .news-hero__grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: end;
  }

  .page-news .news-desk__side {
    position: sticky;
    top: 96px;
  }
}
