
:root {
  --bg: #050913;
  --bg2: #07111f;
  --panel: rgba(10, 18, 34, .88);
  --panel2: rgba(14, 27, 49, .92);
  --line: rgba(255,255,255,.10);
  --line2: rgba(142, 184, 255, .22);
  --text: #f6f8ff;
  --muted: rgba(246,248,255,.66);
  --muted2: rgba(246,248,255,.82);
  --red: #ef2334;
  --red2: #ff4056;
  --blue: #8fb8ff;
  --gold: #ffd78c;
  --green: #24c17a;
  --shadow: 0 24px 70px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(239,35,52,.16), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(58,126,214,.14), transparent 34%),
    linear-gradient(180deg, #07111f 0%, #050913 58%, #04070f 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.tour-header {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  background: rgba(5, 9, 18, .88);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}

.tour-header__wrap {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 12px clamp(12px, 3vw, 26px);
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.tour-header__brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tour-header__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 14px;
  padding: 5px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}

.tour-header__name {
  display: flex;
  flex-direction: column;
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.tour-header__name small {
  margin-top: 4px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .18em;
  font-weight: 900;
}

.tour-header__nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 18px), transparent 100%);
  padding: 2px 10px;
}

.tour-header__nav::-webkit-scrollbar { display: none; }

.tour-header__nav a {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.075);
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 850;
}

.tour-header__nav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red2));
  border-color: rgba(255,255,255,.20);
  box-shadow: 0 10px 26px rgba(239,35,52,.34);
}

.tour-shell {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 30px) clamp(10px, 3vw, 26px) 86px;
}

#tournaments-root {
  min-height: 60vh;
}

.tour-loading,
.tour-empty {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  color: var(--muted2);
  font-weight: 800;
}

.tour-page {
  display: grid;
  gap: 18px;
}

.tour-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tour-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tour-filter {
  appearance: none;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.80);
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.tour-filter.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red2));
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 10px 26px rgba(239,35,52,.27);
}

.tour-total {
  color: var(--muted);
  font-weight: 850;
}

.tour-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 14px;
}

.tour-mini-card {
  appearance: none;
  text-align: left;
  min-height: 132px;
  padding: 17px;
  border-radius: 25px;
  color: var(--text);
  cursor: pointer;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 0%, rgba(239,35,52,.12), transparent 34%),
    radial-gradient(circle at 94% 0%, rgba(143,184,255,.14), transparent 34%),
    linear-gradient(180deg, rgba(13,24,44,.96), rgba(7,13,26,.96));
  box-shadow: var(--shadow);
}

.tour-mini-card.is-active {
  border-color: rgba(143,184,255,.36);
  box-shadow: 0 0 0 1px rgba(143,184,255,.14), var(--shadow);
}

.tour-mini-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--muted2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 950;
}

.tour-mini-card__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 10px;
  padding: 3px;
  background: rgba(255,255,255,.08);
}

.tour-mini-card strong {
  display: block;
  font-size: 19px;
  line-height: 1.12;
  letter-spacing: -.03em;
}

.tour-mini-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-weight: 800;
}

.tour-hero {
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(5,9,18,.94), rgba(5,9,18,.60)),
    radial-gradient(circle at 20% 18%, rgba(239,35,52,.20), transparent 32%),
    radial-gradient(circle at 92% 0%, rgba(143,184,255,.18), transparent 38%),
    linear-gradient(180deg, rgba(16,30,55,.96), rgba(7,13,26,.98));
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
}

.tour-hero__main {
  padding: clamp(24px, 4.6vw, 52px);
}

.tour-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.tour-kicker img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tour-hero h1 {
  margin: 20px 0 12px;
  max-width: 850px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: .95;
  letter-spacing: -.06em;
}

.tour-hero p {
  margin: 0;
  max-width: 790px;
  color: var(--muted2);
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 650;
}

.tour-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tour-form__item {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.065);
  font-weight: 950;
}

.tour-form__item.is-win {
  background: rgba(36,193,122,.16);
  border-color: rgba(36,193,122,.30);
}

.tour-form__item.is-loss {
  background: rgba(239,35,52,.16);
  border-color: rgba(239,35,52,.28);
}

.tour-hero__stats {
  padding: clamp(20px, 3vw, 34px);
  border-left: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: center;
}

.tour-stat {
  min-height: 118px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.055);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tour-stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.tour-stat strong {
  font-size: 38px;
  line-height: .95;
  letter-spacing: -.04em;
}

.tour-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  gap: 18px;
  align-items: start;
}

.tour-sidecol {
  display: grid;
  gap: 18px;
}

.tour-panel {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 0%, rgba(143,184,255,.11), transparent 32%),
    linear-gradient(180deg, rgba(12,23,43,.94), rgba(7,13,26,.98));
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.2vw, 24px);
}

.tour-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.tour-panel h2 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.tour-panel__sub {
  color: var(--muted);
  text-align: right;
  font-size: 13px;
  font-weight: 800;
}

.tour-table-wrap {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.065);
}

.tour-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: rgba(255,255,255,.025);
}

.tour-table th,
.tour-table td {
  padding: 15px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: left;
  vertical-align: middle;
}

.tour-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 950;
}

.tour-table tr.is-rusich {
  background: linear-gradient(90deg, rgba(143,184,255,.13), rgba(143,184,255,.045));
}

.tour-team {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}

.tour-team img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}

.tour-team strong {
  display: block;
  font-weight: 950;
}

.tour-bar {
  width: 185px;
  max-width: 100%;
  height: 6px;
  margin-top: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
}

.tour-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}

.tour-match-list {
  display: grid;
  gap: 12px;
}

.tour-match {
  display: block;
  padding: 15px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.075);
  background: rgba(255,255,255,.045);
}

.tour-match__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.tour-match__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.tour-club {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.tour-club.is-right {
  justify-content: flex-end;
  text-align: right;
}

.tour-club img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}

.tour-club strong {
  min-width: 0;
  display: block;
  font-weight: 950;
  word-break: break-word;
}

.tour-score {
  min-width: 68px;
  min-height: 48px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  border: 1px solid rgba(255,215,140,.22);
  background: rgba(255,255,255,.065);
  font-size: 23px;
  font-weight: 950;
}

.tour-match__foot {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

@media (max-width: 1080px) {
  .tour-hero,
  .tour-layout {
    grid-template-columns: 1fr;
  }

  .tour-hero__stats {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .tour-header__wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .tour-header__nav {
    width: 100%;
    justify-content: flex-start;
    padding-left: 0;
    padding-right: 0;
  }

  .tour-header__nav a {
    min-height: 40px;
    padding: 0 13px;
  }

  .tour-card-grid {
    grid-template-columns: 1fr;
  }

  .tour-hero {
    border-radius: 28px;
  }

  .tour-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tour-match__line {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .tour-club,
  .tour-club.is-right {
    justify-content: flex-start;
    text-align: left;
  }

  .tour-score {
    width: fit-content;
  }

  .tour-panel__head {
    flex-direction: column;
  }

  .tour-panel__sub {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .tour-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .tour-hero__main {
    padding: 22px;
  }

  .tour-hero__stats {
    padding: 16px;
  }

  .tour-stat {
    min-height: 104px;
    padding: 14px;
  }

  .tour-stat strong {
    font-size: 30px;
  }
}

/* === RUSICH_HEADER_ONE_LINE_LOCK_20260425 BEGIN ===
   Единый замок шапки: ПК и мобильная версия держат навигацию в одну строку.
   При нехватке ширины меню скроллится по горизонтали, без переноса пунктов. */
.site-header,
.site-header-main,
.news-header,
.media-static-header,
.tour-header,
.viewer-header {
  overflow: hidden !important;
}

.site-header-inner,
.header-inner,
.news-header__wrap,
.media-static-header__wrap,
.tour-header__wrap,
.viewer-header__wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.site-brand,
.site-header-main .brand,
.news-header__brand,
.media-static-header__brand,
.tour-header__brand,
.viewer-brand {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

.main-nav,
.news-header__nav,
.media-static-header__nav,
.tour-header__nav,
.viewer-nav {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-x: contain !important;
  scrollbar-width: none !important;
  scroll-snap-type: x proximity !important;
  padding-bottom: 4px !important;
}

.main-nav::-webkit-scrollbar,
.news-header__nav::-webkit-scrollbar,
.media-static-header__nav::-webkit-scrollbar,
.tour-header__nav::-webkit-scrollbar,
.viewer-nav::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.main-nav .main-nav-item,
.main-nav-item,
.main-nav > a,
.news-header__nav > a,
.media-static-header__nav > a,
.tour-header__nav > a,
.viewer-nav > a {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: max-content !important;
  max-width: none !important;
  scroll-snap-align: start !important;
}

.main-nav a,
.main-nav-link,
.news-header__nav a,
.media-static-header__nav a,
.tour-header__nav a,
.viewer-nav a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  min-width: max-content !important;
  flex: 0 0 auto !important;
}

.main-nav a.is-active,
.main-nav a.active,
.main-nav a[aria-current="page"],
.main-nav .main-nav-link.is-active,
.main-nav .main-nav-link.active,
.main-nav .main-nav-link[aria-current="page"],
.news-header__nav a.is-active,
.news-header__nav a[aria-current="page"],
.media-static-header__nav a.is-active,
.media-static-header__nav a[aria-current="page"],
.tour-header__nav a.is-active,
.tour-header__nav a[aria-current="page"],
.viewer-nav a.is-active,
.viewer-nav a[aria-current="page"] {
  color: #fff !important;
  background: linear-gradient(135deg, #ef233c 0%, #b80f23 100%) !important;
  border-color: rgba(255, 92, 112, .96) !important;
  box-shadow:
    0 12px 30px rgba(239, 35, 60, .34),
    inset 0 1px 0 rgba(255,255,255,.20) !important;
}

@media (max-width: 760px) {
  .site-header-inner,
  .header-inner,
  .news-header__wrap,
  .media-static-header__wrap,
  .tour-header__wrap,
  .viewer-header__wrap {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .site-brand,
  .site-header-main .brand,
  .site-header-main .site-brand,
  .news-header__brand,
  .media-static-header__brand,
  .tour-header__brand,
  .viewer-brand {
    display: none !important;
  }

  .main-nav,
  .news-header__nav,
  .media-static-header__nav,
  .tour-header__nav,
  .viewer-nav {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 8px 8px 12px !important;
    gap: 12px !important;
  }

  .main-nav a,
  .main-nav-link,
  .news-header__nav a,
  .media-static-header__nav a,
  .tour-header__nav a,
  .viewer-nav a {
    min-height: 42px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    border-radius: 999px !important;
  }
}
/* === RUSICH_HEADER_ONE_LINE_LOCK_20260425 END === */
