:root{
  --paper:#F5F7F6;
  --ink:#101D17;
  --muted:#5C6B63;
  --pitch:#0B7A44;
  --pitch-dark:#075C33;
  --signal:#FF5A1E;
  --night:#0C2318;
  --line:#DCE4E0;
  --card:#FFFFFF;
  --radius:14px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:'Manrope',system-ui,sans-serif;
  background:var(--paper);
  color:var(--ink);
  line-height:1.55;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px}
.mono{font-family:'JetBrains Mono',monospace}

/* ---------- служебная верхняя полоса ---------- */
.topbar{background:var(--night);color:#BFD4C8;font-size:12px}
.topbar .wrap{display:flex;align-items:center;gap:16px;height:34px}
.topbar .age{
  font-family:'JetBrains Mono',monospace;font-weight:700;color:#fff;
  border:1px solid #3B5A49;border-radius:6px;padding:1px 7px;font-size:11px;
}
.topbar .date{margin-left:auto;white-space:nowrap}

/* ---------- шапка ---------- */
header.site{
  background:var(--card);border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:50;
}
header.site .wrap{display:flex;align-items:center;gap:32px;height:64px}
.logo{
  font-family:'Unbounded',sans-serif;font-weight:900;font-size:22px;
  letter-spacing:.02em;display:flex;align-items:center;gap:2px;color:var(--ink);
}
.logo .o{
  display:inline-flex;width:24px;height:24px;margin:0 1px;
  border-radius:50%;border:4px solid var(--signal);position:relative;top:1px;
}
nav.main{display:flex;gap:26px;font-weight:600;font-size:15px}
nav.main a{color:var(--muted);transition:color .15s}
nav.main a:hover,nav.main a.active{color:var(--pitch)}
.live-dot{margin-left:auto;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);font-weight:600}
.live-dot i{width:8px;height:8px;border-radius:50%;background:var(--signal);animation:pulse 1.6s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.25}}

/* ---------- лента-табло ---------- */
.ticker{background:var(--pitch);color:#EAF6EF;overflow:hidden;position:relative}
.ticker .inner{
  display:flex;gap:48px;white-space:nowrap;padding:8px 0;
  font-size:13px;font-weight:600;animation:marquee 40s linear infinite;width:max-content;
}
@media (prefers-reduced-motion: reduce){
  .ticker .inner{animation:none;flex-wrap:wrap;white-space:normal;width:auto;padding:8px 20px}
}
.ticker .inner span::before{content:"●";color:#8CE0B0;margin-right:10px;font-size:9px}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ---------- секции ---------- */
section{padding:56px 0}
.sec-head{display:flex;align-items:baseline;gap:16px;margin-bottom:28px}
.sec-head h2{font-family:'Unbounded',sans-serif;font-weight:700;font-size:clamp(20px,3vw,30px)}
.sec-head .upd{font-family:'JetBrains Mono',monospace;font-size:12px;color:var(--muted);margin-left:auto}

/* ---------- новости с картинками ---------- */
.news-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:20px}
.news-card{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .15s;
}
.news-card:hover{box-shadow:0 6px 24px rgba(16,29,23,.08)}
.news-card .pic{
  aspect-ratio:16/9;background:linear-gradient(135deg,#0C2318,#0B7A44);
  position:relative;overflow:hidden;
}
.news-card .pic img{width:100%;height:100%;object-fit:cover}
.news-card .pic .ph{ /* заглушка, если картинки нет */
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-family:'Unbounded',sans-serif;font-weight:900;font-size:34px;color:rgba(255,255,255,.16);
  letter-spacing:.05em;
}
.news-card .body{padding:20px 22px;display:flex;flex-direction:column;gap:8px;flex:1}
.news-card .tag{
  font-family:'JetBrains Mono',monospace;font-size:11px;color:var(--pitch);
  font-weight:700;text-transform:uppercase;
}
.news-card h3{font-size:18px;font-weight:800;line-height:1.3}
.news-card.lead h3{font-size:25px}
.news-card p{color:var(--muted);font-size:14.5px}
.news-card time{font-size:12px;color:#93A29A;margin-top:auto;padding-top:8px}
.news-side{display:flex;flex-direction:column;gap:14px}
.news-side .news-card{flex-direction:row;align-items:stretch}
.news-side .news-card .pic{width:132px;min-width:132px;aspect-ratio:auto}
.news-side .news-card .pic .ph{font-size:16px}
.news-side .news-card .body{padding:14px 16px}
.news-side .news-card h3{font-size:15px}
.news-side .news-card p{display:none}

/* ---------- прогнозы ---------- */
#predictions{background:#EDF2EF;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.pred-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.pred-card{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:22px;display:flex;flex-direction:column;gap:12px;
}
.pred-card .league{font-family:'JetBrains Mono',monospace;font-size:11px;color:var(--muted);text-transform:uppercase}
.pred-card .match{font-weight:800;font-size:17px;line-height:1.35}
.pred-card .tip{font-size:14px;color:var(--muted)}
.pred-card .odds-row{margin-top:auto;display:flex;align-items:center;gap:10px}
.chip{
  font-family:'JetBrains Mono',monospace;font-weight:700;
  background:var(--night);color:#8CE0B0;border-radius:8px;padding:6px 12px;font-size:14px;
}
.chip.tip-chip{background:var(--signal);color:#fff}

/* ---------- рекламный баннер (страница rating) ---------- */
.ad-hero{
  background:linear-gradient(160deg,#0C2318 0%,#0B4A2C 55%,#0B7A44 100%);
  color:#fff;position:relative;overflow:hidden;
}
.ad-hero::after{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(circle at 50% 120%, rgba(255,255,255,.10) 0 180px, transparent 181px),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size:auto, 100% 72px;
  pointer-events:none;
}
.ad-hero .wrap{
  position:relative;z-index:1;display:flex;flex-direction:column;
  justify-content:center;padding-top:48px;padding-bottom:48px;min-height:400px;
}
.ad-mark{
  display:flex;align-items:center;gap:10px;font-size:11px;color:#9FC8B1;
  margin-bottom:18px;font-family:'JetBrains Mono',monospace;
}
.ad-mark b{background:rgba(255,255,255,.14);color:#fff;padding:2px 8px;border-radius:5px;font-weight:700}
.ad-hero h1{
  font-family:'Unbounded',sans-serif;font-weight:900;
  font-size:clamp(28px,5vw,52px);line-height:1.08;max-width:640px;
}
.ad-hero h1 em{color:#FF7A45;font-style:normal}
.ad-hero p.sub{margin-top:14px;font-size:17px;color:#CFE6D8;max-width:520px}
.ad-cta{
  margin-top:28px;display:inline-flex;align-items:center;gap:12px;
  background:var(--signal);color:#fff;font-weight:800;font-size:17px;
  padding:16px 34px;border-radius:12px;width:max-content;
  box-shadow:0 8px 30px rgba(255,90,30,.35);transition:transform .15s;
}
.ad-cta:hover{transform:translateY(-2px)}
.ad-risk{margin-top:26px;font-size:11px;color:#87A996;max-width:640px;line-height:1.5}

/* ---------- рейтинг букмекеров ---------- */
.bk-table{display:flex;flex-direction:column;gap:12px}
.bk-row{
  display:grid;grid-template-columns:44px 1.1fr 1.4fr .7fr auto;
  align-items:center;gap:18px;background:var(--card);
  border:1px solid var(--line);border-radius:var(--radius);padding:18px 22px;
}
.bk-row .pos{font-family:'Unbounded',sans-serif;font-weight:900;font-size:20px;color:#C6D2CB}
.bk-row:first-child .pos{color:var(--signal)}
.bk-row .name{font-weight:800;font-size:17px}
.bk-row .name small{display:block;font-weight:500;font-size:12px;color:var(--muted)}
.bk-row .bonus{font-size:14px;color:var(--muted)}
.bk-row .bonus b{color:var(--pitch);font-size:16px}
.bk-row .score{font-family:'JetBrains Mono',monospace;font-weight:700;color:var(--pitch);font-size:18px}
.bk-btn{
  background:var(--pitch);color:#fff;font-weight:700;font-size:14px;
  padding:11px 22px;border-radius:10px;white-space:nowrap;transition:background .15s;
}
.bk-btn:hover{background:var(--pitch-dark)}
.bk-ad-note{margin-top:14px;font-size:11px;color:#93A29A;line-height:1.5}

/* баннер-ссылка на рейтинг с главной (не реклама, внутренняя навигация) */
.to-rating{
  display:flex;align-items:center;gap:16px;justify-content:space-between;
  background:var(--night);color:#fff;border-radius:var(--radius);
  padding:24px 28px;margin-top:8px;
}
.to-rating .t{font-family:'Unbounded',sans-serif;font-weight:700;font-size:18px}
.to-rating .t small{display:block;font-family:'Manrope';font-weight:500;font-size:13px;color:#9FC8B1;margin-top:4px}
.to-rating .bk-btn{background:var(--signal)}

/* ---------- футер ---------- */
footer{background:var(--night);color:#9FC8B1;padding:48px 0 40px;font-size:13px;line-height:1.7}
footer .logo{color:#fff;margin-bottom:18px}
footer .cols{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:36px}
footer h4{color:#fff;font-size:13px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px}
footer .age-big{
  font-family:'JetBrains Mono',monospace;font-weight:700;
  border:1.5px solid #3B5A49;color:#fff;border-radius:8px;
  padding:4px 10px;display:inline-block;margin-top:14px;
}

/* ---------- мобильная версия ---------- */
@media (max-width:820px){
  nav.main a span{display:none}
  nav.main{gap:18px;font-size:14px}
  .live-dot{display:none}
  header.site .wrap{height:56px;gap:18px}

  .news-grid{grid-template-columns:1fr}
  .news-card.lead h3{font-size:20px}
  .pred-grid{grid-template-columns:1fr}

  /* страница rating: баннер занимает весь первый экран телефона */
  body.rating-page .ad-hero .wrap{
    min-height:calc(100svh - 34px - 56px);
    padding-top:36px;padding-bottom:36px;
  }
  .ad-cta{width:100%;justify-content:center;padding:18px 20px;font-size:18px}

  .bk-row{
    grid-template-columns:32px 1fr auto;
    grid-template-areas:
      "pos name score"
      "pos bonus btn";
    row-gap:10px;
  }
  .bk-row .pos{grid-area:pos}
  .bk-row .name{grid-area:name}
  .bk-row .bonus{grid-area:bonus}
  .bk-row .score{grid-area:score}
  .bk-row .bk-btn{grid-area:btn}

  .to-rating{flex-direction:column;align-items:flex-start}
  .to-rating .bk-btn{width:100%;text-align:center}
  footer .cols{grid-template-columns:1fr}
}
