.news-page {
  --news-radius-lg: 22px;
  --news-radius-md: 18px;
  --news-shadow-soft: var(--shadow-xs);
  --news-shadow-hover: var(--shadow-sm);
  --news-accent-soft: var(--accent-soft);
  --news-accent-strong: var(--accent-soft-strong);
  display: grid;
  gap: 22px;
  margin-bottom: 28px;
}

.news-page__hero {
  position: relative;
  margin-bottom: 0;
  padding: 30px 32px;
  border-radius: var(--news-radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--news-shadow-soft);
  overflow: hidden;
}

.news-page__hero::after {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--news-accent-strong), transparent);
}

.news-page__hero-content {
  max-width: 720px;
}

.news-page__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-page__hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.15;
}

.news-page__hero p {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
}

.news-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  list-style: none;
}

.news-tabs::before,
.news-tabs::after {
  display: none;
}

.news-tabs > li {
  float: none;
  margin: 0;
}

.news-tabs__item > .news-tabs__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  margin-right: 0;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
}

.news-tabs__item > .news-tabs__link:hover,
.news-tabs__item > .news-tabs__link:focus {
  background: var(--surface-2);
  border-color: var(--border);
}

.news-tabs > li.active > .news-tabs__link,
.news-tabs > li.active > .news-tabs__link:hover,
.news-tabs > li.active > .news-tabs__link:focus {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
}

.news-tabs__item.disabled > .news-tabs__link,
.news-tabs__item.disabled > .news-tabs__link:hover,
.news-tabs__item.disabled > .news-tabs__link:focus {
  opacity: 0.75;
  color: var(--text-muted);
  cursor: default;
  pointer-events: none;
}

.news-tabs__note {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.news-section {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--news-radius-lg);
  background: var(--surface);
  box-shadow: var(--news-shadow-soft);
}

.news-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.news-section__intro {
  min-width: 0;
}

.news-section__eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-section__title {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 27px;
  line-height: 1.2;
}

.news-section__subtitle {
  margin: 0;
  max-width: 720px;
  color: var(--text-muted);
  line-height: 1.55;
}

.news-section__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.news-grid--past {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.news-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--news-radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--news-shadow-hover);
  border-color: var(--accent-soft-strong);
}

.news-card--live {
  box-shadow: var(--shadow-sm);
}

.news-card--live::before,
.news-card--upcoming::before,
.news-card--past::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--news-accent-soft);
}

.news-card--live::before {
  background: var(--info-soft-strong);
}

.news-card--upcoming::before {
  background: var(--accent-soft-strong);
}

.news-card--past::before {
  background: var(--border-contrast);
}

.news-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.news-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}

.news-pill--category {
  background: var(--accent-soft);
  border-color: var(--accent-soft-strong);
}

.news-pill--status {
  background: var(--info-soft);
  border-color: var(--info-soft-strong);
  color: var(--text);
}

.news-pill--archive {
  background: var(--stripe-bg);
  border-color: var(--border-contrast);
  color: var(--text-muted);
}

.news-card__title {
  margin: 0;
  color: var(--text);
  font-size: 21px;
  line-height: 1.35;
  word-break: break-word;
}

.news-card__meta {
  display: grid;
  gap: 10px;
}

.news-card__meta-item {
  position: relative;
  margin: 0;
  padding: 12px 14px 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  line-height: 1.5;
  word-break: break-word;
}

.news-feed-tabs {
  display: grid;
  gap: 22px;
}

.news-feed-tabs__controls {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  align-self: start;
  max-width: 100%;
}

.news-feed-tabs__button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.news-feed-tabs__button:hover,
.news-feed-tabs__button:focus {
  background: var(--surface-2);
  border-color: var(--border);
}

.news-feed-tabs__button.is-active {
  background: var(--surface-2);
  border-color: var(--border);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
}

.news-feed-tabs__button:focus {
  outline: none;
}

.news-feed-tabs__button:focus-visible {
  outline: none;
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(102, 128, 255, 0.14);
}

.news-feed-tabs__button:not(.is-active):active {
  transform: translateY(1px);
}

.news-feed-tabs__panel {
  display: none;
  gap: 22px;
}

.news-feed-tabs__panel.is-active {
  display: grid;
}

.news-reviews-head {
  margin-bottom: 18px;
}

.news-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.news-review-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 22px 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--news-radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.news-review-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.news-review-card__author-block {
  min-width: 0;
}

.news-review-card__author {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.news-review-card__date {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.news-review-card__rating {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;

}

.news-review-card__stars {
  color: #f0b429;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.08em;

}



.news-review-card__score {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.news-review-card__text {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.news-review-card__footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.news-review-card__event-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-review-card__event-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.news-empty--reviews {
  padding: 30px 28px;
}

.news-card__meta-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: var(--accent-soft-strong);
}

.news-card__meta-item--time {
  color: var(--text);
  font-weight: 700;
}

.news-card__footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 20px 20px;
}

.news-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 14px;
  border-width: 1px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.news-card__action {
  min-width: 132px;
}

.news-page .btn:hover,
.news-page .btn:focus {
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}

.news-page .btn:focus,
.news-page .btn:focus-visible,
.news-card:focus-within,
.news-tabs__item > .news-tabs__link:focus,
.news-page .pagination > li > a:focus,
.news-page .pagination > li > span:focus {
  outline: none;
  box-shadow: var(--focus-ring);
}

.news-page .btn-default,
.news-page .btn.btn-default,
.news-card__action--light {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.news-page .btn-default:hover,
.news-page .btn-default:focus,
.news-page .btn.btn-default:hover,
.news-page .btn.btn-default:focus,
.news-card__action--light:hover,
.news-card__action--light:focus {
  background: var(--surface);
  border-color: var(--accent-soft-strong);
  color: var(--text);
}

.news-empty {
  padding: 26px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--news-radius-md);
  background: linear-gradient(180deg, var(--accent-soft), transparent 65%), var(--surface);
}

.news-empty__title {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.3;
}

.news-empty__text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.news-page nav[aria-label="Pagination"] {
  display: flex;
  justify-content: center;
}

.news-page .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.news-page .pagination > li {
  display: inline-flex;
}

.news-page .pagination > li > a,
.news-page .pagination > li > span {
  min-width: 42px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-weight: 700;
  line-height: 1.2;
}

.news-page .pagination > li.active > span,
.news-page .pagination > li.active > a,
.news-page .pagination > li.active > a:hover,
.news-page .pagination > li.active > span:hover,
.news-page .pagination > li.active > a:focus,
.news-page .pagination > li.active > span:focus {
  box-shadow: var(--shadow-sm);
}

@media (max-width: 992px) {
  .news-page__hero {
    padding: 26px 24px;
  }

  .news-page__hero::after {
    left: 24px;
    right: 24px;
  }

  .news-section {
    padding: 22px 20px;
  }

  .news-section__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .news-page {
    gap: 18px;
  }

  .news-page__hero {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .news-page__hero::after {
    left: 18px;
    right: 18px;
  }

  .news-page__hero h1 {
    font-size: 29px;
  }

  .news-page__hero p {
    font-size: 15px;
  }

  .news-tabs,
  .news-feed-tabs__controls {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .news-tabs__item > .news-tabs__link,
  .news-feed-tabs__button {
    width: 100%;
    justify-content: center;
  }

  .news-section {
    padding: 18px;
    border-radius: 18px;
  }

  .news-section__title {
    font-size: 24px;
  }

  .news-grid,
  .news-grid--past,
  .news-reviews-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .news-card__body {
    padding: 18px;
  }

  .news-card__footer {
    padding: 0 18px 18px;
  }

  .news-card__action {
    width: 100%;
  }

  .news-review-card {
    padding: 18px;
  }

  .news-review-card__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-review-card__rating {
    align-items: flex-start;
  }

  .news-page .pagination {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .news-card__badges {
    gap: 6px;
  }

  .news-pill {
    width: 100%;
    justify-content: center;
  }

  .news-feed-tabs__button {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 14px;
  }

  .news-review-card__author {
    font-size: 17px;
  }

  .news-review-card__text,
  .news-review-card__event-title {
    font-size: 14px;
  }

  .news-page .pagination > li > a,
  .news-page .pagination > li > span {
    min-width: 38px;
    min-height: 38px;
    padding: 8px 12px;
  }
}
