/* Exact homepage match to user reference mockup */

.page-home {
  background: #f5f9fd;
}

.page-home .site-footer {
  margin-top: auto;
}

/* ========== HERO ========== */
.ref-hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: 56px 20px 72px;
  background: linear-gradient(180deg, #e8f3fc 0%, #f4f9fd 42%, #f7fbff 100%);
}

.ref-hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ref-hero-left,
.ref-hero-right {
  position: absolute;
  top: 10px;
  bottom: 80px;
  width: min(36%, 460px);
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 0 24px 24px 0;
}

.ref-hero-left {
  left: 0;
  background-position: center;
  -webkit-mask-image: linear-gradient(90deg, #000 18%, #000 55%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 18%, #000 55%, transparent 100%);
  opacity: 0.95;
  border-radius: 0 28px 28px 0;
}

.ref-hero-right {
  right: 0;
  background-position: center;
  background-size: cover;
  -webkit-mask-image: linear-gradient(270deg, #000 18%, #000 55%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 18%, #000 55%, transparent 100%);
  opacity: 0.95;
  border-radius: 28px 0 0 28px;
}

.ref-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.ref-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #d4e6f7;
  box-shadow: 0 6px 18px rgba(8, 43, 99, 0.07);
  color: #0a2f66;
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 22px;
}

.ref-badge svg {
  color: #0866d9;
  flex-shrink: 0;
}

.ref-kicker {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a2f66;
}

.ref-title {
  margin: 0 0 14px;
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  font-weight: 700;
  line-height: 1.18;
  color: #082b63;
}

.ref-slogan {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  color: #0866d9;
}

.ref-desc {
  margin: 0 auto 28px;
  max-width: 620px;
  font-size: 0.93rem;
  line-height: 1.65;
  color: #607692;
}

.ref-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
  margin: 0 auto 30px;
}

.ref-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-size: 0.76rem;
  font-weight: 500;
  color: #0a2f66;
  line-height: 1.3;
}

.ref-stat-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eaf4ff;
  border: 1px solid #d5e7f8;
  color: #0866d9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.ref-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.ref-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.15s ease;
}

.ref-btn-solid {
  background: #0866d9;
  color: #fff;
  box-shadow: 0 10px 24px rgba(8, 102, 217, 0.32);
}

.ref-btn-solid:hover {
  background: #0658bc;
  color: #fff;
}

.ref-btn-ghost {
  background: #fff;
  color: #0a2f66;
  border: 1.5px solid #cfdceb;
}

.ref-btn-ghost:hover {
  border-color: #0866d9;
  color: #0866d9;
}

/* ========== COUNTDOWN ========== */
.ref-count-wrap {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  margin: -36px auto 0;
  padding: 0 20px;
}

.ref-count {
  background: #fff;
  border: 1px solid #e5eef8;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(8, 43, 99, 0.1);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ref-count-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #082b63;
  font-weight: 600;
  font-size: 1rem;
}

.ref-count-left i {
  color: #0866d9;
  font-size: 1.3rem;
}

.ref-count-right {
  display: flex;
}

.ref-count-right > div {
  min-width: 88px;
  text-align: center;
  padding: 0 20px;
  border-left: 1px solid #e8f0f8;
}

.ref-count-right > div:first-child {
  border-left: 0;
}

.ref-count-right strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #082b63;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.ref-count-right em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.74rem;
  color: #6b809c;
  font-weight: 500;
}

/* ========== TRACKS ========== */
.ref-tracks {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 20px 80px;
}

.ref-tracks-head p {
  margin: 0 0 6px;
  color: #0866d9;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.ref-tracks-head h2 {
  margin: 0 0 26px;
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 700;
  color: #082b63;
}

.ref-tracks-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.ref-track {
  background: #fff;
  border: 1px solid #e5eef8;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(8, 43, 99, 0.05);
  padding: 22px 12px 18px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ref-track:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(8, 43, 99, 0.09);
}

.ref-track-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #eaf4ff;
  color: #0866d9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.ref-track.is-green .ref-track-ico {
  background: #e8f7ee;
  color: #1f9d57;
}

.ref-track h3 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #082b63;
  line-height: 1.35;
}

@media (max-width: 1199.98px) {
  .ref-tracks-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ref-hero-left,
  .ref-hero-right {
    width: 30%;
    opacity: 0.55;
  }
}

@media (max-width: 991.98px) {
  .ref-hero-left,
  .ref-hero-right {
    display: none;
  }
  .ref-hero {
    min-height: auto;
    padding-top: 36px;
  }
  .ref-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ref-count {
    justify-content: center;
  }
  .ref-count-left {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .ref-tracks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ref-count-right > div {
    min-width: 64px;
    padding: 0 10px;
  }
  .ref-btn {
    width: 100%;
  }
}