/* ===== ОСНОВА ===== */
:root {
  --bg: #fafafa;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #171717;
  --ink-soft: #525252;
  --ink-mute: #a3a3a3;
  --ink-faint: #d4d4d4;
  --accent: #18181b;
  --accent-hover: #000000;
  --highlight: #84cc16;
  --line: #ededed;
  --line-strong: #e4e4e4;
  --live: #ef4444;
  --live-soft: #fef2f2;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px -8px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 50px -20px rgba(0,0,0,0.15);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--ink); color: var(--bg); }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ===== ШАПКА ===== */
.topbar {
  background: transparent;
  color: var(--ink-mute);
  font-size: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  letter-spacing: 0;
}
.topbar-right { display: flex; gap: 24px; }
.topbar-right span { display: inline-flex; align-items: center; gap: 6px; }
.live-dot {
  width: 6px; height: 6px;
  background: var(--live);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

header.main-header {
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.logo {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-mark { display: block; flex: 0 0 auto; }
.logo .dot {
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  display: inline-block;
}
.logo span.gray { color: var(--ink-mute); font-weight: 500; }

nav.main-nav {
  display: flex;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
}
nav.main-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.2s var(--ease);
  color: var(--ink-soft);
}
nav.main-nav a:hover { color: var(--ink); background: var(--line); }
nav.main-nav a.active { color: var(--ink); background: var(--line-strong); }

.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}
.icon-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-1px); }

/* ===== СПОРТ-ФИЛЬТР ===== */
.sport-strip {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.sport-strip::-webkit-scrollbar { display: none; }
.sport-strip-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  gap: 6px;
  white-space: nowrap;
}
.sport-tab {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: var(--ink-soft);
  transition: all 0.18s var(--ease);
}
.sport-tab:hover { background: var(--bg-card); border-color: var(--line-strong); color: var(--ink); }
.sport-tab.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ===== КОНТЕЙНЕР ===== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== ГЛАВНАЯ — ХИРО ===== */
.hero {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  padding: 40px 0;
}

.hero-main {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-radius: var(--radius-lg);
  min-height: 480px;
  cursor: pointer;
  transition: transform 0.5s var(--ease);
}
.hero-main:hover { transform: translateY(-2px); }
.hero-main .hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  transition: transform 0.7s var(--ease);
}
.hero-main:hover .hero-image { transform: scale(1.03); }
.hero-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px;
  color: #fff;
  z-index: 2;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.15);
}
.hero-tag .pulse-mini {
  width: 6px; height: 6px;
  background: var(--highlight);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
.hero-headline {
  font-size: 44px;
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}
.hero-lead {
  font-size: 16px;
  line-height: 1.55;
  max-width: 580px;
  color: rgba(255,255,255,0.78);
  font-weight: 400;
}
.hero-meta {
  margin-top: 22px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  display: flex;
  gap: 14px;
  align-items: center;
  font-weight: 500;
}
.hero-meta .dot-sep { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }

.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-side-item {
  background: var(--bg-card);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-side-item:hover {
  border-color: var(--ink-faint);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.hero-side-item .tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-side-item .tag::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--ink);
  border-radius: 50%;
}
.hero-side-item h3 {
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.hero-side-item p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  flex: 1;
}
.hero-side-item .meta-small {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 14px;
  font-weight: 500;
}

/* ===== СЕКЦИЯ ЛЕНТЫ ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 30px 0 20px;
  margin-bottom: 8px;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .count-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mute);
  background: var(--line);
  padding: 3px 9px;
  border-radius: 999px;
}
.section-update {
  font-size: 12px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.section-update .dot {
  width: 6px; height: 6px;
  background: var(--highlight);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}

/* ===== СЕТКА НОВОСТЕЙ ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 60px;
}
.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-faint);
}
.news-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: var(--line);
}
.news-card .category-pill {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
}
.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card h3 {
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.news-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.news-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--ink-mute);
  font-weight: 500;
}
.news-card-sources {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--line);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--ink-soft);
}
.news-card-sources::before {
  content: '✓';
  font-size: 9px;
  color: var(--ink);
  font-weight: 700;
}

/* ===== ПОДВАЛ ===== */
footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 60px 0 28px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .logo { color: var(--ink); margin-bottom: 14px; }
.footer-brand p {
  font-size: 13.5px;
  max-width: 340px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 4px 0;
  transition: color 0.18s;
  font-weight: 500;
}
.footer-col a:hover { color: var(--ink-mute); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 500;
}

/* ===== СТРАНИЦА НОВОСТИ ===== */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px 60px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 28px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--ink-faint); }

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.article-category::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--highlight);
  border-radius: 50%;
}
.article-title {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  font-weight: 700;
}
.article-lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 32px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
  font-size: 13px;
}
.article-meta .left { display: flex; gap: 20px; color: var(--ink-soft); font-weight: 500; }
.article-meta .right { display: flex; gap: 6px; }

.article-hero-image {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  margin-bottom: 14px;
  background-color: var(--line);
}
.article-image-caption {
  font-size: 12.5px;
  color: var(--ink-mute);
  margin-bottom: 36px;
  font-weight: 500;
}

.article-body p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--ink-2);
}
.article-body p.quote {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 24px 28px;
  font-size: 17px;
  margin: 28px 0;
  position: relative;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
}
.article-body p.quote::before {
  content: '';
  position: absolute;
  left: 0; top: 24px; bottom: 24px;
  width: 3px;
  background: var(--ink);
  border-radius: 2px;
}

.article-sources {
  margin-top: 44px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.article-sources h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-sources h4::before {
  content: '✓';
  width: 18px; height: 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.article-sources-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.article-sources-list .src {
  font-size: 12.5px;
  padding: 5px 11px;
  background: var(--bg);
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 500;
  color: var(--ink-soft);
}
.article-disclaimer {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 14px;
  line-height: 1.55;
}

/* ===== СВЯЗАННЫЕ НОВОСТИ ===== */
.related-section {
  background: var(--bg);
  padding: 50px 0 60px;
  border-top: 1px solid var(--line);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== LIVE СТРАНИЦА ===== */
.live-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--line);
}
.live-hero .live-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--live-soft);
  color: var(--live);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  border: 1px solid #fecaca;
}
.live-hero .live-badge-row .pulse-red {
  width: 6px; height: 6px;
  background: var(--live);
  border-radius: 50%;
  animation: pulse 1.4s infinite;
}
.live-hero h1 {
  font-size: 48px;
  line-height: 1.05;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.live-hero p {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 580px;
  line-height: 1.55;
}
.live-hero-stats {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.live-hero-stats .stat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 22px;
  min-width: 120px;
}
.live-hero-stats .stat .num {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}
.live-hero-stats .stat .label {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 6px;
  font-weight: 500;
}

.sport-selector {
  position: sticky;
  top: 75px;
  background: rgba(250,250,250,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 50;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.sport-selector-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sport-selector-inner::-webkit-scrollbar { display: none; }
.sport-pill {
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: var(--ink-soft);
}
.sport-pill .icon { font-size: 16px; }
.sport-pill:hover { border-color: var(--ink-faint); color: var(--ink); transform: translateY(-1px); }
.sport-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.sport-pill .count {
  font-size: 11.5px;
  background: var(--line);
  color: var(--ink-soft);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 500;
}
.sport-pill.active .count { background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.9); }

.matches-section {
  padding: 36px 0 60px;
}
.matches-block { margin-bottom: 36px; }
.matches-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.matches-block-title {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.live-pulse {
  width: 8px; height: 8px;
  background: var(--live);
  border-radius: 50%;
  animation: pulse 1.4s infinite;
  display: inline-block;
}

.matches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.match-card {
  background: var(--bg-card);
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: all 0.2s var(--ease);
  cursor: pointer;
}
.match-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink-faint);
  box-shadow: var(--shadow-md);
}
.match-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 11.5px;
  font-weight: 500;
}
.match-league {
  color: var(--ink-mute);
}
.match-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.match-status.live { color: var(--live); }
.match-status.upcoming { color: var(--ink-mute); }
.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}
.match-team {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.match-team.home { text-align: left; }
.match-team.away { text-align: right; color: var(--ink-2); }
.match-score {
  font-size: 22px;
  line-height: 1;
  text-align: center;
  min-width: 80px;
  letter-spacing: -0.02em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.match-score.upcoming {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0;
  font-weight: 500;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-main { min-height: 380px; }
  .hero-headline { font-size: 32px; }
  .news-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .matches-grid { grid-template-columns: 1fr; }
  .article-title { font-size: 34px; }
  .live-hero h1 { font-size: 36px; }
}
@media (max-width: 640px) {
  .container, .topbar-inner, .header-inner, .footer-inner, .sport-strip-inner, .sport-selector-inner { padding-left: 20px; padding-right: 20px; }
  .article-wrap { padding-left: 20px; padding-right: 20px; }
  .news-grid, .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  nav.main-nav { display: none; }
  .hero-headline { font-size: 26px; }
  .hero-content { padding: 22px; }
  .article-title { font-size: 28px; }
  .article-lead { font-size: 17px; }
  .live-hero h1 { font-size: 30px; }
  .live-hero-stats { flex-wrap: wrap; }
  .topbar-right { gap: 14px; }
  .topbar-right span:first-child { display: none; }
  .match-team { font-size: 13px; }
  .match-score { font-size: 18px; min-width: 60px; }
}
