
/* HERO LAYOUT FIX — paste at the BOTTOM of css/style.css */

body {
  overflow-x: hidden;
}

.container {
  width: min(1120px, calc(100% - 48px));
}

.hero {
  min-height: auto !important;
  display: block !important;
  padding: 118px 0 0 !important;
  overflow: hidden;
}

.hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr) !important;
  gap: 56px !important;
  align-items: center !important;
  padding-bottom: 96px !important;
}

.hero h1 {
  font-size: clamp(3rem, 5.8vw, 5.8rem) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.075em !important;
  margin: 18px 0 24px !important;
  max-width: 760px !important;
}

.hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.14rem) !important;
  max-width: 640px !important;
}

.hero-panel {
  width: 100% !important;
  max-width: 420px !important;
  justify-self: end !important;
}

.audit-card {
  transform: none !important;
  padding: 28px !important;
}

.mini-chart {
  height: 106px !important;
}

@media (max-width: 1060px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 44px !important;
  }

  .hero-panel {
    max-width: 520px !important;
    justify-self: start !important;
  }

  .hero h1 {
    max-width: 820px !important;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 30px, 1120px) !important;
  }

  .hero {
    padding-top: 58px !important;
  }

  .hero-grid {
    padding-bottom: 56px !important;
    gap: 32px !important;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 4.4rem) !important;
    line-height: 0.94 !important;
    letter-spacing: -0.07em !important;
    margin: 14px 0 18px !important;
  }

  .hero-sub {
    font-size: 1rem !important;
  }

  .hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .btn,
  .link-cta {
    width: 100% !important;
    text-align: center !important;
  }

  .hero-panel {
    max-width: 100% !important;
  }

  .audit-card {
    border-radius: 24px !important;
    padding: 22px !important;
  }
}
