/* Главная лиги, вариант A «Стык флагов»: флаги главного боя сходятся в центре по рваному золотому краю,
   бойцы лицом друг к другу, золотая X на стыке. Ниже — кард вечера, билеты (только ссылка), прошедшие турниры,
   чемпионы, рейтинг, бойцы, новости и анкета: плитки и карточки общие с остальными страницами
   (events.css, pages.css), здесь — только своё. */

/* шапка лежит поверх первого экрана */
.home-a .nav { position: fixed; left: 0; right: 0; top: 0; }

.ha { position: relative; height: max(760px, min(100svh, 980px)); overflow: hidden; background: var(--blk); isolation: isolate; }
.ha .stage { position: absolute; inset: 0; }
.ha .info { display: contents; }
.ha .half { position: absolute; inset: 0; overflow: hidden; }
.ha .half.none { background: radial-gradient(60% 70% at 50% 42%, #1b1b1f 0, #0c0c0e 60%, #050506 100%); }
.ha .half .fv { position: absolute; top: -16%; height: 132%; width: 50%; object-fit: cover; transform: scale(1.32); -webkit-mask-image: none; mask-image: none; }
.ha .half.l .fv { left: 0; transform-origin: 70% 52%; }
.ha .half.r .fv { left: 50%; transform-origin: 30% 52%; }
.ha.same .half.r .fv { transform: scale(1.32) scaleX(-1); transform-origin: 50% 52%; }
.ha .half::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.ha .half.l::after { background: linear-gradient(90deg, rgba(5,5,6,.82) 0, rgba(5,5,6,.35) 26%, rgba(5,5,6,.12) 50%); }
.ha .half.r::after { background: linear-gradient(270deg, rgba(5,5,6,.82) 0, rgba(5,5,6,.35) 26%, rgba(5,5,6,.12) 50%); }
.ha .shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(5,5,6,.7) 0, rgba(5,5,6,0) 18%, rgba(5,5,6,0) 52%, rgba(26,26,28,.86) 80%, var(--bg) 100%); }
.ha .seam { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 84%); mask-image: linear-gradient(180deg, #000 70%, transparent 84%); }
.ha .seam path { fill: none; stroke: var(--gold); stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(231,183,64,.7)); }
.ha .figs { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.ha .fig { position: absolute; bottom: 168px; height: 66%; width: auto; max-width: none; filter: drop-shadow(0 0 28px rgba(0,0,0,.6)) brightness(1.06); }
.ha .fig.fa { right: 50.6%; } .ha .fig.fb { left: 50.6%; }
.ha .xg { position: absolute; z-index: 5; left: 50%; top: 23%; width: clamp(80px, 8.4vw, 124px); height: auto; transform: translateX(-50%); filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.ha .who { position: absolute; z-index: 6; bottom: 168px; max-width: 34%; min-width: 0; }
.ha .who.a { left: var(--g); } .ha .who.b { right: var(--g); text-align: right; }
.ha .who .fn { font: 500 30px/1 var(--d); text-transform: uppercase; letter-spacing: .02em; color: var(--lt); }
.ha .who .ln { display: block; font: 700 clamp(64px, 7.6vw, 124px)/.86 var(--d); text-transform: uppercase; letter-spacing: -.005em; white-space: nowrap; margin: 6px 0 14px; overflow: hidden; }
.ha .who .ln a:hover { color: var(--gold); }
.ha .who .m { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 700 13px/1 var(--t); text-transform: uppercase; letter-spacing: .04em; color: var(--lt); }
.ha .who .m .mf { margin: 0; }
.ha .who .m .st { color: var(--gold); }
.ha .who.b .m { flex-direction: row-reverse; }
.ha .vs { display: none; }
.ha .bar { position: absolute; z-index: 7; left: var(--g); right: var(--g); bottom: 34px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 40px; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,.18); }
.ha .hev { font: 700 13px/1.5 var(--t); text-transform: uppercase; letter-spacing: .04em; color: var(--lt); min-width: 0; }
.ha .hev b { display: block; font: 600 34px/1 var(--d); color: #fff; letter-spacing: .01em; margin-bottom: 4px; }
.ha .hev .t { color: var(--gold); }
.ha .go { display: flex; gap: 12px; }
.ha .hout { font: 600 34px/1 var(--d); text-transform: uppercase; color: var(--gold); white-space: nowrap; }

/* отсчёт */
.ha .cd { display: flex; align-items: flex-start; gap: 4px; font-variant-numeric: tabular-nums; }
.ha .cd span { display: flex; flex-direction: column; align-items: center; min-width: 1.15em; }
.ha .cd b { font: 500 54px/.9 var(--d); }
.ha .cd i { font: 700 10px/1 var(--t); font-style: normal; color: var(--grey); text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.ha .cd em { font: normal 44px/.9 var(--d); color: var(--line2); }
.ha .cd .today { font: 600 40px/1 var(--d); text-transform: uppercase; color: var(--gold); }

/* без главного боя: название турнира или «Скоро объявим» */
.ha .solo-t { position: absolute; z-index: 6; left: var(--g); right: var(--g); top: 50%; transform: translateY(-30%); text-align: center; }
.ha .solo-t .k { font: 700 13px/1.4 var(--t); text-transform: uppercase; letter-spacing: .05em; color: var(--gold); }
.ha .solo-t h1 { font: 700 clamp(72px, 9vw, 150px)/.86 var(--d); text-transform: uppercase; margin: 10px 0 12px; }
.ha .solo-t p { color: var(--lt); font-size: 16px; }
.ha.solo .xg { top: 18%; }
.ha.solo .seam { opacity: .5; }
.js-anim .ha.solo .seam { opacity: 0; }
.ha.solo.go .seam { opacity: .5 !important; }

/* появление: флаги съезжаются и бьются, X вспыхивает. Без скрипта и при «меньше движения» — сразу на месте */
.js-anim .ha .half.l { transform: translateX(-52%); } .js-anim .ha .half.r { transform: translateX(52%); }
.js-anim .ha .seam, .js-anim .ha .xg, .js-anim .ha .fig, .js-anim .ha .who, .js-anim .ha .bar, .js-anim .ha .solo-t { opacity: 0; }
.js-anim .ha .fig.fa { transform: translateX(-40px); } .js-anim .ha .fig.fb { transform: translateX(40px); }
.js-anim .ha .fig.fb.flip { transform: scaleX(-1) translateX(-40px); }
.ha.go .half { transition: transform .62s cubic-bezier(.6, 0, 1, .7); transform: none !important; }
.ha.go .seam { transition: opacity .2s .58s; opacity: 1 !important; }
.ha.go .fig { transition: opacity .7s .7s var(--fade), transform 1.1s .62s var(--shift); opacity: 1 !important; }
.ha.go .fig.fa, .ha.go .fig.fb { transform: none; } .ha.go .fig.fb.flip { transform: scaleX(-1); }
.ha.go .who, .ha.go .solo-t { transition: opacity .6s 1s var(--fade); opacity: 1 !important; }
.ha.go .bar { transition: opacity .6s 1.2s var(--fade); opacity: 1 !important; }
.ha.go .xg { animation: ha-xin .9s .6s both var(--shift); }
@keyframes ha-xin { 0% { opacity: 0; transform: translateX(-50%) scale(2.6) rotate(-8deg); filter: brightness(2.2) drop-shadow(0 0 40px rgba(255,214,130,.9)); } 30% { opacity: 1; } 100% { opacity: 1; transform: translateX(-50%) scale(1); filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); } }
.ha.hitk { animation: ha-shake .34s .6s linear; }
@keyframes ha-shake { 0%, 100% { transform: none; } 20% { transform: translate(-6px, 4px); } 45% { transform: translate(5px, -3px); } 70% { transform: translate(-2px, 1px); } }

/* заголовок раздела с подписью справа */
.sech .sub { color: var(--grey); font-size: 15px; }
.sech .sub + .more { margin-left: 24px; }
.sech .sub:first-of-type { margin-left: auto; }

/* кард вечера: карточки боёв на флагах — те же, что на странице турнира */
.home-a .bouts { gap: 14px; }
.home-a #card, .home-a #tickets, .home-a #results, .home-a #champions, .home-a #rating, .home-a #fighters, .home-a #news { scroll-margin-top: 84px; }
.hmore { display: flex; justify-content: center; margin-top: 18px; }
.hmore .btn { gap: 14px; min-width: 320px; }
.hmore .btn i { font-style: normal; color: var(--grey); transition: color .37s var(--fade); }
.hmore .btn:hover i { color: #050506; }

/* билеты: сайт их не продаёт — полоса с турниром и кнопкой на страницу продажи (или «Скоро в продаже») */
.tix { position: relative; display: flex; align-items: center; gap: 34px; margin-top: 72px; min-height: 200px; padding: 36px 64px 34px 40px; background: var(--blk); border-top: 2px solid var(--gold); overflow: hidden; isolation: isolate; }
.tix-f { position: absolute; inset: 0; z-index: -2; -webkit-clip-path: var(--clip); clip-path: var(--clip); background: radial-gradient(90% 150% at 86% 40%, #e80000 0, #b00000 48%, #5c0000 100%); }
.tix-f img { position: absolute; right: 2%; top: 50%; height: 170%; width: auto; max-width: none; transform: translateY(-50%); opacity: .2; filter: brightness(0); }
.tix.soon .tix-f { background: radial-gradient(90% 150% at 86% 40%, #2c2c31 0, #1a1a1d 55%, #0c0c0e 100%); }
.tix.soon .tix-f img { filter: none; opacity: .12; }
.tix-seam { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.tix-seam path { fill: none; stroke: var(--gold); stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(231,183,64,.7)); }
.tix-seam.m { display: none; }
.tix-t { min-width: 0; max-width: 56%; }
.tix-t h2 { font: 600 84px/.84 var(--d); text-transform: uppercase; margin: 14px 0 12px; }
.tix-t p { font: 700 13px/1.5 var(--t); text-transform: uppercase; letter-spacing: .04em; color: var(--lt); }
.tix-b { margin-left: auto; flex: none; height: 60px; padding: 0 56px; font-size: 15px; background: #fff; color: #050506; }
.tix-b::before { background: #050506; }
.tix-b:hover { color: #fff; }
.tix-b.off { background: none; border: 1px solid var(--line2); color: var(--lt); cursor: default; }
.tix-b.off::before { display: none; } .tix-b.off:hover { color: var(--lt); }

/* рейтинг коротко: вес, чемпион гран-при и первые места */
.hrg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hrg.n1 { grid-template-columns: minmax(0, 1fr); } .hrg.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hrg.n3, .hrg.n5, .hrg.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hrk { position: relative; min-width: 0; padding: 0 22px 10px; background: var(--blk); border-top: 3px solid var(--red); overflow: hidden; isolation: isolate; transition: transform 1.08s var(--shift), opacity .68s var(--fade); }
.hrk.ttl { border-top-color: var(--gold); }
.hrk-bg { position: absolute; left: 0; right: 0; top: 0; height: 132px; z-index: -1; overflow: hidden; }
.hrk-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); opacity: .55; -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 96%); mask-image: linear-gradient(180deg, #000 20%, transparent 96%); transition: opacity .5s var(--fade); }
.hrk:hover .hrk-bg img { opacity: .9; }
.hrk-w { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; height: 124px; padding-bottom: 14px; color: #fff; }
.hrk-w b { font: 600 56px/.84 var(--d); text-transform: uppercase; text-shadow: 0 2px 18px rgba(0,0,0,.7); transition: color .25s; min-width: 0; }
.hrk-w svg { width: 16px; height: 10px; flex: none; margin-bottom: 8px; transition: transform .52s var(--shift); }
.hrk-w:hover b { color: var(--gold); } .hrk-w:hover svg { transform: translateX(6px); }
.hrk-r { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 54px; border-top: 1px solid var(--line); }
.hrk-r .p { font: 600 30px/1 var(--d); color: #77777e; font-variant-numeric: tabular-nums; }
.hrk-r .crown { width: 22px; height: 17px; color: var(--gold); }
.hrk-r .n { font: 600 31px/1 var(--d); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 3px; }
.hrk-r .rc { font: 600 13px/1 var(--t); color: var(--lt); font-variant-numeric: tabular-nums; }
.hrk-r .mf { margin: 0; }
.hrk-r.gp { border-top-color: rgba(231,183,64,.45); }

/* новости и видео */
.hng { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.hng.n1 { grid-template-columns: minmax(0, 1fr); } .hng.n2 { grid-template-columns: 2fr 1fr; }
.hnw { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; min-height: 430px; background: var(--blk); border-top: 3px solid var(--red); overflow: hidden; isolation: isolate; transition: transform .52s var(--shift), opacity .68s var(--fade); }
.hnw.big { border-top-color: var(--gold); }
.hnw-im { position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 90% at 70% 30%, #26090a 0, #0c0c0e 70%); }
.hnw-im > img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .5s var(--fade), scale .9s var(--shift); }
.hnw-im.none > img { position: absolute; right: -4%; top: 6%; width: auto; height: 62%; object-fit: contain; opacity: .2; }
.hnw-im::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #050506 6%, rgba(5,5,6,.86) 30%, rgba(5,5,6,.1) 68%, rgba(5,5,6,.35) 100%); }
.hnw-pl { position: absolute; z-index: 1; left: 22px; top: 22px; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; background: var(--red); color: #fff; }
.hnw-pl svg { width: 18px; height: 20px; margin-left: 3px; }
.hnw-t { padding: 0 22px 22px; min-width: 0; }
.hnw-t small { display: flex; align-items: center; gap: 10px; font: 700 12px/1 var(--t); text-transform: uppercase; letter-spacing: .06em; color: var(--lt); }
.hnw-t em { font-style: normal; color: #050506; background: var(--gold); padding: 4px 7px 3px; }
.hnw-t b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; font: 600 38px/.94 var(--d); text-transform: uppercase; margin-top: 12px; overflow-wrap: anywhere; transition: color .25s; }
.hnw.big .hnw-t b { font-size: 62px; line-height: .9; -webkit-line-clamp: 3; max-width: 16em; }
.hnw:hover { transform: translateY(-6px); } .hnw:hover .hnw-im > img { opacity: 1; scale: 1.04; } .hnw:hover .hnw-t b { color: var(--gold); }
.hnw-im.none > img, .hnw:hover .hnw-im.none > img { scale: none; opacity: .2; }

/* полоса «Билеты» внизу телефона */
.mbar { display: none; }

@media (max-width: 1100px) {
  .ha .who .ln { font-size: 64px; }
  .ha .bar { grid-template-columns: minmax(0, 1fr) auto; } .ha .go { grid-column: 1 / -1; }
  .ha .who { bottom: 230px; }
  .ha .fig { bottom: 230px; height: 58%; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .hrg, .hrg.n3, .hrg.n5, .hrg.n6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hng, .hng.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hng .hnw.big { grid-column: 1 / -1; }
  .tix { padding-right: 40px; } .tix-t h2 { font-size: 64px; } .tix-b { padding: 0 34px; }
  /* плитки в два-три столбца: без одинокой плитки в последнем ряду */
  .home-a .etg > :nth-child(n+3), .home-a .cpg > :nth-child(n+3), .home-a .rog > :nth-child(n+4) { display: none; }
}
@media (max-width: 760px) {
  .ha { height: auto; min-height: 0; background: var(--bg); }
  .ha .stage { position: relative; height: 430px; overflow: hidden; }
  .ha .info { display: block; position: relative; z-index: 6; padding: 0 16px 28px; margin-top: -22px; }
  .ha .half .fv { transform: scale(1.7); }
  .ha.same .half.r .fv { transform: scale(1.7) scaleX(-1); }
  .ha .shade { background: linear-gradient(180deg, rgba(5,5,6,.75) 0, rgba(5,5,6,0) 20%, rgba(5,5,6,0) 62%, var(--bg) 100%); }
  .ha .fig { bottom: 10px; height: 70%; } .ha .fig.fa { right: 49%; } .ha .fig.fb { left: 49%; }
  .ha .xg { top: 21%; width: 64px; }
  .ha .who { position: static; max-width: none; text-align: left; }
  .ha .who.b { position: static; max-width: none; text-align: right; }
  .ha .who .fn { display: none; }
  .ha .who .ln { font-size: 48px; margin: 0; }
  .ha .who .m { flex-direction: row; font-size: 11px; margin-top: 6px; }
  .ha .who.b .m { flex-direction: row-reverse; font-size: 11px; margin-top: 6px; }
  .ha .vs { display: block; text-align: center; font: 500 17px/1 var(--d); color: var(--gold); margin: 10px 0 4px; text-transform: uppercase; letter-spacing: .1em; }
  .ha .bar { position: static; display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 16px; padding-top: 14px; }
  .ha .hev b { font-size: 26px; } .ha .hev { font-size: 12px; }
  .ha .cd { justify-content: space-between; order: 3; } .ha .cd b { font-size: 40px; } .ha .cd em { font-size: 30px; }
  .ha .go { order: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; } .ha .go .btn { padding: 0 10px; }
  .ha .hout { font-size: 28px; white-space: normal; }
  .ha .solo-t { position: static; transform: none; text-align: left; }
  .ha .solo-t h1 { font-size: 64px; }
  .ha.solo .info { padding-top: 22px; }
  .ha.solo .xg { top: 24%; }
  .js-anim .ha .solo-t { opacity: 1; }
  .sech .sub { width: 100%; }
  .sech .sub:first-of-type { margin-left: 0; }
  .sech .sub + .more { margin-left: 0; }
  .home-a .bouts .fc:nth-child(n+4) { display: none; }
  .hmore .btn { width: 100%; min-width: 0; }
  .tix { flex-direction: column; align-items: stretch; gap: 0; min-height: 0; margin-top: 48px; padding: 22px 16px 18px; }
  .tix-f { -webkit-clip-path: var(--clip-m); clip-path: var(--clip-m); }
  .tix-f img { right: -6%; top: 82%; height: 70%; }
  .tix-seam { display: none; } .tix-seam.m { display: block; }
  .tix-t { max-width: none; padding-bottom: 54px; }
  .tix-t h2 { font-size: 56px; margin: 12px 0 10px; }
  .tix-b { margin: 0; width: 100%; height: 54px; padding: 0 12px; }
  .hrg, .hrg.n2, .hrg.n3, .hrg.n5, .hrg.n6 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hrk { padding: 0 16px 8px; } .hrk-w { height: 96px; } .hrk-w b { font-size: 46px; } .hrk-bg { height: 104px; }
  .hng, .hng.n2 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hnw { min-height: 260px; } .hnw.big { min-height: 340px; }
  .hnw-t { padding: 0 16px 18px; } .hnw-t b { font-size: 34px; } .hnw.big .hnw-t b { font-size: 44px; }
  .hnw-pl { left: 16px; top: 16px; width: 46px; height: 46px; }
  .home-a .cpc { height: 380px; } .home-a .cpc-p img { height: 500px; top: 30px; } .home-a .cpc-p img.wide, .home-a .cpc-p img.ch2 { height: 470px; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: 64px; padding: 0 16px; align-items: center; gap: 12px; background: var(--blk); border-top: 1px solid var(--line); transform: translateY(101%); transition: transform .45s var(--shift); }
  .mbar.on { transform: none; }
  .mbar .t { font: 700 12px/1.25 var(--t); text-transform: uppercase; letter-spacing: .03em; min-width: 0; }
  .mbar .t b { display: block; font: 600 22px/1 var(--d); color: var(--gold); letter-spacing: 0; }
  .mbar .btn { margin-left: auto; height: 44px; padding: 0 22px; flex: none; }
  .home-a.has-mbar .foot { padding-bottom: 96px; }
}
@media (min-width: 761px) { .ha .vs { display: none; } }
body.still .mbar { display: none; }
@media (prefers-reduced-motion: reduce) {
  .ha .half, .ha .fig, .ha .who, .ha .bar, .ha .xg, .ha .seam, .ha .solo-t { transition: none !important; animation: none !important; }
  .mbar, .hrk, .hnw, .hnw-im > img, .hrk-w svg { transition: none !important; }
  .hnw:hover { transform: none; } .hnw:hover .hnw-im > img { scale: none; }
}
