.page-home {
  --home-tint: #EAE6DE;
  background: var(--color-pearl);
  color: var(--color-stone);
  font-family: var(--font-ui);
  line-height: 1.6;
  overflow-x: hidden;
}

.page-home__container {
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: 20px;
}

.page-home img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home__intro {
  padding: calc(var(--header-h) + 32px) 0 48px;
  background-image:
    linear-gradient(rgba(27, 42, 74, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 42, 74, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 1px solid var(--color-line);
}

.page-home__kicker {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-terra);
  margin: 0 0 12px;
}

.page-home__title {
  font-size: 34px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-space);
  margin: 0 0 16px;
}

.page-home__lead {
  font-size: 15px;
  color: var(--color-muted);
  margin: 0 0 20px;
  max-width: 44em;
}

.page-home__intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.page-home__intro-meta span {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--color-space);
  background: rgba(27, 42, 74, 0.06);
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
}

.page-home__catalog-wrap {
  background: var(--color-stone);
  border-radius: var(--radius-xl);
  padding: 24px 24px 16px;
  color: var(--color-pearl);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
}

.page-home__catalog-title {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-lime);
  margin: 0 0 8px;
}

.page-home__catalog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home__catalog-item + .page-home__catalog-item {
  border-top: 1px solid rgba(245, 240, 230, 0.14);
}

.page-home__catalog-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  color: var(--color-pearl);
  text-decoration: none;
  transition: background 0.2s ease;
}

.page-home__catalog-link:hover,
.page-home__catalog-link:focus-visible {
  background: rgba(245, 240, 230, 0.08);
}

.page-home__catalog-num {
  font-family: var(--font-data);
  font-size: 22px;
  font-weight: 300;
  color: var(--color-orange);
  flex: 0 0 36px;
}

.page-home__catalog-text {
  display: block;
}

.page-home__catalog-name {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.page-home__catalog-desc {
  display: block;
  font-size: 12px;
  color: rgba(245, 240, 230, 0.62);
  margin-top: 2px;
}

.page-home__section-head {
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.page-home__section-index {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-terra);
  display: block;
  margin-bottom: 8px;
}

.page-home__section-title {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--color-space);
  margin: 0 0 10px;
}

.page-home__section-desc {
  font-size: 14px;
  color: var(--color-muted);
  max-width: 42em;
  margin: 0;
}

.page-home__h2h {
  background: var(--color-space);
  color: var(--color-pearl);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.page-home__h2h::before {
  content: "01";
  position: absolute;
  top: -20px;
  right: -10px;
  font-family: var(--font-data);
  font-size: 160px;
  font-weight: 100;
  line-height: 1;
  color: rgba(245, 240, 230, 0.05);
  pointer-events: none;
  letter-spacing: -0.04em;
}

.page-home__h2h .page-home__container {
  padding-inline: 0;
  position: relative;
  z-index: 1;
}

.page-home__h2h-top {
  padding-inline: 20px;
  display: grid;
  gap: 24px;
}

.page-home__h2h .page-home__section-index {
  color: var(--color-orange);
}

.page-home__h2h .page-home__section-title,
.page-home__h2h .page-home__section-desc {
  color: var(--color-pearl);
}

.page-home__h2h .page-home__section-desc {
  color: rgba(245, 240, 230, 0.7);
}

.page-home__h2h-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0;
}

.page-home__h2h-visual img {
  width: 100%;
  display: block;
}

.page-home__league-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 24px 20px 8px;
  scrollbar-width: thin;
}

.page-home__league-tab {
  flex: 0 0 auto;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-pearl);
  background: rgba(245, 240, 230, 0.08);
  border: 1px solid rgba(245, 240, 230, 0.22);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-home__league-tab:hover,
.page-home__league-tab:focus-visible {
  background: var(--color-lime);
  color: var(--color-space);
  border-color: var(--color-lime);
  outline: none;
}

.page-home__h2h-cards {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 20px 16px;
  scroll-padding-inline: 20px;
}

.page-home__h2h-card {
  flex: 0 0 85%;
  scroll-snap-align: start;
  background: var(--color-space-soft);
  border: 1px solid rgba(245, 240, 230, 0.12);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-margin-top: calc(var(--header-h) + 20px);
  scroll-margin-inline: 20px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.page-home__h2h-card:hover,
.page-home__h2h-card:focus-within {
  border-color: var(--color-lime);
  background: rgba(37, 58, 97, 0.55);
}

.page-home__h2h-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-home__league-name {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  color: var(--color-pearl);
}

.page-home__league-badge {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-lime);
  background: rgba(197, 224, 99, 0.12);
  border: 1px solid rgba(197, 224, 99, 0.3);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}

.page-home__h2h-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.page-home__h2h-stat {
  background: rgba(27, 42, 74, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
}

.page-home__h2h-stat-value {
  display: block;
  font-family: var(--font-data);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-pearl);
  line-height: 1.2;
}

.page-home__h2h-stat-label {
  display: block;
  font-size: 11px;
  color: rgba(245, 240, 230, 0.55);
  margin-top: 4px;
  line-height: 1.4;
}

.page-home__h2h-form {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.page-home__form-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-pearl);
  background: var(--color-sage);
}

.page-home__form-dot--loss {
  background: var(--color-terra);
}

.page-home__form-dot--draw {
  background: var(--color-muted);
}

.page-home__h2h-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  font-size: 13px;
  color: var(--color-lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(197, 224, 99, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-home__h2h-link:hover,
.page-home__h2h-link:focus-visible {
  color: var(--color-orange);
  border-color: var(--color-orange);
}

.page-home__h2h-note {
  margin: 16px 0 0;
  padding-inline: 20px;
  font-family: var(--font-data);
  font-size: 12px;
  color: rgba(245, 240, 230, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-home__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-lime);
  display: inline-block;
  flex: 0 0 8px;
  box-shadow: 0 0 0 3px rgba(197, 224, 99, 0.18);
}

.page-home__favorite {
  padding: 56px 0;
  position: relative;
}

.page-home__favorite::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--color-sage);
}

.page-home__favorite::after {
  content: "02";
  position: absolute;
  right: 0;
  top: 16px;
  font-family: var(--font-data);
  font-size: 96px;
  font-weight: 100;
  line-height: 1;
  color: rgba(181, 107, 69, 0.06);
  pointer-events: none;
}

.page-home__favorite .page-home__container,
.page-home__updates .page-home__container,
.page-home__legacy .page-home__container,
.page-home__coverage .page-home__container {
  position: relative;
  z-index: 1;
}

.page-home__favorite-body {
  display: grid;
  gap: 32px;
  margin-top: 28px;
}

.page-home__favorite-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-stone);
  background: var(--home-tint);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 0;
}

.page-home__steps {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.page-home__steps-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
}

.page-home__steps-num {
  flex: 0 0 36px;
  font-family: var(--font-data);
  font-size: 26px;
  font-weight: 300;
  color: var(--color-terra);
  line-height: 1.2;
}

.page-home__steps-text {
  font-size: 14px;
  color: var(--color-stone);
  line-height: 1.6;
}

.page-home__favorite-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}

.page-home__favorite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home__favorite-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-space);
}

.page-home__favorite-visual img {
  width: 100%;
  display: block;
}

.page-home__updates {
  background: var(--home-tint);
  padding: 56px 0;
  position: relative;
}

.page-home__updates::before {
  content: "03";
  position: absolute;
  right: 0;
  top: 16px;
  font-family: var(--font-data);
  font-size: 96px;
  font-weight: 100;
  line-height: 1;
  color: rgba(74, 73, 69, 0.07);
  pointer-events: none;
}

.page-home__updates-body {
  display: grid;
  gap: 32px;
  margin-top: 28px;
  align-items: start;
}

.page-home__updates-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-pearl);
}

.page-home__updates-visual img {
  width: 100%;
  display: block;
}

.page-home__update-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--color-sage);
}

.page-home__update-item {
  position: relative;
  padding: 0 0 24px 20px;
}

.page-home__update-item:last-child {
  padding-bottom: 0;
}

.page-home__update-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-lime);
  border: 2px solid var(--home-tint);
}

.page-home__update-time {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-terra);
  margin-bottom: 4px;
}

.page-home__update-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-space);
  margin: 0 0 6px;
}

.page-home__update-text {
  font-size: 13px;
  color: var(--color-muted);
  margin: 0 0 6px;
  line-height: 1.6;
}

.page-home__update-link {
  font-size: 13px;
  color: var(--color-terra);
  text-decoration: none;
  border-bottom: 1px solid rgba(181, 107, 69, 0.4);
}

.page-home__legacy {
  padding: 56px 0;
  position: relative;
}

.page-home__legacy::before {
  content: "04";
  position: absolute;
  right: 0;
  top: 16px;
  font-family: var(--font-data);
  font-size: 96px;
  font-weight: 100;
  line-height: 1;
  color: rgba(181, 107, 69, 0.08);
  pointer-events: none;
}

.page-home__legacy-card {
  background: var(--color-terra);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  color: var(--color-pearl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  position: relative;
  overflow: hidden;
}

.page-home__legacy-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  background-image:
    linear-gradient(45deg, rgba(245, 240, 230, 0.12) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(245, 240, 230, 0.12) 25%, transparent 25%);
  background-size: 14px 14px;
  pointer-events: none;
  transition: background-size 0.2s ease;
}

.page-home__legacy-card:active::after {
  background-size: 8px 8px;
}

.page-home__legacy-visual {
  flex: 0 0 auto;
}

.page-home__legacy-visual img {
  width: 100%;
  max-width: 180px;
  display: block;
  border-radius: var(--radius-lg);
}

.page-home__legacy-label {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.8);
  margin: 0 0 6px;
}

.page-home__legacy-title {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.25;
  margin: 0 0 10px;
}

.page-home__legacy-copy p {
  font-size: 14px;
  color: rgba(245, 240, 230, 0.9);
  margin: 0 0 18px;
  max-width: 34em;
}

.page-home__legacy-card .btn--outline {
  color: var(--color-pearl);
  border-color: rgba(245, 240, 230, 0.7);
  background: transparent;
}

.page-home__legacy-card .btn--outline:hover,
.page-home__legacy-card .btn--outline:focus-visible {
  background: var(--color-pearl);
  color: var(--color-terra);
  border-color: var(--color-pearl);
}

.page-home__coverage {
  background: var(--color-pearl);
  border-top: 1px solid var(--color-line);
  padding: 56px 0;
  position: relative;
}

.page-home__coverage::before {
  content: "05";
  position: absolute;
  right: 0;
  top: 16px;
  font-family: var(--font-data);
  font-size: 96px;
  font-weight: 100;
  line-height: 1;
  color: rgba(27, 42, 74, 0.06);
  pointer-events: none;
}

.page-home__coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.page-home__coverage-card {
  background: var(--color-space);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  color: var(--color-pearl);
}

.page-home__coverage-num {
  display: block;
  font-family: var(--font-data);
  font-size: 34px;
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-lime);
}

.page-home__coverage-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.6);
  margin-top: 8px;
}

.page-home__coverage-desc {
  font-size: 12px;
  color: rgba(245, 240, 230, 0.7);
  margin: 10px 0 0;
  line-height: 1.5;
}

.page-home__trust {
  margin-top: 32px;
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.7;
  border-left: 3px solid var(--color-sage);
  padding-left: 16px;
  max-width: 48em;
}

.page-home__trust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

@media (min-width: 960px) {
  .page-home__intro {
    padding: calc(var(--header-h) + 64px) 0 72px;
  }

  .page-home__intro .page-home__container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
  }

  .page-home__title {
    font-size: 58px;
  }

  .page-home__lead {
    font-size: 16px;
  }

  .page-home__catalog-wrap {
    padding: 32px 32px 20px;
  }

  .page-home__section-title {
    font-size: 36px;
  }

  .page-home__h2h {
    padding: 72px 0;
  }

  .page-home__h2h .page-home__container {
    padding-inline: 20px;
  }

  .page-home__h2h-top {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    padding-inline: 0;
  }

  .page-home__h2h-visual img {
    border-radius: var(--radius-xl);
  }

  .page-home__league-tabs,
  .page-home__h2h-note {
    padding-inline: 0;
  }

  .page-home__h2h-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    gap: 16px;
    padding-inline: 0;
  }

  .page-home__h2h-card {
    flex: initial;
    scroll-snap-align: none;
  }

  .page-home__favorite {
    padding: 72px 0;
  }

  .page-home__favorite-body {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
  }

  .page-home__updates {
    padding: 72px 0;
  }

  .page-home__updates-body {
    grid-template-columns: 320px 1fr;
    gap: 56px;
    align-items: center;
  }

  .page-home__legacy {
    padding: 72px 0;
  }

  .page-home__legacy-card {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 40px 48px;
  }

  .page-home__legacy-copy {
    flex: 1;
    max-width: 640px;
  }

  .page-home__coverage {
    padding: 72px 0;
  }

  .page-home__coverage-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .page-home__coverage-card {
    padding: 28px 24px;
  }

  .page-home__coverage-num {
    font-size: 44px;
  }
}
