/* Hero podstrony — wsp—lny wzorzec dla Kontakt / Grunty / Dla klienta / Pod klucz / Kredyt / 404 */
.ax-hero--page {
  min-height: min(86svh, 920px);
}

.ax-hero--page .ax-hero__inner--page {
  min-height: min(86svh, 920px);
  padding-top: 150px;
  padding-bottom: clamp(44px, 7vh, 88px);
}

.ax-hero--page .ax-hero__media {
  pointer-events: none;
  filter: saturate(0.58) contrast(1.05);
}

.ax-hero__grad-a--page {
  background: linear-gradient(104deg, rgba(20, 24, 51, 0.86) 0%, rgba(20, 24, 51, 0.46) 56%, rgba(20, 24, 51, 0.18) 100%);
}

.ax-hero--page .ax-hero__shell {
  padding-bottom: 0;
}

.ax-hero-page__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin-bottom: clamp(20px, 3vh, 36px);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 241, 235, 0.55);
  pointer-events: auto;
}

.ax-hero-page__crumb a {
  color: rgba(244, 241, 235, 0.55);
  text-decoration: none;
  transition: color 320ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .ax-hero-page__crumb a:hover {
    color: var(--ax-paper);
  }
}

.ax-hero-page__title {
  position: relative;
  z-index: 3;
  margin: 0 0 clamp(22px, 2.8vw, 40px);
  color: var(--ax-paper);
  font-weight: 600;
  font-size: clamp(40px, 6.6vw, 118px);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.ax-hero--page .ax-hero__line--italic {
  padding-left: clamp(24px, 7vw, 132px);
}

.ax-hero--page .ax-hero__line--italic .ax-hero__line-inner {
  font-weight: 400;
  font-style: italic;
  font-size: 1.02em;
  letter-spacing: -0.02em;
}

.ax-hero-page__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(20px, 3vw, 60px);
}

.ax-hero-page__copy {
  flex: 1 1 min(760px, 100%);
  min-width: 0;
}

/* Szklana karta: szersza niż na home, cie? jak w projekcie podstron. */
.ax-hero--page .ax-hero__card {
  flex: 0 1 auto;
  width: min(640px, 100%);
  max-width: none;
  background: rgba(16, 20, 44, 0.5);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid rgba(244, 241, 235, 0.16);
  box-shadow: 0 14px 40px rgba(6, 9, 24, 0.34);
  padding: clamp(22px, 2.4vw, 34px);
}

.ax-hero-page__lead {
  margin: 0 0 clamp(20px, 2.2vw, 28px);
  font-weight: 300;
  font-size: 17.5px;
  line-height: 1.66;
  letter-spacing: -0.004em;
  color: rgba(244, 241, 235, 0.86);
  text-wrap: pretty;
}

.ax-hero--page .ax-hero__cta--ghost {
  border-color: rgba(244, 241, 235, 0.34);
}

.ax-hero-page__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 2.8vw, 50px);
  margin-left: auto;
  align-self: flex-end;
  pointer-events: auto;
  opacity: 0;
  animation: ax-softIn 1s ease 1.5s forwards;
}

.ax-hero-page__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.ax-hero-page__stat-num {
  display: block;
  font-weight: 300;
  font-size: clamp(26px, 2.9vw, 44px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--ax-paper);
  white-space: nowrap;
}

.ax-hero-page__stat-line {
  display: block;
  width: 0;
  height: 1px;
  margin-top: 12px;
  background: rgba(244, 241, 235, 0.22);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.ax-hero-page__stat-line.is-on {
  width: 100%;
}

.ax-hero-page__stat-label {
  display: block;
  margin-top: 11px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 241, 235, 0.5);
}

/* Wariant 404: pełny ekran, wielka cyfra w tle, bez statystyk. */
.ax-hero--page.ax-hero--404,
.ax-hero--page.ax-hero--404 .ax-hero__inner--page {
  min-height: 100svh;
}

.ax-hero-page__watermark {
  position: absolute;
  right: clamp(-30px, -2vw, -10px);
  bottom: clamp(-40px, -4vh, -20px);
  z-index: 0;
  font-weight: 600;
  font-size: clamp(190px, 31vw, 520px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: rgba(244, 241, 235, 0.055);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 900px) {
  .ax-hero--page,
  .ax-hero--page .ax-hero__inner--page {
    min-height: 100svh;
  }

  .ax-hero--page .ax-hero__inner--page {
    justify-content: center;
    padding-top: calc(var(--ax-navh) + 20px);
    padding-bottom: clamp(30px, 5vh, 60px);
  }

  .ax-hero--page .ax-hero__line--italic {
    padding-left: 0;
  }

  h1.ax-hero-page__title {
    margin-bottom: 22px;
  }

  .ax-hero--page .ax-hero__card {
    width: 100%;
  }

  .ax-hero-page__stats {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    gap: clamp(22px, 7vw, 44px);
  }

  .ax-hero-page__stat {
    align-items: flex-start;
    text-align: left;
  }

  .ax-hero-page__watermark {
    font-size: clamp(150px, 48vw, 300px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ax-hero-page__stats {
    animation: none !important;
    opacity: 1 !important;
  }

  .ax-hero-page__stat-line {
    transition: none !important;
  }
}
