/* ===== /news/news-style.css ===== */

:root {
  --accent: #F5A623;
  --accent-dark: #D98A0B;
  --accent-soft: #FFF9EE;
  --text: #1F2733;
  --muted: #7A8598;
  --bg-soft: #F7F9FC;
  --border: #E0E6ED;
  --radius: 14px;
  --shadow-sm: 0 4px 16px rgba(31,39,51,.06);
  --shadow-md: 0 12px 32px rgba(31,39,51,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', 'Montserrat', 'PT Sans', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { font-weight: 800; font-size: 20px; letter-spacing: -.5px; }
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
  position: relative;
}
.nav-links a:hover { color: var(--accent-dark); }
.nav-links a.active { color: var(--accent-dark); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(245,166,35,.28);
}

/* ---------- Hero страницы ---------- */
.page-hero {
  padding: 56px 0 24px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -.8px;
  margin: 0 0 14px;
}
.page-hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 28px;
}

/* ---------- Поиск ---------- */
.news-search {
  max-width: 520px;
  margin: 0 auto 22px;
}
.news-search input {
  width: 100%;
  padding: 14px 20px;
  border: 1.5px solid var(--border);
  border-radius: 40px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.news-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(245,166,35,.12);
}

/* ---------- Фильтры ---------- */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.news-filters button {
  padding: 10px 20px;
  border-radius: 30px;
  border: 1.5px solid var(--border);
  background: #fff;
  font: 600 14px/1 inherit;
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
}
.news-filters button:hover { border-color: var(--accent); color: var(--accent-dark); }
.news-filters button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(245,166,35,.28);
}

/* ---------- Список новостей ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 40px;
}

.news-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.news-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), #FFD27A);
  opacity: 0;
  transition: opacity .25s;
}
.news-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #F3E0BC;
}
.news-item:hover::before { opacity: 1; }

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.news-source {
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
}
.news-origin {
  color: var(--muted);
  font-style: italic;
}
.news-origin::before { content: "· "; }

.news-item h2 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
  letter-spacing: -.2px;
}
.news-item h2 a { color: var(--text); transition: color .2s; }
.news-item h2 a:hover { color: var(--accent-dark); }

.news-item p {
  color: #3A4454;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.news-tags span {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-soft);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ---------- Пустое состояние ---------- */
.news-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.news-empty .icon {
  font-size: 36px;
  margin-bottom: 10px;
}
.news-empty p { margin: 0; font-size: 15px; }

/* ---------- Спиннер ---------- */
.news-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: news-spin .8s linear infinite;
}
@keyframes news-spin { to { transform: rotate(360deg); } }

/* ---------- Кнопка «Показать ещё» ---------- */
.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 40px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  font: 600 15px/1 inherit;
  cursor: pointer;
  transition: all .2s;
}
.btn-load-more:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */
footer {
  background: #1B2230;
  color: #B7C0D0;
  padding: 28px 0;
  font-size: 13.5px;
  margin-top: 40px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #7A8598;
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13.5px; }
}
@media (max-width: 700px) {
  .nav { height: auto; padding: 12px 0; flex-direction: column; gap: 10px; }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    font-size: 13px;
  }
  .nav-cta { padding: 8px 16px; }
  .page-hero { padding: 40px 0 12px; }
  .news-item { padding: 18px 20px; }
  .news-item h2 { font-size: 17px; }
}