.news {
  padding: 0 0 var(--space-section);
  background: var(--bg-page);
}

.news__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 clamp(20px, 3vw, 36px);
}

.news__title {
  margin: 0;
  font-size: var(--typo-h2-size);
  line-height: var(--typo-h2-line-height);
  font-weight: var(--typo-h2-weight);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.news__all-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  text-decoration: none;
}

.news__all-link-arrow {
  width: var(--cta-chip-size-sm);
  height: var(--cta-chip-size-sm);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  color: currentColor;
  transition:
    transform var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base);
}

.news__viewport {
  min-width: 0;
}

.news__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.news__item {
  min-width: 0;
}

.news-card {
  position: relative;
  display: block;
  min-height: 286px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  overflow: hidden;
  isolation: isolate;
  color: var(--text-primary);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 96, 0, 0.12) 0%, rgba(255, 96, 0, 0) 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%),
    var(--bg-panel-soft);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.news-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.news-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.36s ease;
}

.news-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 13, 0.03) 18%, rgba(8, 10, 13, 0.88) 100%);
  transition: background-color var(--transition-base);
}

.news-card__content {
  position: relative;
  z-index: 1;
  min-height: 286px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
}

.news-card__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.news-card__date {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--text-dim);
}

.news-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.news-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.news-card__cta-label {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.news-card__cta-icon {
  width: var(--cta-chip-size);
  height: var(--cta-chip-size);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  transition:
    transform var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base);
}

.news-card.is-no-image .news-card__media {
  display: none;
}

.news-card:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    var(--focus-ring),
    0 12px 28px rgba(0, 0, 0, 0.26);
}

@media (hover: hover) and (pointer: fine) {
  .news__all-link:hover {
    color: var(--text-primary);
  }

  .news__all-link:hover .news__all-link-arrow {
    transform: translateX(2px);
    background: rgba(255, 96, 0, 0.22);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
  }

  .news-card:hover {
    border-color: rgba(255, 255, 255, 0.26);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  }

  .news-card:hover .news-card__image {
    transform: scale(1.05);
  }

  .news-card:hover .news-card__cta-icon {
    transform: translateX(2px);
    background: rgba(255, 96, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
  }
}

@media (max-width: 1199px) {
  .news__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .news__all-link {
    font-size: 15px;
  }

  .news-card,
  .news-card__content {
    min-height: 248px;
  }

  .news-card__content {
    padding: 16px;
  }

  .news-card__title {
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .news__head {
    margin-bottom: 24px;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .news__all-link {
    width: 100%;
    justify-content: flex-start;
    font-size: 15px;
  }

  .news__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .news__viewport::-webkit-scrollbar {
    display: none;
  }

  .news__list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(272px, 86vw);
    gap: 12px;
  }

  .news__item {
    scroll-snap-align: start;
  }

  .news-card,
  .news-card__content {
    min-height: 220px;
  }

  .news-card {
    border-radius: 14px;
  }

  .news-card__content {
    padding: 14px;
    gap: 10px;
  }

  .news-card__title {
    font-size: 20px;
    line-height: 1.06;
  }

  .news-card__cta-label {
    font-size: 13px;
  }

  .news-card__cta-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    font-size: 14px;
  }
}

@media (max-width: 479px) {
  .news__list {
    grid-auto-columns: minmax(250px, 90vw);
  }

  .news-card__title {
    font-size: 18px;
  }
}

html[data-theme="light"] .news__all-link {
  color: var(--accent);
  text-decoration: none;
}

html[data-theme="light"] .news__all-link:visited {
  color: var(--accent);
  text-decoration: none;
}

html[data-theme="light"] .news__all-link-arrow {
  border-color: rgba(16, 20, 24, 0.18);
  background: rgba(17, 22, 28, 0.06);
  color: var(--accent);
}

html[data-theme="light"] .news-card {
  background:
    linear-gradient(180deg, rgba(17, 22, 28, 0.03) 0%, rgba(17, 22, 28, 0) 100%),
    #f7f9fc;
  border-color: rgba(16, 20, 24, 0.18);
  box-shadow: 0 8px 20px rgba(16, 20, 24, 0.12);
}

html[data-theme="light"] .news-card__overlay {
  background: linear-gradient(180deg, rgba(8, 10, 13, 0.08) 16%, rgba(8, 10, 13, 0.82) 100%);
}

html[data-theme="light"] .news-card__title,
html[data-theme="light"] .news-card__date,
html[data-theme="light"] .news-card__text,
html[data-theme="light"] .news-card__excerpt,
html[data-theme="light"] .news-card__cta-label {
  color: #ffffff;
  opacity: 1;
}

html[data-theme="light"] .news-card__cta-icon {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme="light"] .news__all-link:hover {
    color: #c24a00;
  }

  html[data-theme="light"] .news__all-link:hover .news__all-link-arrow {
    border-color: rgba(16, 20, 24, 0.26);
    background: rgba(17, 22, 28, 0.1);
    color: var(--accent);
  }
}
