.page-home{
  --home-gap: 24px;
  --home-gap-sm: 16px;
  --home-grid: 32px;
  background:
    linear-gradient(rgba(42, 59, 92, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 59, 92, 0.16) 1px, transparent 1px);
  background-size: var(--home-grid) var(--home-grid);
  color: var(--text-primary);
}

.page-home .page-context{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--border-line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.page-home .context-brand{
  color: var(--neon-green);
  font-weight: 600;
}

.page-home .context-route{
  color: var(--gold-highlight);
  font-weight: 600;
}

.page-home .hero-collage{
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap-sm);
  overflow: hidden;
  min-height: 720px;
  padding: 24px var(--gutter) 48px;
  background: linear-gradient(160deg, rgba(10, 17, 40, 0.55) 0%, rgba(10, 17, 40, 0.85) 100%);
}

.page-home .hero-bg{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: brightness(0.65) contrast(1.1) saturate(0.85);
  z-index: 0;
  pointer-events: none;
}

.page-home .hero-gridline{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(42, 59, 92, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 59, 92, 0.22) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.7;
}

.page-home .hero-block{
  position: relative;
  z-index: 2;
  background: rgba(10, 17, 40, 0.72);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 20px;
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-sm);
}

.page-home .hero-block--title{
  background: rgba(10, 17, 40, 0.82);
  border-color: rgba(61, 255, 139, 0.35);
}

.page-home .block-tag{
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-highlight);
  text-transform: uppercase;
}

.page-home .hero-block h1{
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.page-home .hero-block p{
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

.page-home .hero-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

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

.page-home .mini-cal-item{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 10px;
}

.page-home .mc-date{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
}

.page-home .mc-league{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-highlight);
  text-align: right;
}

.page-home .mc-team{
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--text-muted);
}

.page-home .mini-link{
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--neon-green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.page-home .mini-link:hover{
  border-color: var(--neon-green);
}

.page-home .standings-tip{
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.page-home .standings-mini{
  display: grid;
  gap: 8px;
}

.page-home .sm-row{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
}

.page-home .sm-row span{
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 12px;
}

.page-home .sm-row b{
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--neon-green);
  font-size: 14px;
}

.page-home .export-tip{
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.page-home .route-section .container{
  padding-top: 4px;
  padding-bottom: 4px;
}

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

.page-home .route-layout{
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .route-copy p{
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-muted);
}

.page-home .route-map{
  position: relative;
  min-height: 220px;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 22% 24%, rgba(61, 255, 139, 0.1), transparent 28%),
    radial-gradient(circle at 78% 74%, rgba(255, 193, 7, 0.08), transparent 26%),
    linear-gradient(135deg, var(--secondary-blue), var(--primary-deep-blue));
  overflow: hidden;
}

.page-home .route-svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-home .route-node{
  position: absolute;
  z-index: 2;
  padding: 6px 12px;
  border: 1px solid var(--neon-green);
  background: var(--primary-deep-blue);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neon-green);
  white-space: nowrap;
}

.page-home .node-a{
  top: 16px;
  left: 16px;
}

.page-home .node-b{
  top: 16px;
  right: 16px;
}

.page-home .node-c{
  bottom: 16px;
  left: 16px;
}

.page-home .node-d{
  bottom: 16px;
  right: 16px;
}

.page-home .text-link{
  display: inline-block;
  font-size: 14px;
  color: var(--neon-green);
  text-decoration: none;
  border-bottom: 1px solid var(--neon-green);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-home .text-link:hover{
  color: var(--gold-highlight);
  border-color: var(--gold-highlight);
}

.page-home .matches-layout{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .matches-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .match-card{
  position: relative;
  overflow: hidden;
  padding: 18px 18px 14px;
  background: linear-gradient(155deg, var(--card-blue), var(--secondary-blue));
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-home .match-card::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-green), transparent 70%);
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.page-home .match-card:hover{
  transform: translateY(-4px);
  border-color: var(--neon-green);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.page-home .match-card:hover::before{
  opacity: 1;
}

.page-home .match-top{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.page-home .match-league{
  padding: 2px 8px;
  border: 1px solid rgba(255, 193, 7, 0.35);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-highlight);
  letter-spacing: 0.06em;
}

.page-home .match-round{
  font-size: 12px;
  color: var(--text-muted);
}

.page-home .match-countdown{
  margin-left: auto;
  padding: 2px 8px;
  background: rgba(61, 255, 139, 0.08);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neon-green);
}

.page-home .match-teams{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 0 16px;
}

.page-home .team-name{
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.page-home .team-vs{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.page-home .match-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-line);
}

.page-home .match-time{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.page-home .matches-img-wrap{
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--secondary-blue);
}

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

.page-home .matches-aside-caption{
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.page-home .export-layout{
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .export-img-wrap{
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--secondary-blue);
}

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

.page-home .export-steps{
  position: relative;
  display: grid;
  gap: 24px;
  align-content: start;
}

.page-home .export-step{
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.page-home .step-num{
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--neon-green);
  border-radius: 50%;
  background: rgba(61, 255, 139, 0.08);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--neon-green);
}

.page-home .step-content h3{
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
}

.page-home .step-content p{
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

.page-home .fav-layout{
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .fav-demo{
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--secondary-blue);
}

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

.page-home .fav-copy p{
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-muted);
}

.page-home .fav-benefit-list{
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-home .fav-benefit-list li{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
}

.page-home .benefit-dot{
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.page-home .dot-green{
  background: var(--neon-green);
  box-shadow: 0 0 8px rgba(61, 255, 139, 0.5);
}

.page-home .dot-gold{
  background: var(--gold-highlight);
  box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

.page-home .dot-blue{
  background: #5B8DEF;
  box-shadow: 0 0 8px rgba(91, 141, 239, 0.5);
}

.page-home .sync-panel{
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 28px 24px;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(22, 35, 74, 0.7), rgba(17, 29, 58, 0.9)),
    radial-gradient(circle at 76% 30%, rgba(61, 255, 139, 0.08), transparent 40%);
}

.page-home .sync-visual svg{
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
}

.page-home .sync-copy p{
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-muted);
}

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

.page-home .sync-list li{
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
}

.page-home .sync-list li::before{
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--neon-green);
  border-radius: 2px;
  transform: rotate(45deg);
}

.page-home .stats-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.page-home .stat-item{
  padding: 22px 14px;
  background: var(--secondary-blue);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.page-home .stat-item:hover{
  border-color: var(--neon-green);
  transform: translateY(-2px);
}

.page-home .stat-num{
  display: block;
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--neon-green);
}

.page-home .stat-label{
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

@media (min-width: 768px){
  .page-home .hero-collage{
    grid-template-columns: repeat(2, 1fr);
    gap: var(--home-gap);
    padding: 32px var(--gutter) 56px;
  }

  .page-home .hero-block--title{
    grid-column: span 2;
  }

  .page-home .matches-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

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

  .page-home .route-layout{
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
  }

  .page-home .export-layout,
  .page-home .fav-layout{
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
  }

  .page-home .sync-panel{
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    padding: 36px 32px;
  }
}

@media (min-width: 1024px){
  .page-home .hero-collage{
    grid-template-columns: repeat(12, 1fr);
    gap: var(--home-gap);
    min-height: 720px;
    padding: 40px var(--gutter) 64px;
  }

  .page-home .hero-block--title{
    grid-column: span 6;
  }

  .page-home .hero-block--calendar{
    grid-column: span 3;
  }

  .page-home .hero-block--standings{
    grid-column: span 3;
  }

  .page-home .hero-block--export{
    grid-column: span 6;
  }

  .page-home .hero-block h1{
    font-size: 36px;
  }

  .page-home .matches-layout{
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: stretch;
  }

  .page-home .matches-aside{
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .page-home .matches-aside-caption{
    margin-top: 14px;
  }

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

  .page-home .export-steps{
    padding-left: 24px;
  }

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