/* Sceny w hero stron MA i lojalności (hero-sceny.js, kontener z narzedzia/hero_makiety.py). Od 1200 px; niżej sam tekst. */
.hero-makieta { position: relative; overflow: hidden; }
.hero-makieta > div:not(.hs) { position: relative; z-index: 1; }
.hs { display: none; }
@media (min-width: 1200px) {
  .hero-makieta .hero-makieta-tekst { max-width: min(900px, calc(100% - 560px)) !important; }
  .hs { --hs-niebieski: #2B4C9B; --hs-jasny: #6F8CC8; --hs-granat: #0B1A2E; --hs-tusz: #13233D; --hs-szary: #55617A; --hs-zloty: #E8B04B;
    display: block; position: absolute; z-index: 0; top: 18px; right: max(0px, calc(50% - 690px)); width: 560px; height: 600px; pointer-events: none;
    font-family: inherit; color: var(--hs-granat); }
  .hs * { box-sizing: border-box; margin: 0; }
  .hs-reset, .hs-reset * { transition: none !important; }

  /* tło: miękka poświata i siatka punktów, wolny dryf */
  .hs-poswiata { position: absolute; inset: -40px -60px -20px -40px; background:
      radial-gradient(260px 220px at 68% 34%, rgba(111, 140, 200,.30), transparent 70%),
      radial-gradient(240px 200px at 30% 72%, rgba(43, 76, 155,.16), transparent 70%);
    filter: blur(6px); animation: hs-dryf 14s ease-in-out infinite alternate; }
  .hs-poswiata::after { content: ""; position: absolute; inset: 40px; background-image: radial-gradient(rgba(11,26,46,.16) 1px, transparent 1.2px); background-size: 18px 18px;
    -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent); }
  @keyframes hs-dryf { to { transform: translate(18px, -12px) scale(1.05); } }

  /* telefon */
  .hs-tel { position: absolute; width: 236px; height: 486px; border-radius: 40px; padding: 9px; background: linear-gradient(145deg, #2A3448, #0B1220 60%);
    box-shadow: 0 50px 90px -20px rgba(11,26,46,.45), 0 18px 36px -12px rgba(11,26,46,.35), inset 0 0 0 1.5px rgba(255,255,255,.12); }
  .hs-ekran { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; }
  .hs-notch { position: absolute; top: 9px; left: 50%; width: 76px; height: 20px; margin-left: -38px; border-radius: 12px; background: #0B1220; z-index: 3; }

  /* ciemny panel z decyzją */
  .hs-panel { position: absolute; border-radius: 22px; padding: 20px 20px 18px; color: #FFFFFF; overflow: hidden;
    background: linear-gradient(160deg, rgba(25,42,72,.97), rgba(11,26,46,.98) 55%); box-shadow: 0 40px 80px -24px rgba(11,26,46,.6), inset 0 0 0 1px rgba(255,255,255,.08);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .hs-panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(147, 168, 214,.22) 48%, transparent 66%); background-size: 260% 100%; background-position: 120% 0; }
  .hs-et { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8FA3C7; margin: 16px 0 9px; }

  /* wejście i wyjście cyklu */
  .hs-wejscie .hs-panel, .hs-wejscie .hs-tel { animation: hs-wejdz .7s cubic-bezier(.2,.8,.2,1) both; }
  .hs-wejscie .hs-tel { animation-delay: .08s; }
  @keyframes hs-wejdz { from { opacity: 0; translate: 0 14px; } }
  .hs-wyjscie .hs-panel > *, .hs-wyjscie .hs-wiad, .hs-wyjscie .hs-ekran > :not(.hs-notch) { opacity: 0 !important; transition: opacity .45s ease !important; }

  /* ===== MA: kto, sygnały, decyzja, wiadomość ===== */
  .hs[data-hs="ma"] .hs-panel { left: 0; top: 70px; width: 330px; z-index: 2; }
  .hs[data-hs="ma"] .hs-tel { right: 6px; top: 10px; transform: perspective(1400px) rotateY(-14deg) rotateZ(2.5deg); }
  .hs[data-hs="ma"] .hs-ekran { background: radial-gradient(140% 90% at 50% 0%, #3E54A0 0%, #1B2754 45%, #0B1220 100%); color: #FFFFFF; }
  .hs-osoba { display: flex; align-items: center; gap: 11px; }
  .hs-awatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #FFFFFF;
    background: linear-gradient(135deg, #6F8CC8, #2B4C9B); box-shadow: 0 0 0 3px rgba(111, 140, 200,.25); }
  .hs-osoba b { display: block; font-size: 15.5px; line-height: 1.2; }
  .hs-osoba small { display: block; font-size: 12px; color: #8FA3C7; }
  .hs-kropki { margin-left: auto; display: flex; gap: 4px; align-self: flex-start; padding-top: 4px; }
  .hs-kropki i { position: relative; width: 18px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; }
  .hs-kropki i.on::after { content: ""; position: absolute; inset: 0; background: #FFFFFF; transform-origin: left; animation: hs-postep 8.1s linear both; }
  .hs-stop .hs-kropki i.on::after, .hs-stop * { animation-play-state: paused !important; }
  @keyframes hs-postep { from { transform: scaleX(0); } }
  .hs-sygnaly { list-style: none; padding: 0; display: grid; gap: 7px; }
  .hs-sygnaly li { position: relative; padding: 8px 10px 8px 26px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 13px; line-height: 1.3; color: #DCE5F7;
    opacity: 0; transform: translateX(-10px); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1), background .6s ease; }
  .hs-sygnaly li::before { content: ""; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #6F8CC8; }
  .hs-sygnaly li.on { opacity: 1; transform: none; background: rgba(111, 140, 200,.12); }
  .hs-sygnaly li.on::before { animation: hs-ping 1.2s ease-out 1; }
  @keyframes hs-ping { 0% { box-shadow: 0 0 0 0 rgba(111, 140, 200,.8); } 100% { box-shadow: 0 0 0 10px rgba(111, 140, 200,0); } }
  .hs-decyzja { display: grid; gap: 6px; }
  .hs-decyzja > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; padding: 0 2px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .hs-decyzja dt { font-size: 12.5px; color: #8FA3C7; }
  .hs-decyzja dd { font-size: 13.5px; font-weight: 700; overflow: hidden; }
  .hs-decyzja dd > span { display: inline-block; opacity: 0; transform: translateY(110%); filter: blur(4px); transition: opacity .4s ease, transform .55s cubic-bezier(.2,.9,.25,1.2), filter .5s ease; }
  .hs-decyzja > div.on dd > span { opacity: 1; transform: none; filter: none; }
  .hs-kanaly { display: flex; gap: 4px; }
  .hs-kanaly > span { opacity: .35; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; background: rgba(255,255,255,.08); color: #C9D5EE; transform: none !important; filter: none !important; }
  .hs-decyzja > div.on .hs-kanaly > span { opacity: .55; }
  .hs-decyzja > div.on .hs-kanaly > span.wyb { opacity: 1; background: #2B4C9B; color: #FFFFFF; box-shadow: 0 0 0 0 rgba(111, 140, 200,.7); animation: hs-ping 1.1s ease-out .1s 1; }
  .hs-gotowe .hs-panel::after { opacity: 1; animation: hs-blysk 1.1s ease both; }
  @keyframes hs-blysk { from { background-position: 120% 0; } to { background-position: -40% 0; } }
  .hs-dzien { text-align: center; padding-top: 52px; font-size: 13px; opacity: .8; text-transform: capitalize; }
  .hs-godz { text-align: center; font-size: 64px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
  .hs-wiad { position: absolute; left: 10px; right: 10px; top: 160px; opacity: 0; transform: translateY(-26px) scale(.94); transition: opacity .35s ease, transform .7s cubic-bezier(.2,1.1,.3,1.15); }
  .hs-wiad.on { opacity: 1; transform: none; }
  .hs-push, .hs-mail, .hs-sms { border-radius: 18px; padding: 12px 13px; background: rgba(255,255,255,.94); color: #0B1A2E; box-shadow: 0 16px 30px -10px rgba(0,0,0,.45); }
  .hs-wiad small { display: block; font-size: 10.5px; color: #55617A; letter-spacing: .02em; }
  .hs-wiad b { display: block; font-size: 14px; line-height: 1.25; margin-top: 3px; }
  .hs-wiad span { display: block; font-size: 12px; line-height: 1.4; color: #3B4658; margin-top: 4px; }
  .hs-push span { display: flex; gap: 9px; align-items: center; }
  .hs-but { flex: none; width: 44px; height: 44px; border-radius: 11px; background: linear-gradient(150deg, #F3F5F9, #C9D3E6) center / 70% no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40' fill='none' stroke='%230B1A2E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 30c0-6 2-12 6-16l6 6c4 2 10 3 16 3l14 3c8 2 14 6 14 10v2H4z'/%3E%3Cpath d='M4 34h56'/%3E%3C/svg%3E"), linear-gradient(150deg, #F3F5F9, #C9D3E6); background-repeat: no-repeat; background-size: 70%, cover; background-position: center; }
  .hs-mail { border-top: 4px solid #2B4C9B; }
  .hs-mail em { display: block; margin-top: 9px; padding: 8px; border-radius: 9px; background: #0B1A2E; color: #FFFFFF; font-style: normal; font-weight: 700; font-size: 12px; text-align: center; }
  .hs-sms { background: #E9EEF8; border-radius: 18px 18px 18px 6px; }
  .hs-sms small { font-weight: 700; color: #0B1A2E; }

  /* ===== Lojalność: aplikacja programu + opłacalność ===== */
  .hs[data-hs="lojalnosc"] .hs-tel { left: 30px; top: 6px; z-index: 1; transform: perspective(1400px) rotateY(14deg) rotateZ(-2.5deg); }
  .hs-tel-jasny .hs-ekran { background: linear-gradient(180deg, #EBEFF7 0%, #FFFFFF 42%); }
  .hs[data-hs="lojalnosc"] .hs-panel { right: 4px; top: 120px; width: 300px; z-index: 2; }
  .hs[data-hs="lojalnosc"] .hs-panel .hs-et { margin-top: 2px; }
  .hs-klub { display: flex; align-items: center; justify-content: space-between; padding: 44px 16px 0; }
  .hs-klub b { font-size: 14px; }
  .hs-status { position: relative; display: inline-grid; perspective: 400px; }
  .hs-status > span { grid-area: 1 / 1; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; text-align: center; backface-visibility: hidden;
    transition: transform .7s cubic-bezier(.3,1.4,.4,1); }
  .hs-st-a { background: #DCE3EE; color: #3B4658; }
  .hs-st-b { background: linear-gradient(135deg, #F6D58A, #E0A23A); color: #4A3206; transform: rotateX(-180deg); }
  .hs-k4 .hs-st-a { transform: rotateX(180deg); }
  .hs-k4 .hs-st-b { transform: none; }
  .hs-k4 .hs-status::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; animation: hs-zloty-ping 1.2s ease-out .2s 2; }
  @keyframes hs-zloty-ping { from { box-shadow: 0 0 0 0 rgba(232,176,75,.75); } to { box-shadow: 0 0 0 14px rgba(232,176,75,0); } }
  .hs-pkt-et { padding: 20px 16px 0; font-size: 12px; color: #55617A; }
  .hs-pkt { padding: 0 16px; font-size: 44px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
  .hs-pkt small { font-size: 14px; font-weight: 700; letter-spacing: 0; color: #55617A; }
  .hs-pasek { margin: 12px 16px 0; height: 8px; border-radius: 6px; background: #DCE5FA; overflow: hidden; }
  .hs-pasek i { display: block; height: 100%; width: 61%; border-radius: inherit; background: linear-gradient(90deg, #2B4C9B, #6F8CC8); transition: width 1.3s cubic-bezier(.25,.8,.25,1); }
  .hs-k2 .hs-pasek i { width: 100%; }
  .hs-k4 .hs-pasek i { width: 14%; background: linear-gradient(90deg, #E0A23A, #F6D58A); transition-duration: .8s; transition-delay: .3s; }
  .hs-pasek-et { display: grid; } .hs-pasek-et > span { grid-area: 1 / 1; transition: opacity .4s ease, transform .5s ease; }
  .hs-po { opacity: 0; transform: translateY(6px); color: #9A6B12; font-weight: 700; }
  .hs-k4 .hs-przed { opacity: 0; transform: translateY(-6px); } .hs-k4 .hs-po { opacity: 1; transform: none; }
  .hs-pasek-et { padding: 7px 16px 0; font-size: 11.5px; color: #55617A; font-variant-numeric: tabular-nums; }
  .hs-toast { position: absolute; left: 12px; right: 12px; top: 38px; z-index: 4; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px;
    background: #0B1A2E; color: #FFFFFF; box-shadow: 0 16px 30px -10px rgba(11,26,46,.6); opacity: 0; transform: translateY(-30px) scale(.92);
    transition: opacity .3s ease, transform .6s cubic-bezier(.2,1.2,.3,1.1); }
  .hs-toast i { flex: none; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #6F8CC8, #2B4C9B); }
  .hs-toast b { display: block; font-size: 13.5px; } .hs-toast small { display: block; font-size: 11px; color: #9FB0D6; }
  .hs-k1 .hs-toast { opacity: 1; transform: none; }
  .hs-k4 .hs-toast { opacity: 0; transform: translateY(-20px) scale(.96); }
  .hs-nagr-et { padding: 22px 16px 8px; font-size: 12.5px; font-weight: 700; }
  .hs-nagroda { margin: 0 16px; display: flex; gap: 10px; align-items: center; padding: 11px; border-radius: 16px; background: #FFFFFF; box-shadow: 0 10px 24px -8px rgba(11,26,46,.22);
    opacity: .35; filter: grayscale(1); transition: opacity .5s ease, filter .6s ease, transform .6s cubic-bezier(.2,1.2,.3,1.1); }
  .hs-nagroda i { flex: none; width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, #F6D58A, #E0A23A); }
  .hs-nagroda b { display: block; font-size: 13px; } .hs-nagroda small { display: block; font-size: 11px; color: #55617A; }
  .hs-k5 .hs-nagroda { opacity: 1; filter: none; transform: scale(1.04); }
  .hs-awans { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .6s cubic-bezier(.2,1.2,.3,1); }
  .hs-awans span { display: inline-block; padding: 9px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #4A3206;
    background: linear-gradient(110deg, #F6D58A 20%, #FFF3D0 40%, #E0A23A 60%); background-size: 220% 100%; box-shadow: 0 12px 24px -8px rgba(224,162,58,.7); }
  .hs-k4 .hs-awans { opacity: 1; transform: none; }
  .hs-k4 .hs-awans span { animation: hs-polysk 1.6s ease .2s 2; }
  @keyframes hs-polysk { from { background-position: 100% 0; } to { background-position: 0 0; } }
  .hs-wiersz { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 11px; }
  .hs-wiersz span { font-size: 12.5px; color: #DCE5F7; }
  .hs-bar { height: 8px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
  .hs-bar i { display: block; height: 100%; width: 6%; border-radius: inherit; transition: width 1.5s cubic-bezier(.25,.8,.25,1); }
  .hs-bar-koszt i { background: #8FA3C7; } .hs-bar-marza i { background: linear-gradient(90deg, #2B4C9B, #6F8CC8); } .hs-bar-akt i { background: #FFFFFF; }
  .hs-k3 .hs-bar-koszt i { width: 30%; }
  .hs-k3 .hs-bar-marza i { width: 74%; transition-delay: .2s; }
  .hs-k3 .hs-bar-akt i { width: 62%; transition-delay: .4s; }
  .hs-wykres { position: relative; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
  .hs-wykres > span { font-size: 12.5px; color: #DCE5F7; }
  .hs-wykres svg { display: block; width: 100%; height: 62px; margin-top: 6px; overflow: visible; }
  .hs-zero { stroke: rgba(255,255,255,.18); stroke-dasharray: 3 4; stroke-width: 1; fill: none; }
  .hs-krzywa { fill: none; stroke: #6F8CC8; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.7s cubic-bezier(.4,.1,.2,1);
    filter: drop-shadow(0 0 6px rgba(111, 140, 200,.7)); }
  .hs-kon { fill: #FFFFFF; opacity: 0; transition: opacity .3s ease 1.5s; }
  .hs-k6 .hs-krzywa { stroke-dashoffset: 0; }
  .hs-k6 .hs-kon { opacity: 1; }
  .hs-wykres em { position: absolute; right: 0; top: 10px; font-style: normal; font-size: 12px; font-weight: 800; color: #7CE3B0; opacity: 0; transform: translateY(6px); transition: opacity .4s ease 1.6s, transform .5s ease 1.6s; }
  .hs-k6 .hs-wykres em { opacity: 1; transform: none; }
}
@media (min-width: 1200px) {
  /* podpis sceny: przekaz jednym zdaniem */
  .hs-podpis { position: absolute; left: 0; bottom: 6px; z-index: 3; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: #13233D; letter-spacing: -.005em; }
  .hs-twarze { display: flex; }
  .hs-twarze i { width: 26px; height: 26px; margin-right: -7px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800;
    color: #FFFFFF; background: #C7D0E0; box-shadow: 0 0 0 2px #F4F7FC; transition: background .5s ease, transform .5s cubic-bezier(.2,1.3,.3,1); }
  .hs-twarze i.on { background: linear-gradient(135deg, #6F8CC8, #2B4C9B); transform: translateY(-2px); }
  .hs-twarze { margin-right: 6px; }
  .hs-podpis-loj { left: auto; right: 4px; bottom: 34px; max-width: 300px; font-size: 13px; line-height: 1.35; opacity: 0; transform: translateY(8px); transition: opacity .5s ease 1.9s, transform .6s ease 1.9s; }
  .hs-k6 .hs-podpis-loj { opacity: 1; transform: none; }
}
@media (min-width: 1200px) and (prefers-reduced-motion: reduce) {
  .hs *, .hs *::before, .hs *::after { animation: none !important; transition: none !important; }
}
