/* ====================================================================
   ЧМ-2026 Прогнозы — дизайн-система
   Тема: dark stadium-night · акцент: травяной зелёный + золото трофея
   ==================================================================== */

:root {
  /* Поверхности */
  --bg:         #0A0E14;
  --bg-2:       #0D1219;
  --surface:    #121822;
  --surface-2:  #18202C;
  --border:     rgba(255, 255, 255, 0.08);
  --border-str: rgba(255, 255, 255, 0.14);

  /* Текст */
  --text:       #EEF2F6;
  --muted:      #8B95A7;
  --muted-2:    #5E6878;

  /* Акценты */
  --green:      #00E27A;   /* основной — «трава»/успех */
  --green-deep: #00B863;
  --gold:       #FFCB45;   /* золото трофея — ничья / выделение */
  --red:        #FF5C6C;   /* риск / низкая уверенность */
  --blue:       #4DA8FF;

  /* Семантика исходов */
  --win:  var(--green);
  --draw: var(--gold);
  --lose: var(--red);

  /* Радиусы / тени */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --shadow:    0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --glow-green: 0 0 0 1px rgba(0, 226, 122, 0.35), 0 12px 40px -12px rgba(0, 226, 122, 0.35);

  /* Сетка */
  --maxw: 1200px;
  --gutter: clamp(18px, 4vw, 40px);

  /* Шрифты */
  --f-display: "Oswald", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 226, 122, 0.10), transparent 60%),
    radial-gradient(1000px 500px at 0% 0%, rgba(77, 168, 255, 0.06), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Типографика ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.05; letter-spacing: 0.5px; text-transform: uppercase; }

.eyebrow {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 600;
}

.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.section-desc  { color: var(--muted); margin-top: 8px; max-width: 60ch; }
.lead { font-size: 1.15rem; margin-top: 16px; color: var(--text); }
.muted-text { color: var(--muted); margin-top: 14px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.95rem;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap; font-family: var(--f-body);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #062013; box-shadow: var(--glow-green);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(0,226,122,.5), 0 18px 50px -14px rgba(0,226,122,.5); }
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--text);
  border-color: var(--border-str);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--green); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 20, 0.72);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 1px; text-transform: uppercase; }
.brand-mark { color: var(--green); display: inline-flex; }
.brand-accent { color: var(--green); }

.nav { display: flex; gap: 6px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  color: var(--muted); transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.header-right { display: flex; align-items: center; gap: 12px; }
.badge-18 {
  font-family: var(--f-display); font-weight: 700; font-size: 0.78rem;
  border: 1px solid var(--border-str); color: var(--muted);
  padding: 4px 9px; border-radius: 8px; letter-spacing: 1px;
}

.nav-toggle { display: none; flex-direction: column; gap: 4px; padding: 10px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

.mobile-nav { display: none; flex-direction: column; padding: 8px var(--gutter) 18px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.mobile-nav a { padding: 12px 4px; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% 30% auto -10%; height: 480px;
  background: radial-gradient(closest-side, rgba(0,226,122,0.16), transparent);
  filter: blur(20px); pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(28px) } }

.hero-inner { position: relative; max-width: 820px; }
.hero-title { font-size: clamp(2.6rem, 8vw, 5.2rem); font-weight: 700; margin: 18px 0 0; }
.hero-title .hl {
  background: linear-gradient(120deg, var(--green) 10%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.22rem); margin-top: 22px; max-width: 56ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.stat-strip {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 48px; max-width: 560px;
}
.stat-strip li {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 16px; text-align: center;
}
.stat-strip strong { display: block; font-family: var(--f-display); font-size: 1.9rem; color: var(--green); line-height: 1; }
.stat-strip span { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Секции ---------- */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-2)); border-block: 1px solid var(--border); }
.section-head { margin-bottom: 34px; }

/* ---------- Фильтры / поиск ---------- */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 28px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-row.secondary { flex: 1 1 100%; }
.chip {
  font-weight: 600; font-size: 0.88rem; padding: 8px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  cursor: pointer; transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--border-str); }
.chip.active { background: var(--green); color: #062013; border-color: var(--green); }
.chip.group.active { background: var(--gold); color: #2a1d00; border-color: var(--gold); }

.search-wrap { margin-left: auto; }
.search {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 11px 16px; border-radius: 999px; min-width: 220px; font-family: var(--f-body); font-size: 0.92rem;
}
.search:focus { outline: none; border-color: var(--green); }
.search::placeholder { color: var(--muted-2); }

/* ---------- Сетка матчей ---------- */
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }

.match-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.match-card:hover { transform: translateY(-4px); border-color: var(--border-str); box-shadow: var(--shadow-lg); }

.mc-top { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--muted); }
.mc-stage { font-family: var(--f-display); letter-spacing: 1px; text-transform: uppercase; color: var(--green); font-weight: 600; }
.mc-tag { background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 3px 9px; border-radius: 7px; }

.mc-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.team .flag {
  width: 52px; height: 36px; border-radius: 6px; object-fit: cover;
  background: var(--surface-2); border: 1px solid var(--border);
}
.team .tname { font-weight: 700; font-size: 0.96rem; }
.vs { font-family: var(--f-display); color: var(--muted-2); font-size: 0.9rem; }
.mc-kick { text-align: center; font-size: 0.8rem; color: var(--muted); }

/* Прогноз-блок */
.mc-pred { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; }
.pred-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pred-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.pred-pick { font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; }
.pred-pick.home { color: var(--win); }
.pred-pick.draw { color: var(--draw); }
.pred-pick.away { color: var(--blue); }

.conf { margin-top: 12px; }
.conf-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.conf-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green-deep), var(--green)); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.conf-meta { display: flex; justify-content: space-between; font-size: 0.76rem; color: var(--muted); margin-top: 6px; }

.mc-analysis { font-size: 0.9rem; color: var(--muted); }

/* Коэффициенты */
.odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.odd { text-align: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 4px; }
.odd .o-l { display: block; font-size: 0.72rem; color: var(--muted-2); }
.odd .o-v { font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; }
.odd.best { border-color: rgba(0,226,122,0.4); box-shadow: inset 0 0 0 1px rgba(0,226,122,0.15); }
.odd.best .o-v { color: var(--green); }

/* Свой прогноз */
.mc-vote { border-top: 1px dashed var(--border); padding-top: 14px; }
.vote-q { font-size: 0.8rem; color: var(--muted); margin-bottom: 9px; }
.vote-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vote-btn {
  font-family: var(--f-body); font-weight: 700; font-size: 0.84rem; cursor: pointer;
  padding: 9px 6px; border-radius: var(--r-sm); border: 1px solid var(--border-str);
  background: transparent; color: var(--text); transition: all .15s;
}
.vote-btn:hover { border-color: var(--green); }
.vote-btn.chosen { background: var(--green); color: #062013; border-color: var(--green); }
.vote-done { font-size: 0.82rem; color: var(--green); display: flex; align-items: center; gap: 6px; }

/* ---------- Прогноз дня ---------- */
.featured-slot .match-card { border-color: rgba(0,226,122,0.3); box-shadow: var(--glow-green); }
@media (min-width: 760px) {
  .featured-slot .match-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: start; }
  .featured-slot .fc-left { display: flex; flex-direction: column; gap: 16px; }
  .featured-slot .fc-right { display: flex; flex-direction: column; gap: 16px; }
}

/* ---------- Методика ---------- */
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.method-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; position: relative; overflow: hidden; }
.method-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 3px; height: 100%; background: linear-gradient(var(--green), transparent); }
.method-num { font-family: var(--f-display); font-size: 2.4rem; color: var(--surface-2); font-weight: 700; }
.method-card h3 { font-size: 1.15rem; margin: 6px 0 10px; }
.method-card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- О проекте ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.disclaimer { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--r); padding: 24px; }
.disclaimer h3 { font-size: 1.1rem; color: var(--gold); margin-bottom: 12px; }
.disclaimer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.disclaimer li { color: var(--muted); font-size: 0.92rem; padding-left: 22px; position: relative; }
.disclaimer li::before { content: "▸"; position: absolute; left: 0; color: var(--gold); }
.disclaimer strong { color: var(--text); }

.empty-state { text-align: center; color: var(--muted); padding: 40px; }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 48px 0 36px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 8px; max-width: 36ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-nav a { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--green); }
.footer-legal { grid-column: 1 / -1; color: var(--muted-2); font-size: 0.82rem; border-top: 1px solid var(--border); padding-top: 18px; margin-top: 8px; }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .search-wrap { margin-left: 0; flex: 1 1 100%; }
  .search { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
