/* =========================================================================
   Pikselkraft – style strony
   Motyw "pikselowa kuznia": ciemne tlo, bursztynowy zar, kwadratowe piksele.
   ========================================================================= */

/* Inter (zmienna: grubosci 100–900 i optyczny rozmiar w jednym pliku). Plik "pl" = same polskie litery (ą, ę, ł…) –
   przegladarka sciaga go tylko, gdy na stronie sa takie znaki. Licencja: static/fonts/LICENCJA.txt */
@font-face {
    font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/inter-latin.4b73e2ff3024.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/inter-pl.1b972fa955a9.woff2") format("woff2");
    unicode-range: U+0100-017F, U+02C7, U+02D8-02DD;
}

:root {
    --bg: #0b0c0f;
    --bg-alt: #111318;
    --card: #16181e;
    --line: #262932;
    --ink: #f4efe8;
    --sub: #a39d94;
    --ember: #ff9d42;
    --ember-deep: #e9822f;
    --ember-soft: rgba(255, 157, 66, .12);
    --ok: #6fd3a0;
    --err: #ff7a6b;
    --radius: 4px;
    /* Apple: systemowa SF Pro (licencja nie pozwala jej wgrac na strone, ale urzadzenia Apple maja ja wbudowana);
       Android / Windows: Inter – darmowa (OFL), rysowana w tym samym duchu, trzymana na naszym serwerze */
    --font-head: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
    --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); }
/* Lenis (plynne przewijanie) – wymagane style */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--font-body); font-size: 17px; line-height: 1.6; letter-spacing: -.011em;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ember); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; margin: 0 0 .5em; }
h2 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-size: 20px; font-weight: 800; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
    font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ember);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--ember); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--sub); max-width: 58ch; margin: 0 0 40px; }

/* --- przyciski: kwadratowe, z "pikselowym" cieniem --- */
.btn {
    display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 16px; text-decoration: none;
    color: #1a0f05; background: var(--ember); padding: 13px 22px; border: 0; border-radius: 2px; cursor: pointer;
    box-shadow: 5px 5px 0 rgba(255, 157, 66, .3); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 rgba(255, 157, 66, .4); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(255, 157, 66, .4); }
.btn-lg { font-size: 17px; padding: 16px 28px; }
.btn-sm { font-size: 14px; padding: 10px 16px; box-shadow: 4px 4px 0 rgba(255, 157, 66, .3); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ember); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

/* =========================== HEADER =========================== */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
    background: linear-gradient(to bottom, rgba(11, 12, 15, .9), rgba(11, 12, 15, 0));
    transition: background .3s;
}
/* bez backdrop-filter: rozmycie nad animowanymi scenami liczy sie od nowa w kazdej klatce
   (zaciecia) – prawie nieprzezroczyste tlo wyglada niemal tak samo */
.site-header.scrolled { background: rgba(11, 12, 15, .95); border-bottom: 1px solid var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand {
    display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
    font-family: var(--font-head); font-weight: 800; font-size: 18px;
}
.brand i { width: 12px; height: 12px; background: var(--ember); box-shadow: 6px 6px 0 rgba(255, 157, 66, .45); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { color: var(--sub); text-decoration: none; font-weight: 500; transition: color .2s; }
.main-nav ul a:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 18px;
        padding: 24px 20px 28px; background: rgba(11, 12, 15, .97); border-bottom: 1px solid var(--line);
        transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
    }
    .main-nav ul { flex-direction: column; gap: 14px; }
    .main-nav ul a { font-size: 19px; color: var(--ink); }
    .nav-open .main-nav { opacity: 1; transform: none; pointer-events: auto; }
    .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* opadajaca kreska pod podpowiedzia "Przewin" (.story-hint) */
@keyframes drip {
    0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================== HISTORIA „RAKIETA” =========================== */
/* .story jest wysoka (dlugosc scen w przewijaniu – ustawia story.js), .story-stage przyklejona do ekranu.
   Bez JS / przy ograniczonym ruchu (.story--static) scena stoi nieruchomo na jeden ekran. */
.story { position: relative; background: #05070d; }
.story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story--static .story-stage { position: relative; }
.scene { position: absolute; inset: 0; overflow: hidden; visibility: hidden; }
.scene.is-active { visibility: visible; }
.scene-cam { position: absolute; inset: 0; transform-origin: 73% 85%; }   /* kamera najezdza na podstawe rakiety */
/* "oddech" kamery tylko w aktywnej scenie, animacja CSS (liczy ja karta graficzna, nie procesor) */
.story.is-live .scene.is-active .scene-cam { will-change: transform; animation: cam-breathe 14s ease-in-out infinite alternate; }
@keyframes cam-breathe { to { transform: scale(1.04); } }
/* sceny niewidoczne nie sa w ogole renderowane (nawet ich petle); wychodzaca – do konca przenikania */
.story.is-live .scene:not(.is-active):not(.is-leaving) { content-visibility: hidden; }
.story.is-live .scene:not(.is-active):not(.is-leaving) * { animation-play-state: paused !important; }

/* "pudelko sceny": stale proporcje (16:9, na telefonie 9:16), skalowane jak tlo (cover) i wysrodkowane.
   Pozycje obiektow (x, y, w) sa w % pudelka, wiec obiekty zawsze stoja na horyzoncie tla przy kazdym ksztalcie okna.
   Srodkowanie przez inset + margin:auto (bez transform – inaczej mix-blend-mode dymu nie widzialby tla). */
.scene-box {
    position: absolute; inset: -9999px; margin: auto;
    width: max(100%, 100svh * 16 / 9); height: max(100svh, 100vw * 9 / 16);
}
/* uklad pionowy (telefon albo ekran w pionie): pudelko 9:16 i pozycje obiektow dla telefonu (--mx/--my/--mw) */
@media (max-width: 719px), (max-aspect-ratio: 4/5) {
    .scene-box { width: max(100%, 100svh * 9 / 16); height: max(100svh, 100vw * 16 / 9); }
}
.obj { position: absolute; transform: translate(-50%, -50%); }
/* pozycja i szerokosc obiektu sceny w % pudelka – z atrybutu style (core/scenes.json), bez czekania na skrypt */
.scene-box > .obj, .hotspot-layer { left: var(--x); top: var(--y); width: var(--w); }
@media (max-width: 719px), (max-aspect-ratio: 4/5) {
    .scene-box > .obj, .hotspot-layer { left: var(--mx, var(--x)); top: var(--my, var(--y)); width: var(--mw, var(--w)); }
}
.obj.is-cover { inset: -4%; transform: none; }                 /* zapas na paralakse i najazd kamery */
.obj.is-cover .obj-par, .obj.is-cover .obj-img { width: 100%; height: 100%; }
.obj.is-cover .obj-img { object-fit: cover; }
.obj.is-cover picture { display: contents; }
.obj-img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.obj[data-mask="radial"] .obj-img { -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent 98%); mask-image: radial-gradient(closest-side, #000 50%, transparent 98%); }
.obj[data-mask="fade-bottom"] .obj-img { -webkit-mask-image: linear-gradient(#000 55%, transparent 98%); mask-image: linear-gradient(#000 55%, transparent 98%); }
.obj[data-mask="fade-top"] .obj-img { -webkit-mask-image: linear-gradient(transparent, #000 40%); mask-image: linear-gradient(transparent, #000 40%); }
/* dym: kłębi się, dryfuje na boki i lekko unosi; każda warstwa w innym rytmie (--dd, --dl ustawia story.js) */
.obj[data-loop="drift"] .obj-img { animation: obj-drift var(--dd, 9s) ease-in-out infinite alternate; animation-delay: var(--dl, 0s); transform-origin: 50% 85%; will-change: transform; }
@keyframes obj-drift {
    0% { transform: translate(-3%, 0) scale(1, 1); }
    50% { transform: translate(1%, -3%) scale(1.07, 1.1); }
    100% { transform: translate(3.5%, -1%) scale(1.03, 1.04); }
}

/* elementy animowane przy starcie dostaja wlasne warstwy graficzne od razu przy wczytaniu strony –
   inaczej przegladarka tworzy je w pierwszej klatce po odpaleniu (szarpniecie ok. 50 ms) */
.story:not(.story--static) .scene-box > .obj,
.story:not(.story--static) .obj-rocket .obj-par,
.story:not(.story--static) .rocket-body,
.story:not(.story--static) .scene-copy { will-change: transform, opacity; }

/* --- rakieta: plomien (3 migoczace kopie, blend screen, wygaszone krawedzie) i swiecace okienko --- */
.rocket-body { position: relative; }
.rocket-body .obj-img { position: relative; z-index: 2; }
.rocket-flames {
    position: absolute; z-index: 1; left: 50%; top: 93%; width: 150%; aspect-ratio: 640 / 1122;
    transform: translateX(-50%) scaleY(.05); transform-origin: 50% 0; opacity: .001; pointer-events: none;   /* prawie 0: gotowy do startu bez szarpniecia */
}
/* migotanie tylko skala i przezroczystoscia (animowanie filter wymusza malowanie co klatke) */
.rocket-flames img { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 0; animation: flame-flicker .23s ease-in-out infinite alternate; animation-play-state: paused; }
/* plomien migocze tylko przy pracujacych silnikach (is-firing ustawia story.js) */
.obj-rocket.is-firing .rocket-flames img { animation-play-state: running; will-change: transform, opacity; }
.rocket-flames img:nth-child(2) { animation-name: flame-flicker-flip; animation-duration: .31s; animation-delay: -.12s; }
.rocket-flames img:nth-child(3) { animation-duration: .17s; animation-delay: -.05s; }
@keyframes flame-flicker { from { transform: scaleY(.94); opacity: .85; } to { transform: scaleY(1.07); opacity: 1; } }
@keyframes flame-flicker-flip { from { transform: scaleX(-1) scaleY(1.05); opacity: .55; } to { transform: scaleX(-1) scaleY(.94); opacity: .8; } }
.rocket-window {
    position: absolute; z-index: 3; left: 42.9%; top: 15.9%; width: 7%; aspect-ratio: 1; transform: translate(-50%, -50%);
    border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 150, .95), rgba(255, 157, 66, .5) 45%, transparent 72%);
    mix-blend-mode: screen; animation: window-pulse 2.6s ease-in-out infinite;
}
@keyframes window-pulse { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); } }

/* --- punkty z opisami na warstwach (np. czesci rakiety w scenie 2) --- */
.obj-par { position: relative; }
/* warstwy (dym, pyl) nie lapia kursora – inaczej zaslanialyby punkty na rakiecie; w edycji trzeba je chwytac */
.story:not([data-edit]) .scene-box > .obj { pointer-events: none; }
.hotspot {
    position: absolute; z-index: 6; width: 46px; height: 46px; margin: 0; padding: 0; transform: translate(-50%, -50%);
    pointer-events: auto;
    background: none; border: 0; cursor: pointer; color: var(--ink); font: inherit;
}
.hotspot-dot {
    position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
    background: var(--ember); border: 3px solid #fff4e6;
    box-shadow: 0 0 0 3px rgba(11, 12, 15, .6), 0 0 22px 4px rgba(255, 157, 66, .95);
}
.hotspot-dot::after {
    content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 3px solid rgba(255, 170, 90, .95);
    animation: hotspot-ring 2s ease-out infinite;
}
@keyframes hotspot-ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
/* opis "wyjezdza" z kropki: kreska laczaca rosnie, a karta rozsuwa sie od strony punktu */
.hotspot-card {
    position: absolute; left: calc(100% + 18px); top: 50%; width: min(360px, 78vw); padding: 18px 22px;
    transform: translate(calc(var(--shift, 0px) - 14px), calc(var(--vshift, 0px) - 50%)); opacity: 0; pointer-events: none;
    clip-path: inset(0 100% 0 0 round 6px);
    transition: opacity .18s, transform .45s cubic-bezier(.2, .9, .25, 1), clip-path .45s cubic-bezier(.2, .9, .25, 1);
    background: #0a0b0f; border: 2px solid var(--ember); border-radius: 6px;
    text-align: left; font-size: 17px; line-height: 1.5; color: #efe8de; box-shadow: 0 14px 40px rgba(0, 0, 0, .6), 0 0 30px rgba(255, 157, 66, .18);
}
.hotspot-card strong { display: block; margin-bottom: 8px; font-family: var(--font-head); font-size: 21px; line-height: 1.2; color: var(--ember); }
.hotspot::before {
    content: ""; position: absolute; top: 50%; left: 50%; width: calc(50% + 18px); height: 3px; margin-top: -1.5px;
    background: var(--ember); transform: scaleX(0); transform-origin: 0 50%; transition: transform .2s ease-out; pointer-events: none;
}
.hotspot.to-left::before { left: auto; right: 50%; transform-origin: 100% 50%; }
.hotspot.to-left .hotspot-card {
    left: auto; right: calc(100% + 18px); transform: translate(calc(var(--shift, 0px) + 14px), calc(var(--vshift, 0px) - 50%)); clip-path: inset(0 0 0 100% round 6px);
}
.hotspot:hover::before, .hotspot:focus-visible::before, .hotspot.is-open::before { transform: none; }
.hotspot:hover .hotspot-card, .hotspot:focus-visible .hotspot-card, .hotspot.is-open .hotspot-card,
.hotspot.to-left:hover .hotspot-card, .hotspot.to-left:focus-visible .hotspot-card, .hotspot.to-left.is-open .hotspot-card {
    opacity: 1; transform: translate(var(--shift, 0px), calc(var(--vshift, 0px) - 50%)); clip-path: inset(0 0 0 0 round 6px); transition-delay: .08s;
}
.hotspot:hover .hotspot-dot, .hotspot.is-open .hotspot-dot { background: #ffd8a8; }
/* warstwa punktow nad dymem i mgla, ulozona na obiekcie (story.js) */
.hotspot-layer { position: absolute; z-index: 65; transform: translate(-50%, -50%); pointer-events: none; }
.hotspot:hover, .hotspot:focus-visible, .hotspot.is-open { z-index: 7; }
/* warstwa z otwartym opisem nad etykietami innych planet / ksiezycow / flag */
.hotspot-layer:has(.hotspot:hover, .hotspot:focus-visible, .hotspot.is-open) { z-index: 66; }
/* pakiet na ksiezycu: caly ksiezyc jest przyciskiem, pod nim etykieta z cena, po najechaniu swietlisty pierscien */
.hotspot--offer { left: 0; top: 0; width: 100%; height: 100%; transform: none; border-radius: 50%; transition: box-shadow .3s; }
.hotspot--offer:hover, .hotspot--offer:focus-visible, .hotspot--offer.is-open { box-shadow: 0 0 0 3px var(--ember), 0 0 40px 6px rgba(255, 157, 66, .55); }
.offer-tag {
    position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); white-space: nowrap;
    padding: 7px 14px; border: 2px solid var(--ember); border-radius: 999px; background: rgba(9, 10, 14, .9);
    font-size: 15px; line-height: 1.2; color: #fff4e6; text-align: center; box-shadow: 0 0 18px rgba(255, 157, 66, .35);
}
.offer-tag b { display: block; font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ember); }
.offer-price { display: block; margin-top: 10px; font-size: 15px; color: #fff4e6; }
.offer-price b { font-family: var(--font-head); font-size: 22px; color: var(--ember); }
@media (max-width: 719px), (max-aspect-ratio: 4/5) { .offer-tag { width: max-content; max-width: 150px; white-space: normal; padding: 5px 10px; font-size: 13px; } .offer-tag b { font-size: 11px; } }
/* telefon: na flagach sama nazwa projektu (malo miejsca) */
@media (max-width: 719px), (max-aspect-ratio: 4/5) { .hotspot--project .offer-tag { font-size: 0; padding: 6px 11px; } .hotspot--project .offer-tag b { margin: 0; font-size: 12px; } }
/* ksiezyce plyna po malej elipsie; ich etykieta (warstwa punktow) razem z nimi – wlasciwosc translate, nie transform */
.obj[data-loop="float"] .obj-img, .hotspot-layer[data-float] { animation: obj-float var(--dd, 9s) ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
@keyframes obj-float { 0% { translate: -3% -6%; } 50% { translate: 3% 0; } 100% { translate: -1% 6%; } }
/* spadajaca gwiazda: krotka smuga przelatujaca po niebie */
.shooting-star {
    position: absolute; width: 140px; height: 2px; border-radius: 2px; transform-origin: 0 50%;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); animation: shoot 1.2s ease-out forwards;
}
@keyframes shoot {
    0% { opacity: 0; transform: rotate(var(--a)) translateX(0) scaleX(.2); }
    15% { opacity: 1; }
    100% { opacity: 0; transform: rotate(var(--a)) translateX(380px) scaleX(1); }
}
/* pasek postepu historii (lewy dolny rog, obok przycisku pominiecia) */
.story-progress { position: absolute; left: 196px; bottom: 36px; z-index: 40; display: flex; gap: 6px; }   /* obok "Pomin intro" */
.story-progress i { display: block; width: 28px; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .22); }
.story-progress b { display: block; height: 100%; background: var(--ember); transform: scaleX(0); transform-origin: 0 50%; }
.story--static .story-progress { display: none; }
@media (max-width: 719px) { .story-progress { left: 168px; bottom: 30px; } .story-progress i { width: 20px; } }
/* flaga = realizacja: przycisk na calej fladze, etykieta z nazwa pod nia */
.hotspot--project { border-radius: 4px; }
.hotspot--project:hover, .hotspot--project:focus-visible { box-shadow: none; }
.hotspot--project .offer-tag { top: auto; bottom: -6px; transform: translate(-50%, 100%); transition: background .2s, color .2s; }
.hotspot--project:hover .offer-tag, .hotspot--project:focus-visible .offer-tag { background: var(--ember); color: #14100b; }
.hotspot--project:hover .offer-tag b, .hotspot--project:focus-visible .offer-tag b { color: #14100b; }
/* odliczanie przed startem (scena z przyciskami) */
.countdown {
    margin: 0 0 18px; font-family: var(--font-head); font-size: clamp(18px, 1.6vw, 24px); font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--ember); font-variant-numeric: tabular-nums;
}
.countdown.is-zero { animation: window-blink 1s steps(2) infinite; }
@keyframes window-blink { 50% { opacity: .35; } }
.btn-launch.is-ready { animation: launch-ready 1.4s ease-in-out infinite; }
/* "Pomin intro" – maly przycisk w rogu historii */
.story-skip {
    position: absolute; left: 24px; bottom: 22px; z-index: 40; padding: 9px 16px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .28); background: rgba(9, 10, 14, .55); color: #e9e2d8;
    font: 600 12px/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; transition: border-color .2s, color .2s;
}
.story-skip:hover, .story-skip:focus-visible { border-color: var(--ember); color: var(--ember); }
.story--static .story-skip { display: none; }
@media (max-width: 719px) { .story-skip { left: 16px; bottom: 16px; padding: 8px 13px; } }
@keyframes launch-ready { 50% { box-shadow: 0 0 0 6px rgba(255, 157, 66, .25), 0 0 34px rgba(255, 157, 66, .6); } }

/* --- gwiazdy mrugajace na niebie (dorysowywane przez story.js) --- */
.scene-stars { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
/* iskry przy starcie: canvas rysowany tylko w trakcie animacji startu (story.js) */
.story-sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 22; pointer-events: none; }
.scene-stars i {
    position: absolute; width: var(--s, 2px); height: var(--s, 2px); border-radius: 50%; background: #fff;
    box-shadow: 0 0 4px rgba(255, 255, 255, .8); opacity: .2; animation: twinkle var(--d, 3s) ease-in-out infinite; animation-delay: var(--dl, 0s);
}
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .95; } }

/* --- napis --- */
.scene-shade { position: absolute; inset: 0; z-index: 20; pointer-events: none; background: linear-gradient(90deg, rgba(4, 6, 12, .78) 0%, rgba(4, 6, 12, .45) 32%, transparent 58%); }
.scene-copy {
    position: relative; z-index: 30; height: 100%;
    display: flex; flex-direction: column; justify-content: center; padding: 110px 0 120px; pointer-events: none;
}
.scene-copy a, .scene-copy button { pointer-events: auto; }
.scene-title {
    margin: 0; max-width: 62%;
    font-family: var(--font-head); font-weight: 700; text-transform: lowercase;
    font-size: clamp(46px, 8vw, 138px); line-height: .92; letter-spacing: -.05em; color: var(--ink);
    text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
}
/* przyciecie tylko w pionie (litery wjezdzaja od dolu) – dlugie slowo nie moze byc uciete z boku */
.scene-title .line { display: block; overflow-x: visible; overflow-y: clip; padding-bottom: .06em; }
.scene-title .line-in { display: inline-block; }
.scene-text { max-width: 30ch; margin: 26px 0 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: #e9e2d8; text-shadow: 0 1px 12px rgba(0, 0, 0, .7); }
.scene-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* --- wspolny color grading: winieta + ziarno + odcien --- */
.story-grade {
    position: absolute; inset: 0; z-index: 25; pointer-events: none;
    background:
        radial-gradient(ellipse 85% 80% at 55% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%),
        linear-gradient(rgba(255, 140, 60, .05), rgba(30, 40, 80, .07));
}
.story-grade::after {
    /* ziarno filmowe: zwykla przezroczystosc zamiast mieszania "overlay" na caly ekran (ktore liczy sie co klatke) */
    content: ""; position: absolute; inset: -50%; opacity: .05; will-change: transform;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain .9s steps(5) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-4%, 3%); } 50% { transform: translate(3%, -5%); } 75% { transform: translate(-2%, -2%); } 100% { transform: translate(4%, 4%); } }

.story-hint {
    position: absolute; left: 50%; bottom: 28px; z-index: 30; transform: translateX(-50%);
    font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #d8d2c9; pointer-events: none;
    text-shadow: 0 0 8px #05070d, 0 0 16px #05070d;   /* czytelna na tle dymu */
}
.story-hint::after { content: ""; display: block; width: 2px; height: 26px; margin: 10px auto 0; background: var(--ember); animation: drip 1.6s ease-in-out infinite; }
.story--static .story-hint { display: none; }

@media (max-width: 719px), (max-aspect-ratio: 4/5) {
    .scene-copy { justify-content: flex-start; padding-top: 112px; }
    .scene-title { max-width: 100%; font-size: clamp(42px, 13vw, 72px); }
    .scene-text { margin-top: 16px; }
    .scene-shade { background: linear-gradient(180deg, rgba(4, 6, 12, .75) 0%, rgba(4, 6, 12, .35) 40%, transparent 60%); }
}

@media (prefers-reduced-motion: reduce) {
    .obj-img, .rocket-flames img, .rocket-window, .scene-stars i, .story-grade::after { animation: none !important; }
}
/* historia poza ekranem – petle wstrzymane (nie obciazaja przegladarki podczas czytania reszty strony) */
.story.is-offscreen *, .story.is-offscreen *::after { animation-play-state: paused !important; }

/* --- tryb edycji (/?edycja=1, tylko lokalnie) --- */
.story[data-edit] .obj:not(.is-cover) { cursor: move; outline: 1px dashed rgba(255, 157, 66, .5); }
.story[data-edit] .obj.is-selected { outline: 2px solid var(--ember); }
.story[data-edit] .scene-copy { opacity: .5; }
.story-editor {
    position: fixed; right: 14px; bottom: 14px; z-index: 100; width: 300px; max-height: calc(100vh - 28px); overflow: auto;
    background: rgba(17, 19, 24, .97); border: 1px solid var(--line); border-radius: 6px; padding: 14px;
    font: 13px/1.4 var(--font-body); color: var(--ink); box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.story-editor h4 { margin: 0 0 8px; font: 800 14px var(--font-head); }
.story-editor .se-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; margin-bottom: 10px; }
.story-editor label { display: grid; gap: 2px; color: var(--sub); font-size: 12px; }
.story-editor input, .story-editor select, .story-editor textarea {
    width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 4px 6px;
}
.story-editor .se-full { grid-column: 1 / -1; }
.story-editor .se-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: center; }
.story-editor button { font: 600 12px var(--font-body); padding: 6px 9px; cursor: pointer; border-radius: 3px; background: #24262d; color: var(--ink); border: 1px solid var(--line); }
.story-editor button.se-primary { background: var(--ember); color: #1a0f05; border-color: var(--ember); }
.story-editor .se-hint { color: var(--sub); font-size: 12px; margin: 0 0 10px; }
.story-editor .se-status { min-height: 1.4em; margin: 6px 0 0; color: var(--ok); }

/* ===================== PIKSELOWE PRZEJSCIA ===================== */
/* Pasek pikseli miedzy sekcjami – main.js rysuje na nim (canvas) kwadraciki w kolorze `color`,
   ktore "rozpuszczaja sie" przy przewijaniu, odslaniajac tlo paska */
.px-divider { height: 48px; overflow: hidden; background: var(--bg-alt); color: var(--bg); }
.px-divider canvas { display: block; width: 100%; height: 100%; }

/* =========================== SEKCJE =========================== */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-alt { background: var(--bg-alt); }
.section-alt + .px-divider { background: var(--bg); color: var(--bg-alt); }

/* --- oferta --- */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.offer-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
    display: flex; flex-direction: column; transition: border-color .2s, transform .2s;
}
.offer-card:hover { border-color: rgba(255, 157, 66, .5); transform: translateY(-3px); }
.offer-card p { color: var(--sub); margin: 0 0 20px; }
/* zakres panelu do edycji: kazdy pakiet ma panel, rozni sie tym, co w nim zmienisz */
.offer-card .offer-panel { margin: -8px 0 20px; padding-left: 12px; border-left: 2px solid var(--ember); color: var(--ink); font-size: 15px; line-height: 1.45; }
.hotspot-card .offer-panel { display: block; margin-top: 10px; padding-left: 10px; border-left: 2px solid var(--ember); color: #fff4e6; font-size: 15px; }
.offer-card .price { margin: auto 0 0; color: var(--ink); font-size: 18px; }
.offer-card .price strong { font-family: var(--font-head); font-size: 26px; color: var(--ember); }
.included { list-style: none; padding: 0; margin: 36px 0 10px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.included li { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.included li:not(.included-title)::before { content: ""; width: 7px; height: 7px; background: var(--ember); }
.included-title { color: var(--sub) !important; }
.note { color: var(--sub); font-size: 15px; margin: 0; }

/* --- realizacje: suwak przed/po --- */
.before-after {
    --pos: 50%;
    position: relative; aspect-ratio: 2000 / 1266; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); margin-bottom: 56px; user-select: none;
}
.ba-layer { position: absolute; inset: 0; }
.ba-layer img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-placeholder {
    width: 100%; height: 100%; display: grid; place-content: center; text-align: center;
    font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 3vw, 36px);
}
.ba-placeholder small { font-family: var(--font-body); font-weight: 400; font-size: 15px; color: var(--sub); }
.ba-placeholder-new { background: linear-gradient(135deg, #1c2a33, #142028); }
.ba-placeholder-old {
    background: repeating-linear-gradient(45deg, #2a2620 0 14px, #24211c 14px 28px);
    font-family: "Times New Roman", serif; color: #d8cfb8;
}
.ba-range {
    position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3;
}
.ba-handle {
    position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--ember);
    z-index: 2; pointer-events: none;
}
.ba-handle::after {
    content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 44px; height: 44px; display: grid; place-items: center; background: var(--ember); color: #1a0f05;
    font-weight: 800; font-size: 18px; box-shadow: 4px 4px 0 rgba(0, 0, 0, .35);
}
.ba-range:focus-visible ~ .ba-handle::after { outline: 2px solid var(--ink); outline-offset: 3px; }
.ba-tag {
    position: absolute; top: 14px; z-index: 2; padding: 4px 10px; font-size: 12px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; background: rgba(11, 12, 15, .75);
}
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; }

/* --- realizacje: makiety urzadzen (obracane w 3D przy przewijaniu – main.js) --- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.work-card { perspective: 900px; }
.work-card p { color: var(--sub); margin: 0; }
.mockup {
    margin: 0 auto 22px; background: #1d2027; border: 1px solid var(--line); border-radius: 10px;
    padding: 10px; transform-style: preserve-3d;
    /* bez will-change: inaczej przegladarka rasteryzuje makiete raz w niskiej jakosci i zrzut jest rozmyty */
}
.mockup .screen {
    border-radius: 4px; display: grid; place-items: center; color: var(--sub); font-family: var(--font-head); font-weight: 700;
    background: linear-gradient(160deg, #24272f, #15171c);
}
.mockup-laptop { width: 100%; }
.mockup-laptop .screen { aspect-ratio: 16 / 10; }
.mockup-phone { width: 46%; border-radius: 22px; padding: 8px; }
.mockup-phone .screen { aspect-ratio: 9 / 19; border-radius: 16px; }
/* Ekran ze zrzutem: wysokosc wynika z proporcji samego zrzutu (laptop 1600x1000 = 16:10, telefon 780x1646 = 9:19),
   bez sztywnego aspect-ratio i bez siatki – zrzut nie moze sie rozciagnac ani scisnac */
.mockup .screen:has(img) { display: block; aspect-ratio: auto; overflow: hidden; background: #fff; }
.mockup .screen img { display: block; width: 100%; height: auto; max-width: none; }
.work-card-empty .screen { border: 2px dashed rgba(255, 157, 66, .35); color: var(--ember); }

/* --- realizacje: przyciski "Zobacz caly projekt" --- */
.work-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; }
.ba-actions { margin: -32px 0 56px; }
.work-link { color: var(--sub); text-decoration: none; font-weight: 500; }
.work-link:hover { color: var(--ink); }
[data-project].mockup { cursor: zoom-in; }

/* --- okno podgladu calego projektu --- */
.project-dialog {
    width: min(1180px, 100% - 24px); max-width: none; height: min(92vh, 1100px); max-height: none;
    padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-alt); color: var(--ink);
    overflow: hidden;
}
.project-dialog[open] { display: flex; flex-direction: column; animation: pd-in .25s ease-out; }
.project-dialog::backdrop { background: rgba(5, 6, 8, .8); backdrop-filter: blur(4px); }
@keyframes pd-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.pd-head {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}
.pd-title { flex: 1 1 260px; min-width: 0; }
.pd-title h3 { margin: 0; font-size: 20px; }
.pd-title p { margin: 2px 0 0; color: var(--sub); font-size: 14px; }
.pd-tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 2px; }
.pd-tabs button {
    font: 600 14px var(--font-body); color: var(--sub); background: none; border: 0; padding: 9px 14px; cursor: pointer;
}
.pd-tabs button[aria-pressed="true"] { background: var(--ember); color: #1a0f05; }
.pd-head .btn[hidden] { display: none; }
.pd-close { background: none; border: 0; color: var(--sub); font-size: 30px; line-height: 1; cursor: pointer; padding: 0 4px; }
.pd-close:hover { color: var(--ink); }
.pd-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 24px 20px 40px; background: #08090b; }
/* ramka przegladarki (komputer) albo telefonu – zrzut przewija sie razem z oknem */
/* overflow: clip (nie hidden) – zaokragla rogi, a pasek adresu nadal moze byc przyklejony (sticky) */
.pd-frame { margin: 0 auto; max-width: 1280px; border: 1px solid var(--line); border-radius: 8px; overflow: clip; background: #fff; }
.pd-bar {
    position: sticky; top: -24px; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 10px 14px;
    background: #1d2027; border-bottom: 1px solid var(--line);
}
.pd-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3e48; }
.pd-bar span { margin-left: 12px; font-size: 13px; color: var(--sub); }
.pd-shots img { display: block; width: 100%; height: auto; }
.pd-frame.is-mobile { max-width: 390px; border-radius: 28px; border: 10px solid #1d2027; }
.pd-frame.is-mobile .pd-bar { display: none; }
@media (max-width: 600px) {
    .project-dialog { width: 100%; height: 100%; border-radius: 0; border: 0; }
    /* kompaktowy naglowek: nazwa + zamknij w jednym rzedzie, pod spodem przelacznik i link */
    .pd-head { position: relative; padding: 12px 52px 12px 14px; gap: 10px; }
    .pd-title { flex-basis: 100%; }
    .pd-title h3 { font-size: 18px; }
    .pd-title p { display: none; }
    .pd-close { position: absolute; top: 8px; right: 10px; }
    .pd-tabs button { padding: 7px 12px; }
    .pd-body { padding: 12px 0 30px; }
    .pd-frame { border-radius: 0; border-left: 0; border-right: 0; }
    .pd-frame.is-mobile { border: 0; border-radius: 0; }
}

/* --- kalkulator --- */
.calc { display: grid; grid-template-columns: 1fr 1fr 300px; gap: 24px; align-items: start; }
.calc-group { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.calc-group legend { font-family: var(--font-head); font-weight: 800; margin-bottom: 12px; }
.calc-option {
    display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; cursor: pointer;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, background .2s;
}
.calc-option:hover { border-color: #3a3e48; }
.calc-option:has(input:checked) { border-color: var(--ember); background: var(--ember-soft); }
.calc-option input { accent-color: var(--ember); margin-top: 5px; }
.calc-option span { display: grid; }
.calc-option small { color: var(--sub); font-size: 14px; }
/* opis dodatku: co klient dostaje i ze sam tym zarzadza w panelu */
.calc-info { margin-top: 4px; color: var(--sub); font-size: 13.5px; font-style: normal; line-height: 1.4; }
/* narzedzie poza limitem pakietu */
.calc-option:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.calc-option:has(input:disabled):hover { border-color: var(--line); }
.calc-note { margin: -4px 0 4px; color: var(--sub); font-size: 15px; line-height: 1.45; }
.calc-result {
    position: sticky; top: calc(var(--header-h) + 20px); padding: 28px 24px; border: 1px solid var(--ember);
    border-radius: var(--radius); background: var(--card);
}
.calc-label { margin: 0; color: var(--sub); font-size: 14px; text-transform: uppercase; letter-spacing: .12em; }
.calc-total { font-family: var(--font-head); font-weight: 800; font-size: 38px; margin: 6px 0 22px; color: var(--ember); }
.calc-total.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.06); } }
@media (max-width: 980px) {
    .calc { grid-template-columns: 1fr; }
    /* na telefonie wynik przyklejony do dolu ekranu – cena zmienia sie na oczach przy zaznaczaniu */
    .calc-result {
        top: auto; bottom: 12px; z-index: 5; padding: 14px 16px;
        display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    }
    .calc-label { width: 100%; font-size: 12px; }
    .calc-total { font-size: 26px; margin: 0; }
    .calc-result .btn { font-size: 15px; padding: 11px 16px; }
}

/* --- proces --- */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.steps p { color: var(--sub); margin: 0; }
.step-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 44px; color: var(--ember); opacity: .85; margin-bottom: 6px; }

/* --- o mnie --- */
.about { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: center; }
.about p { color: var(--sub); max-width: 60ch; }
.about-avatar {
    aspect-ratio: 1; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line);
    box-shadow: 12px 12px 0 var(--ember-soft);
    font-family: var(--font-head); font-weight: 800; font-size: 64px; color: var(--ember);
}
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 28px; } .about-avatar { width: 180px; } }

/* --- kontakt --- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 19px; }
.contact-list a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--ember); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.contact-form { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: grid; gap: 6px; }
.form-field label { font-size: 15px; font-weight: 500; }
.req { color: var(--ember); }
.form-field input, .form-field textarea {
    width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 12px 14px; transition: border-color .2s;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--ember); }
.form-field textarea { resize: vertical; }
.has-error input, .has-error textarea { border-color: var(--err); }
.field-error { color: var(--err); font-size: 14px; }
.form-error { color: var(--err); margin: 0; }
.form-success { margin: 0; padding: 12px 16px; background: rgba(111, 211, 160, .12); color: var(--ok); border-radius: var(--radius); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--sub); }
.consent input { accent-color: var(--ember); margin-top: 4px; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.calc-chip {
    margin: 0; padding: 10px 14px; background: var(--ember-soft); border: 1px solid rgba(255, 157, 66, .4);
    border-radius: var(--radius); font-size: 15px;
}
.calc-chip button { background: none; border: 0; color: var(--sub); font-size: 20px; cursor: pointer; float: right; line-height: 1; }

/* =========================== STOPKA =========================== */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; color: var(--sub); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-note { max-width: 40ch; margin: 12px 0 0; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-list a, .footer-bottom a { color: var(--sub); text-decoration: none; }
.footer-list a:hover, .footer-bottom a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.footer-bottom p { margin: 0; }

/* =================== PODSTRONY TEKSTOWE / 404 =================== */
.page-text .section { padding-top: calc(var(--header-h) + 60px); }
.page-text h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
.page-text h2 { font-size: 22px; margin-top: 1.6em; }
.page-text p { color: var(--sub); }
.not-found { min-height: 80vh; display: grid; align-items: center; }
.not-found-code { font-family: var(--font-head); font-weight: 800; font-size: clamp(90px, 18vw, 180px); line-height: 1; margin: 0; color: var(--ember); opacity: .9; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* =================== OGRANICZONY RUCH =================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ---------- slabsze urzadzenia ---------- */
/* telefon: bez ziarna filmowego (cala warstwa na ekranie przesuwana co klatke) */
@media (max-width: 719px), (pointer: coarse) { .story-grade::after { display: none; } }
/* tryb lekki (story.js wykrywa wolne klatki): bez ziarna, mrugania gwiazd i dryfu dalszych warstw dymu */
.story--lite .story-grade::after { display: none; }
.story--lite .scene-stars i { animation: none; opacity: .5; }
.story--lite .obj[data-id*="dalek"] .obj-img, .story--lite .obj[data-id^="pyl"] .obj-img { animation: none; }
.story--lite .hotspot-dot::after { animation: none; }

/* ---------- oferta w historii (po ostatniej scenie) ---------- */
.story-offer { position: absolute; inset: 0; z-index: 45; display: flex; align-items: center; visibility: hidden; pointer-events: none; }
.story.is-offer .story-offer { visibility: visible; pointer-events: auto; }
.story--static .story-offer { display: none; }
.story.is-offer .story-skip, .story.is-offer .story-progress, .story.is-offer .story-hint { opacity: 0; pointer-events: none; transition: opacity .3s; }
.story-offer-inner { padding-top: var(--header-h); }   /* szerokosc i marginesy z .container */
.story-offer-title { margin: 12px 0 12px; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.05; }
.story-offer .lead { max-width: 660px; margin: 0 0 30px; color: #ddd6cc; }
.offer-tile { position: relative; background: rgba(20, 22, 28, .88); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); will-change: transform, opacity; }
.offer-tile:hover { transform: none; translate: 0 -5px; border-color: rgba(255, 157, 66, .7); }
.offer-tile { transition: border-color .2s, translate .25s; }
.offer-tile-btn {
    margin-top: 18px; align-self: flex-start; padding: 0; border: 0; background: none; cursor: pointer;
    font: 700 15px/1 var(--font-head); color: var(--ember);
}
.offer-tile-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* caly kafelek klikalny */
.offer-tile-btn:focus-visible { outline: none; }
.offer-tile:has(.offer-tile-btn:focus-visible) { outline: 2px solid var(--ember); outline-offset: 3px; }
.story-offer.drawer-open .offer-grid { opacity: .35; transition: opacity .3s; }

/* panel wyceny wysuwany z prawej (telefon: z dolu) */
.offer-drawer {
    position: absolute; top: 0; right: 0; bottom: 0; z-index: 2; width: min(520px, 100%); overflow-y: auto; overscroll-behavior: contain;
    padding: calc(var(--header-h) + 24px) 28px 28px; background: #0e0f13; border-left: 1px solid var(--line);
    box-shadow: -30px 0 60px rgba(0, 0, 0, .55); transform: translateX(105%); transition: transform .55s cubic-bezier(.2, .9, .25, 1);
}
.story-offer.drawer-open .offer-drawer { transform: none; }
.offer-drawer-close {
    position: absolute; top: calc(var(--header-h) + 14px); right: 18px; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line); background: none; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer;
}
.offer-drawer-close:hover { border-color: var(--ember); color: var(--ember); }
.offer-drawer-title { margin: 8px 0 22px; font-size: 28px; }
.offer-drawer .calc { grid-template-columns: 1fr; gap: 22px; }
.offer-drawer .calc-result {
    position: sticky; top: auto; bottom: 0; z-index: 2; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 4px 14px; box-shadow: 0 -10px 30px rgba(0, 0, 0, .5);
}
.offer-drawer .calc-label { width: 100%; font-size: 12px; }
.offer-drawer .calc-total { font-size: 28px; margin: 0; }
.offer-drawer .calc-result .btn { font-size: 15px; padding: 11px 16px; }

@media (max-width: 719px) {
    .story-offer { align-items: flex-start; }
    .story-offer-inner { padding-top: calc(var(--header-h) + 8px); }
    .story-offer-title { font-size: 28px; margin: 8px 0; }
    .story-offer .lead { font-size: 15px; margin-bottom: 16px; }
    .story-offer .offer-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .offer-tile { padding: 14px 14px 16px; }
    .offer-tile h3 { font-size: 16px; margin-bottom: 6px; }
    .offer-tile p:not(.price) { display: none; }                   /* na telefonie: nazwa, cena, przycisk */
    .offer-tile .price { font-size: 14px; }
    .offer-tile .price strong { font-size: 20px; }
    .offer-tile-btn { margin-top: 10px; font-size: 13px; }
}

/* telefon i tablet: wycena jako panel wjezdzajacy z prawej na cala szerokosc */
@media (max-width: 980px) {
    .offer-drawer { width: 100%; border-left: 0; padding: calc(var(--header-h) + 16px) 18px 18px; }
    .offer-drawer-close { top: calc(var(--header-h) + 8px); right: 14px; }
}
/* komputer: zamiast panelu – wycena w ukladzie sekcji Wycena, kazda czesc to osobny unoszacy sie kafelek */
@media (min-width: 981px) {
    .offer-drawer {
        inset: 0; width: auto; display: flex; flex-direction: column; align-items: center;
        padding: calc(var(--header-h) + 26px) 0 28px; background: none; border: 0; box-shadow: none;
        transform: none; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
    }
    .story-offer.drawer-open .offer-drawer { opacity: 1; visibility: visible; }
    .offer-drawer > .eyebrow, .offer-drawer > .offer-drawer-title, .offer-drawer > .calc { width: min(1160px, 100% - 40px); }
    .offer-drawer-title { margin: 6px 0 20px; font-size: clamp(26px, 2.6vw, 36px); }
    .offer-drawer-close { top: calc(var(--header-h) + 18px); right: max(20px, (100% - 1160px) / 2); }
    /* pakiety odplywaja, gdy wlatuje wycena */
    .story-offer-inner { transition: opacity .35s, transform .35s; }
    .story-offer.drawer-open .story-offer-inner { opacity: 0; transform: scale(.96); pointer-events: none; }
    .story-offer.drawer-open .offer-grid { opacity: 1; }
    .offer-drawer .calc { grid-template-columns: 1fr 1fr 300px; gap: 22px; align-items: start; }
    .offer-drawer .calc-group, .offer-drawer .calc-result {
        padding: 22px; border-radius: 10px; background: rgba(20, 22, 28, .9);
        box-shadow: 0 0 0 1px var(--line), 0 26px 60px rgba(0, 0, 0, .5);
        animation: tile-float 5.5s ease-in-out infinite alternate; will-change: transform;
    }
    .offer-drawer .calc-group legend { float: left; width: 100%; margin-bottom: 4px; }   /* legenda w srodku kafelka */
    .offer-drawer .calc-group:nth-child(2) { animation-duration: 6.4s; animation-delay: -2s; }
    .offer-drawer .calc-result {
        position: static; display: block; box-shadow: 0 0 0 1px var(--ember), 0 26px 60px rgba(0, 0, 0, .5);
        animation-duration: 4.8s; animation-delay: -1s;
    }
    .offer-drawer .calc-label { width: auto; font-size: 14px; }
    .offer-drawer .calc-total { font-size: 38px; margin: 6px 0 22px; }
    .offer-drawer .calc-result .btn { font-size: 16px; padding: 13px 20px; }
    .offer-drawer .calc-option { padding-top: 11px; padding-bottom: 11px; }
}
/* unoszenie kafelkow (wlasciwosc translate – nie gryzie sie z animacja wejscia z GSAP) */
@keyframes tile-float { from { translate: 0 -5px; } to { translate: 0 6px; } }
.story--lite .offer-drawer .calc-group, .story--lite .offer-drawer .calc-result { animation: none; }

/* pelny opis pakietu (sekcja Oferta) */
.offer-card .offer-for { color: #d9d3ca; font-size: 15px; line-height: 1.5; margin: 0 0 16px; }
.offer-features { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.45; color: var(--sub); }
.offer-features li { position: relative; padding-left: 22px; }
.offer-features li::before {
    content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px;
    border-left: 2px solid var(--ember); border-bottom: 2px solid var(--ember); transform: rotate(-45deg);
}
.offer-card .offer-time { margin: 8px 0 0; font-size: 13px; color: var(--sub); }
#oferta .offer-grid { align-items: stretch; }

/* pelna oferta pakietu – panel z prawej po kliknieciu planety / ksiezyca */
.planet-drawer {
    position: absolute; top: 0; right: 0; bottom: 0; z-index: 46; width: min(480px, 100%); overflow-y: auto; overscroll-behavior: contain;
    padding: calc(var(--header-h) + 24px) 28px 32px; background: #0e0f13; border-left: 1px solid var(--line);
    box-shadow: -30px 0 60px rgba(0, 0, 0, .55); transform: translateX(105%); transition: transform .55s cubic-bezier(.2, .9, .25, 1);
}
.planet-drawer.is-open { transform: none; }
.story--static .planet-drawer { display: none; }
.planet-drawer .offer-drawer-close { top: calc(var(--header-h) + 14px); }
.planet-offer.offer-card { margin-top: 10px; padding: 0; background: none; border: 0; box-shadow: none; }
.planet-offer[hidden] { display: none; }   /* .offer-card ma display:flex, ktore inaczej przebija atrybut hidden */
.planet-offer.offer-card:hover { transform: none; }
.planet-offer h3 { font-size: 28px; margin-bottom: 12px; }
.planet-offer .price { margin: 4px 0 0; }
.planet-offer-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.planet-drawer .included { margin: 26px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.planet-drawer .note { font-size: 14px; color: var(--sub); }
@media (max-width: 719px) {
    .planet-drawer { width: 100%; border-left: 0; padding: calc(var(--header-h) + 16px) 18px 24px; }
    .planet-drawer .offer-drawer-close { top: calc(var(--header-h) + 8px); right: 14px; }
}

/* komputer: oferta na caly ekran – wszystkie pakiety obok siebie, klikniety wyrozniony; zamykanie X jak przy wycenie */
.planet-drawer-title { display: none; }
@media (min-width: 981px) {
    .planet-drawer {
        inset: 0; width: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 18px; align-content: start;
        padding: calc(var(--header-h) + 26px) max(20px, (100% - 1160px) / 2) 40px;
        background: rgba(9, 10, 14, .82); border: 0; box-shadow: none;
        transform: none; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
    }
    .planet-drawer.is-open { opacity: 1; visibility: visible; }
    .planet-drawer > .eyebrow, .planet-drawer-title, .planet-drawer .included, .planet-drawer .note { grid-column: 1 / -1; }
    .planet-drawer-title { display: block; margin: 8px 0 6px; font-size: clamp(28px, 3vw, 42px); }
    .planet-drawer .offer-drawer-close { top: calc(var(--header-h) + 18px); right: max(20px, (100% - 1160px) / 2); }
    .planet-drawer .planet-offer[hidden] { display: flex; }          /* na komputerze widac wszystkie pakiety */
    .planet-drawer .planet-offer.offer-card {
        margin-top: 18px; padding: 24px 22px; background: rgba(22, 24, 30, .96); border: 1px solid var(--line); border-radius: 10px;
        box-shadow: 0 22px 50px rgba(0, 0, 0, .45);
    }
    .planet-drawer .planet-offer.is-picked { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember), 0 22px 60px rgba(255, 157, 66, .14); }
    .planet-drawer .planet-offer h3 { font-size: 21px; }
    .planet-offer-cta { margin-top: 18px; }
    .planet-drawer .planet-offer-cta .btn { font-size: 14px; padding: 10px 14px; }
    /* planety za oknem rozmyte i przygaszone */
    .story .scene.is-active { transition: filter .45s; }
    .story.planet-open .scene.is-active { filter: blur(7px) brightness(.55); }
    .story.planet-open .story-skip, .story.planet-open .story-progress, .story.planet-open .story-hint { opacity: 0; pointer-events: none; }
    .story--lite.planet-open .scene.is-active { filter: brightness(.45); }
}

/* hosting i opieka po starcie strony (okno oferty) */
.care { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.care-title { margin: 0 0 14px; font-size: 24px; }
.care-periods { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 999px; }
.care-periods button {
    padding: 8px 14px; border: 0; border-radius: 999px; background: none; cursor: pointer;
    font: 600 14px/1 var(--font-body); color: var(--sub); transition: background .2s, color .2s;
}
.care-periods button[aria-pressed="true"] { background: var(--ember); color: #14100b; }
.care-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.care-plan { padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.care-plan.is-featured { border-color: var(--ember); }
.care-plan h4 { margin: 0 0 6px; font-family: var(--font-head); font-size: 20px; }
.care-hint { margin: 0 0 14px; color: var(--sub); font-size: 14.5px; line-height: 1.45; }
.care-price { margin: 0 0 16px; color: var(--ink); }
.care-price strong { font-family: var(--font-head); font-size: 30px; color: var(--ember); }
.care-price small { display: block; margin-top: 2px; color: var(--sub); font-size: 13px; }
.care-price[hidden] { display: none; }
@media (min-width: 981px) { .planet-drawer .care { grid-column: 1 / -1; } }

/* wzor umowy (/wzor-umowy/) i linki do dokumentow w stopce */
.footer-docs { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.contract { margin: 28px 0; padding: 28px 30px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.contract-title { margin: 0 0 18px; font-size: 24px; text-align: center; }
.contract h3 { margin: 26px 0 10px; font-size: 18px; }
.contract p, .contract li { color: #ddd6cc; font-size: 15.5px; line-height: 1.6; }
.contract ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.contract ol ol { margin-top: 6px; gap: 4px; }
.contract-sign { display: flex; justify-content: space-between; margin-top: 46px; padding-top: 30px; border-top: 1px dashed var(--line); color: var(--sub); }
@media (max-width: 719px) { .contract { padding: 20px 16px; } }

/* telefon: w scenach z pakietami i realizacjami zamiast planet / flag – rozmyte tlo i karty */
.scene-cards { display: none; }
@media (max-width: 719px), (max-aspect-ratio: 4/5) {
    .scene[data-cards] .scene-cards { display: grid; gap: 10px; margin-top: 18px; }
    .scene[data-cards] .scene-text { display: none; }
    .scene-cards-lead { margin: 0 0 2px; color: #ddd6cc; font-size: 15px; }
    .scene-card {
        display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 15px 16px;
        border: 1px solid var(--line); border-radius: 10px; background: rgba(20, 22, 28, .88); color: var(--ink);
        text-align: left; cursor: pointer; box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    }
    .scene-card b { font-family: var(--font-head); font-size: 16px; font-weight: 700; }
    .scene-card span { flex-shrink: 0; color: var(--ember); font-size: 14px; font-weight: 600; }
    .scene-card span::after { content: " ›"; }
    .scene-card:active { border-color: var(--ember); }
    /* tlo rozmyte i nieruchome (bez petli – rozmycie liczy sie wtedy raz), bez rakiety i etykiet */
    .scene[data-cards] .scene-cam { filter: blur(10px) brightness(.45); }
    .scene[data-cards] .scene-cam, .scene[data-cards] .scene-cam * { animation: none !important; }
    .scene[data-cards] .obj-rocket, .scene[data-cards] .hotspot-layer { display: none; }
    .story--lite .scene[data-cards] .scene-cam { filter: brightness(.4); }
}

/* niski ekran w poziomie (telefon obrocony): mniejszy tytul i ciasniejsze odstepy, zeby tekst nie zajmowal calego kadru */
@media (max-height: 520px) and (orientation: landscape) {
    .scene-copy { padding: calc(var(--header-h) + 6px) 0 56px; }
    .scene-title { font-size: min(8vw, 14vh); max-width: 52%; }
    .scene-text { margin-top: 10px; font-size: 14px; max-width: 42ch; }
    .story-hint { display: none; }
}

/* ---------- podstrony SEO (cennik, realizacje, pytania, miasta, restauracje) ---------- */
.page-seo .lead { color: #ddd6cc; }
.seo-h2 { margin: 44px 0 12px; font-size: clamp(22px, 2.4vw, 30px); }
.page-seo p { color: #d4cdc3; line-height: 1.7; }
.page-seo p a, .seo-more a { color: var(--ember); }
.seo-offers { margin-top: 30px; }
.seo-more { margin-top: 18px; font-size: 15px; }
.tool-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.tool-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.tool-list b { color: var(--ember); white-space: nowrap; }
.tool-list small { display: block; margin-top: 4px; color: var(--sub); font-size: 14px; line-height: 1.4; }
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.faq-item summary { padding: 16px 18px; cursor: pointer; font-family: var(--font-head); font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--ember); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0; padding: 0 18px 16px; }
.case { margin-top: 30px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.case h2, .case h3 { margin: 4px 0 10px; }
.case-meta { margin: 0; color: var(--ember) !important; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.case-links { margin-bottom: 0; font-size: 15px; }
.case-inline { margin-top: 26px; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 28px; }
.city-card { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.city-card:hover { border-color: var(--ember); }
.city-card b { font-family: var(--font-head); font-size: 18px; }
.city-card span { color: var(--sub); font-size: 14.5px; line-height: 1.5; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 28px; }
.feature { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.feature h2, .feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; font-size: 15px; }
.crumbs { margin-bottom: 14px; font-size: 14px; color: var(--sub); }
.crumbs a { color: var(--sub); }
.page-cta { margin-top: 56px; padding: 30px; border: 1px solid var(--ember); border-radius: 12px; background: var(--ember-soft); }
.page-cta h2 { margin: 0 0 8px; }
.page-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
/* stopka: kolumny z linkami */
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 28px 48px; }
.footer-cols h2 { margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--sub); }
.footer-cols a { display: block; margin-bottom: 7px; color: var(--ink); text-decoration: none; font-size: 15px; }
.footer-cols a:hover { color: var(--ember); }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr; } }

/* pasek nad tytulem pierwszej sceny ("zdalnie w calej Polsce") */
.scene-kicker {
    display: inline-block; align-self: flex-start; margin: 0 0 18px; padding: 7px 14px; border: 1px solid rgba(255, 157, 66, .45);
    border-radius: 999px; background: rgba(9, 10, 14, .55); color: #f1e6d8; font-size: 13px; font-weight: 600; letter-spacing: .04em;
}
@media (max-width: 719px) { .scene-kicker { font-size: 11.5px; padding: 6px 11px; margin-bottom: 12px; } }
/* informacja o pracy zdalnej (kontakt, strony miast) */
.remote-note { margin: 18px 0 0; padding: 14px 16px; border-left: 3px solid var(--ember); border-radius: 0 8px 8px 0; background: var(--ember-soft); color: #e9e2d8; }
.remote-note b { color: var(--ember); }
/* odsylacz do cennika zamiast listy cen na podstronach */
.pricing-link {
    display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 40px; padding: 22px 24px;
    border: 1px solid var(--ember); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; transition: background .2s;
}
.pricing-link:hover { background: var(--ember-soft); }
.pricing-link span { color: var(--sub); font-size: 15px; line-height: 1.5; }
.pricing-link b { display: block; margin-bottom: 4px; color: var(--ink); font-family: var(--font-head); font-size: 20px; }
.pricing-link i { flex-shrink: 0; font-style: normal; font-weight: 700; color: var(--ember); }
@media (max-width: 560px) { .pricing-link { flex-direction: column; align-items: flex-start; } }

/* slowa tytulu sceny – wchodza osobno (story.js: copyIn) */
.scene-title .w { display: inline-block; transform-origin: 0 100%; }
/* czytasz opis planety / ksiezyca / czesci rakiety -> napisy sceny cofaja sie w tlo, zeby karta nie walczyla z tytulem
   (filter, a nie opacity – opacity napisow animuje GSAP) */
.scene-copy { transition: filter .35s; }
/* opis planety / ksiezyca / flagi lezy w kamerze sceny, a napisy nad nia – przy otwartym opisie napisy znikaja calkiem,
   inaczej przeswituja przez karte (zmiana kolejnosci warstw zdjelaby przyciemnienie tla po lewej) */
.scene:has(.hotspot-layer .hotspot--offer:hover, .hotspot-layer .hotspot--offer:focus-visible, .hotspot-layer .hotspot--offer.is-open,
             .hotspot.to-copy:hover, .hotspot.to-copy:focus-visible, .hotspot.to-copy.is-open) .scene-copy { filter: opacity(0); }

/* ---------- wyroznione slowa w tytulach scen ---------- */
/* "wystrzel": litery jak ogien z dysz – zloto-pomaranczowy gradient z poswiata, jeden blysk po wejsciu
   i smugi spalin z lewej, jakby slowo startowalo */
.w--fire {
    position: relative; color: transparent; -webkit-background-clip: text; background-clip: text;
    background-image: linear-gradient(100deg, #ffe7b0 0%, #ffb24d 30%, #ff7a2a 55%, #ffb24d 75%, #fff1cf 88%, #ff9d42 100%);
    background-size: 240% 100%; background-position: 100% 0;
    text-shadow: none;   /* cien/poswiata przy literach z gradientu daje w Chrome widoczny prostokat wokol slowa */
}
.w--fire::before {
    content: ""; position: absolute; right: 100%; top: 22%; bottom: 18%; width: .8em; margin-right: .06em; opacity: 0;
    background:
        linear-gradient(90deg, transparent, #ffb24d) 100% 18% / 70% .05em no-repeat,
        linear-gradient(90deg, transparent, #ffe7b0) 100% 52% / 100% .045em no-repeat,
        linear-gradient(90deg, transparent, #ff7a2a) 100% 84% / 55% .05em no-repeat;
    transform-origin: 100% 50%;
}
.copy-in .w--fire { animation: fire-sheen 1.5s ease-out both; }
.copy-in .w--fire::before { animation: fire-streak 1.1s cubic-bezier(.2, .8, .2, 1) .15s both; }
@keyframes fire-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes fire-streak {
    0% { opacity: 0; transform: translateX(.5em) scaleX(.2); }
    40% { opacity: 1; }
    100% { opacity: .85; transform: translateX(0) scaleX(1); }
}
/* "dobra": odreczne podkreslenie, ktore rysuje sie pod slowem */
.w--underline { position: relative; }
.w-underline {
    position: absolute; left: -3%; bottom: -.16em; width: 106%; height: .26em; overflow: visible; pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(255, 157, 66, .45));
}
.w-underline path {
    fill: none; stroke: var(--ember); stroke-width: 7px; stroke-linecap: round; vector-effect: non-scaling-stroke;
    stroke-dasharray: 1; stroke-dashoffset: 1;
}
.copy-in .w-underline path { animation: underline-draw .8s cubic-bezier(.6, .05, .3, 1) .1s forwards; }
@keyframes underline-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 719px) { .w-underline path { stroke-width: 5px; } }
.story--static .w--fire::before { opacity: .85; }
.story--static .w-underline path { stroke-dashoffset: 0; }

/* zblizenie kamery na kropke (story.js: zoomTo) – osobne wlasciwosci scale/translate skladaja sie z "oddechem" kamery */
.scene-cam {
    scale: var(--zs, 1); translate: var(--zx, 0px) var(--zy, 0px);
    transition: scale .9s cubic-bezier(.2, .8, .2, 1), translate .9s cubic-bezier(.2, .8, .2, 1);
}
/* kropka i jej opis nie rosna razem z kamera – tekst ostry, opis w tym samym miejscu przy kropce */
.scene-cam .hotspot { scale: calc(1 / var(--zs, 1)) !important; transition: scale .9s cubic-bezier(.2, .8, .2, 1); }   /* !important: GSAP wpisuje scale:none */
/* przy zblizeniu napisy sceny lekko ustepuja (plynnie, bez migania) */
.scene.is-zoomed .scene-copy { filter: opacity(.35); transition: filter .9s; }

/* "orbite": pierscien planety wokol slowa – tylna polowa za literami, przednia przed nimi, rysuje sie po wejsciu;
   po pierscieniu krazy maly ksiezyc */
.w--orbit { position: relative; isolation: isolate; }
.w-orbit {
    position: absolute; left: -17%; top: 50%; width: 134%; height: 1em; overflow: visible; pointer-events: none;
    transform: translateY(-42%) rotate(-11deg);
}
.w-orbit--back { z-index: -1; opacity: .7; }
.w-orbit--front { z-index: 1; filter: drop-shadow(0 0 8px rgba(255, 157, 66, .55)); }
.w-orbit path {
    fill: none; stroke: var(--ember); stroke-width: 6px; stroke-linecap: round; vector-effect: non-scaling-stroke;
    stroke-dasharray: 1; stroke-dashoffset: 1;
}
.w-orbit--back path { stroke: #ffc27a; stroke-width: 4px; }
.w-orbit-moon { fill: #fff1cf; opacity: 0; }
.copy-in .w-orbit--back path { animation: underline-draw .7s cubic-bezier(.6, .05, .3, 1) forwards; }
.copy-in .w-orbit--front path { animation: underline-draw .7s cubic-bezier(.6, .05, .3, 1) .45s forwards; }
.copy-in .w-orbit-moon { animation: orbit-moon-in .4s ease-out 1.1s forwards; }
@keyframes orbit-moon-in { to { opacity: 1; } }
@media (max-width: 719px) { .w-orbit path { stroke-width: 3.5px; } .w-orbit--back path { stroke-width: 2px; } }
.story--static .w-orbit path { stroke-dashoffset: 0; }
.story--static .w-orbit-moon { opacity: 1; }

/* rozmiar tytulu sceny: duzy, ale nie wiekszy niz pozwala najdluzsza linia (--tl znakow) – kazda linia w jednym wierszu */
.scene-copy { container-type: inline-size; }
.scene-title { font-size: min(clamp(46px, 8vw, 138px), calc(62cqw / (var(--tl, 10) * .55))); }
@media (max-width: 719px), (max-aspect-ratio: 4/5) {
    .scene-title { font-size: min(clamp(42px, 13vw, 72px), calc(100cqw / (var(--tl, 10) * .55))); }
}

/* opis kropki jako porownanie: czesc rakiety -> element strony */
.hotspot-card--compare { width: min(400px, 84vw); }
.hs-part {
    display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: #a99f92;
    font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.hs-part::after { content: "→ Twoja strona"; color: var(--ember); opacity: .8; }
.hs-rocket, .hs-site { display: block; }
.hs-rocket i, .hs-site i {
    display: block; margin-bottom: 2px; font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.hs-rocket { margin-bottom: 12px; padding: 8px 12px; border-radius: 4px; background: rgba(255, 255, 255, .05); color: #b8afa3; font-size: 15px; font-style: italic; }
.hs-rocket i { color: #8d857a; }
.hs-site i { color: var(--ember); }
@media (max-width: 719px), (max-aspect-ratio: 4/5) {
    .hotspot-card--compare { padding: 14px 16px; font-size: 15px; }
    .hotspot-card--compare strong { font-size: 19px; margin-bottom: 6px; }
    .hs-rocket { margin-bottom: 8px; font-size: 13.5px; }
}

/* kafelki oferty w historii: 3 najwazniejsze punkty pakietu i czas realizacji */
.offer-tile .offer-features--tile { gap: 6px; margin: 0 0 18px; font-size: 14px; }
.offer-tile .offer-time { margin: 6px 0 0; }
@media (max-height: 820px) { .offer-tile .offer-features--tile li:nth-child(n+3) { display: none; } }
@media (max-width: 719px) { .offer-tile .offer-features--tile { display: none; } }
/* niskie ekrany (laptopy 1366x768): krotki opis znika (punkty mowia wiecej), mniejsze odstepy */
@media (min-width: 720px) and (max-height: 820px) {
    .offer-tile h3 + p { display: none; }
    .story-offer-title { margin: 6px 0 8px; font-size: clamp(30px, 3.6vw, 46px); }
    .story-offer .lead { margin-bottom: 18px; font-size: 16px; }
    .offer-tile { padding-top: 20px; padding-bottom: 20px; }
    .offer-tile .offer-panel { margin-top: 0; }
    .offer-tile .price strong { font-size: 22px; }
}

/* pasek "bezpieczenstwo w standardzie" pod kafelkami oferty */
.offer-secure { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; color: #d9d3ca; font-size: 15px; line-height: 1.45; }
.offer-secure svg { flex-shrink: 0; width: 26px; height: 26px; fill: none; stroke: var(--ember); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.offer-secure b { color: var(--ink); }
@media (min-width: 720px) and (max-height: 820px) { .offer-secure { margin-top: 12px; font-size: 14px; } }
@media (max-width: 719px) { .offer-secure { margin-top: 12px; font-size: 13px; align-items: flex-start; } .offer-secure svg { width: 22px; height: 22px; } }

/* ---------- wycena w dwoch krokach: 1) pakiet, 2) narzedzia (main.js) ---------- */
.calc { grid-template-columns: 1fr 300px; }
.calc-steps { grid-column: 1 / -1; display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.calc-steps button {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 1px solid var(--line); border-radius: 999px;
    background: rgba(20, 22, 28, .9); color: var(--sub); font: 600 14px/1 var(--font-body); cursor: pointer; transition: border-color .2s, color .2s;
}
.calc-steps button b {
    display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 12px;
}
.calc-steps button[aria-current] { border-color: var(--ember); color: var(--ink); }
.calc-steps button[aria-current] b { background: var(--ember); color: #1a1208; }
.calc-steps button:disabled { opacity: .4; cursor: not-allowed; }
.calc-steps button:not(:disabled):hover { border-color: var(--ember); }
.calc[data-step="1"] [data-calc-step="2"], .calc[data-step="2"] [data-calc-step="1"] { display: none; }
.calc-options { display: grid; gap: 10px; }
.calc-result [hidden] { display: none !important; }
.calc-picked { margin: -14px 0 18px; color: var(--sub); font-size: 14px; }
.calc[data-step="1"] .calc-picked { display: none; }
.calc-back {
    display: block; margin-top: 14px; padding: 0; border: 0; background: none; color: var(--sub);
    font: 500 14px/1.4 var(--font-body); cursor: pointer;
}
.calc-back:hover { color: var(--ember); }
.calc[data-step="1"] .calc-back { display: none; }
@media (min-width: 981px) {
    .offer-drawer .calc { grid-template-columns: 1fr 300px; }
    .offer-drawer .calc-options { grid-template-columns: 1fr 1fr; }
    .offer-drawer .calc-steps { margin-bottom: -4px; }
}
@media (max-width: 980px) {
    .calc-steps button { font-size: 13px; }
    .offer-drawer .calc-picked { display: none; }
    .offer-drawer .calc-back { width: 100%; margin-top: 2px; text-align: left; }
}
/* niskie ekrany (laptopy 1366x768): krok z narzedziami miesci sie bez przewijania */
@media (min-width: 981px) and (max-height: 820px) {
    .offer-drawer { padding-top: calc(var(--header-h) + 10px); }
    .offer-drawer-title { margin: 2px 0 12px; font-size: 26px; }
    .offer-drawer .calc { gap: 14px; }
    .offer-drawer .calc-group, .offer-drawer .calc-result { padding: 16px 18px; }
    .offer-drawer .calc-option { padding-top: 8px; padding-bottom: 8px; }
    .offer-drawer .calc-info { font-size: 13px; line-height: 1.35; }
    .offer-drawer .calc-note { margin-bottom: 0; font-size: 14px; }
}

/* pakiet bez narzedzi do wyboru (wizytowka, projekt indywidualny): w kroku 2 tylko informacja i przycisk */
.calc[data-tools="0"] [data-calc-step="2"] .calc-options { display: none; }
.calc[data-tools="0"][data-calc-tiles] .calc-note { margin: 0; color: var(--ink); font-size: 16px; }
.calc[data-tools="0"][data-calc-tiles] [data-calc-step="2"] legend { display: none; }
/* opis planety / ksiezyca = tresc kafelka pakietu z wyceny: 3 punkty, cena, czas realizacji
   (w przycisku nie wolno uzyc listy <ul>, wiec punkty to spany z ptaszkiem) */
.hotspot-card--offer { width: min(390px, 84vw); }
.offer-feats { display: grid; gap: 6px; margin-top: 12px; font-size: 14px; line-height: 1.4; color: #cfc8bd; }
.offer-feats span { position: relative; padding-left: 22px; }
.offer-feats span::before {
    content: ""; position: absolute; left: 2px; top: .4em; width: 10px; height: 6px;
    border-left: 2px solid var(--ember); border-bottom: 2px solid var(--ember); transform: rotate(-45deg);
}
.hotspot-card .offer-time { display: block; margin-top: 4px; font-size: 13px; color: var(--sub); }
.offer-more { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ember); }
@media (max-height: 760px) { .offer-feats span:nth-child(n+3) { display: none; } }
.story:has(.hotspot:hover, .hotspot.is-open, .hotspot:focus-visible) .story-hint { opacity: 0; }   /* podpowiedz nie nachodzi na opis */

/* "Nie ma tu narzedzia, ktorego potrzebujesz?" – pole pod narzedziami w kalkulatorze */
.calc-custom {
    display: grid; gap: 8px; margin-top: 12px; padding: 12px 16px; border: 1px dashed rgba(255, 157, 66, .55);
    border-radius: var(--radius); color: var(--sub); font-size: 14px; line-height: 1.4; cursor: text;
}
.calc-custom strong { color: var(--ink); }
.calc-custom input {
    width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #0b0c0f; color: var(--ink);
    font: 400 15px/1.3 var(--font-body);
}
.calc-custom input:focus { outline: none; border-color: var(--ember); }
@media (min-width: 981px) {
    .offer-drawer .calc-custom { grid-template-columns: 1fr 1fr; align-items: center; gap: 16px; }
}

/* uslugi dodatkowe poza pakietami (cennik, pelna oferta pakietu) */
.extras { margin-top: 40px; }
.extras-title { margin: 0 0 14px; font-size: 22px; }
.extras-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.extra { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.extra h4 { margin: 0 0 4px; font-family: var(--font-head); font-size: 17px; }
.extra p { margin: 0; color: var(--sub); font-size: 14.5px; line-height: 1.5; }
.extra .extra-price { margin-bottom: 8px; color: var(--ink); font-size: 14px; }
.extra-price b { color: var(--ember); font-size: 17px; }
/* 9 narzedzi: na komputerze trzy kolumny; na niskich ekranach opis skrocony do 3 linijek (calosc po najechaniu) */
@media (min-width: 981px) {
    .offer-drawer [data-calc-step="2"] .calc-options { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 981px) and (max-height: 820px) {
    .offer-drawer .calc-addon .calc-info { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
    .offer-drawer .calc-addon:hover .calc-info, .offer-drawer .calc-addon:focus-within .calc-info { -webkit-line-clamp: unset; }
}
@media (min-width: 981px) and (max-height: 820px) {
    .offer-drawer .calc-addon strong { font-size: 15px; line-height: 1.3; }
    .offer-drawer [data-calc-step="2"] .calc-options { gap: 8px; }
    .offer-drawer .calc-custom { margin-top: 8px; padding: 8px 14px; }
    .offer-drawer .calc-custom input { padding: 7px 10px; }
}
/* planety / ksiezyce na komputerze: opis po lewej w miejscu tytulu sceny (story.js: fit) – bez kreski do kropki */
.hotspot.to-copy::before { display: none; }
/* przyciemnienie lewej strony (pod tytulem) wygasa razem z tytulem – inaczej przygasza opis planety w tym miejscu */
.scene-shade { transition: opacity .35s; }
.scene:has(.hotspot.to-copy:hover, .hotspot.to-copy:focus-visible, .hotspot.to-copy.is-open) .scene-shade { opacity: 0; }
/* okno pelnej oferty (komputer: siatka 4 kolumn) – uslugi dodatkowe na cala szerokosc, obok siebie */
@media (min-width: 981px) {
    .planet-drawer .extras { grid-column: 1 / -1; margin-top: 26px; }
    .planet-drawer .extras-grid { grid-template-columns: repeat(3, 1fr); }
}

/* klikalne pakiety, uslugi i opieka: link na dole, a klik w dowolne miejsce kafelka dziala tak samo (main.js: data-pick) */
.extra, .care-plan, .seo-offers .offer-card { position: relative; }
.extra, .care-plan { display: flex; flex-direction: column; }
.pick-link {
    margin-top: auto; padding-top: 14px; color: var(--ember); font-weight: 700; font-size: 15px; text-decoration: none;
}
.pick-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.extra:hover, .care-plan:hover, .seo-offers .offer-card:hover { border-color: var(--ember); }
.extra, .care-plan { transition: border-color .2s, transform .2s; }
.extra:hover, .care-plan:hover { transform: translateY(-3px); }
.pick-link:focus-visible { outline: none; }
.extra:has(.pick-link:focus-visible), .care-plan:has(.pick-link:focus-visible), .offer-card:has(.pick-link:focus-visible) { outline: 2px solid var(--ember); outline-offset: 3px; }

/* ---------- formularz: na poczatku wybor pakietu, uslug dodatkowych i planu po starcie ---------- */
.pick-group { display: grid; gap: 14px; margin: 0 0 6px; padding: 0 0 18px; border: 0; border-bottom: 1px solid var(--line); }
.pick-group legend { margin-bottom: 4px; padding: 0; font-family: var(--font-head); font-size: 20px; font-weight: 800; }
.pick-label { margin: 0 0 8px; font-size: 15px; font-weight: 500; }
.pick-label small { color: var(--sub); font-size: 13px; font-weight: 400; }
.pick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-chip { position: relative; cursor: pointer; }
.pick-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-chip span {
    display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #0b0c0f;
    color: var(--ink); font-size: 14px; line-height: 1.3; transition: border-color .2s, background .2s, color .2s;
}
.pick-chip:hover span { border-color: #4a4f5a; }
.pick-chip input:checked + span { border-color: var(--ember); background: var(--ember-soft); color: #fff4e6; }
.pick-chip input:checked + span::before { content: "✓ "; color: var(--ember); font-weight: 700; }
.pick-chip input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }
.pick-group .calc-chip { margin: -4px 0 0; }

/* ---------- opis pakietu po lewej (planety): spokojne, "premium" wejscie ----------
   1) ramka rysuje sie od lewej krawedzi, 2) srodek ciemnieje i wypelnia sie tlem, 3) linijki tekstu wyplywaja z rozmycia.
   Zamkniecie: wszystko gasnie szybko i bez opoznien. */
.offer-hint { display: block; }
.hotspot.to-copy .hotspot-card {
    opacity: 1; visibility: hidden; clip-path: none; background: none; border-color: transparent; box-shadow: none;
    transform: translate(var(--shift, 0px), calc(var(--vshift, 0px) - 50%)); isolation: isolate;
    transition: visibility 0s linear .45s;
}
.hotspot.to-copy .hotspot-card::before {      /* tlo: przyciemnienie srodka */
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 8px;
    background: linear-gradient(135deg, rgba(14, 15, 20, .94), rgba(8, 9, 12, .97));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 0 40px rgba(255, 157, 66, .08);
    opacity: 0; transition: opacity .3s ease;
}
.hotspot.to-copy .hotspot-card::after {       /* ramka rysowana od lewej */
    content: ""; position: absolute; inset: 0; border: 1px solid rgba(255, 157, 66, .85); border-radius: 8px; pointer-events: none;
    clip-path: inset(0 100% 0 0); transition: clip-path .3s ease;
}
.hotspot.to-copy .hotspot-card > * {
    opacity: 0; transform: translateY(6px); filter: blur(3px);
    transition: opacity .2s ease, transform .2s ease, filter .2s ease;
}
.hotspot.to-copy:hover .hotspot-card, .hotspot.to-copy:focus-visible .hotspot-card, .hotspot.to-copy.is-open .hotspot-card {
    visibility: visible; opacity: 1; clip-path: none; transform: translate(var(--shift, 0px), calc(var(--vshift, 0px) - 50%));
    transition: visibility 0s;
}
.hotspot.to-copy:is(:hover, :focus-visible, .is-open) .hotspot-card::after {
    clip-path: inset(0 0 0 0); transition: clip-path .8s cubic-bezier(.65, 0, .35, 1);
}
.hotspot.to-copy:is(:hover, :focus-visible, .is-open) .hotspot-card::before {
    opacity: 1; transition: opacity .7s ease .25s;
}
.hotspot.to-copy:is(:hover, :focus-visible, .is-open) .hotspot-card > * {
    opacity: 1; transform: none; filter: none;
    transition: opacity .55s ease, transform .6s cubic-bezier(.2, .8, .2, 1), filter .55s ease;
}
.hotspot.to-copy:is(:hover, :focus-visible, .is-open) .hotspot-card > :nth-child(1) { transition-delay: .35s; }
.hotspot.to-copy:is(:hover, :focus-visible, .is-open) .hotspot-card > :nth-child(2) { transition-delay: .42s; }
.hotspot.to-copy:is(:hover, :focus-visible, .is-open) .hotspot-card > :nth-child(3) { transition-delay: .49s; }
.hotspot.to-copy:is(:hover, :focus-visible, .is-open) .hotspot-card > :nth-child(4) { transition-delay: .56s; }
.hotspot.to-copy:is(:hover, :focus-visible, .is-open) .hotspot-card > :nth-child(5) { transition-delay: .63s; }
.hotspot.to-copy:is(:hover, :focus-visible, .is-open) .hotspot-card > :nth-child(6) { transition-delay: .70s; }
.hotspot.to-copy:is(:hover, :focus-visible, .is-open) .hotspot-card > :nth-child(n+7) { transition-delay: .77s; }
@media (prefers-reduced-motion: reduce) {
    .hotspot.to-copy .hotspot-card::after, .hotspot.to-copy .hotspot-card::before, .hotspot.to-copy .hotspot-card > * { transition: none !important; filter: none; }
}

/* delikatny napis nad ramka opisu pakietu (po lewej) – pojawia sie na koncu, gdy ramka jest juz narysowana;
   zastepuje linijke "Kliknij, zeby zobaczyc pelna oferte" w srodku karty */
.offer-cue { display: none; }
.hotspot.to-copy .offer-more { display: none; }
.hotspot.to-copy .hotspot-card > .offer-cue {
    display: flex; align-items: center; gap: 10px; position: absolute; left: 2px; bottom: calc(100% + 10px);
    color: rgba(255, 190, 130, .78); font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
    transform: translateY(4px);
}
.offer-cue::before { content: ""; width: 22px; height: 1px; background: currentColor; transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
.hotspot.to-copy:is(:hover, :focus-visible, .is-open) .hotspot-card > .offer-cue { transition-delay: .95s; transform: none; }
.hotspot.to-copy:is(:hover, :focus-visible, .is-open) .offer-cue::before { transform: scaleX(1); transition-delay: 1s; }
.hotspot.to-copy:is(:hover, :focus-visible, .is-open) .offer-cue { animation: cue-breathe 2.6s ease-in-out 1.6s infinite; }
@keyframes cue-breathe { 50% { opacity: .55; } }

/* "U mnie": plus stron Pikselkraft pod opisem czesci rakiety */
.hs-plus {
    display: block; position: relative; margin-top: 12px; padding: 9px 12px 9px 34px; border-radius: 6px;
    background: linear-gradient(90deg, rgba(255, 157, 66, .14), rgba(255, 157, 66, .03)); border: 1px solid rgba(255, 157, 66, .22);
    color: #f6e9da; font-size: 14.5px; line-height: 1.45;
}
.hs-plus::before {     /* gwiazdka-plus w kolku */
    content: "+"; position: absolute; left: 10px; top: 10px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
    background: var(--ember); color: #1a1208; font-size: 13px; font-weight: 800; line-height: 1;
}
.hs-plus i { display: block; margin-bottom: 2px; font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ember); }
@media (max-width: 719px), (max-aspect-ratio: 4/5) { .hs-plus { margin-top: 8px; font-size: 13px; } }
@media (min-width: 720px) and (max-height: 820px) { .hs-plus { margin-top: 8px; padding-top: 7px; padding-bottom: 7px; font-size: 13.5px; } }

/* ---------- flaga realizacji: opis po lewej z makieta laptopa i telefonu (hero strony) ---------- */
.hotspot-card--project { width: min(430px, 84vw); }
.pr-kind { display: block; margin-bottom: 2px; color: #a99f92; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pr-devices { position: relative; display: block; height: 196px; margin: 14px 0 12px; }
.pr-laptop {                                   /* ekran laptopa z ramka + podstawa */
    position: absolute; left: 0; top: 0; width: 300px; padding: 8px 8px 0; border-radius: 10px 10px 0 0;
    background: #1b1d23; box-shadow: 0 0 0 1px #2c2f37, 0 16px 30px rgba(0, 0, 0, .45);
}
.pr-laptop img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 3px 3px 0 0; background: #0b0c0f; }
.pr-laptop::after {
    content: ""; position: absolute; left: -16px; right: -16px; top: 100%; height: 9px; border-radius: 0 0 10px 10px;
    background: linear-gradient(#3a3d45, #22242a); box-shadow: 0 8px 18px rgba(0, 0, 0, .5);
}
.pr-phone {                                    /* telefon nachodzacy na prawy dolny rog laptopa */
    position: absolute; left: 262px; top: 34px; width: 84px; padding: 4px; border-radius: 14px;
    background: #111216; box-shadow: 0 0 0 1px #33363f, -8px 14px 28px rgba(0, 0, 0, .6);
}
.pr-phone img { display: block; width: 100%; height: auto; aspect-ratio: 76 / 156; object-fit: cover; object-position: top; border-radius: 10px; background: #0b0c0f; }
.pr-summary { display: block; color: #e9e2d8; font-size: 15px; line-height: 1.45; }
.hotspot-card--project .offer-feats { margin-top: 10px; }
.hotspot.to-copy .hotspot-card--project .offer-more { display: none; }
@media (min-width: 720px) and (max-height: 820px) {
    .pr-devices { height: 160px; margin: 10px 0 8px; }
    .pr-laptop { width: 240px; padding: 6px 6px 0; }
    .pr-phone { left: 210px; top: 26px; width: 68px; }
    .hotspot-card--project .offer-feats span:nth-child(n+3) { display: none; }
}

/* ---------- kalkulator: krok 3 "Dane" (krotki formularz) ---------- */
.calc [data-calc-step] { display: none; }
.calc[data-step="1"] [data-calc-step="1"], .calc[data-step="2"] [data-calc-step="2"], .calc[data-step="3"] [data-calc-step="3"] { display: grid; }
.calc-back-tools { display: none; }
.calc[data-step="3"] .calc-back-tools { display: block; }
.calc[data-step="3"] .calc-back:not(.calc-back-tools) { display: none; }
.calc.is-sent .calc-back-tools { display: none; }
.calc-contact { align-content: start; }
.calc-form { display: grid; gap: 14px; }
.calc-form[hidden] { display: none; }
.calc-form-title, .calc-thanks-title { margin: 0; font-family: var(--font-head); font-size: 20px; font-weight: 800; }
.calc-form .calc-note { margin: -6px 0 4px; }
.calc-form .form-field label small { color: var(--sub); font-weight: 400; }
.calc-form .consent { font-size: 13.5px; }
.calc-thanks { display: grid; gap: 8px; padding: 8px 0; }
.calc-thanks[hidden] { display: none; }
.calc-thanks-title { color: var(--ember); }
.calc-thanks p:last-child { margin: 0; color: var(--sub); }
@media (min-width: 981px) {
    .offer-drawer .calc-contact { padding: 22px; }
    .offer-drawer .calc-form .form-field textarea { min-height: 84px; }
}

/* telefon w naglowku (obok "Napisz do mnie") */
.nav-phone { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-phone svg { width: 16px; height: 16px; fill: var(--ember); }
.nav-phone:hover { color: var(--ember); }
.calc-form .calc-note a { color: var(--ember); font-weight: 600; white-space: nowrap; }
.header-call { display: none; }
@media (max-width: 760px) {
    .header-call {
        display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; border-radius: 50%;
        background: var(--ember-soft); border: 1px solid rgba(255, 157, 66, .45);
    }
    .header-call svg { width: 18px; height: 18px; fill: var(--ember); }
}
/* srednie ekrany: przy telefonie w menu zostaje sama sluchawka z numerem w mniejszym odstepie */
@media (min-width: 761px) and (max-width: 1080px) { .nav-phone { font-size: 0; gap: 0; } .nav-phone svg { width: 18px; height: 18px; } }
/* naglowek: sama ikonka telefonu (numer w aria-label i w podpowiedzi), w kolku jak na telefonie */
.nav-phone {
    font-size: 0; gap: 0; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
    background: var(--ember-soft); border: 1px solid rgba(255, 157, 66, .45); transition: background .2s, border-color .2s;
}
.nav-phone svg { width: 17px; height: 17px; }
.nav-phone:hover { background: rgba(255, 157, 66, .25); border-color: var(--ember); }

/* "O mnie": krotkie fakty jako pigulki z ptaszkiem */
.about-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.about-facts li {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid rgba(255, 157, 66, .35); border-radius: 999px;
    background: var(--ember-soft); color: #f1e6d8; font-size: 14px; font-weight: 600;
}
.about-facts li::before { content: ""; width: 9px; height: 5px; margin-top: -3px; border-left: 2px solid var(--ember); border-bottom: 2px solid var(--ember); transform: rotate(-45deg); }
.about-facts a { color: inherit; text-decoration: none; }
.about-facts a:hover { color: var(--ember); }
