.page-home {
  --home-cut: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  overflow-x: hidden;
}

.page-home .hero {
  position: relative;
  background: var(--c-deep-950);
  color: var(--c-paper);
  padding: 40px 0 0;
  overflow: hidden;
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-home .hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  display: block;
}

.page-home .hero__bg-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 17, 40, 0.84) 0%, rgba(10, 17, 40, 0.58) 45%, rgba(10, 17, 40, 0.92) 100%),
    repeating-linear-gradient(90deg, rgba(100, 116, 139, 0.12) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(100, 116, 139, 0.08) 0 1px, transparent 1px 72px);
}

.page-home .hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 88px;
  pointer-events: none;
  z-index: 1;
}

.page-home .hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-top: 8px;
  padding-bottom: 32px;
}

.page-home .hero__kicker {
  display: inline-flex;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-green);
  font-weight: 700;
  margin-bottom: 14px;
  border-left: 3px solid var(--c-green);
  padding-left: 10px;
}

.page-home .hero__intro h1 {
  font-family: var(--font-head);
  font-size: 34px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--c-paper);
}

.page-home .hero__intro h1 span {
  display: block;
  color: var(--c-green);
  font-size: 28px;
  letter-spacing: 0.02em;
  margin-top: 8px;
  text-shadow: 0 0 32px rgba(57, 255, 136, 0.35);
}

.page-home .hero__lead {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(245, 241, 232, 0.88);
  margin: 0 0 22px;
  max-width: 46ch;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.page-home .hero__metrics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(100, 116, 139, 0.4);
  padding-top: 20px;
}

.page-home .hero__metrics li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.page-home .hero__metric-unit {
  font-size: 14px;
  color: var(--c-green);
  margin-left: 2px;
  font-weight: 700;
}

.page-home .hero__metric-caption {
  font-size: 12px;
  color: rgba(245, 241, 232, 0.72);
  margin-top: 4px;
  line-height: 1.5;
}

.page-home .hero__board {
  background: rgba(18, 42, 92, 0.94);
  border: 1px solid rgba(57, 255, 136, 0.28);
  padding: 18px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  min-width: 0;
}

.page-home .hero__board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.page-home .hero__board-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-paper);
  letter-spacing: 0.04em;
}

.page-home .hero__live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-green);
}

.page-home .hero__live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  animation: home-pulse-dot 2s ease-in-out infinite;
}

@keyframes home-pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.72);
  }
}

.page-home .hero__board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  position: relative;
}

.page-home .hero__tab-btn {
  display: inline-block;
  padding: 7px 18px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(100, 116, 139, 0.6);
  background: transparent;
  color: rgba(245, 241, 232, 0.85);
  cursor: pointer;
  clip-path: var(--home-cut);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.page-home .hero__tab-input:focus + .hero__tab-btn {
  outline: 2px solid var(--c-green);
  outline-offset: 2px;
}

.page-home .hero__tab-input:checked + .hero__tab-btn {
  background: var(--c-green);
  border-color: var(--c-green);
  color: var(--c-deep-950);
}

.page-home .hero__tab-panel {
  display: none;
  min-width: 0;
}

.page-home #tab-epl:checked ~ .hero__tab-panel--epl,
.page-home #tab-laliga:checked ~ .hero__tab-panel--laliga {
  display: block;
}

.page-home .hero__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.page-home .hero__table th,
.page-home .hero__table td {
  padding: 9px 6px;
  border-bottom: 1px solid rgba(100, 116, 139, 0.32);
  text-align: left;
  color: var(--c-paper);
}

.page-home .hero__table th {
  color: var(--c-green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.page-home .hero__table td:last-child,
.page-home .hero__table th:last-child {
  text-align: right;
  font-family: var(--font-num);
  font-weight: 600;
}

.page-home .hero__table tr:hover td {
  background: rgba(57, 255, 136, 0.07);
}

.page-home .hero__board-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(100, 116, 139, 0.4);
}

.page-home .hero__board-note {
  font-size: 12px;
  color: rgba(245, 241, 232, 0.55);
}

.page-home .hero__board-refresh {
  font-size: 12px;
  color: var(--c-green);
  font-family: var(--font-num);
  letter-spacing: 0.04em;
}

.page-home .hero__marquee {
  position: relative;
  z-index: 2;
  background: rgba(10, 17, 40, 0.82);
  border-top: 1px solid rgba(57, 255, 136, 0.16);
  border-bottom: 1px solid rgba(100, 116, 139, 0.2);
  padding: 14px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-home .hero__marquee-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  min-width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}

.page-home .hero__marquee-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-orange);
  letter-spacing: 0.1em;
  white-space: nowrap;
  margin-right: 4px;
}

.page-home .hero__marquee-more {
  font-size: 12px;
  color: rgba(245, 241, 232, 0.6);
  white-space: nowrap;
  border-left: 1px solid rgba(100, 116, 139, 0.4);
  padding-left: 12px;
}

.page-home .board-section {
  background: var(--c-paper);
  color: var(--c-ink);
  padding: 56px 0;
}

.page-home .board-section__header {
  margin-bottom: 32px;
}

.page-home .board-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-home .board-section__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.page-home .board-section__stat-card {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--c-deep-700);
  color: var(--c-paper);
  border: 1px solid rgba(57, 255, 136, 0.22);
}

.page-home .board-section__stat-label {
  font-size: 12px;
  color: rgba(245, 241, 232, 0.72);
  letter-spacing: 0.04em;
}

.page-home .board-section__stat-value {
  font-size: 30px;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.page-home .board-section__stat-unit {
  font-size: 16px;
  color: var(--c-green);
}

.page-home .board-section__chart {
  padding: 14px;
  background: var(--c-deep-700);
  margin: 0;
  min-width: 0;
}

.page-home .board-section__chart-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-home .board-section__chart-caption {
  padding: 10px 2px 2px;
  font-size: 12px;
  color: rgba(245, 241, 232, 0.72);
}

.page-home .board-section__movement {
  padding: 18px;
}

.page-home .board-section__subtitle {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--c-deep-950);
}

.page-home .board-section__movement-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.page-home .board-section__movement-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-paper-light);
  font-size: 14px;
  line-height: 1.5;
}

.page-home .board-section__movement-list li:last-child {
  border-bottom: none;
}

.page-home .board-section__more {
  width: 100%;
  text-align: center;
}

.page-home .subscribe {
  background:
    var(--grid-blueprint),
    linear-gradient(145deg, var(--c-deep-950) 0%, var(--c-deep-700) 100%);
  color: var(--c-paper);
  padding: 56px 0;
}

.page-home .subscribe .section__title {
  color: var(--c-paper);
}

.page-home .subscribe .section__desc {
  color: rgba(245, 241, 232, 0.8);
}

.page-home .subscribe__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 28px;
}

.page-home .subscribe__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .subscribe__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-paper);
  background: rgba(18, 42, 92, 0.72);
  border: 1px solid rgba(100, 116, 139, 0.48);
  clip-path: var(--home-cut);
  text-decoration: none;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.page-home .subscribe__item:hover {
  background: var(--c-green);
  border-color: var(--c-green);
  color: var(--c-deep-950);
}

.page-home .subscribe__info {
  padding: 22px;
  background: var(--c-paper);
  color: var(--c-ink);
}

.page-home .subscribe__info-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--c-deep-950);
}

.page-home .subscribe__info p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 18px;
  color: var(--c-ink);
}

.page-home .history {
  background: var(--c-paper-light);
  color: var(--c-ink);
  padding: 56px 0;
}

.page-home .history__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 28px;
}

.page-home .history__preview {
  padding: 18px;
  min-width: 0;
}

.page-home .history__preview-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--c-deep-950);
  margin: 0 0 14px;
}

.page-home .history__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-home .history__table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-home .history__table th,
.page-home .history__table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  white-space: nowrap;
}

.page-home .history__table th {
  background: var(--c-deep-700);
  color: var(--c-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-home .history__table tr:nth-child(even) td {
  background: rgba(234, 229, 217, 0.6);
}

.page-home .history__table tr:hover td {
  background: rgba(57, 255, 136, 0.22);
}

.page-home .history__note {
  font-size: 12px;
  color: var(--c-line);
  line-height: 1.6;
  margin: 12px 0 0;
}

.page-home .history__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .history__archive {
  padding: 20px;
}

.page-home .history__archive-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--c-paper);
  margin: 0 0 10px;
}

.page-home .history__archive p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 241, 232, 0.86);
  margin: 0 0 14px;
}

.page-home .history__steps {
  padding: 18px;
  background: var(--c-paper);
  border-left: 4px solid var(--c-orange);
}

.page-home .history__steps-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--c-deep-950);
  margin: 0 0 10px;
}

.page-home .history__steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: history-step;
}

.page-home .history__steps-list li {
  counter-increment: history-step;
  position: relative;
  padding: 7px 0 7px 32px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-ink);
}

.page-home .history__steps-list li::before {
  content: counter(history-step);
  position: absolute;
  left: 0;
  top: 7px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-orange);
  color: var(--c-paper);
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  clip-path: var(--home-cut);
}

.page-home .favorite {
  background: var(--c-paper);
  color: var(--c-ink);
  padding: 56px 0;
}

.page-home .favorite__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 28px;
}

.page-home .favorite__phone {
  padding: 12px;
  overflow: hidden;
  background: var(--c-paper);
  border: 1px solid var(--c-paper-light);
}

.page-home .favorite__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-home .favorite__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .favorite__content-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--c-deep-950);
  margin: 0;
}

.page-home .favorite__content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-ink);
  margin: 0;
}

.page-home .favorite__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.page-home .favorite__list li {
  position: relative;
  padding: 10px 14px 10px 36px;
  background: var(--c-paper-light);
  font-size: 14px;
  line-height: 1.5;
  border-left: 3px solid var(--c-green);
  color: var(--c-ink);
}

.page-home .favorite__list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 15px;
  width: 8px;
  height: 8px;
  background: var(--c-green);
  transform: rotate(45deg);
}

.page-home .favorite__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .favorite__step {
  display: inline-block;
  padding: 7px 14px;
  background: var(--c-deep-700);
  color: var(--c-paper);
  font-size: 13px;
  font-weight: 700;
  clip-path: var(--home-cut);
}

.page-home .mobile-tip {
  background:
    radial-gradient(circle at 12% 18%, rgba(57, 255, 136, 0.1) 0, transparent 220px),
    linear-gradient(135deg, var(--c-deep-950) 0%, var(--c-deep-700) 100%);
  color: var(--c-paper);
  padding: 56px 0;
}

.page-home .mobile-tip .section__title {
  color: var(--c-paper);
}

.page-home .mobile-tip .section__desc {
  color: rgba(245, 241, 232, 0.8);
}

.page-home .mobile-tip__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}

.page-home .mobile-tip__card {
  padding: 22px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-home .mobile-tip__step-num {
  font-size: 44px;
  line-height: 1;
  color: var(--c-green);
  margin-bottom: 14px;
}

.page-home .mobile-tip__card-title {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--c-paper);
}

.page-home .mobile-tip__card p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 241, 232, 0.82);
  margin: 0;
}

.page-home .mobile-tip__card .num {
  color: var(--c-green);
}

.page-home .mobile-tip__card.card--green-border {
  border: 1px solid rgba(57, 255, 136, 0.7);
  background: rgba(18, 42, 92, 0.7);
}

.page-home .mobile-tip__note {
  margin-top: 28px;
  padding: 18px;
  border-top: 1px dashed rgba(100, 116, 139, 0.5);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.page-home .mobile-tip__note p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 241, 232, 0.88);
  margin: 0;
}

.page-home .bottom-cta {
  background: var(--c-paper);
  padding: 48px 0 0;
}

.page-home .bottom-cta__links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.page-home .bottom-cta__link {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: var(--c-paper-light);
  border: 1px solid rgba(100, 116, 139, 0.2);
  color: var(--c-ink);
  text-decoration: none;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.page-home .bottom-cta__link:hover {
  background: var(--c-deep-700);
  border-color: var(--c-deep-700);
  transform: translateY(-2px);
}

.page-home .bottom-cta__link:hover .bottom-cta__name,
.page-home .bottom-cta__link:hover .bottom-cta__desc {
  color: var(--c-paper);
}

.page-home .bottom-cta__index {
  grid-row: 1 / 3;
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 700;
  color: var(--c-green);
}

.page-home .bottom-cta__name {
  font-size: 16px;
  font-weight: 800;
  color: var(--c-deep-950);
  transition: color 0.2s var(--ease-out);
}

.page-home .bottom-cta__desc {
  font-size: 12px;
  color: var(--c-line);
  transition: color 0.2s var(--ease-out);
}

.page-home .bottom-cta__gansu {
  overflow: hidden;
  line-height: 0;
}

.page-home .bottom-cta__gansu-img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {

  .page-home .hero__intro h1 {
    font-size: 44px;
  }

  .page-home .hero__intro h1 span {
    font-size: 36px;
  }

  .page-home .hero__board {
    padding: 22px;
  }

  .page-home .board-section__grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .board-section__stats {
    grid-column: 1 / 3;
  }

  .page-home .subscribe__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .page-home .history__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .page-home .favorite__grid {
    grid-template-columns: 5fr 7fr;
    align-items: center;
  }

  .page-home .mobile-tip__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .mobile-tip__note {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .page-home .favorite__list {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .bottom-cta__links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {

  .page-home .hero {
    padding-top: 52px;
  }

  .page-home .hero__grid {
    grid-template-columns: 7fr 5fr;
    gap: 40px;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 56px;
  }

  .page-home .hero__intro h1 {
    font-size: 56px;
  }

  .page-home .hero__intro h1 span {
    font-size: 44px;
  }

  .page-home .hero__lead {
    font-size: 17px;
    max-width: 42ch;
  }

  .page-home .hero__metrics {
    max-width: 420px;
  }

  .page-home .hero__marquee-inner {
    padding-left: 0;
    padding-right: 0;
  }

  .page-home .board-section,
  .page-home .subscribe,
  .page-home .history,
  .page-home .favorite,
  .page-home .mobile-tip {
    padding: 72px 0;
  }

  .page-home .board-section__grid {
    grid-template-columns: 3fr 4fr 3fr;
    align-items: stretch;
  }

  .page-home .board-section__stats {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .page-home .board-section__stat-card {
    padding: 20px;
  }

  .page-home .board-section__chart {
    padding: 18px;
  }

  .page-home .board-section__movement {
    padding: 20px;
  }

  .page-home .subscribe__grid {
    grid-template-columns: 7fr 5fr;
  }

  .page-home .subscribe__item {
    min-width: 112px;
  }

  .page-home .history__preview {
    padding: 22px;
  }

  .page-home .favorite__phone {
    padding: 16px;
  }

  .page-home .favorite__content {
    gap: 18px;
    padding-right: 22px;
  }

  .page-home .mobile-tip__card {
    padding: 26px;
    min-height: 220px;
  }

  .page-home .bottom-cta {
    padding-top: 64px;
  }

  .page-home .bottom-cta__links {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .bottom-cta__link {
    padding: 18px 14px;
  }

  .page-home .bottom-cta__gansu-img {
    max-height: 260px;
  }
}
