:root {
  --rp-bg: #050913;
  --rp-bg2: #07111f;
  --rp-panel: rgba(11, 20, 37, .92);
  --rp-panel2: rgba(15, 29, 53, .94);
  --rp-line: rgba(255,255,255,.10);
  --rp-line2: rgba(143,184,255,.20);
  --rp-text: #f7f9ff;
  --rp-muted: rgba(247,249,255,.68);
  --rp-muted2: rgba(247,249,255,.84);
  --rp-red: #ef2334;
  --rp-red2: #ff4056;
  --rp-blue: #8fb8ff;
  --rp-gold: #ffd78c;
  --rp-green: #2bd17e;
  --rp-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(--rp-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

.rp-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  background: rgba(5, 11, 22, .94);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.rp-header,
.rp-header * {
  box-sizing: border-box;
}

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

.rp-header__brand {
  flex: 0 0 auto;
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 950;
  font-size: 15px;
  line-height: 1;
}

.rp-header__logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
  border-radius: 11px;
  padding: 4px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}

.rp-header__nav {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 4px;
}

.rp-header__nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.rp-header__nav a {
  flex: 0 0 auto;
  min-width: max-content;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  line-height: 1;
  font-weight: 850;
}

.rp-header__nav a.is-active,
.rp-header__nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, var(--rp-red), var(--rp-red2));
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 10px 24px rgba(239,35,52,.34);
}

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

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

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

.rp-hero {
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid var(--rp-line);
  background:
    linear-gradient(90deg, rgba(5,9,18,.96), rgba(5,9,18,.58)),
    radial-gradient(circle at 18% 18%, rgba(239,35,52,.23), transparent 32%),
    radial-gradient(circle at 94% 0%, rgba(143,184,255,.16), transparent 38%),
    url('/hockey/assets/img/brand/home-bg.jpg') center / cover no-repeat;
  box-shadow: var(--rp-shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, .88fr);
}

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

.rp-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  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;
}

.rp-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--rp-red);
  box-shadow: 0 0 18px rgba(239,35,52,.88);
}

.rp-hero h1 {
  margin: 20px 0 14px;
  max-width: 840px;
  font-size: clamp(38px, 7vw, 82px);
  line-height: .90;
  letter-spacing: -.065em;
}

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

.rp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.rp-button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-weight: 950;
}

.rp-button.is-red {
  background: linear-gradient(135deg, var(--rp-red), var(--rp-red2));
  box-shadow: 0 14px 30px rgba(239,35,52,.28);
}

.rp-hero__side {
  padding: clamp(20px, 3vw, 34px);
  border-left: 1px solid var(--rp-line);
  display: grid;
  gap: 14px;
  align-content: center;
}

.rp-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rp-stat {
  min-height: 110px;
  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;
}

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

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

.rp-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.rp-section-title h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -.05em;
}

.rp-section-title span {
  color: var(--rp-muted);
  font-weight: 850;
}

.rp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rp-card {
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(143,184,255,.10), transparent 36%),
    linear-gradient(180deg, rgba(13,24,44,.96), rgba(7,13,26,.98));
  border: 1px solid var(--rp-line);
  box-shadow: var(--rp-shadow);
}

.rp-card__body {
  padding: clamp(18px, 2.4vw, 26px);
  display: grid;
  gap: 12px;
}

.rp-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.rp-card p {
  margin: 0;
  color: var(--rp-muted2);
  line-height: 1.55;
  font-weight: 650;
}

.rp-card__image {
  min-height: 220px;
  background: rgba(255,255,255,.05) center / cover no-repeat;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.rp-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rp-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 900;
}

.rp-chip.is-red {
  background: linear-gradient(135deg, var(--rp-red), var(--rp-red2));
  color: #fff;
}

.rp-match-card {
  display: grid;
  gap: 16px;
}

.rp-score-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.rp-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rp-team.is-right {
  justify-content: flex-end;
  text-align: right;
}

.rp-team img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
  padding: 5px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}

.rp-team strong {
  display: block;
  min-width: 0;
  word-break: break-word;
}

.rp-score {
  min-width: 78px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,.20));
  border: 1px solid rgba(255,215,140,.28);
  font-size: 28px;
  font-weight: 950;
}

.rp-news-list,
.rp-contact-list {
  display: grid;
  gap: 12px;
}

.rp-list-item {
  padding: 15px;
  border-radius: 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  display: grid;
  gap: 7px;
}

.rp-list-item small {
  color: var(--rp-muted);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.rp-list-item strong {
  font-size: 17px;
  line-height: 1.18;
}

.rp-partner-logo {
  min-height: 190px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rp-partner-logo img {
  max-width: 76%;
  max-height: 140px;
  object-fit: contain;
}

.rp-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.rp-contact-form {
  display: grid;
  gap: 12px;
}

.rp-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: #fff;
  outline: none;
  font-weight: 800;
}

textarea.rp-input {
  min-height: 132px;
  padding-top: 14px;
  resize: vertical;
}

.rp-input::placeholder {
  color: rgba(255,255,255,.45);
}

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

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

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

@media (max-width: 760px) {
  .rp-header__wrap {
    padding: 10px 10px 8px;
    gap: 9px;
  }

  .rp-header__brand {
    font-size: 13px;
  }

  .rp-header__logo {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .rp-header__nav {
    gap: 8px;
  }

  .rp-header__nav a {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

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

  .rp-hero__main,
  .rp-hero__side {
    padding: 20px;
  }

  .rp-stat-grid,
  .rp-grid-2,
  .rp-grid-3 {
    grid-template-columns: 1fr;
  }

  .rp-score-row {
    grid-template-columns: 1fr;
  }

  .rp-team.is-right {
    justify-content: flex-start;
    text-align: left;
  }

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