.zenref-hero {
  color: #fff;
  background: #000;
  isolation: isolate;
}

.zenref-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 52 / 27;
  max-height: 950px;
  z-index: -1;
  overflow: hidden;
}

.zenref-hero__bg-image {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
}

.zenref-hero__bg-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.zenref-hero__bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 149px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%);
  pointer-events: none;
}

.zenref-hero__glow {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  will-change: opacity, filter;
}

.zenref-hero__glow--full {
  top: auto;
  bottom: 30%;
  left: 50%;
  width: 130%;
  height: 80%;
  border-radius: 50%;
  background: linear-gradient(to top,
    rgba(34, 226, 67, 0.65) 0%,
    rgba(34, 226, 67, 0.35) 28%,
    rgba(34, 226, 67, 0.14) 55%,
    rgba(34, 226, 67, 0.00) 100%);
  transform: translateX(-50%);
  filter: blur(50px);
  opacity: 0;
  animation: zenref-glow-lightning-full 9s linear infinite;
}

@keyframes zenref-glow-lightning-full {
  0%   { opacity: 0;    filter: blur(50px) brightness(1); }
  1%   { opacity: 1;    filter: blur(40px) brightness(1.6); }
  2.5% { opacity: 0.15; filter: blur(50px) brightness(1); }
  3.5% { opacity: 0.9;  filter: blur(42px) brightness(1.4); }
  6%   { opacity: 0;    filter: blur(50px) brightness(1); }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .zenref-hero__glow--full {
    animation: none;
    opacity: 0;
  }
}

.zenref-hero__inner {
  max-width: 1200px;
  margin: 97px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(30px, calc(30px + (100vh - 650px) * 62 / 300), 92px);
}

@media (min-height: 850px) {
  .zenref-hero__inner {
    margin-top: 205px;
  }
}

.zenref-hero__toggle {
  display: inline-flex;
  padding: 8px 10px;
  align-items: center;
  gap: 8px;
  border-radius: 48px;
  border: 1px solid transparent;
  background:
    linear-gradient(143deg, #222 0.72%, #000 100%) padding-box,
    linear-gradient(180deg, rgba(114, 114, 114, 0.50) 0%, rgba(0, 0, 0, 0) 100%) border-box;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.zenref-hero__toggle-btn {
  display: flex;
  height: 57px;
  padding: 24px 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 64px;
  background: transparent;
  border: 0;
  color: #B3AA9D;
  text-align: center;
  font-family: Nunito, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  cursor: pointer;
  transition: color 0.2s;
}

.zenref-hero__toggle-btn.is-active {
  display: flex;
  padding: 15px 32px;
  align-items: center;
  gap: 8px;
  height: auto;
  border-radius: 64px;
  border: 1px solid #FFF;
  background: linear-gradient(143deg, #222 0.72%, #000 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #22E243;
  font-weight: 700;
}

.zenref-hero__toggle-btn.is-disabled {
  cursor: not-allowed;
}

.zenref-hero__toggle-icon {
  flex: 0 0 auto;
}

.zenref-hero__badge {
  display: flex;
  padding: 7px 11px 7px 9px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  border-radius: 64px;
  border: 1px solid rgba(136, 136, 136, 0.30);
  background: #222;
  color: #B3AA9D;
  text-align: center;
  font-family: Nunito, sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1px;
}

.zenref-hero__badge svg {
  flex: 0 0 auto;
}

.zenref-hero__copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.zenref-hero__kicker {
  margin: 0 !important;
  color: #FFF;
  text-align: center;
  font-feature-settings: 'liga' off, 'clig' off;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.62);
  font-family: Nunito, sans-serif;
  font-size: 48px;
  font-style: normal;
  font-weight: 800;
  line-height: 34px;
}

.zenref-hero__amount {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 330px;
  max-height: 103px;
  margin: 0 auto;
}

.zenref-hero__amount img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.zenref-hero__sub {
  margin: 0 !important;
  color: #FFF;
  text-align: center;
  font-feature-settings: 'liga' off, 'clig' off;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.62);
  font-family: Nunito, sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 800;
  line-height: 24px;
}

.zenref-hero__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1017px;
  padding: 32px 48px 64px 48px;
  border-radius: 16px;
  background: linear-gradient(166deg, rgba(62, 60, 60, 0.72) 0%, rgba(34, 34, 34, 0.65) 50%, #000 80%);
  text-align: center;
}

.zenref-hero__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(171deg, rgba(114, 114, 114, 0.30) 0%, rgba(255, 255, 255, 0) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

@media (min-height: 850px) {
  .zenref-hero__card {
    padding: 64px 48px;
  }
}

.zenref-hero__card-title {
  margin: 0 0 clamp(16px, calc(16px + (100vh - 650px) * 8 / 300), 24px) !important;
  color: #FFF;
  text-align: center;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: Nunito, sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 600;
  line-height: 35px;
}

.zenref-hero__card-text {
  margin: 0 0 clamp(32px, calc(32px + (100vh - 650px) * 8 / 300), 40px) !important;
  color: #FFF;
  text-align: center;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: Nunito, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 35px;
}

.zenref-hero__card-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

@media (min-height: 700px) {
  .zenref-hero__card-actions {
    gap: 24px;
  }
}

.zenref-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-height: 64px;
  padding:
    clamp(16px, calc(16px + (100vh - 650px) * 8 / 300), 24px)
    clamp(24px, calc(24px + (100vh - 650px) * 8 / 300), 32px);
  border-radius: 999px;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: Nunito, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 800;
  line-height: 24px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.zenref-btn--primary {
  background: #25e34a;
  color: #000;
}

.zenref-btn--primary svg path {
  transition: stroke 0.2s;
}

.zenref-btn--primary:hover {
  color: #000;
  background: #20BB3B;
}

.zenref-btn--primary:hover svg path {
  stroke: #000;
}

.zenref-btn--ghost {
  background: transparent;
  color: #B3AA9D;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: clamp(32px, calc(32px + (100vh - 650px) * 8 / 300), 40px);
}

.zenref-btn--ghost svg path {
  transition: stroke 0.2s;
}

.zenref-btn--ghost:hover {
  color: #000;
  background: #FFF;
  border-color: #FFF;
}

.zenref-btn--ghost:hover svg path {
  stroke: #000;
}

@media (max-width: 768px) {
  .zenref-hero {
    aspect-ratio: auto;
    min-height: 100svh;
    padding: 24px 16px 40px;
  }

  .zenref-hero__bg::after {
    left: 0;
    right: 0;
    width: 100%;
    height: 513.015px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 50.39%);
  }

  /* Top wystrzał obrazka hero — -240px @ 768vw → -54px @ ≤440vw (range 186px / 328px viewport). */
  .zenref-hero__bg-image {
    top: clamp(-240px, calc(-54px - (100vw - 440px) * 186 / 328), -54px);
  }

  /* Bg sizujemy szerokością (aspect mobile imagea 1321/2247), nie wysokością sekcji
     — żeby zdjęcie zawsze wyglądało tak samo niezależnie od wysokości ekranu. */
  .zenref-hero__bg {
    height: auto;
    max-height: none;
    aspect-ratio: 1321 / 2247;
  }

  .zenref-hero__kicker {
    font-size: 32px;
    line-height: 43px;
  }

  /* Liniowo: 210px @ 768vw → 153px @ ≤440vw (range 57px / 328px viewport). */
  .zenref-hero__copy {
    margin-top: clamp(153px, calc(153px + (100vw - 440px) * 57 / 328), 210px);
    gap: 16px;
  }

  .zenref-hero__inner {
    margin-top: 89px;
    gap: 32px;
  }

  .zenref-hero__toggle-btn {
    position: relative;
    padding: 10px 14px;
    font-size: 14px;
  }

  .zenref-hero__toggle-btn[data-target="business"] > span:first-of-type {
    width: 110px;
  }
  .zenref-hero__toggle-btn[data-target="individual"] > span:first-of-type {
    width: 120px;
  }

  .zenref-hero__badge {
    position: absolute;
    top: -22px;
    font-weight:800;
  }

  .zenref-hero__card {
    margin-top: 4px;
    gap: 24px;
    padding: 40px 32px;
  }

  .zenref-hero__card-title {
    margin-bottom: 0 !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
  }

  .zenref-hero__card-text {
    margin-bottom: 8px !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .zenref-hero__card-actions {
    width: 100%;
    flex-direction: column;
  }

  .zenref-btn {
    width: 100%;
    font-size: 16px;
    font-weight: 800;
    line-height: 24px;
  }
}

/* Poniżej 440vw — zdjęcie nie skaluje się, trzyma rozmiar z 440 i jest wycentrowane
   (na węższych viewportach overflow X wycina krawędzie). */
@media (max-width: 440px) {
  .zenref-hero__bg-image {
    left: 50%;
    right: auto;
    width: 440px;
    height: 748px;
    transform: translateX(-50%);
  }
}

/* ≤400px — węższe gutter (10px zamiast 16px) + stały padding/height na buttonach. */
@media (max-width: 400px) {
  .zenref-hero {
    padding-left: 10px;
    padding-right: 10px;
  }
  .zenref-hero__bg::after {
    height: 35%;
  }
  .zenref-btn {
    height: 48px;
    padding: 16px 24px;
  }
  .zenref-btn--ghost {
    padding-left: 24px;
  }
}

@media (max-width: 380px) {
  .zenref-hero__toggle-btn.is-active{
      gap: 4px;
      padding: 15px 20px;
  }
  .zenref-hero__toggle{
    gap:unset;
    padding: 8px 10px;
  }

  .zenref-hero__toggle-icon{
    width:16px;
  }

  .zenref-hero__toggle-btn{
    padding: 10px 14px;
    gap:4px; 
    padding-left:8px;
  }
}