/* Главная /league/ — макет Frame 1762px, контент ~1602px */
:root {
  --lh-bg: #080808;
  --lh-gray: #424242;
  --lh-text: #bebebe;
  --lh-green: #0ae60d;
  --lh-green-dim: #02b122;
  --lh-panel: #0a0a0a;
  --lh-frame: 1762px;
  --lh-gutter: 80px;
  --lh-inner: 1602px;
  --lh-promo-h: 203px;
  --lh-hl-h: 449px;
  --lh-hl-media-w: 799px;
  --lh-hl-side-w: 644px;
  --lh-hl-media: 799fr;
  --lh-hl-side: 644fr;
}

body.league-home {
  background: var(--lh-bg) !important;
  color: var(--lh-text);
}

body.league-home .league-home-footer {
  border-top: 1px solid var(--lh-gray);
  background: var(--lh-bg);
}

body.league-home .league-home-footer__nav a:hover {
  color: var(--lh-green);
}

body.league-home .topbar {
  background: var(--lh-bg);
  border-bottom: 1px solid var(--lh-gray);
}

body.league-home .topbar .menu a {
  color: var(--lh-text);
}

body.league-home .topbar .menu a.active,
body.league-home .topbar .menu a:hover {
  color: var(--lh-green);
}

body.league-home .topbar-right > .profile:not(.profile-dropdown__trigger) {
  border: 1px solid var(--lh-gray);
  border-radius: 8px;
  padding: 10px 18px;
  color: var(--lh-text);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main.league-home__main {
  padding: 72px 0 0 !important;
  max-width: none !important;
  background: transparent;
}

.lh-wrap {
  width: 100%;
  max-width: var(--lh-frame);
  margin: 0 auto;
  padding: 0 var(--lh-gutter) 56px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .lh-wrap {
    --lh-gutter: 20px;
  }
}

/* Hero */
.lh-hero {
  text-align: center;
  padding: 28px 0 32px;
}

.lh-hero__title {
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #BEBEBE;
  margin: 0 0 14px;
}

.lh-hero__season {
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lh-green);
  margin: 0 0 16px;
}

.lh-hero__lead {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(190, 190, 190, 0.65);
  max-width: 420px;
  margin: 0 auto 28px;
}

.lh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.lh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: filter 0.2s, background 0.2s, border-color 0.2s;
  box-sizing: border-box;
}

.lh-btn--solid {
  background: var(--lh-green);
  color: #080808;
  border: 1px solid var(--lh-green);
}

.lh-btn--solid:hover {
  filter: brightness(1.08);
}

.lh-btn--outline {
  background: transparent;
  color: #BEBEBE;
  border: 1px solid var(--lh-green);
}

.lh-btn--outline:hover {
  background: rgba(10, 230, 13, 0.08);
}

@media (max-width: 700px) {
  .lh-hero__title {
    font-size: clamp(2rem, 12vw, 64px);
  }

  .lh-hero__season {
    font-size: clamp(0.95rem, 4vw, 22px);
  }

  .lh-btn {
    min-width: 0;
    width: 100%;
    max-width: 320px;
  }
}

/* Features */
.lh-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .lh-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .lh-features {
    grid-template-columns: 1fr;
  }
}

.lh-feature {
  text-align: center;
  padding: 4px 8px;
}

.lh-feature__icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(10, 230, 13, 0.35));
}

.lh-feature__title {
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lh-text);
  margin: 0 0 6px;
}

.lh-feature__text {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(190, 190, 190, 0.55);
  margin: 0;
}

.lh-clover-img {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.lh-clover-img--white {
  filter: none;
}

.lh-clover-img--team {
  filter: brightness(0) saturate(100%) invert(52%) sepia(90%) saturate(4500%) hue-rotate(74deg) brightness(1.1);
}

/* Баннер «Актуальный сезон» — 1602×203 */
.lh-promo {
  position: relative;
  display: block;
  height: var(--lh-promo-h);
  margin-bottom: 24px;
  border-radius: 15px;
  border: 1px solid var(--lh-gray);
  background:
    radial-gradient(ellipse 55% 140% at 12% 50%, rgba(1, 45, 2, 0.95) 0%, transparent 62%),
    linear-gradient(90deg, #080808 0%, #012d02 38%, #080808 100%);
  overflow: hidden;
  box-sizing: border-box;
}

.lh-promo__copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 36px;
  max-width: 62%;
  box-sizing: border-box;
}

.lh-promo__kicker {
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lh-green);
  margin: 0 0 6px;
}

.lh-promo__name {
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 4px;
  line-height: 1.05;
}

.lh-promo__name a {
  color: #BEBEBE;
  text-decoration: none;
}

.lh-promo__name a:hover {
  color: var(--lh-text);
}

.lh-promo__months {
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lh-green);
  margin: 0 0 12px;
  line-height: 1.1;
}

.lh-promo__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  color: #080808;
  background: var(--lh-green);
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}

.lh-promo__btn:hover {
  filter: brightness(1.08);
  color: #080808;
}

.lh-promo__trophy {
  position: absolute;
  right: 8px;
  bottom: 0;
  top: 0;
  width: min(42%, 280px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.lh-promo__trophy img {
  width: auto;
  height: 198px;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

@media (max-width: 720px) {
  .lh-promo {
    height: auto;
    min-height: var(--lh-promo-h);
  }

  .lh-promo__copy {
    max-width: 100%;
    padding: 24px 20px 100px;
  }

  .lh-promo__name {
    font-size: clamp(1.35rem, 6vw, 32px);
  }

  .lh-promo__months {
    font-size: clamp(1rem, 5vw, 24px);
  }

  .lh-promo__trophy {
    width: 55%;
    right: 0;
  }

  .lh-promo__trophy img {
    height: 120px;
  }
}

/* Хайлайты — 799×449 + 644×449 */
.lh-hl-section {
  margin-bottom: 24px;
}

.lh-hl-section__title {
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lh-text);
  margin: 0 0 12px;
}

.lh-hl-card {
  border: 1px solid var(--lh-gray);
  border-radius: 15px;
  background: var(--lh-panel);
  overflow: hidden;
}

.lh-hl__shell {
  display: grid;
  grid-template-columns: minmax(0, var(--lh-hl-media)) minmax(0, var(--lh-hl-side));
  grid-template-rows: auto auto;
}

.lh-hl__viewport {
  grid-column: 1 / -1;
  overflow: hidden;
}

.lh-hl__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.lh-hl__slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, var(--lh-hl-media)) minmax(0, var(--lh-hl-side));
  align-items: stretch;
  min-height: var(--lh-hl-h);
}

.lh-hl__media-col {
  position: relative;
  min-width: 0;
  border-right: 1px solid var(--lh-gray);
  background: #000;
}

.lh-hl__media {
  position: relative;
  width: 100%;
  height: var(--lh-hl-h);
  background: #000;
  cursor: default;
}

.lh-hl__media.lh-hl__cell[data-video-src] {
  cursor: pointer;
}

.lh-hl__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 1;
  background: #000;
}

.lh-hl__poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  transition: opacity 0.35s;
}

.lh-hl__slide.is-playing .lh-hl__poster,
.lh-hl__cell.is-playing .lh-hl__poster {
  opacity: 0;
  pointer-events: none;
}

.lh-hl__poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lh-hl__poster-img--empty {
  background: #0a0a0a;
  min-height: 100%;
}

.lh-hl__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: url('../league/images/play-ring.png') center / contain no-repeat;
  z-index: 3;
}

.lh-hl__play::after {
  content: '';
  position: absolute;
  left: 53%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 7px solid transparent;
  border-left: 11px solid var(--lh-text);
}

.lh-hl__side {
  height: var(--lh-hl-h);
  padding: 16px 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  box-sizing: border-box;
}

.lh-hl__meta {
  flex: 0 0 auto;
}

.lh-hl__date {
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lh-green-dim);
  margin: 0 0 8px;
}

.lh-hl__heading {
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #BEBEBE;
  margin: 0 0 10px;
  line-height: 1.15;
}

.lh-hl__player {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px 0 8px;
  border: 1px solid rgba(190, 190, 190, 0.38);
  border-radius: 6px;
  background: #080808;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.lh-hl__player-name {
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  color: #BEBEBE;
}

.lh-hl__bottom {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 10px;
  width: 100%;
}

.lh-hl__team-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--lh-gray);
  border-radius: 6px;
  background: #080808;
  box-sizing: border-box;
}

.lh-hl__scorebox {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px 12px;
  width: 100%;
  flex: 1 1 auto;
  min-height: 120px;
  box-sizing: border-box;
  border: 1px solid var(--lh-gray);
  border-radius: 10px;
  padding: 14px 12px;
  background: #080808;
}

.lh-hl__team-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.lh-hl__team-name {
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(190, 190, 190, 0.7);
  max-width: 100%;
  word-break: break-word;
}

.lh-hl__score-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 6px;
}

.lh-hl__score {
  font-family: 'Exo 2', sans-serif;
  font-size: 28px;
  color: #BEBEBE;
  letter-spacing: 0.03em;
  line-height: 1;
}

.lh-hl__stage {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(190, 190, 190, 0.42);
  text-align: center;
}

.lh-hl__original {
  display: none;
}

.lh-hl__footer {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px 12px;
  border: none;
  background: transparent;
}

.lh-hl__dot {
  width: 44px;
  height: 4px;
  border: none;
  border-radius: 2px;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}

.lh-hl__dot.is-active {
  background: var(--lh-green);
  width: 52px;
}

.lh-hl__dot:hover {
  background: rgba(10, 230, 13, 0.5);
}

@media (max-width: 900px) {
  .lh-hl__shell,
  .lh-hl__slide {
    grid-template-columns: 1fr;
  }

  .lh-hl__slide {
    min-height: 0;
  }

  .lh-hl__media-col {
    border-right: none;
    border-bottom: 1px solid var(--lh-gray);
  }

  .lh-hl__media {
    height: auto;
    aspect-ratio: 799 / 449;
  }

  .lh-hl__side {
    height: auto;
    min-height: 0;
    padding: 14px 16px 16px;
  }

  .lh-hl__bottom {
    margin-top: 8px;
  }

  .lh-hl__footer {
    grid-column: 1 / -1;
    border-top: 1px solid var(--lh-gray);
  }
}

/* Tournaments */
.lh-tournaments__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.lh-tournaments__title {
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lh-text);
  margin: 0;
}

.lh-tournaments__all {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(190, 190, 190, 0.55);
  text-decoration: none;
}

.lh-tournaments__all:hover {
  color: var(--lh-green);
}

.lh-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1000px) {
  .lh-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .lh-cards {
    grid-template-columns: 1fr;
  }
}

.lh-card {
  display: flex;
  flex-direction: column;
  padding: 16px 14px 14px;
  border: 1px solid var(--lh-gray);
  border-radius: 10px;
  background: var(--lh-panel);
  min-height: 200px;
}

.lh-card__badge {
  display: inline-block;
  width: fit-content;
  padding: 4px 10px;
  margin-bottom: 10px;
  border: 1px solid var(--lh-gray);
  border-radius: 4px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(190, 190, 190, 0.7);
}

.lh-card__name {
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lh-text);
  margin: 0 0 8px;
}

.lh-card__meta {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(190, 190, 190, 0.55);
  margin: 0 0 4px;
}

.lh-card__spacer {
  flex: 1;
}

.lh-card__btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  border: none;
  border-radius: 6px;
  background: var(--lh-green);
  color: #080808;
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: filter 0.2s;
}

.lh-card__btn:hover {
  filter: brightness(1.08);
}

.lh-card__btn--muted {
  background: transparent;
  border: 1px solid var(--lh-gray);
  color: var(--lh-text);
}

.lh-card__btn--muted:hover {
  border-color: var(--lh-green);
  filter: none;
}

.lh-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 20px;
  border: 1px dashed var(--lh-gray);
  border-radius: 10px;
  color: rgba(190, 190, 190, 0.45);
  font-size: 14px;
}

/* ═══════════════════════════════════════
   Legal footer — Figma Rectangle 638
   ═══════════════════════════════════════ */

.lhd-legal-footer {
  border: 1px solid #141414;
  border-radius: 14px;
  background: #000000;
  margin: 0 0 12px;
  padding: 28px 24px;
  min-height: 210px;
  box-sizing: border-box;
}

.lhd-legal-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 154px;
}

.lhd-legal-footer__text {
  flex: 0 0 auto;
  max-width: 336px;
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: normal;
  color: #8e8e8e;
}

.lhd-legal-footer__text p {
  margin: 0;
}

.lhd-legal-footer__phone {
  color: inherit;
  text-decoration: none;
}

.lhd-legal-footer__phone:hover {
  color: #bebebe;
}

.lhd-legal-footer__logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
  transform: translateY(-12px);
}

.lhd-legal-footer__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  flex: 0 0 auto;
  flex-shrink: 0;
  image-rendering: auto;
}

.lhd-legal-footer__logo--alfa { height: 42px; }
.lhd-legal-footer__logo--belkart-internet { height: 46px; }
.lhd-legal-footer__logo--belkart { height: 54px; }
.lhd-legal-footer__logo--visa-secure { height: 61px; }
.lhd-legal-footer__logo--samsung { height: 60px; }
.lhd-legal-footer__logo--apple { height: 45px; }
.lhd-legal-footer__logo--mc-id { height: 45px; }
.lhd-legal-footer__logo--visa { height: 44px; }
.lhd-legal-footer__logo--mastercard { height: 40px; }

@media (max-width: 1280px) {
  .lhd-legal-footer__logos {
    gap: 12px;
  }

  .lhd-legal-footer__logo--alfa { height: 36px; }
  .lhd-legal-footer__logo--belkart-internet { height: 38px; }
  .lhd-legal-footer__logo--belkart { height: 44px; }
  .lhd-legal-footer__logo--visa-secure { height: 50px; }
  .lhd-legal-footer__logo--samsung { height: 48px; }
  .lhd-legal-footer__logo--apple { height: 38px; }
  .lhd-legal-footer__logo--mc-id { height: 38px; }
  .lhd-legal-footer__logo--visa { height: 36px; }
  .lhd-legal-footer__logo--mastercard { height: 34px; }
}

@media (max-width: 1100px) {
  .lhd-legal-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    min-height: 0;
  }

  .lhd-legal-footer__logos {
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
    transform: none;
  }
}

@media (max-width: 768px) {
  .lhd-legal-footer {
    padding: 20px 16px;
    min-height: 0;
  }

  .lhd-legal-footer__text {
    max-width: none;
    font-size: 12px;
  }

  .lhd-legal-footer__logos {
    gap: 10px;
  }

  .lhd-legal-footer__logo--alfa { height: 30px; }
  .lhd-legal-footer__logo--belkart-internet { height: 32px; }
  .lhd-legal-footer__logo--belkart { height: 36px; }
  .lhd-legal-footer__logo--visa-secure { height: 40px; }
  .lhd-legal-footer__logo--samsung { height: 38px; }
  .lhd-legal-footer__logo--apple { height: 32px; }
  .lhd-legal-footer__logo--mc-id { height: 32px; }
  .lhd-legal-footer__logo--visa { height: 30px; }
  .lhd-legal-footer__logo--mastercard { height: 28px; }
}
