/* Home first screen: fill the viewport under the chrome, no white strip. */

html {
  --marifat-chrome-h: 112px;
}

/* If hero is 1px short, the gap matches the photo band, not white */
body.font-sans {
  background-color: #0a2f4d;
}

#yangiliklar {
  background: #f3f4f6 !important;
  border-top: 0 !important;
  margin-top: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.hero-static {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background-color: #0a2f4d !important;
  min-height: calc(100vh - var(--marifat-chrome-h)) !important;
  min-height: calc(100svh - var(--marifat-chrome-h)) !important;
  min-height: calc(100dvh - var(--marifat-chrome-h)) !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: clamp(1.5rem, 4vh, 3.5rem) !important;
  padding-bottom: clamp(5.5rem, 12vh, 8.5rem) !important;
  overflow: hidden;
}

.hero-static::before,
.hero-static::after {
  content: none !important;
  display: none !important;
}

.hero-static > .container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

.hero-static .hero-badge,
.hero-static [data-key="hero_badge"] {
  display: inline-block;
  margin-bottom: clamp(0.75rem, 2vh, 1.25rem) !important;
  max-width: 100%;
}

.hero-static .hero-title,
.hero-static h1 {
  margin-left: auto;
  margin-right: auto;
  max-width: min(46rem, 100%);
  padding: 0 0.35rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.hero-stats-overlay {
  left: 0 !important;
  right: 0 !important;
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0px)) !important;
  padding: 0.25rem 0.75rem 0.5rem !important;
  padding-right: max(0.75rem, calc(3.25rem + 20px)) !important;
  box-sizing: border-box;
}

.hero-stats-grid {
  width: 100%;
  max-width: 64rem;
  gap: clamp(0.5rem, 1.5vw, 1.25rem) !important;
}

@media (max-width: 1024px) {
  .hero-static .hero-title,
  .hero-static h1 {
    font-size: clamp(1.35rem, 3.4vw, 2.35rem) !important;
    line-height: 1.28 !important;
  }
}

@media (max-width: 768px) {
  .hero-static {
    justify-content: flex-start;
    padding-top: 1.75rem !important;
    padding-bottom: 6.75rem !important;
  }

  .hero-static .hero-title,
  .hero-static h1 {
    font-size: clamp(1.05rem, 5vw, 1.45rem) !important;
    line-height: 1.3 !important;
    margin-bottom: 0.85rem !important;
  }

  .hero-static .hero-badge,
  .hero-static [data-key="hero_badge"] {
    font-size: 0.62rem !important;
    padding: 0.2rem 0.65rem !important;
    margin-bottom: 0.7rem !important;
  }

  .hero-stats-overlay {
    bottom: max(0.5rem, env(safe-area-inset-bottom, 0px)) !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem 0.4rem !important;
  }

  .hero-stat-num {
    font-size: clamp(1.15rem, 5.5vw, 1.45rem) !important;
  }

  .hero-stat-label {
    font-size: 0.5rem !important;
    letter-spacing: 0.02em !important;
  }
}

@media (max-width: 380px) {
  .hero-static .hero-title,
  .hero-static h1 {
    font-size: 1rem !important;
  }

  .hero-stat-label {
    font-size: 0.45rem !important;
  }
}

@media (min-width: 1280px) {
  .hero-static .hero-title,
  .hero-static h1 {
    font-size: clamp(2.1rem, 3vw, 3rem) !important;
    max-width: 52rem;
  }
}
