/* =====================================================================
   HERO: haslo + podglad raportu rozszerzonego pod skosem (index.html)
   Karta to zywy HTML (ostry tekst, animacja); ortofotomapa z Geoportalu - hero-raport.js
   ===================================================================== */

/* ---- WSPOLNY JEZYK WIZUALNY: karty raportu i panele z tekstem (te same tla, ramki, zaokraglenia, akcenty) ---- */
:root {
  --hw-tlo: linear-gradient(160deg, rgba(34,36,29,.94) 0%, rgba(22,23,19,.96) 55%, rgba(15,16,13,.98) 100%);
  --hw-ramka: rgba(201,169,110,.24);
  --hw-r: 16px;
  --hw-ok: #a9cc9b;          /* pozytywne (sage) */
  --hw-uwaga: #e2b45c;       /* do sprawdzenia */
  --hw-cien: 0 40px 100px rgba(0,0,0,.5);
}

/* --- haslo: grubsza, wyeksponowana szeryfowa --- */
.hero .hero-headline { font-weight: 500; font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero .hero-headline em { font-weight: 500; display: inline; }
.hero .hero-eyebrow { letter-spacing: .28em; }

/* --- uklad: tekst po lewej, raport po prawej (komputer) --- */
@media (min-width: 1100px) {
  .hero .hero-content { max-width: 1320px; display: grid; grid-template-columns: minmax(0, 590px) minmax(0, 1fr); column-gap: 3vw; align-items: center; padding-top: 9.5rem; }
  .hero .hero-headline { font-size: clamp(3rem, 4.4vw, 4.6rem); }
  .hero .search-box { max-width: 590px; }
  /* raport stoi w miejscu, gdy wyszukiwarka urosnie (mapa) */
  .hero .hero-wizual { align-self: start; margin-top: 4.5rem; }
}

/* --- scena 3D --- */
.hero-wizual { --hw-skala: 1; position: relative; display: block; color: inherit; text-decoration: none; z-index: 2; height: calc(560px * var(--hw-skala)); }
.hw-scena { position: absolute; left: 0; top: 0; width: 680px; height: 560px; transform-origin: 0 0; transform: scale(var(--hw-skala)); perspective: 1700px; perspective-origin: 30% 40%; }
.hw-ruch { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(var(--hw-my, 0deg)) rotateX(var(--hw-mx, 0deg)); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.hw-karta { position: absolute; border-radius: var(--hw-r); overflow: hidden; font-family: var(--fb); }

/* karta glowna: rownoleglobok - prawa krawedz blizej, lekko w gore */
.hw-przod {
  left: 30px; top: 30px; width: 640px; height: 486px;
  background: var(--hw-tlo);
  border: 1px solid var(--hw-ramka);
  box-shadow: 0 50px 120px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform: rotateY(-16deg) rotateX(6deg) rotateZ(-1.6deg);
  animation: hwWejscie 1.7s .55s cubic-bezier(.16,.84,.22,1) both;
}
@keyframes hwWejscie {
  0% { opacity: 0; transform: translate3d(160px, 60px, -320px) rotateY(-44deg) rotateX(14deg) rotateZ(-5deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: rotateY(-16deg) rotateX(6deg) rotateZ(-1.6deg); }
}
/* karta w tle: jasna, rozmyta kopia raportu */
.hw-tyl {
  left: -70px; top: 70px; width: 520px; height: 400px;
  background: linear-gradient(160deg, rgba(244,242,236,.92), rgba(226,224,216,.88));
  filter: blur(3.5px); opacity: .5;
  transform: translateZ(-180px) rotateY(-16deg) rotateX(6deg) rotateZ(-1.6deg);
  animation: hwWejscieTyl 1.6s .3s cubic-bezier(.16,.84,.22,1) both;
  display: grid; grid-template-columns: 110px 1fr;
}
@keyframes hwWejscieTyl { 0% { opacity: 0; transform: translate3d(80px, 40px, -420px) rotateY(-40deg) rotateX(12deg); } 100% { opacity: .5; transform: translateZ(-180px) rotateY(-16deg) rotateX(6deg) rotateZ(-1.6deg); } }
.hwt-bok { background: rgba(255,255,255,.7); padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; }
.hwt-bok img { width: 78px; opacity: .6; filter: invert(1) brightness(.35); margin-bottom: 8px; }
.hwt-bok i { display: block; height: 9px; border-radius: 5px; background: rgba(20,30,30,.16); }
.hwt-bok i.on { background: rgba(20,60,60,.35); }
.hwt-tresc { position: relative; padding: 18px; }
.hwt-mapa { position: absolute; left: 18px; top: 18px; width: 190px; height: 150px; border-radius: 8px; overflow: hidden; background: #3a5a3a; }
.hwt-mapa img { position: absolute; width: 50%; height: 50%; object-fit: cover; }
.hwt-ocena { position: absolute; left: 228px; top: 30px; width: 74px; height: 74px; border-radius: 50%; border: 6px solid #7fd0b0; display: grid; place-items: center; font: 600 22px var(--fb); color: #24413b; }
.hwt-wykres { position: absolute; left: 18px; right: 18px; bottom: 30px; height: 120px; width: calc(100% - 36px); }
.hwt-wykres polyline { fill: none; stroke: #4f9fd0; stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* polysk przesuwajacy sie po karcie po wejsciu */
.hw-blysk { position: absolute; inset: 0; pointer-events: none; z-index: 5; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.10) 45%, rgba(255,255,255,.02) 52%, transparent 60%); background-size: 250% 100%; background-position: 130% 0; animation: hwBlysk 2.2s 1.9s ease-in-out both; }
@keyframes hwBlysk { from { background-position: 130% 0; } to { background-position: -60% 0; } }

/* --- naglowek karty --- */
.hw-gora { display: flex; align-items: center; gap: 26px; height: 50px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.hw-logo { height: 20px; width: auto; opacity: .95; }
.hw-zakladki { display: flex; gap: 18px; font-size: 11px; color: rgba(242,240,235,.55); flex: 1; }
.hw-zakladki .on { color: #f2f0eb; position: relative; }
.hw-zakladki .on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -17px; height: 2px; background: #c9a96e; border-radius: 2px; }
.hw-user { width: 20px; height: 20px; fill: none; stroke: rgba(242,240,235,.6); stroke-width: 1.4; }

/* --- srodek: mapa | wynik | listy --- */
.hw-srodek { display: grid; grid-template-columns: 206px 196px 1fr; gap: 16px; padding: 16px 18px 12px; }
.hw-mapa { position: relative; height: 212px; border-radius: 10px; overflow: hidden; background: radial-gradient(ellipse at 40% 50%, #4a6040 0%, #2b3a2a 60%, #1c2620 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.hw-orto { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; filter: saturate(.85) brightness(.82) contrast(1.05); }
.hw-orto.gotowe { opacity: 1; }
.hw-orto img { position: absolute; display: block; }
.hw-orto img.hw-tile { width: 50%; height: 50%; }
.hw-orto img.hw-granice { inset: 0; width: 100%; height: 100%; filter: brightness(0) invert(1); opacity: .45; }
/* kadr 960x656 dopasowany do okna mapy (pokrycie jak object-fit: cover, srodek na dzialce) */
.hw-orto, .hw-obrys { left: 50%; top: 50%; right: auto; bottom: auto; width: 520px; height: 355px; transform: translate(-51.2%, -47.7%); }
.hw-obrys { position: absolute; overflow: visible; }
.hw-dzialka { fill: rgba(223,192,144,.2); stroke: #dfc090; stroke-width: 5; stroke-linejoin: round; stroke-dasharray: 700; stroke-dashoffset: 700; filter: drop-shadow(0 0 10px rgba(223,192,144,.55)); animation: hwObrys 1.4s 1.6s ease-out forwards; }
@keyframes hwObrys { 0% { stroke-dashoffset: 700; fill-opacity: 0; } 70% { fill-opacity: 0; } 100% { stroke-dashoffset: 0; fill-opacity: 1; } }
.hw-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; animation: hwPin .7s 2.6s cubic-bezier(.3,1.6,.5,1) both; }
.hw-pin svg { width: 22px; height: 28px; fill: #f2f0eb; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
.hw-pin svg circle { fill: #1c2a28; }
.hw-pin span { margin-top: 2px; font-size: 10px; font-weight: 500; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
@keyframes hwPin { 0% { opacity: 0; transform: translate(-50%, -260%); } 100% { opacity: 1; transform: translate(-50%, -100%); } }
.hw-narzedzia { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; }
.hw-narzedzia i { width: 22px; height: 22px; border-radius: 6px; background: rgba(14,15,12,.72); display: grid; place-items: center; }
.hw-narzedzia svg { width: 13px; height: 13px; fill: none; stroke: rgba(242,240,235,.8); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.hw-info { display: flex; flex-direction: column; }
.hw-id { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #f2f0eb; }
.hw-id svg { width: 14px; height: 14px; fill: none; stroke: var(--hw-ok); stroke-width: 1.8; }
.hw-gm { font-size: 10.5px; color: rgba(242,240,235,.55); margin: 3px 0 12px 20px; }
.hw-ocena { display: grid; grid-template-columns: 84px 1fr; align-items: center; column-gap: 10px; position: relative; }
.hw-pierscien { width: 84px; height: 84px; transform: rotate(-90deg); grid-row: 1 / 3; }
.hw-tor { fill: none; stroke: rgba(255,255,255,.09); stroke-width: 7; }
.hw-pasek { fill: none; stroke: url(#hwGrad); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 219 264; animation: hwPierscien 1.6s 1.5s cubic-bezier(.3,.8,.3,1) both; }
@keyframes hwPierscien { from { stroke-dasharray: 0 264; } to { stroke-dasharray: 219 264; } }
.hw-liczba { position: absolute; left: 0; top: 0; width: 84px; height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.hw-liczba b { font-family: var(--fb); font-size: 27px; font-weight: 500; color: #f2f0eb; letter-spacing: -.02em; }
.hw-liczba small { font-size: 9px; color: rgba(242,240,235,.5); margin-top: 2px; }
.hw-werdykt span { display: block; font-size: 10px; color: rgba(242,240,235,.55); margin-bottom: 4px; }
.hw-werdykt em { display: inline-block; font-style: normal; font-size: 10.5px; font-weight: 500; color: #0f1a17; background: var(--hw-ok); padding: 4px 8px; border-radius: 6px; white-space: nowrap; animation: hwFade .6s 2.6s both; }
.hw-wart { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.hw-wart span { display: block; font-size: 10px; color: rgba(242,240,235,.55); }
.hw-wart strong { display: block; font-size: 19px; font-weight: 500; color: #f2f0eb; margin: 3px 0 2px; letter-spacing: -.01em; }
.hw-wart small { font-size: 9px; color: rgba(242,240,235,.45); }

.hw-lista { border-left: 1px solid rgba(255,255,255,.08); padding-left: 16px; }
.hw-lista h4 { font-size: 11px; font-weight: 500; color: #f2f0eb; margin: 0 0 7px; }
.hw-lista h4 + ul + h4 { margin-top: 10px; }
.hw-lista ul { list-style: none; margin: 0; padding: 0; }
.hw-lista li { position: relative; padding-left: 17px; font-size: 10px; line-height: 1.35; color: rgba(242,240,235,.78); margin-bottom: 6px; animation: hwLi .5s both; }
.hw-plus li::before { content: ''; position: absolute; left: 1px; top: 2px; width: 8px; height: 4px; border-left: 1.6px solid var(--hw-ok); border-bottom: 1.6px solid var(--hw-ok); transform: rotate(-45deg); }
.hw-minus li::before { content: '!'; position: absolute; left: 0; top: 0; width: 11px; height: 11px; font-size: 8px; font-weight: 700; line-height: 11px; text-align: center; color: #1b1406; background: var(--hw-uwaga); clip-path: polygon(50% 0, 100% 100%, 0 100%); padding-top: 1px; }
.hw-plus li:nth-child(1) { animation-delay: 2.3s; } .hw-plus li:nth-child(2) { animation-delay: 2.45s; } .hw-plus li:nth-child(3) { animation-delay: 2.6s; } .hw-plus li:nth-child(4) { animation-delay: 2.75s; }
.hw-minus li:nth-child(1) { animation-delay: 2.95s; } .hw-minus li:nth-child(2) { animation-delay: 3.1s; }
@keyframes hwLi { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes hwFade { from { opacity: 0; } to { opacity: 1; } }
.hw-btn { display: inline-block; margin-top: 6px; font-size: 10px; color: #f2f0eb; border: 1px solid rgba(242,240,235,.45); border-radius: 7px; padding: 7px 12px; white-space: nowrap; }

.hw-kafle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 4px 18px 12px; }
.hw-kafel { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 10px; padding: 10px 11px; display: flex; flex-direction: column; gap: 4px; animation: hwKafel .6s both; }
.hw-kafel:nth-child(1) { animation-delay: 2.2s; } .hw-kafel:nth-child(2) { animation-delay: 2.32s; } .hw-kafel:nth-child(3) { animation-delay: 2.44s; } .hw-kafel:nth-child(4) { animation-delay: 2.56s; }
@keyframes hwKafel { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hw-kafel b { font-size: 11.5px; font-weight: 500; color: var(--hw-ok); }
.hw-kafel-uwaga b { color: var(--hw-uwaga); }
.hw-kafel span { font-size: 9.5px; line-height: 1.35; color: rgba(242,240,235,.72); min-height: 26px; }
.hw-kafel i { align-self: flex-start; font-style: normal; font-size: 8.5px; color: rgba(242,240,235,.7); border: 1px solid rgba(255,255,255,.16); border-radius: 5px; padding: 2px 6px; }
.hw-stopka { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 18px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; }
.hw-stopka > span:first-child { font-size: 9.5px; line-height: 1.45; color: rgba(242,240,235,.62); }
.hw-stopka .hw-btn { margin: 0; color: #c9a96e; border-color: rgba(201,169,110,.55); }

.hw-podpis { position: absolute; left: calc(70px * var(--hw-skala)); bottom: calc(-6px * var(--hw-skala)); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(242,240,235,.55); animation: hwFade .8s 3.2s both; white-space: nowrap; }
.hero-wizual:hover .hw-btn { border-color: #c9a96e; color: #c9a96e; }
.hero-wizual:hover .hw-podpis { color: var(--gold); }
.hero-wizual:focus-visible { outline: 2px solid var(--gold); outline-offset: 8px; border-radius: 12px; }

/* lekkie unoszenie karty po wejsciu */
.hw-scena { animation: hwPlyw 9s 3.4s ease-in-out infinite; }
@keyframes hwPlyw { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }

/* --- przy filmie (komputer) bez rozmyc tla - oszczedza GPU --- */
body.film-aktywny .hw-przod { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--hw-tlo); }
/* po przebudowie hero (film) animacje wejscia nie powtarzaja sie */
.hero.wejscie-zrobione .hw-przod, .hero.wejscie-zrobione .hw-tyl, .hero.wejscie-zrobione .hw-blysk, .hero.wejscie-zrobione .hw-dzialka,
.hero.wejscie-zrobione .hw-pin, .hero.wejscie-zrobione .hw-pasek, .hero.wejscie-zrobione .hw-werdykt em, .hero.wejscie-zrobione .hw-lista li,
.hero.wejscie-zrobione .hw-kafel, .hero.wejscie-zrobione .hw-podpis { animation: none; }
.hero.wejscie-zrobione .hw-dzialka { stroke-dashoffset: 0; }
.hero.wejscie-zrobione .hw-blysk { background-position: -60% 0; }

/* --- telefon / tablet: raport pod wyszukiwarka, mniejszy skos --- */
@media (max-width: 1099px) {
  .hero-wizual { margin: 2.5rem auto 1rem; max-width: 680px; }
  .hw-tyl { display: none; }
  .hw-przod { left: 0; top: 20px; transform: rotateY(-9deg) rotateX(4deg) rotateZ(-1deg); animation-name: hwWejscieM; }
  @keyframes hwWejscieM { 0% { opacity: 0; transform: translate3d(0, 60px, -200px) rotateY(-24deg) rotateX(10deg); } 100% { opacity: 1; transform: rotateY(-9deg) rotateX(4deg) rotateZ(-1deg); } }
  .hw-podpis { left: 0; white-space: normal; bottom: -1.6rem; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  .hw-przod, .hw-tyl, .hw-blysk, .hw-dzialka, .hw-pin, .hw-pasek, .hw-werdykt em, .hw-lista li, .hw-kafel, .hw-podpis, .hw-scena { animation: none !important; }
  .hw-dzialka { stroke-dashoffset: 0; }
  .hw-ruch { transition: none; }
}

/* =====================================================================
   WYSZUKIWARKA POD SKOSEM (w druga strone niz raport) - prostuje sie po najechaniu;
   po wyborze miejscowosci (mapa) raport oddala sie, a ramka z mapa przybliza
   ===================================================================== */
.hero .search-box {
  animation: sbWejscie 1s .75s cubic-bezier(.2,.8,.2,1) both !important;
  transform-origin: 75% 50%;
  transform: perspective(1300px) rotateY(12deg) rotateX(3deg) rotateZ(.9deg);
  transition: transform .75s cubic-bezier(.2,.7,.2,1), box-shadow .75s ease, border-color .75s ease;
  box-shadow: -30px 40px 90px rgba(0,0,0,.42);
  will-change: transform;
}
@keyframes sbWejscie { from { opacity: 0; translate: -70px 30px; } to { opacity: 1; translate: 0 0; } }
.hero .search-box:hover, .hero .search-box:focus-within {
  transform: none; box-shadow: 0 30px 80px rgba(0,0,0,.5); border-color: rgba(201,169,110,.45);
}
/* po wyborze miejscowosci ramka z mapa plynnie przesuwa sie ku srodkowi i lekko powieksza */
.hero .search-box { position: relative; z-index: 3; width: 100%; transition: transform 1.3s cubic-bezier(.22,.7,.2,1), width 1.3s cubic-bezier(.22,.7,.2,1), box-shadow 1.3s ease, border-color 1.3s ease, background-color 1.3s ease; }
@media (min-width: 1100px) and (hover: hover) {
  /* szersza ramka z mapa, wyraznie w prawo - na tle cofnietego raportu */
  .hero.hero-mapa .search-box { width: min(840px, 60vw); max-width: none; transform: translateX(var(--sb-x, 9vw)); box-shadow: 0 40px 110px rgba(0,0,0,.6); border-color: rgba(201,169,110,.45); }
}
.hero.hero-mapa .search-box { will-change: auto; }
@media (max-width: 1099px), (hover: none) { .hero .search-box { transform: none; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .hero .search-box { animation: none !important; transform: none; } }

/* mapa wyboru dzialki: nieco mniejsza, wjezdza "przyblizajac sie" */
@media (min-width: 601px) {
  .hero .map-box { height: 270px; min-height: 0; }
  .hero .map-box #leaflet-map { min-height: 0; height: 100%; }
}
/* w trybie mapy chowamy opis pod haslem - ramka z mapa podjezdza wyzej i miesci sie na ekranie bez przewijania */
.hero .hero-sub { max-height: 12em; overflow: hidden; transition: max-height 1.1s cubic-bezier(.22,.7,.2,1), opacity .7s ease, margin 1.1s ease; }
.hero.hero-mapa .hero-sub { max-height: 0; opacity: 0; margin-bottom: .6rem; }
.hero.hero-mapa .map-box { animation: mapaBlizej 1.1s cubic-bezier(.22,.7,.2,1) both; }
@keyframes mapaBlizej { from { opacity: .55; transform: scale(.97); } to { opacity: 1; transform: none; } }
/* przykladowy raport oddala sie */
.hero .hero-wizual { transition: transform 1.4s cubic-bezier(.22,.7,.2,1), opacity 1.4s ease, filter 1.4s ease; transform-origin: 85% 35%; }
/* raport subtelnie cofa sie w tlo - nadal widoczny */
.hero.hero-mapa .hero-wizual { transform: scale(.9) translate(3%, 0); opacity: .72; filter: saturate(.8) brightness(.82); pointer-events: none; }

/* statyczne zdjecie hero w tle (film wylaczony) */
.hero .hero-bg { transform: none !important; }

/* =====================================================================
   SEKCJA "Nie dostajesz kolejnych map..." + drugi podglad raportu (plan miejscowy)
   ===================================================================== */
.sekcja-analiza { position: relative; overflow: hidden; background: radial-gradient(ellipse 60% 70% at 25% 45%, rgba(201,169,110,.07), transparent 70%), var(--bg); }
.sekcja-analiza .intro-lead-mocny { font-family: var(--fd); font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 500; font-style: italic; line-height: 1.3; color: var(--gold); margin-bottom: 1rem; }
@media (min-width: 900px) {
  .sekcja-analiza .intro-grid { grid-template-columns: minmax(0, 1fr); }
  .sekcja-analiza .intro-tekst { max-width: 720px; }
}
@media (min-width: 1100px) {
  .sekcja-analiza > .container { max-width: 1320px; }
  .sekcja-analiza .intro-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: 3vw; }
  .sekcja-analiza .intro-tekst { max-width: none; }
}
.hw-druga { margin: 0; width: 100%; justify-self: stretch; }
.hw-druga .hw-scena { perspective-origin: 70% 40%; }
/* lustrzany skos - karta zwrocona w strone tekstu */
.hw-druga .hw-przod { transform: rotateY(15deg) rotateX(5deg) rotateZ(1.4deg); animation-name: hwWejscie2; animation-delay: .2s; }
@keyframes hwWejscie2 {
  0% { opacity: 0; transform: translate3d(-160px, 60px, -320px) rotateY(42deg) rotateX(12deg) rotateZ(4deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: rotateY(15deg) rotateX(5deg) rotateZ(1.4deg); }
}
@media (max-width: 1099px) {
  .hw-druga .hw-przod { transform: rotateY(9deg) rotateX(4deg) rotateZ(1deg); animation-name: hwWejscie2M; }
  @keyframes hwWejscie2M { 0% { opacity: 0; transform: translate3d(0, 60px, -200px) rotateY(24deg) rotateX(10deg); } 100% { opacity: 1; transform: rotateY(9deg) rotateX(4deg) rotateZ(1deg); } }
}
/* animacje drugiej karty startuja dopiero, gdy karta wjedzie na ekran (hero-raport.js dodaje .hw-gra) */
.hw-druga:not(.hw-gra) .hw-przod, .hw-druga:not(.hw-gra) .hw-przod *, .hw-druga:not(.hw-gra) .hw-tyl, .hw-modele:not(.hw-gra) .hw-tyl, .hw-druga:not(.hw-gra) .hw-podpis, .hw-druga:not(.hw-gra) .hw-scena { animation-play-state: paused !important; }

.hw2-srodek { display: grid; grid-template-columns: 240px 1fr; gap: 16px; padding: 16px 18px 12px; }
.hw2-mapa { height: 238px; }
.hw2-mapa .hw-orto img.hw-mpzp { inset: 0; width: 100%; height: 100%; opacity: .62; mix-blend-mode: multiply; }
.hw2-mapa .hw-orto { filter: saturate(.9) brightness(.9); }
.hw2-etykieta { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #10201b; background: var(--hw-ok); padding: 3px 7px; border-radius: 5px; box-shadow: 0 4px 12px rgba(0,0,0,.4); animation: hwPin .7s 2.4s cubic-bezier(.3,1.6,.5,1) both; }
.hw2-zrodlo { position: absolute; left: 8px; bottom: 7px; font-size: 8.5px; color: rgba(255,255,255,.85); background: rgba(14,15,12,.7); padding: 2px 6px; border-radius: 4px; }
.hw2-sekcja { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #c9a96e; margin-bottom: 10px; }
.hw2-statusy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.hw2-statusy div { border: 1px solid rgba(255,255,255,.09); border-radius: 8px; padding: 7px 9px; animation: hwKafel .6s both; }
.hw2-statusy div:nth-child(1) { animation-delay: 1.7s; } .hw2-statusy div:nth-child(2) { animation-delay: 1.82s; } .hw2-statusy div:nth-child(3) { animation-delay: 1.94s; }
.hw2-statusy span { display: block; font-size: 8.5px; color: rgba(242,240,235,.5); text-transform: uppercase; letter-spacing: .08em; }
.hw2-statusy b { display: block; font-size: 12px; font-weight: 500; color: #f2f0eb; margin-top: 2px; }
.hw2-statusy b.ok { color: var(--hw-ok); }
.hw2-teren { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: rgba(167,201,154,.07); border: 1px solid rgba(167,201,154,.22); margin-bottom: 10px; animation: hwFade .6s 2.1s both; }
.hw2-symbol { font-size: 17px; font-weight: 600; color: var(--hw-ok); letter-spacing: .02em; white-space: nowrap; }
.hw2-teren strong { display: block; font-size: 10.5px; font-weight: 500; color: #f2f0eb; line-height: 1.3; }
.hw2-teren small { display: block; font-size: 8.5px; color: rgba(242,240,235,.5); margin-top: 2px; }
.hw2-param { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hw2-param div { background: rgba(255,255,255,.035); border-radius: 7px; padding: 6px 8px; animation: hwKafel .55s both; }
.hw2-param div:nth-child(1) { animation-delay: 2.3s; } .hw2-param div:nth-child(2) { animation-delay: 2.4s; } .hw2-param div:nth-child(3) { animation-delay: 2.5s; }
.hw2-param div:nth-child(4) { animation-delay: 2.6s; } .hw2-param div:nth-child(5) { animation-delay: 2.7s; } .hw2-param div:nth-child(6) { animation-delay: 2.8s; }
.hw2-param span { display: block; font-size: 8.5px; color: rgba(242,240,235,.5); }
.hw2-param b { display: block; font-size: 11px; font-weight: 500; color: #f2f0eb; margin-top: 1px; white-space: nowrap; }
.hw2-kafle { grid-template-columns: repeat(3, 1fr); }
.hw2-kafle .hw-kafel { gap: 5px; }
.hw2-kafle .hw-kafel span { min-height: 0; }
.hw2-kafle em { font-style: normal; color: #f2f0eb; font-weight: 600; }
.hw2-kafle i { border: 0; padding: 0; border-radius: 0; font-size: 0; display: block; height: 18px; align-self: stretch; }
.hw2-pasek { position: relative; background: rgba(255,255,255,.07) !important; border-radius: 4px !important; height: 7px !important; margin-top: 6px; overflow: hidden; }
.hw2-pasek s { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: linear-gradient(90deg, var(--hw-ok), #c9a96e); border-radius: 4px; animation: hw2Pasek 1.2s 2.6s cubic-bezier(.3,.8,.3,1) both; }
@keyframes hw2Pasek { from { width: 0; } }
.hw2-profil svg { width: 100%; height: 18px; display: block; }
.hw2-profil path { fill: none; stroke: var(--hw-ok); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 120; stroke-dashoffset: 120; animation: hw2Linia 1.2s 2.7s ease-out forwards; }
@keyframes hw2Linia { to { stroke-dashoffset: 0; } }
.hw2-slupki { display: flex !important; align-items: flex-end; gap: 5px; }
.hw2-slupki s { flex: 1; height: var(--h); min-height: 2px; background: var(--hw-ok); border-radius: 2px 2px 0 0; opacity: .85; animation: hw2Slupek .9s both; transform-origin: bottom; }
.hw2-slupki s:nth-child(2) { background: #c9a96e; } .hw2-slupki s:nth-child(3), .hw2-slupki s:nth-child(4) { background: rgba(242,240,235,.35); }
.hw2-slupki s:nth-child(1) { animation-delay: 2.8s; } .hw2-slupki s:nth-child(2) { animation-delay: 2.9s; } .hw2-slupki s:nth-child(3) { animation-delay: 3s; } .hw2-slupki s:nth-child(4) { animation-delay: 3.1s; }
@keyframes hw2Slupek { from { transform: scaleY(0); } }
.hw2 .hw-stopka { margin-top: 2px; }
@media (prefers-reduced-motion: reduce) {
  .hw2 *, .hw-druga .hw-przod { animation: none !important; }
  .hw2-profil path { stroke-dashoffset: 0; }
}
.hw-przod.hw2 { height: 514px; }

/* =====================================================================
   SPOJNOSC: panele z tekstem w tym samym stylu co karty raportu
   ===================================================================== */
/* wyszukiwarka: przezroczyste, rozmyte szklo (zdjecie hero przeswituje) */
.hero .search-box { background: linear-gradient(160deg, rgba(34,36,29,.38) 0%, rgba(16,17,14,.5) 100%); border: 1px solid rgba(201,169,110,.3); border-radius: var(--hw-r);
  backdrop-filter: blur(20px) saturate(1.25); -webkit-backdrop-filter: blur(20px) saturate(1.25); }
.hero.hero-mapa .search-box { background: linear-gradient(160deg, rgba(34,36,29,.5) 0%, rgba(16,17,14,.62) 100%); }
.hero .search-box .search-row { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.hero .search-box .search-hint-sm, .hero .search-box .map-hint-coords { color: rgba(242,240,235,.82); text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hero .map-box { border-radius: 10px; border-color: var(--hw-ramka); }
.hero .search-row { border-radius: 10px; }
.sekcja-analiza .intro-tekst { background: var(--hw-tlo) !important; border: 1px solid var(--hw-ramka) !important; border-radius: var(--hw-r) !important; box-shadow: var(--hw-cien) !important; padding: 2.4rem 2.6rem 2.2rem !important; }
.sekcja-analiza .h2 { font-size: clamp(1.9rem, 2.7vw, 2.6rem); line-height: 1.12; margin-bottom: 1.1rem; }
.sekcja-analiza .intro-lead-mocny { font-size: clamp(1.15rem, 1.6vw, 1.4rem); margin-bottom: .8rem; }
.sekcja-analiza .lead { margin-bottom: 0; }
.ofr { border-radius: var(--hw-r); border-color: var(--hw-ramka); }
.ofr:not(.ofr-premium) { background: var(--hw-tlo); }

/* =====================================================================
   SEKCJA MODELI: lista modeli + "ekran" kazdego modelu
   ===================================================================== */
#sourcing .cards { border-radius: var(--hw-r); border-color: var(--hw-ramka); background: var(--hw-ramka); }
#sourcing .card { background: rgba(22,23,19,.97); cursor: pointer; transition: background .35s ease; }
#sourcing .card:hover, #sourcing .card-hi { background: rgba(34,36,29,.98); }
#sourcing .card-hi::after { height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.src-wizual { position: relative; }
@media (min-width: 1100px) {
  #sourcing > .container { max-width: 1320px; }
  #sourcing .sourcing-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3vw; align-items: center; }
}
.hw-modele { height: calc(560px * var(--hw-skala)); }
.hw-modele .hw-scena { perspective-origin: 30% 40%; }
/* karty modeli lezace na sobie: aktywna z przodu, pozostale schowane w glebi */
.hwm { animation: none !important; transition: opacity .7s ease, transform .9s cubic-bezier(.22,.7,.2,1); opacity: 0; pointer-events: none;
  transform: translate3d(70px, 10px, -160px) rotateY(-26deg) rotateX(6deg) rotateZ(-1.6deg); }
.hwm.aktywne { opacity: 1; transform: rotateY(-14deg) rotateX(5deg) rotateZ(-1.2deg); transition-delay: .12s; }
.hw-modele:not(.hw-gra) .hwm.aktywne { opacity: 0; transform: translate3d(140px, 50px, -280px) rotateY(-40deg) rotateX(12deg); }
.hw-modele.hw-gra .hwm.aktywne { transition-duration: 1s, 1.4s; }
.hwm .hw-blysk { animation: none; }
.hwm.aktywne .hw-blysk { animation: hwBlysk 1.8s .6s ease-in-out both; }
.hw-modele:not(.hw-gra) .hwm * { animation-play-state: paused !important; }
/* elementy wewnatrz wjezdzaja przy kazdym pokazaniu karty */
.hwm:not(.aktywne) * { animation: none !important; }
.hwm .hw-kafel { animation-delay: .7s; } .hwm .hw-kafel:nth-child(2) { animation-delay: .8s; } .hwm .hw-kafel:nth-child(3) { animation-delay: .9s; } .hwm .hw-kafel:nth-child(4) { animation-delay: 1s; }
.hwm .hw-dzialka { animation-delay: .5s; } .hwm .hw-pin { animation-delay: 1.3s; }
.hwm .hw-pasek { animation-delay: .5s; }

.hwm-tresc { padding: 18px 20px 12px; }
.hwm .hw-zakladki { font-size: 12px; }
.hwm1-uklad { display: grid; grid-template-columns: 250px 1fr; gap: 18px; }
.hwm-mapa { height: 214px; }
.hwm-wiersze { display: flex; flex-direction: column; }
.hwm-tytul { font-size: 16px; font-weight: 500; color: #f2f0eb; margin-bottom: 8px; }
.hwm-tytul small { display: block; font-size: 11px; font-weight: 400; color: rgba(242,240,235,.5); margin-top: 2px; }
.hwm-w { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(201,169,110,.12); animation: hwLi .5s both; }
.hwm-w:nth-child(2) { animation-delay: .5s; } .hwm-w:nth-child(3) { animation-delay: .62s; } .hwm-w:nth-child(4) { animation-delay: .74s; } .hwm-w:nth-child(5) { animation-delay: .86s; }
.hwm-w span { font-size: 11.5px; color: rgba(242,240,235,.58); }
.hwm-w b { font-size: 13px; font-weight: 500; color: #f2f0eb; white-space: nowrap; }
.hwm-w b em { font-style: normal; }
.hwm-w b.ok { color: var(--hw-ok); }
.hwm-pasek-t { padding: 0 20px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 2px 0 8px; }
.hwm-roczniki { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 20px 12px; }
.hwm-roczniki > div { position: relative; height: 62px; border-radius: 8px; overflow: hidden; background: #2b2d24; animation: hwKafel .6s both; }
.hwm-roczniki img { position: absolute; width: 50%; height: 50%; object-fit: cover; }
.hwm-roczniki .r1 { filter: grayscale(1) contrast(1.15) brightness(.85); animation-delay: .9s; }
.hwm-roczniki .r2 { filter: grayscale(.85) sepia(.35) brightness(.9); animation-delay: 1s; }
.hwm-roczniki .r3 { filter: saturate(.55) brightness(.92); animation-delay: 1.1s; }
.hwm-roczniki .r4 { filter: saturate(.95); animation-delay: 1.2s; }

.hwm2-uklad { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: start; }
.hwm2-ocena { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 4px; }
.hwm2-ocena .hw-pierscien { width: 118px; height: 118px; }
.hwm2-ocena .hw-liczba { left: 50%; top: 4px; transform: translateX(-50%); width: 118px; height: 118px; }
.hwm2-ocena .hw-liczba b { font-size: 36px; }
.hwm2-werdykt { margin-top: 12px; font-size: 12px; font-weight: 500; color: #14160f; background: var(--hw-ok); padding: 5px 10px; border-radius: 7px; animation: hwFade .6s 1.2s both; }
.hwm2-wart { margin-top: 8px; font-size: 15px; color: #f2f0eb; animation: hwFade .6s 1.4s both; }
.hwm2-lista { border-left-color: rgba(201,169,110,.15); }
.hwm2-lista h4 { font-size: 12.5px; }
.hwm2-lista li { font-size: 12px; margin-bottom: 8px; }
.hwm .hw-plus li:nth-child(1) { animation-delay: .7s; } .hwm .hw-plus li:nth-child(2) { animation-delay: .82s; } .hwm .hw-plus li:nth-child(3) { animation-delay: .94s; }
.hwm .hw-minus li:nth-child(1) { animation-delay: 1.1s; } .hwm .hw-minus li:nth-child(2) { animation-delay: 1.22s; }
.hwm .hw-kafel b { font-size: 12.5px; } .hwm .hw-kafel span { font-size: 11px; min-height: 0; }
.hwm .hw-stopka > span:first-child { font-size: 11px; }
.hwm .hw-btn { font-size: 11px; }

.hwm3-uklad { display: grid; grid-template-columns: 236px 1fr; gap: 20px; }
.hwm3-wideo { position: relative; height: 236px; border-radius: 12px; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #3a3c31 0%, #1d1e19 70%); border: 1px solid rgba(201,169,110,.15); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hwm3-live { position: absolute; left: 10px; top: 10px; font-size: 10px; color: rgba(242,240,235,.8); background: rgba(14,15,12,.7); padding: 3px 8px; border-radius: 6px; display: flex; align-items: center; gap: 6px; }
.hwm3-live i { width: 7px; height: 7px; border-radius: 50%; background: #e0705a; animation: hwPuls 1.4s ease-in-out infinite; }
@keyframes hwPuls { 50% { opacity: .3; } }
.hwm3-osoba svg { width: 92px; height: 92px; fill: rgba(201,169,110,.28); stroke: rgba(223,192,144,.7); stroke-width: 1.2; }
.hwm3-glos { display: flex; align-items: center; gap: 4px; height: 26px; margin-top: 12px; }
.hwm3-glos s { width: 4px; height: 8px; border-radius: 2px; background: var(--gold); animation: hwGlos 1s ease-in-out infinite; }
.hwm3-glos s:nth-child(2) { animation-delay: .1s; } .hwm3-glos s:nth-child(3) { animation-delay: .25s; } .hwm3-glos s:nth-child(4) { animation-delay: .4s; } .hwm3-glos s:nth-child(5) { animation-delay: .15s; } .hwm3-glos s:nth-child(6) { animation-delay: .3s; } .hwm3-glos s:nth-child(7) { animation-delay: .05s; }
@keyframes hwGlos { 0%, 100% { height: 6px; } 50% { height: 24px; } }
.hwm3-kto { position: absolute; left: 10px; bottom: 10px; font-size: 11px; color: #f2f0eb; }
.hwm3-plan h4 { font-size: 13px; font-weight: 500; color: #f2f0eb; margin: 4px 0 12px; }
.hwm3-plan ul { list-style: none; margin: 0; padding: 0; }
.hwm3-plan li { position: relative; padding: 10px 0 10px 30px; font-size: 12.5px; color: rgba(242,240,235,.82); border-bottom: 1px solid rgba(201,169,110,.12); animation: hwLi .5s both; }
.hwm3-plan li::before { content: ''; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--hw-ok); background: rgba(169,204,155,.12); }
.hwm3-plan li::after { content: ''; position: absolute; left: 6px; top: 14px; width: 6px; height: 3px; border-left: 1.6px solid var(--hw-ok); border-bottom: 1.6px solid var(--hw-ok); transform: rotate(-45deg); }
.hwm3-plan li:nth-child(1) { animation-delay: .6s; } .hwm3-plan li:nth-child(2) { animation-delay: .8s; } .hwm3-plan li:nth-child(3) { animation-delay: 1s; } .hwm3-plan li:nth-child(4) { animation-delay: 1.2s; }
.hwm3-terminy { display: flex; align-items: center; gap: 8px; padding: 0 20px 12px; }
.hwm3-terminy span { font-size: 11px; color: rgba(242,240,235,.55); margin-right: 4px; }
.hwm3-terminy i { font-style: normal; font-size: 11.5px; color: rgba(242,240,235,.78); border: 1px solid rgba(201,169,110,.25); border-radius: 7px; padding: 6px 10px; animation: hwKafel .5s both; }
.hwm3-terminy i.on { background: var(--gold); border-color: var(--gold); color: #14160f; font-weight: 500; }
.hwm3-terminy i:nth-of-type(1) { animation-delay: 1.3s; } .hwm3-terminy i:nth-of-type(2) { animation-delay: 1.4s; } .hwm3-terminy i:nth-of-type(3) { animation-delay: 1.5s; } .hwm3-terminy i:nth-of-type(4) { animation-delay: 1.6s; }

.hwm4-uklad { padding-top: 16px; }
.hwm4-tytul { font-size: 16px; font-weight: 500; color: #f2f0eb; margin-bottom: 18px; }
.hwm4-os { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hwm4-linia { position: absolute; left: 17px; right: 17px; top: 16px; height: 2px; background: rgba(201,169,110,.18); }
.hwm4-linia s { position: absolute; left: 0; top: 0; bottom: 0; width: 58%; background: linear-gradient(90deg, var(--hw-ok), var(--gold)); animation: hw2Pasek 1.6s .5s cubic-bezier(.3,.8,.3,1) both; }
.hwm4-krok { position: relative; animation: hwKafel .6s both; }
.hwm4-krok:nth-of-type(1) { animation-delay: .5s; } .hwm4-krok:nth-of-type(2) { animation-delay: .8s; } .hwm4-krok:nth-of-type(3) { animation-delay: 1.1s; } .hwm4-krok:nth-of-type(4) { animation-delay: 1.4s; }
.hwm4-krok i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 600; background: #22241d; border: 1.5px solid rgba(201,169,110,.35); color: rgba(242,240,235,.7); position: relative; z-index: 1; }
.hwm4-krok.gotowe i { background: var(--hw-ok); border-color: var(--hw-ok); color: #14160f; }
.hwm4-krok.trwa i { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 5px rgba(201,169,110,.15); }
.hwm4-krok b { display: block; font-size: 12.5px; font-weight: 500; line-height: 1.35; color: #f2f0eb; margin: 12px 0 6px; }
.hwm4-krok span { font-size: 10.5px; color: rgba(242,240,235,.5); }
.hwm4-krok.gotowe span { color: var(--hw-ok); } .hwm4-krok.trwa span { color: var(--gold); }
.hwm4-zespol { display: flex; align-items: center; gap: 8px; margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(201,169,110,.12); }
.hwm4-zespol span { font-size: 11px; color: rgba(242,240,235,.55); margin-right: 4px; }
.hwm4-zespol i { font-style: normal; font-size: 12px; color: #f2f0eb; border: 1px solid rgba(201,169,110,.3); border-radius: 20px; padding: 6px 12px; animation: hwKafel .5s both; }
.hwm4-zespol i:nth-of-type(1) { animation-delay: 1.6s; } .hwm4-zespol i:nth-of-type(2) { animation-delay: 1.7s; } .hwm4-zespol i:nth-of-type(3) { animation-delay: 1.8s; }
.hwm-4 .hw-stopka { margin-top: 18px; }

@media (max-width: 1099px) {
  .hwm.aktywne { transform: rotateY(-8deg) rotateX(4deg) rotateZ(-.8deg); }
  .hwm { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hwm, .hwm * { animation: none !important; transition: opacity .2s !important; }
}
.hw-przod.hwm { height: auto; min-height: 380px; }
.hw-druga .hw-podpis { bottom: calc(-30px * var(--hw-skala)); }
.sekcja-analiza .intro-lead-mocny + .lead { margin-top: .2rem; }

/* =====================================================================
   JASNA, ROZMYTA KARTA W TLE takze przy drugim podgladzie i przy modelach
   ===================================================================== */
.hw-druga .hw-tyl { left: -64px; top: 72px; transform: translateZ(-180px) rotateY(15deg) rotateX(5deg) rotateZ(1.4deg); animation-name: hwWejscieTyl2; }
@keyframes hwWejscieTyl2 { 0% { opacity: 0; transform: translate3d(-80px, 40px, -420px) rotateY(40deg) rotateX(12deg); } 100% { opacity: .5; transform: translateZ(-180px) rotateY(15deg) rotateX(5deg) rotateZ(1.4deg); } }
.hw-modele .hw-tyl { transform: translateZ(-180px) rotateY(-14deg) rotateX(5deg) rotateZ(-1.2deg); }
@media (max-width: 1099px) { .hw-druga .hw-tyl, .hw-modele .hw-tyl { display: none; } }

/* =====================================================================
   SEKCJA "Nie dostajesz kolejnych map...": kafelek pod katem + ozywione napisy
   ===================================================================== */
@media (min-width: 1100px) and (hover: hover) {
  .sekcja-analiza .intro-grid { perspective: 1600px; }
  .sekcja-analiza .intro-tekst { transform: rotateY(-11deg) rotateX(3deg) rotateZ(-.8deg); transform-origin: 30% 50%;
    transition: transform .9s cubic-bezier(.2,.7,.2,1), box-shadow .9s ease, opacity 1s ease !important; opacity: 0; }
  .sekcja-analiza .intro-tekst.widoczny { opacity: 1; }
  .sekcja-analiza .intro-tekst:not(.widoczny) { transform: translate3d(120px, 40px, -200px) rotateY(-32deg) rotateX(8deg); }
  .sekcja-analiza .intro-tekst.widoczny:hover { transform: none; }
}
.sekcja-analiza .intro-tekst { position: relative; overflow: hidden; }
.sekcja-analiza .intro-tekst::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.07) 45%, transparent 58%); background-size: 250% 100%; background-position: 130% 0; }
.sekcja-analiza .intro-tekst.widoczny::after { animation: hwBlysk 2s 1.6s ease-in-out both; }
/* slowa naglowka wjezdzaja po kolei */
.ia-slowo { display: inline-block; opacity: 0; transform: translateY(.55em) rotateX(55deg); transform-origin: 50% 100%; }
.widoczny .ia-slowo { animation: iaSlowo .75s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 75ms + .45s); }
@keyframes iaSlowo { to { opacity: 1; transform: none; } }
.sekcja-analiza .intro-tekst .tag, .sekcja-analiza .intro-tekst .lead { opacity: 0; transform: translateY(14px); }
.sekcja-analiza .intro-tekst.widoczny .tag { animation: iaSlowo .7s .25s ease forwards; }
.sekcja-analiza .intro-tekst.widoczny .intro-lead-mocny { animation: iaSlowo .8s 1.15s ease forwards; }
.sekcja-analiza .intro-tekst.widoczny .lead:not(.intro-lead-mocny) { animation: iaSlowo .8s 1.45s ease forwards; }
/* zlote podkreslenie wysuwa sie pod zdaniem */
.sekcja-analiza .intro-lead-mocny span.ia-podkr { background: linear-gradient(90deg, rgba(201,169,110,.55), rgba(201,169,110,.15)) no-repeat 0 100% / 0% 1px; padding-bottom: 2px; }
.sekcja-analiza .intro-tekst.widoczny .ia-podkr { animation: iaPodkr 1.4s 1.7s cubic-bezier(.3,.8,.3,1) forwards; }
@keyframes iaPodkr { to { background-size: 100% 1px; } }
@media (prefers-reduced-motion: reduce) {
  .ia-slowo, .sekcja-analiza .intro-tekst .tag, .sekcja-analiza .intro-tekst .lead { opacity: 1 !important; transform: none !important; animation: none !important; }
  .sekcja-analiza .intro-tekst { opacity: 1 !important; transform: none !important; }
}
#src-visual.src-wizual { overflow: visible; }

/* =====================================================================
   O NAS: karta "doswiadczenie zespolu" + mocniej podkreslone liczby
   ===================================================================== */
@media (min-width: 1100px) {
  #ekosystem > .container { max-width: 1320px; }
  #ekosystem .eco-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3vw; }
}
.eco-staty { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1.4rem 0 .4rem; }
.eco-staty div { padding: .9rem 1rem; border-radius: var(--hw-r); background: var(--hw-tlo); border: 1px solid var(--hw-ramka); }
.eco-staty b { display: block; font-family: var(--fd); font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; color: var(--gold); line-height: 1.1; }
.eco-staty span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--m); }
.hw-onas { width: 100%; }
.hw-onas .hw-tyl { transform: translateZ(-180px) rotateY(-14deg) rotateX(5deg) rotateZ(-1.2deg); }
.hw-onas:not(.hw-gra) .hw-przod, .hw-onas:not(.hw-gra) .hw-przod *, .hw-onas:not(.hw-gra) .hw-tyl, .hw-onas:not(.hw-gra) .hw-scena { animation-play-state: paused !important; }
.hw3 { height: 500px; }
.hw3-uklad { display: grid; grid-template-columns: 300px 1fr; gap: 14px; padding: 14px 20px 6px; }
.hw3-mapa { position: relative; height: 290px; border-radius: 12px; background: radial-gradient(ellipse at 45% 45%, rgba(201,169,110,.08), transparent 70%), rgba(255,255,255,.02); border: 1px solid rgba(201,169,110,.14); overflow: hidden; }
.hw3-polska { position: absolute; left: 50%; top: 50%; width: 270px; height: 260px; transform: translate(-50%, -52%); overflow: visible; }
.hw3-obrys { fill: rgba(201,169,110,.06); stroke: rgba(223,192,144,.55); stroke-width: 1.2; stroke-linejoin: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: hw3Obrys 2.2s .6s ease-out forwards; }
@keyframes hw3Obrys { to { stroke-dashoffset: 0; } }
.hw3-linia { fill: none; stroke: rgba(223,192,144,.5); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0; animation: hwFade .6s both; animation-delay: calc(1.8s + var(--i) * .15s); }
.hw3-miasto circle { fill: var(--gold); opacity: 0; animation: hwFade .5s both; animation-delay: calc(1.6s + var(--i) * .15s); }
.hw3-miasto text { font: 500 9.5px var(--fb); fill: rgba(242,240,235,.85); opacity: 0; animation: hwFade .5s both; animation-delay: calc(1.7s + var(--i) * .15s); }
.hw3-miasto.glowne circle { fill: #dfc090; }
.hw3-miasto.glowne text { font-size: 11px; fill: #f2f0eb; }
.hw3-puls { fill: rgba(223,192,144,.18); stroke: rgba(223,192,144,.5); transform-box: fill-box; transform-origin: center; animation: hw3Puls 2.4s 1.6s ease-out infinite; opacity: 0; }
@keyframes hw3Puls { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.4); } }
.hw3-mapa-t { position: absolute; left: 10px; bottom: 9px; font-size: 9.5px; color: rgba(242,240,235,.75); background: rgba(14,15,12,.7); padding: 3px 8px; border-radius: 5px; }
.hw3-liczby { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.hw3-l { padding: 14px 14px 12px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(201,169,110,.16); animation: hwKafel .6s both; }
.hw3-l:nth-child(1) { animation-delay: .9s; } .hw3-l:nth-child(2) { animation-delay: 1.05s; } .hw3-l:nth-child(3) { animation-delay: 1.2s; } .hw3-l:nth-child(4) { animation-delay: 1.35s; }
.hw3-l b { display: block; white-space: nowrap; font-family: var(--fd); font-size: 27px; font-weight: 500; color: #dfc090; line-height: 1; }
.hw3-l b em { font-style: normal; }
.hw3-l span { display: block; margin-top: 6px; font-size: 11px; line-height: 1.35; color: rgba(242,240,235,.7); }
.hw3-chipy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 20px 12px; }
.hw3-chipy span { font-size: 10.5px; color: rgba(242,240,235,.55); margin-right: 2px; }
.hw3-chipy i { font-style: normal; font-size: 11px; color: #f2f0eb; border: 1px solid rgba(201,169,110,.3); border-radius: 20px; padding: 4px 10px; animation: hwKafel .5s both; }
.hw3-chipy i:nth-of-type(1) { animation-delay: 1.6s; } .hw3-chipy i:nth-of-type(2) { animation-delay: 1.7s; } .hw3-chipy i:nth-of-type(3) { animation-delay: 1.8s; } .hw3-chipy i:nth-of-type(4) { animation-delay: 1.9s; } .hw3-chipy i:nth-of-type(5) { animation-delay: 2s; }
.hw3 .hw-stopka > span:first-child { font-size: 10.5px; }
@media (max-width: 1099px) { .hw-onas .hw-tyl { display: none; } .eco-staty { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .eco-staty { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hw3 *, .hw3-obrys { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; } }

/* =====================================================================
   CENNIK "Wybierz model...": kafelki wjezdzaja po kolei, po kazdym przechodzi blask (jak na kartach raportu)
   ===================================================================== */
.ofr::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2; border-radius: inherit; overflow: hidden;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.13) 45%, rgba(201,169,110,.07) 52%, transparent 60%); background-size: 250% 100%; background-position: 130% 0; }
.ofr-badge { z-index: 3; }
.oferty-warianty .ofr { opacity: 0; transform: translateY(28px); }
.oferty-warianty.widoczne .ofr { animation: ofrWejscie .8s cubic-bezier(.2,.8,.2,1) forwards; }
.oferty-warianty.widoczne .ofr:nth-child(1) { animation-delay: .1s; } .oferty-warianty.widoczne .ofr:nth-child(2) { animation-delay: .3s; } .oferty-warianty.widoczne .ofr:nth-child(3) { animation-delay: .5s; }
@keyframes ofrWejscie { to { opacity: 1; transform: none; } }
/* blask: po wejsciu po kolei (1 -> 2 -> 3), potem co kilkanascie sekund jeszcze raz po kolei */
.oferty-warianty.widoczne .ofr::after { animation: ofrBlysk 14s ease-in-out infinite; }
.oferty-warianty.widoczne .ofr:nth-child(1)::after { animation-delay: .9s; }
.oferty-warianty.widoczne .ofr:nth-child(2)::after { animation-delay: 1.5s; }
.oferty-warianty.widoczne .ofr:nth-child(3)::after { animation-delay: 2.1s; }
@keyframes ofrBlysk { 0% { background-position: 130% 0; } 14% { background-position: -60% 0; } 100% { background-position: -60% 0; } }
.oferty-warianty.widoczne .ofr:hover::after { animation: hwBlysk 1.4s ease-in-out both; }
/* wyrozniona oferta: lekki poblysk ramki razem z blaskiem */
.oferty-warianty.widoczne .ofr-premium { animation-name: ofrWejscie, ofrRamka; animation-duration: .8s, 14s; animation-delay: .5s, 2.1s; animation-iteration-count: 1, infinite; animation-fill-mode: forwards, none; }
@keyframes ofrRamka { 0%, 20% { box-shadow: 0 8px 40px rgba(201,169,110,.1); } 8% { box-shadow: 0 8px 60px rgba(201,169,110,.3); } }
@media (prefers-reduced-motion: reduce) { .oferty-warianty .ofr { opacity: 1; transform: none; animation: none !important; } .ofr::after { animation: none !important; } }

/* =====================================================================
   NAGLOWKI SEKCJI (modele, cennik, o nas): etykieta, slowa naglowka i podtytul wjezdzaja po kolei
   ===================================================================== */
.naglowek-dyn .tag, .naglowek-dyn .lead, .naglowek-dyn .eco-staty > div { opacity: 0; transform: translateY(14px); }
.naglowek-dyn.widoczny .tag { animation: iaSlowo .7s .1s ease forwards; }
.naglowek-dyn.widoczny .ia-slowo { animation-delay: calc(var(--i) * 70ms + .3s); }
.naglowek-dyn.widoczny .lead { animation: iaSlowo .8s 1s ease forwards; }
.naglowek-dyn.widoczny .eco-staty > div { animation: iaSlowo .7s ease forwards; }
.naglowek-dyn.widoczny .eco-staty > div:nth-child(1) { animation-delay: 1.3s; } .naglowek-dyn.widoczny .eco-staty > div:nth-child(2) { animation-delay: 1.45s; } .naglowek-dyn.widoczny .eco-staty > div:nth-child(3) { animation-delay: 1.6s; }
/* zlota kreska wysuwa sie pod naglowkiem */
.naglowek-dyn .h2 { position: relative; }
.naglowek-dyn .h2::after { content: ''; display: block; width: 0; height: 1px; margin-top: .6rem; background: linear-gradient(90deg, var(--gold), transparent); }
.naglowek-dyn.widoczny .h2::after { animation: nagKreska 1.2s 1s cubic-bezier(.3,.8,.3,1) forwards; }
@keyframes nagKreska { to { width: 120px; } }
@media (prefers-reduced-motion: reduce) { .naglowek-dyn .tag, .naglowek-dyn .lead, .naglowek-dyn .eco-staty > div { opacity: 1; transform: none; animation: none !important; } .naglowek-dyn .h2::after { width: 120px; } }


/* podpis-strzalka pod karta: tylko telefon (nizej); na komputerze ukryty */
.hw-klik { display: none; }

/* =====================================================================
   TELEFON I TABLET W PIONIE / TELEFON W POZIOMIE (do 900 px): karty prostokatne (bez skosu 3D) + hero na jednym ekranie:
   haslo, wyszukiwarka i pod nia mala karta raportu (animacja). Komputer: bez zmian.
   ===================================================================== */
@media (max-width: 900px) {
  /* --- prostokaty --- */
  .hw-scena { perspective: none; animation: none; }
  .hw-przod, .hw-druga .hw-przod, .hw-onas .hw-przod { transform: none; animation-name: hwWejsciePlasko; }
  @keyframes hwWejsciePlasko { 0% { opacity: 0; transform: translate3d(0, 36px, 0) scale(.96); } 100% { opacity: 1; transform: none; } }
  .hwm { transform: translate3d(48px, 0, 0); }
  .hwm.aktywne { transform: none; }
  .hw-modele:not(.hw-gra) .hwm.aktywne { transform: translate3d(0, 40px, 0); }
  .hw-przod { left: 0; top: 0; width: 680px; }
  .hw-karta { border-radius: 14px; }

  /* --- hero na jednym ekranie --- */
  .hero .hero-content { padding-top: 4.6rem; padding-bottom: 1.5rem; }
  .hero .hero-headline { font-size: clamp(1.9rem, 8.6vw, 2.5rem); margin-bottom: 1rem; }
  .hero .hero-sub { display: none; }
  .hero .search-box { padding: 1.1rem 1.1rem 1rem; }
  .hero .search-hint-sm { margin-bottom: .7rem; }
  /* karta raportu zaraz pod wyszukiwarka, a "Twoje dane zostaja w..." dopiero pod karta */
  .hero .hero-content { display: flex; flex-direction: column; }
  .hero .hero-tekst { display: contents; }
  /* SEKWENCJA (kilka sekund): haslo wysrodkowane; na starcie wyszukiwarka i karta raportu maja TE SAMA szerokosc (86%),
     wyszukiwarka przygaszona, karta gra animacje (wjazd, pinezka, kolko 83/100). Gdy animacja sie skonczy
     (hero-raport.js dodaje .m-gotowe) karta plynnie maleje do ok. polowy i cofa sie w tlo, a wyszukiwarka
     rosnie do pelnej szerokosci. Animowana jest szerokosc w % (plynnie, bez przeskoku) - karta skaluje sie
     sama (--hw-skala liczy ResizeObserver), a to, co pod nia, przesuwa sie razem z nia. */
  .hero .hero-content { align-items: center; }
  .hero .hero-headline { text-align: center; }
  /* !important: style.css (do 600 px) wymusza width:100% !important, a .hero-sterowane wylacza przejscia */
  .hero .search-box { width: 86% !important; max-width: 560px !important; margin-left: auto !important; margin-right: auto !important; transform: none !important; animation: none !important; opacity: .72 !important; transition: width 1.2s cubic-bezier(.22,.7,.2,1), opacity 1.2s ease !important; }
  .hero.m-gotowe .search-box, .hero.hero-mapa .search-box { width: 100% !important; max-width: 640px !important; opacity: 1 !important; }
  /* tryb mapy na telefonie: ramka i mapa na cala szerokosc ekranu (bez marginesow), mapa od krawedzi do krawedzi */
  .hero.hero-mapa .search-box { max-width: none !important; padding-left: .6rem !important; padding-right: .6rem !important; border-radius: 10px; }
  .hero.hero-mapa .map-box { margin-left: -.6rem; margin-right: -.6rem; width: auto; border-radius: 0; }
  .hero .hero-wizual { order: 1; width: 86%; max-width: 420px; margin: .7rem auto 0; transition: width 1.2s cubic-bezier(.22,.7,.2,1), opacity 1.2s ease, filter 1.2s ease; }
  .hero .hw-przod { animation-delay: .6s; }
  .hero.m-gotowe .hero-wizual { width: 54%; opacity: .78; filter: saturate(.8) brightness(.86); }
  .hero .hw-klik { transition: opacity .6s ease; }
  @media (prefers-reduced-motion: reduce) { .hero .search-box { width: 100%; opacity: 1; } .hero .hero-wizual { width: 54%; } }
  .hero .hero-partner { order: 3; margin-top: 1.3rem; }
  /* strzalka pod karta: "kliknij, by zobaczyc przykladowy raport rozszerzony" */
  .hero .hw-klik { order: 2; display: flex; align-items: center; justify-content: center; gap: .4rem; margin: .7rem auto 0; font-size: .7rem; letter-spacing: .06em; color: rgba(242,240,235,.72); text-decoration: none; animation: fu .8s 2.4s ease both; }
  .hero .hw-klik svg { width: 14px; height: 14px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: hwKlikStrzalka 1.6s ease-in-out infinite; }
  @keyframes hwKlikStrzalka { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
  /* w trybie mapy karta znika - ramka z mapa ma cale miejsce */
  .hero.hero-mapa .hero-wizual { display: none; }
  /* sekcja "Nie dostajesz kolejnych map": najpierw tekst, potem karta (Janikowo / MPZP) */
  .sekcja-analiza .intro-grid { display: flex; flex-direction: column; }
  .sekcja-analiza .intro-tekst { order: 0; }
  .sekcja-analiza .hw-druga { order: 1; margin-top: 1.5rem; }
}

/* niskie ekrany (iPhone SE/8, telefon w poziomie): mniejsze haslo i ciasniejsza wyszukiwarka, zeby karta weszla w kadr */
@media (max-width: 900px) and (max-height: 700px) {
  .hero .hero-content { padding-top: 4rem; }
  .hero .hero-headline { font-size: clamp(1.5rem, 6.8vw, 2rem); margin-bottom: .6rem; line-height: 1.08; }
  .hero .search-box { padding: .8rem .9rem .7rem; }
  .hero .search-hint-sm { font-size: .78rem; margin-bottom: .5rem; line-height: 1.4; }
  .hero .search-box .search-links, .hero .search-box .search-alt { font-size: .74rem; }
  .hero .hero-wizual { width: 72%; max-width: 360px; margin-top: .4rem; }
  .hero.m-gotowe .hero-wizual { width: 44%; }
  .hero .hw-klik { margin-top: .4rem; }
}

/* iPhone/iPad: karty raportu bez rozmycia tla i bez filtra blur (patrz koniec style.css) */
@media (hover: none), (pointer: coarse) {
  .hw-przod { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: var(--hw-tlo) !important; }
  .hw-tyl { filter: none !important; opacity: .28; }
  .hero .search-box { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* ===== iPhone/iPad i telefony: lzejsze karty raportu (20.10.2026) =====
   Safari na iPhonie zamykal karte ("Wielokrotnie wystapil problem z gruntowo.pl"), bo 4 karty raportu
   na stronie to sceny 3D (perspective + preserve-3d) z kilkunastoma warstwami, ktore do tego bez przerwy
   "plywaly" (animacja infinite) - kazda warstwa to osobny bufor w pamieci GPU w rozdzielczosci ekranu x3.
   Na dotykowych: bez sceny 3D (karty plasko, rownolegle do ekranu), bez ciaglego unoszenia,
   bez blysku i filtrow, nieaktywne ekrany modeli calkiem wylaczone (display: none). Wyglad prawie ten sam. */
@media (hover: none), (pointer: coarse) {
  .hw-scena { animation: none !important; perspective: none !important; }
  .hw-ruch { transform-style: flat !important; transform: none !important; transition: none !important; }
  .hw-przod { transform: none !important; animation: none !important; box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.25) !important; }
  .hw-tyl { transform: none !important; animation: none !important; }
  .hw-blysk { display: none !important; }
  .hw-orto { filter: none !important; }
  .hw-orto img.hw-tile { opacity: .8; }
  .hwm { transition: opacity .45s ease !important; transform: none !important; }
  .hwm:not(.aktywne) { display: none !important; }
  .hw-modele:not(.hw-gra) .hwm.aktywne { opacity: 1; }
  .hero .search-box { will-change: auto !important; }
  .oferty-warianty.widoczne .ofr::after { animation: none !important; display: none !important; }
  .oferty-warianty.widoczne .ofr-premium { animation: none !important; opacity: 1; transform: none; }
}
/* telefony: sekcje poza ekranem nie sa rysowane (mniej warstw i pamieci); sekcja z przyklejanymi etapami - bez zmian */
@media (hover: none), (pointer: coarse) {
  section.section:not(:has(.etapy-sticky)) { content-visibility: auto; contain-intrinsic-size: auto 900px; }
}
