/* Dota Patch 8.00a — сторінка змін. Одна темна тема (як офіційна сторінка патчів), акцент 8.00 — червоний, 8.00a — золото. */
:root {
  --bg: #07080b;
  --bg2: #0c0f14;
  --panel: #10141b;
  --panel2: #151a23;
  --line: #222934;
  --fg: #e9e6df;
  --muted: #8d949f;
  --dim: #5c6470;
  --red: #e8432a;
  --red2: #ff6a3d;
  --gold: #f2b544;
  --gold2: #ffd98a;
  --good: #8fd36a;
  --bad: #e06a5a;
  --serif: "Cormorant SC", Georgia, "Times New Roman", serif;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --pad: max(16px, env(safe-area-inset-left, 0px));
  --padr: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 118px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--padr); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── полоса прогресу і шапка ─────────────────────────────── */
.progress { position: fixed; inset: 0 auto auto 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--red), var(--gold)); z-index: 60; box-shadow: 0 0 12px rgba(242, 181, 68, .6); }
.top { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent; }
.top.solid { background: rgba(7, 8, 11, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 12px var(--padr) 12px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { font: 900 13px/1 var(--sans); background: var(--red); color: #fff; padding: 6px 7px; border-radius: 3px; letter-spacing: .02em; }
.brand-mark b { color: #ffe3a3; }
.brand-name { font: 700 17px/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; font-variant-numeric: lining-nums; }
.brand-name i { font: italic 700 19px/1 var(--display); text-transform: none; letter-spacing: 0; color: var(--gold); margin-left: 1px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.lang button { background: transparent; color: var(--muted); border: 0; font: 700 12px/1 var(--sans); padding: 8px 11px; cursor: pointer; letter-spacing: .06em; }
.lang button[aria-pressed="true"] { background: var(--red); color: #fff; }

/* ── перший екран ─────────────────────────────────────────── */
.hero-top { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 50% 110%, #2a0f08 0%, transparent 55%), radial-gradient(70% 60% at 80% 10%, #1b1330 0%, transparent 60%), var(--bg); }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-glow { position: absolute; left: 50%; top: 46%; width: 900px; height: 900px; max-width: 160vw; transform: translate(-50%, -50%); z-index: -1;
  background: radial-gradient(circle, rgba(232, 67, 42, .22) 0%, rgba(242, 181, 68, .07) 35%, transparent 65%); filter: blur(10px); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.12); opacity: .75; } }
.hero-in { padding-block: 120px 90px; text-align: center; will-change: transform, opacity; }
.kicker { font: 700 13px/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); opacity: 0; animation: up .9s .15s cubic-bezier(.2, .8, .2, 1) forwards; }
.title { margin: 14px 0 6px; font: 700 clamp(96px, 22vw, 260px)/.86 var(--display); font-variant-numeric: lining-nums; letter-spacing: -.01em; display: inline-flex; align-items: baseline; }
.t-num { display: inline-flex; }
.t-num .ch { display: inline-block; opacity: 0; transform: translateY(.35em) scale(.96); filter: blur(10px);
  animation: ch 1.1s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.25s + var(--i) * .09s);
  background: linear-gradient(100deg, #f6efe4 0%, #f6efe4 40%, #ffffff 48%, #ffcf9a 52%, #f6efe4 60%, #f6efe4 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.title.shine .t-num .ch { animation: ch 1.1s cubic-bezier(.2, .8, .2, 1) forwards, shine 5.5s 1.6s ease-in-out infinite; animation-delay: calc(.25s + var(--i) * .09s), calc(1.8s + var(--i) * .06s); }
.t-a { color: var(--gold); font-style: italic; margin-left: .02em; opacity: 0; transform: translateY(-.5em) rotate(-8deg) scale(1.6);
  animation: drop .9s .85s cubic-bezier(.3, 1.6, .5, 1) forwards, glow 3.2s 2s ease-in-out infinite;
  text-shadow: 0 0 24px rgba(242, 181, 68, .55), 0 0 70px rgba(232, 67, 42, .45); }
@keyframes ch { to { opacity: 1; transform: none; filter: none; } }
@keyframes shine { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }
@keyframes drop { to { opacity: 1; transform: none; } }
@keyframes glow { 50% { text-shadow: 0 0 36px rgba(255, 217, 138, .9), 0 0 110px rgba(232, 67, 42, .7); } }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.lead { max-width: 640px; margin: 18px auto 0; font-size: clamp(16px, 2.1vw, 19px); color: #cfcac1; text-wrap: balance; opacity: 0; animation: up .9s 1.1s cubic-bezier(.2, .8, .2, 1) forwards; }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin-top: 30px; opacity: 0; animation: up .9s 1.25s cubic-bezier(.2, .8, .2, 1) forwards; }
.stat { min-width: 90px; }
.stat b { display: block; font: 700 clamp(30px, 5vw, 44px)/1 var(--display); font-variant-numeric: lining-nums; color: #fff; font-variant-numeric: tabular-nums; }
.stat.gold b { color: var(--gold); }
.stat span { font: 600 11px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; opacity: 0; animation: up .9s 1.4s cubic-bezier(.2, .8, .2, 1) forwards; }
.btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 3px; text-decoration: none;
  font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; overflow: hidden; transition: transform .2s, box-shadow .3s, border-color .3s; }
.btn.primary { background: linear-gradient(180deg, #f0502f, #b8301a); color: #fff; box-shadow: 0 10px 34px -10px rgba(232, 67, 42, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); animation: sweep 3.8s 2.4s ease-in-out infinite; }
@keyframes sweep { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn.ghost { border: 1px solid rgba(242, 181, 68, .45); color: var(--gold2); background: rgba(242, 181, 68, .04); }
.btn:hover { transform: translateY(-2px); }
.btn.ghost:hover { border-color: var(--gold); box-shadow: 0 0 30px -8px rgba(242, 181, 68, .6); }
.note { max-width: 640px; margin: 30px auto 0; font-size: 12px; color: var(--dim); opacity: 0; animation: up .9s 1.6s forwards; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 24px; height: 38px; margin-left: -12px; border: 1px solid rgba(233, 230, 223, .3); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ── «Головне в 8.00a» ────────────────────────────────────── */
.news { position: relative; padding-block: 70px 40px; background: linear-gradient(180deg, transparent, var(--bg2) 30%, var(--bg2)); }
.news-h { margin: 0 0 26px; font: 700 clamp(28px, 4.4vw, 42px)/1.1 var(--serif); letter-spacing: .06em; text-align: center; text-wrap: balance; }
.news-h em { font: italic 700 1.12em/1 var(--display); font-variant-numeric: lining-nums; letter-spacing: 0; color: var(--gold); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { --mx: 50%; --my: 50%; position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px; min-width: 0; text-decoration: none; border-radius: 6px;
  background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); overflow: hidden; transform-style: preserve-3d;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s; }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(242, 181, 68, .16), transparent 60%); }
.card:hover { border-color: rgba(242, 181, 68, .5); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(242, 181, 68, .15); }
.card:hover::before { opacity: 1; }
.card .ico { width: 56px; height: 56px; flex: none; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 6px 18px -6px #000; }
.card .big { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 4px; font: 700 22px/1 var(--display); font-variant-numeric: lining-nums;
  color: var(--gold); background: radial-gradient(circle at 50% 30%, #3a2a10, #15110a); box-shadow: inset 0 0 0 1px rgba(242, 181, 68, .35); }
.card-k { font: 700 10px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.card-t { margin: 3px 0 4px; font: 700 17px/1.2 var(--sans); }
.card-d { font-size: 13px; color: var(--muted); }
.card > div { min-width: 0; }

/* ── навігація розділами ─────────────────────────────────── */
.jump { position: sticky; top: calc(54px + env(safe-area-inset-top, 0px)); z-index: 40; background: rgba(7, 8, 11, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid var(--line); }
.jump-in { display: flex; align-items: center; gap: 4px; min-height: 52px; }
.links { display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.links::-webkit-scrollbar { display: none; }
.jump a { flex: none; position: relative; padding: 16px 12px; font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s; }
.jump a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .3s; }
.jump a:hover, .jump a.on { color: #fff; }
.jump a.on::after { transform: scaleX(1); }
.tools { margin-left: auto; display: flex; gap: 8px; align-items: center; flex: none; padding-left: 8px; }
.only { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 3px; border: 1px solid rgba(242, 181, 68, .35); background: transparent;
  color: var(--gold2); font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.only i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.only[aria-pressed="true"] { background: var(--gold); color: #1a1205; }
.only[aria-pressed="true"] i { background: #1a1205; box-shadow: none; }
.tools input { width: 190px; max-width: 42vw; padding: 9px 11px; border-radius: 3px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font: 13px var(--sans); }
.tools input:focus { outline: none; border-color: var(--gold); }

/* ── розділи ─────────────────────────────────────────────── */
main { padding-block: 34px 70px; }
.loading, .empty { text-align: center; color: var(--muted); padding: 60px 0; }
.sec { margin-bottom: 56px; }
.sec-bar { position: relative; margin: 0 0 18px; padding: 16px 22px; font: 700 clamp(22px, 3.2vw, 30px)/1.1 var(--serif); letter-spacing: .12em; text-transform: uppercase;
  background: linear-gradient(90deg, #7a2413 0%, #3a1610 40%, transparent 100%); border-top: 1px solid rgba(232, 67, 42, .6); overflow: hidden; }
.sec-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 200, 150, .18) 45%, transparent 60%); transform: translateX(-100%); }
.sec-bar.in::after { animation: barsweep 1.4s .1s ease-out; }
@keyframes barsweep { to { transform: translateX(100%); } }
.sub { margin-bottom: 14px; background: linear-gradient(180deg, rgba(21, 26, 35, .9), rgba(16, 20, 27, .6)); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.sub.a { border-color: rgba(242, 181, 68, .45); box-shadow: 0 0 0 1px rgba(242, 181, 68, .08), 0 0 40px -20px rgba(242, 181, 68, .6); }
.sub-bar { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 18px; font: 900 13px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; background: rgba(255, 255, 255, .03); }
.sub-body { padding: 6px 18px 12px; }

ul.notes { margin: 6px 0; padding-left: 18px; }
ul.notes li { margin: 5px 0; color: #d9d5cd; }
ul.notes li::marker { color: var(--dim); }
.lbl { color: #bcb7ae; }
.old { color: var(--muted); }
.arrow { color: var(--dim); }
.new { color: #fff; font-weight: 700; }
li.a8 { position: relative; list-style: none; margin-left: -18px; padding: 5px 10px 5px 12px; border-left: 2px solid var(--gold); border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, rgba(242, 181, 68, .12), rgba(242, 181, 68, 0) 85%); }
li.a8 .new { color: var(--gold2); }
.v8a { display: inline-block; margin-right: 8px; padding: 2px 6px; border-radius: 2px; font: 900 10px/1.3 var(--sans); letter-spacing: .08em; vertical-align: 1px;
  color: #1a1205; background: linear-gradient(180deg, var(--gold2), var(--gold)); }
.chip, .tag { display: inline-block; margin: 0 6px 0 0; padding: 2px 7px; border-radius: 2px; font: 800 10px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; vertical-align: 1px; }
.chip.new, .tag.new { background: rgba(143, 211, 106, .14); color: var(--good); }
.chip.rm, .tag.rm { background: rgba(224, 106, 90, .14); color: var(--bad); }
.tag.ret { background: rgba(110, 170, 255, .14); color: #8ec0ff; }
.tag.tier { background: rgba(255, 255, 255, .06); color: var(--muted); }
.tag.a { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1205; }
.upi { width: 18px !important; height: 18px !important; margin-right: 6px; vertical-align: -4px; border-radius: 3px; }

/* іконки з атласів */
.ico { display: inline-block; background-repeat: no-repeat; }
.glyph { display: inline-grid; place-items: center; color: var(--gold); font-size: 18px; }

.item { display: flex; gap: 16px; padding: 14px 16px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 4px; background: rgba(16, 20, 27, .7); }
.item.a { border-color: rgba(242, 181, 68, .45); }
.item > .ico, .item > .glyph { width: 66px; height: 48px; flex: none; border-radius: 3px; }
.item > div { min-width: 0; }
.item-name { margin: 2px 0 2px; font: 700 16px/1.3 var(--sans); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* сітка героїв */
.hero-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; margin-bottom: 26px; }
.hero-grid a { position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 3px; overflow: hidden; outline: 1px solid rgba(255, 255, 255, .06);
  transition: transform .2s, outline-color .2s, filter .2s; filter: saturate(.75) brightness(.85); }
.hero-grid a .ico { width: 100%; height: 100%; transition: transform .35s; }
.hero-grid a:hover { transform: translateY(-2px) scale(1.06); z-index: 2; filter: none; outline-color: var(--red); }
.hero-grid a:hover .ico { transform: scale(1.08); }
.hero-grid a.a { filter: none; outline: 2px solid var(--gold); box-shadow: 0 0 16px -4px rgba(242, 181, 68, .8); }
.hero-grid a.a::after { content: "a"; position: absolute; right: 3px; top: 1px; font: 700 italic 15px/1 var(--serif); color: var(--gold2); text-shadow: 0 0 6px #000, 0 0 2px #000; }

.hero { margin-bottom: 16px; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: rgba(13, 16, 22, .8); }
.hero.a { border-color: rgba(242, 181, 68, .4); }
.hero-head { position: relative; display: flex; align-items: center; gap: 16px; padding: 12px 16px; overflow: hidden;
  background: linear-gradient(90deg, rgba(232, 67, 42, .16), transparent 60%); border-bottom: 1px solid var(--line); }
.hero.a .hero-head { background: linear-gradient(90deg, rgba(242, 181, 68, .2), rgba(232, 67, 42, .08) 45%, transparent 75%); }
.hero-head .ico { width: 104px; height: 58px; flex: none; border-radius: 3px; box-shadow: 0 4px 16px -4px #000; }
.hero-name { margin: 0; font: 700 clamp(20px, 3vw, 26px)/1.1 var(--serif); letter-spacing: .1em; text-transform: uppercase; }
.hero-head .tag.a { margin-left: auto; }
.hero-gen { padding: 6px 18px 0; }
.ability { display: flex; gap: 14px; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .04); }
.ability:first-of-type { border-top: 0; }
.ability > .ico, .ability > .glyph { width: 44px; height: 44px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.ability.gone > .ico { filter: grayscale(1) brightness(.6); }
.ability.a > .ico { box-shadow: 0 0 0 1px var(--gold), 0 0 14px -2px rgba(242, 181, 68, .7); }
.ab-body { min-width: 0; flex: 1; }
.ab-name { font: 700 15px/1.3 var(--sans); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* поява при прокрутці */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }

.foot { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--dim); font-size: 12px; }
.foot p { margin: 4px 0; }
.up { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(242, 181, 68, .5); background: rgba(16, 20, 27, .9); color: var(--gold); font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; transform: translateY(10px); z-index: 45; }
.up.show { opacity: 1; pointer-events: auto; transform: none; }

@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  html { scroll-padding-top: 150px; }
  .brand-name { display: none; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .hero-in { padding-block: 100px 80px; }
  .stats { gap: 10px 22px; }
  .hero-head .ico { width: 80px; height: 45px; }
  .item > .ico, .item > .glyph { width: 52px; height: 38px; }
  .jump-in { flex-direction: column-reverse; align-items: stretch; gap: 0; }
  .tools { margin: 0; padding: 8px 0 0; }
  .tools input { flex: 1; width: auto; max-width: none; }
  .jump a { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}
