/*
  WebCraft KZ — HOME PAGE RESTORE FIX
  Restores the original two-column hero layout and prevents the hero
  from collapsing into a narrow left column on desktop.
*/

.webcraft-site .hero.hero-premium {
  width: 100% !important;
  min-height: auto !important;
  height: auto !important;
  padding: calc(var(--header-height) + 48px) 20px 64px !important;
  overflow: visible !important;
}

.webcraft-site .hero.hero-premium > .container {
  display: block !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  min-width: 0 !important;
}

.webcraft-site .hero.hero-premium .hero-card {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) !important;
  gap: 48px !important;
  align-items: center !important;
  padding: 56px !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 28px !important;
  background: linear-gradient(145deg, rgba(17,34,58,.82), rgba(8,19,36,.72)) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.25) !important;
  box-sizing: border-box !important;
}

.webcraft-site .hero.hero-premium .hero-content,
.webcraft-site .hero.hero-premium .hero-visual {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.webcraft-site .hero.hero-premium .hero-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 24px !important;
}

.webcraft-site .hero.hero-premium h1 {
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 !important;
  font-size: clamp(2.4rem, 5vw, 4.2rem) !important;
  line-height: 1.08 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  white-space: normal !important;
}

.webcraft-site .hero.hero-premium .hero-content > p {
  width: 100% !important;
  max-width: 560px !important;
  margin: 0 !important;
}

.webcraft-site .hero.hero-premium .hero-btns {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
  margin: 0 !important;
}

.webcraft-site .hero.hero-premium .hero-btns a {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  padding: 14px 28px !important;
}

.webcraft-site .hero.hero-premium .hero-visual {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 20px !important;
  position: relative !important;
}

.webcraft-site .hero.hero-premium .hero-window {
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.webcraft-site .hero.hero-premium .hero-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
}

.webcraft-site .hero.hero-premium .hero-stats > div {
  min-width: 0 !important;
  min-height: 112px !important;
  padding: 20px !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.035) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.webcraft-site .hero.hero-premium .stat-num {
  font-size: 1.7rem !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.webcraft-site .hero.hero-premium .stat-label {
  margin-top: 7px !important;
  font-size: .75rem !important;
  line-height: 1.45 !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 1023px) {
  .webcraft-site .hero.hero-premium {
    padding-top: calc(var(--header-height) + 40px) !important;
  }

  .webcraft-site .hero.hero-premium .hero-card {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 40px !important;
    padding: 44px !important;
  }

  .webcraft-site .hero.hero-premium .hero-window,
  .webcraft-site .hero.hero-premium .hero-stats {
    max-width: 760px !important;
  }
}

@media (max-width: 599px) {
  .webcraft-site .hero.hero-premium {
    padding: calc(var(--header-height) + 28px) 16px 48px !important;
  }

  .webcraft-site .hero.hero-premium > .container {
    padding: 0 !important;
  }

  .webcraft-site .hero.hero-premium .hero-card {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 24px !important;
    border-radius: 22px !important;
  }

  .webcraft-site .hero.hero-premium h1 {
    font-size: clamp(2.4rem, 11vw, 3.3rem) !important;
    line-height: 1.08 !important;
  }

  .webcraft-site .hero.hero-premium .hero-btns {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .webcraft-site .hero.hero-premium .hero-btns a {
    width: 100% !important;
    text-align: center !important;
  }

  .webcraft-site .hero.hero-premium .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .webcraft-site .hero.hero-premium .hero-stats > div {
    min-height: 88px !important;
    padding: 12px !important;
  }

  .webcraft-site .hero.hero-premium .stat-num {
    font-size: 1.35rem !important;
  }
}

/* ============================================================
   NO-CROP / FULL-PAGE SAFETY FIX — 2026-10-01
   Prevents the home page, header, hero card, and background from
   being visually clipped by fixed heights or overflow rules.
   ============================================================ */
html,
body.webcraft-site {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
}

body.webcraft-site {
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

.webcraft-site .wc-header,
.webcraft-site .wc-nav,
.webcraft-site .hero,
.webcraft-site .hero.hero-premium,
.webcraft-site .hero.hero-premium > .container,
.webcraft-site .hero.hero-premium .hero-card,
.webcraft-site .hero.hero-premium .hero-content,
.webcraft-site .hero.hero-premium .hero-visual {
  max-height: none !important;
}

.webcraft-site .wc-header {
  overflow: visible !important;
}

.webcraft-site .wc-nav {
  width: 100% !important;
  min-height: var(--header-height) !important;
  height: auto !important;
  overflow: visible !important;
}

.webcraft-site .hero.hero-premium {
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
}

.webcraft-site .hero.hero-premium > .container {
  overflow: visible !important;
}

.webcraft-site .hero.hero-premium .hero-card {
  height: auto !important;
  overflow: visible !important;
}

/* Keep the star field/background visible across the complete page. */
.webcraft-site::before,
.webcraft-site::after {
  max-height: none !important;
}
