.page-home {
  color: var(--gray-deep);
  background: var(--cream);
}

.page-home .home-eyebrow {
  color: var(--green-deep);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-home .home-section-title {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.25;
  color: var(--gray-deep);
}

.page-home .home-section-desc {
  max-width: 42em;
  color: var(--gray-mid);
  font-size: 16px;
  line-height: 1.7;
}

.page-home .home-hero {
  position: relative;
  padding: calc(var(--header-height) + 28px) 0 52px;
  overflow: hidden;
}

.page-home .home-hero__inner {
  display: grid;
  gap: 44px;
}

.page-home .home-hero__copy {
  position: relative;
  z-index: 2;
}

.page-home .home-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--green-deep);
}

.page-home .home-hero__chip {
  background: var(--yellow);
  color: var(--night);
  padding: 4px 12px 4px 14px;
  transform: skewX(-10deg);
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

.page-home .home-hero__title {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 5.4vw, 48px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-deep);
}

.page-home .home-hero__title span {
  display: block;
  position: relative;
  color: var(--green);
  z-index: 0;
}

.page-home .home-hero__title span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.38em;
  background: rgba(242, 201, 76, 0.36);
  transform: skewX(-12deg);
  z-index: -1;
}

.page-home .home-hero__lead {
  margin: 0 0 26px;
  max-width: 33em;
  color: var(--gray-mid);
  font-size: 16px;
  line-height: 1.75;
}

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

.page-home .home-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(45, 143, 94, 0.25);
}

.page-home .home-hero__stat dt {
  color: var(--gray-mid);
  font-size: 13px;
  font-weight: 500;
}

.page-home .home-hero__stat dd {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--green-dark);
}

.page-home .home-hero__visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-home .home-hero__img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transform: rotate(1.2deg);
}

.page-home .home-hero__chart {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-home .home-hero__chart-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(13, 27, 42, 0.28));
}

.page-home .home-hero__chart-line--green {
  stroke: var(--green);
}

.page-home .home-hero__chart-line--yellow {
  stroke: var(--yellow);
}

.page-home .home-hero__chart-line--blue {
  stroke: var(--blue);
}

.page-home .home-hero__speed {
  position: absolute;
  bottom: 28px;
  left: 8px;
  z-index: 4;
  background: var(--yellow);
  color: var(--night);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  padding: 8px 18px 8px 16px;
  transform: skewX(-10deg) rotate(-3deg);
  box-shadow: var(--shadow-sm);
}

.page-home .home-route {
  background: var(--night);
  position: relative;
  z-index: 3;
  padding: 16px 0;
}

.page-home .home-route__list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-home .home-route__list::-webkit-scrollbar {
  display: none;
}

.page-home .home-route__item {
  flex: 0 0 auto;
}

.page-home .home-route__item a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  padding: 6px 18px 6px 0;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-size: 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
  transition: color var(--transition);
}

.page-home .home-route__item a:hover {
  color: var(--yellow);
}

.page-home .home-route__num {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--yellow);
}

.page-home .home-standings {
  position: relative;
  padding: 72px 0 76px;
  background: var(--cream);
  overflow: hidden;
  scroll-margin-top: var(--header-height);
}

.page-home .home-standings__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-standings__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(248, 246, 243, 0.96), rgba(224, 242, 233, 0.84));
}

.page-home .home-standings__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.page-home .home-standings__content {
  position: relative;
  z-index: 1;
}

.page-home .home-standings__head {
  margin-bottom: 28px;
}

.page-home .standings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.page-home .standings-tabs__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page-home .standings-tabs__label {
  padding: 10px 22px;
  background: var(--white);
  border: 1px solid rgba(45, 143, 94, 0.18);
  border-radius: 999px;
  cursor: pointer;
  color: var(--gray-mid);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}

.page-home .standings-tabs__label:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

.page-home .standings-tabs__input:focus-visible + .standings-tabs__label {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.page-home .standings-tabs__input:checked + .standings-tabs__label {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  transform: rotate(-2deg);
  box-shadow: var(--shadow-sm);
}

.page-home .standings-boards {
  position: relative;
}

.page-home .standings-board {
  display: none;
}

.page-home #league-csl:checked ~ .standings-boards .standings-board[data-league-panel="csl"],
.page-home #league-epl:checked ~ .standings-boards .standings-board[data-league-panel="epl"],
.page-home #league-laliga:checked ~ .standings-boards .standings-board[data-league-panel="laliga"],
.page-home #league-buli:checked ~ .standings-boards .standings-board[data-league-panel="buli"] {
  display: block;
  animation: home-standings-fade 0.3s ease;
}

@keyframes home-standings-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-home .standings-board__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--green-dark);
}

.page-home .standings-board__scroll {
  background: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-home .standings-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
}

.page-home .standings-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-mid);
  padding: 14px 10px;
  border-bottom: 1px solid rgba(13, 27, 42, 0.1);
  white-space: nowrap;
}

.page-home .standings-table td {
  padding: 13px 10px;
  border-bottom: 1px solid rgba(13, 27, 42, 0.06);
  font-size: 15px;
  color: var(--gray-deep);
  white-space: nowrap;
}

.page-home .standings-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-home .standings-table tbody tr:hover {
  background: var(--green-light);
}

.page-home .standings-table__rank {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--green);
}

.page-home .standings-table__team {
  font-weight: 600;
  color: var(--gray-deep);
}

.page-home .standings-table__gd {
  color: var(--gray-mid);
}

.page-home .standings-table__pts {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
}

.page-home .split-bars {
  display: grid;
  gap: 6px;
  min-width: 170px;
}

.page-home .split-bars__row {
  display: grid;
  grid-template-columns: 18px 1fr 30px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-mid);
}

.page-home .split-bars__key {
  font-weight: 600;
  color: var(--gray-deep);
}

.page-home .split-bars__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(13, 27, 42, 0.1);
  overflow: hidden;
}

.page-home .split-bars__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.page-home .split-bars__fill--home {
  background: var(--green);
}

.page-home .split-bars__fill--away {
  background: var(--blue);
}

.page-home .split-bars__value {
  font-weight: 700;
  color: var(--gray-deep);
}

.page-home .home-standings__footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.page-home .home-standings__note {
  max-width: 46em;
  margin: 0;
  color: var(--gray-mid);
  font-size: 13px;
  line-height: 1.7;
}

.page-home .home-quick {
  position: relative;
  background: var(--green-light);
  padding: 76px 0 80px;
  overflow: hidden;
  scroll-margin-top: var(--header-height);
}

.page-home .home-quick::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 260px;
  height: 260px;
  background: var(--yellow-light);
  transform: rotate(18deg);
  z-index: 0;
}

.page-home .home-quick__grid {
  display: grid;
  gap: 44px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.page-home .home-quick__phone {
  display: flex;
  justify-content: center;
}

.page-home .home-quick__phone-shell {
  transform: rotate(-4deg);
  max-width: 260px;
}

.page-home .home-quick__phone-shell img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 300px;
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}

.page-home .home-quick__list {
  min-width: 0;
}

.page-home .home-quick__list .section-head {
  margin-bottom: 26px;
}

.page-home .home-quick__items {
  display: grid;
  gap: 4px;
}

.page-home .quick-item {
  display: grid;
  grid-template-columns: 42px 1fr 24px;
  gap: 16px;
  align-items: center;
  padding: 18px 10px;
  border-bottom: 1px solid rgba(45, 143, 94, 0.22);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.page-home .quick-item:last-child {
  border-bottom: 0;
}

.page-home .quick-item:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateX(8px);
}

.page-home .quick-item__num {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
}

.page-home .quick-item__body {
  min-width: 0;
}

.page-home .quick-item__body strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-deep);
}

.page-home .quick-item__body span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-mid);
}

.page-home .quick-item__arrow {
  color: var(--yellow-deep);
  font-size: 20px;
  font-weight: 700;
  text-align: right;
  transition: transform var(--transition);
}

.page-home .quick-item:hover .quick-item__arrow {
  transform: translateX(4px);
}

.page-home .home-update {
  position: relative;
  background: var(--yellow-light);
  padding: 76px 0 84px;
  overflow: hidden;
  scroll-margin-top: var(--header-height);
}

.page-home .home-update__grid {
  display: grid;
  gap: 44px;
  align-items: center;
}

.page-home .home-update__copy {
  min-width: 0;
}

.page-home .home-update__copy .section-head {
  margin-bottom: 22px;
}

.page-home .home-update__points {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.page-home .home-update__points li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-deep);
}

.page-home .home-update__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 12px;
  height: 12px;
  background: var(--yellow-deep);
  transform: rotate(45deg);
}

.page-home .home-update__panel {
  margin: 24px 0;
  border-bottom: 1px solid rgba(45, 143, 94, 0.22);
}

.page-home .home-update__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .update-log {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-home .update-log li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-mid);
}

.page-home .update-log strong {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--green-dark);
}

.page-home .home-update__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.page-home .home-update__orbit {
  position: absolute;
  width: 240px;
  height: 240px;
  border: 2px dashed rgba(45, 143, 94, 0.32);
  border-radius: 50%;
  animation: home-orbit-spin 26s linear infinite;
}

@keyframes home-orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

.page-home .home-update__badge {
  position: relative;
  z-index: 1;
  width: 200px;
  height: 200px;
  max-width: 100%;
  border-radius: 32px;
  box-shadow: var(--shadow-md);
  transform: rotate(-6deg);
}

@media (min-width: 768px) {
  .page-home .home-hero {
    padding-top: calc(var(--header-height) + 44px);
    padding-bottom: 72px;
  }

  .page-home .home-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
    min-height: 70vh;
  }

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

  .page-home .home-route__list {
    justify-content: space-between;
  }

  .page-home .home-route__item {
    flex: 1;
  }

  .page-home .home-route__item a {
    border-right: 0;
    padding: 6px 0;
  }

  .page-home .home-standings {
    padding: 96px 0 104px;
  }

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

  .page-home .home-quick {
    padding: 100px 0;
  }

  .page-home .home-quick__grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
  }

  .page-home .home-update {
    padding: 100px 0;
  }

  .page-home .home-update__grid {
    grid-template-columns: 1.3fr 0.7fr;
    gap: 56px;
  }
}

@media (min-width: 1100px) {
  .page-home .home-hero__inner {
    gap: 72px;
  }

  .page-home .home-standings__head {
    margin-bottom: 36px;
  }

  .page-home .standings-table {
    min-width: 760px;
  }
}
