/* =========================
   MOCNY KONIEC ROKU – Studio Figura
   kolory: pomarańcz marki #ff9100, złoto #ffd25e, noc #0a0e1a
========================= */

:root {
  --pomarancz: #ff9100;
  --pomarancz-jasny: #ffb347;
  --zloto: #ffd25e;
  --noc: #0a0e1a;
  --noc-2: #141a2c;
  --tekst: #e6e2da;
  --tekst-przygaszony: #a9a6b4;
  --stal: #3a4256;
}

body {
  font-size: 16px;
  position: relative;
  font-family: Poppins, sans-serif;
  color: var(--tekst);
  background-color: var(--noc);
  background-image: radial-gradient(ellipse 80% 50% at 50% -5%, rgba(255, 145, 0, 0.3) 0%, rgba(255, 145, 0, 0) 70%),
    radial-gradient(ellipse 60% 40% at 100% 55%, rgba(255, 210, 94, 0.12) 0%, rgba(255, 210, 94, 0) 70%),
    radial-gradient(ellipse 60% 40% at 0% 85%, rgba(60, 90, 200, 0.16) 0%, rgba(60, 90, 200, 0) 70%);
  background-repeat: no-repeat;
}

body,
html {
  overflow-x: hidden;
}

img {
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
}

p {
  color: var(--tekst);
  text-align: center;
  font-size: 1rem;
  line-height: 150%;
  letter-spacing: -0.36px;
}

p strong {
  color: #fff;
}

.color-orange {
  color: var(--pomarancz);
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* =========================
   NAWIGACJA
========================= */

nav {
  height: 75px;
  display: flex;
  width: 100%;
  align-items: center;
}
nav .container {
  width: 100%;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-left {
  display: flex;
  align-items: center;
}
.logo-div {
  width: fit-content;
  display: flex;
  align-items: center;
  padding: 12px 16px;
}
.logo-div svg {
  width: 160px;
  height: auto;
}
.nav-right,
.accessibility-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.accessibility-controls {
  padding-right: 20px;
}
.nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pomarancz);
  color: #fff;
  border: none;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.nav-btn svg path {
  fill: white;
}
.nav-btn:hover {
  background: #ff7a00;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(255, 145, 0, 0.35);
}
.nav-btn:active {
  transform: scale(0.95);
}
.nav-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* =========================
   HERO
========================= */

.hero-paczki {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding-top: 24px;
}
.hero-paczka {
  display: block;
}
.hero-paczka--lewa,
.hero-paczka--prawa {
  width: 130px;
  animation: paczka-unoszenie 4s ease-in-out infinite;
}
.hero-paczka--lewa {
  rotate: -10deg;
}
.hero-paczka--prawa {
  rotate: 8deg;
  animation-delay: -2s;
}
.hero-paczka--srodek {
  position: relative;
  width: 240px;
}
.hero-paczka--srodek svg {
  display: block;
  width: 100%;
  height: auto;
}
.hero-wieko {
  position: absolute;
  inset: 0;
  transform-origin: 85% 30%;
  animation: wieko-uchyl 3.2s ease-in-out infinite;
}
.hero-blask {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 260px;
  height: 260px;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 94, 0.75) 0%, rgba(255, 145, 0, 0.25) 35%, rgba(255, 145, 0, 0) 70%);
  animation: blask-puls 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes paczka-unoszenie {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}
@keyframes wieko-uchyl {
  0%,
  55%,
  100% {
    transform: translateY(0) rotate(0);
  }
  65% {
    transform: translateY(-14px) rotate(-6deg);
  }
  72% {
    transform: translateY(-4px) rotate(-2deg);
  }
  78% {
    transform: translateY(-10px) rotate(-4deg);
  }
  88% {
    transform: translateY(0) rotate(0);
  }
}
@keyframes blask-puls {
  0%,
  55%,
  100% {
    opacity: 0.35;
    scale: 0.8;
  }
  68% {
    opacity: 1;
    scale: 1.05;
  }
}

.nadtytul {
  color: var(--pomarancz);
  font-size: 2rem;
  font-weight: 400;
  line-height: 150%;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.h1-glowny {
  color: #fff;
  text-shadow: 0 0 32px rgba(255, 145, 0, 0.45);
  font-size: 4rem;
  font-weight: 800;
  line-height: 120%;
  text-transform: uppercase;
  letter-spacing: -1px;
}
.oferta-wazna {
  color: var(--pomarancz);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  line-height: 150%;
  padding-top: 24px;
}

/* =========================
   SEKCJA Z REGAŁEM
========================= */

.naglowek-sekcji {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
.naglowek-sekcji h3 {
  color: var(--pomarancz);
  font-size: 1.6875rem;
  font-weight: 600;
  line-height: 150%;
}
.podpowiedz {
  display: flex;
  gap: 8px;
  color: var(--tekst-przygaszony);
  font-size: 0.8125rem;
  line-height: 150%;
}

.regal {
  position: relative;
  padding: 56px 28px 0;
  /* słupy regału po bokach */
  border-left: 14px solid var(--stal);
  border-right: 14px solid var(--stal);
  border-image: repeating-linear-gradient(to bottom, #4a5470 0 18px, #2b3142 18px 22px) 14;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}
/* górna belka */
.regal::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 14px;
  background: linear-gradient(to bottom, var(--pomarancz-jasny), var(--pomarancz) 50%, #c96f00);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.regal__tabliczka {
  position: absolute;
  top: 14px;
  left: 50%;
  translate: -50% 0;
  padding: 4px 16px;
  background: var(--zloto);
  color: #1d1a10;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.regal__polki {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 24px;
  row-gap: 64px;
  padding-bottom: 20px;
}
.paczka-slot {
  position: relative;
  padding-bottom: 20px;
}
/* belka półki pod każdą paczką – sąsiednie łączą się w jedną linię */
.paczka-slot::after {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  bottom: -20px;
  height: 20px;
  background: radial-gradient(circle at 50% 50%, #8a4c00 0 2.5px, transparent 3px) 0 50% / 22px 100% repeat-x,
    linear-gradient(to bottom, var(--pomarancz-jasny), var(--pomarancz) 45%, #c96f00);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}
.paczka-slot:first-child::after,
.paczka-slot:nth-child(4n + 1)::after {
  left: -28px;
}
.paczka-slot:nth-child(4n)::after,
.paczka-slot:last-child::after {
  right: -28px;
}

/* =========================
   KARTA PACZKI (obrót jak w cukierkach)
========================= */

.paczka-card {
  width: 100%;
  height: 420px;
  perspective: 1000px;
  cursor: pointer;
  border-radius: 20px;
  outline: none;
}
.paczka-card:focus-visible {
  box-shadow: 0 0 0 3px var(--zloto);
}
.paczka-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}
.paczka-card.flipped .paczka-inner {
  transform: rotateY(180deg);
}
.paczka-front,
.paczka-back {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
/* animowany karton ma własne warstwy, których backface-visibility nie ukrywa –
   w połowie obrotu chowamy cały przód, żeby nie prześwitywał przez ofertę */
.paczka-front {
  transition: visibility 0s linear 0.4s;
}
.paczka-card.flipped .paczka-front {
  visibility: hidden;
}
.paczka-card.flipped .paczka-back {
  z-index: 5;
}
.paczka-front {
  overflow: visible;
  background: radial-gradient(circle at 50% 35%, rgba(255, 210, 94, 0.16) 0%, rgba(255, 210, 94, 0) 55%),
    linear-gradient(160deg, #1b2238 0%, #0e1222 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 145, 0, 0.3);
}
.paczka-numer {
  position: absolute;
  top: 14px;
  left: 16px;
  color: var(--tekst-przygaszony);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
}
.paczka-karton {
  position: absolute;
  top: 48px;
  left: 50%;
  width: 82%;
  max-width: 240px;
  aspect-ratio: 200 / 150;
  translate: -50% 0;
  z-index: 2;
}
.paczka-karton svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.paczka-wieko {
  transform-origin: 50% 25%;
}
.paczka-card:not(.otwieranie):hover .paczka-karton {
  animation: karton-kiwanie 0.6s ease-in-out;
}
.paczka-blask {
  position: absolute;
  left: 50%;
  top: 25%;
  width: 120%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 150, 0.95) 0%, rgba(255, 145, 0, 0.35) 35%, rgba(255, 145, 0, 0) 70%);
  opacity: 0;
  scale: 0.3;
  pointer-events: none;
}
.text-layer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 48px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 1rem;
  line-height: 150%;
  transition: opacity 0.4s ease;
}
.text-layer span:nth-child(2) {
  color: var(--pomarancz);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 120%;
}

/* otwieranie: karton się trzęsie, wieko wyskakuje, w środku błyska */
.paczka-card.otwieranie .paczka-karton {
  animation: karton-trzesienie 0.55s ease-in-out;
}
.paczka-card.otwieranie .paczka-wieko {
  animation: wieko-wylot 0.9s cubic-bezier(0.3, 0, 0.6, 1) 0.45s forwards;
}
.paczka-card.otwieranie .paczka-blask {
  animation: blask-wybuch 0.9s ease-out 0.45s forwards;
}
.paczka-card.otwieranie .text-layer {
  opacity: 0;
}
@keyframes karton-kiwanie {
  25% {
    transform: rotate(-3deg);
  }
  75% {
    transform: rotate(3deg);
  }
}
@keyframes karton-trzesienie {
  0%,
  100% {
    transform: translateX(0) rotate(0);
  }
  20% {
    transform: translateX(-6px) rotate(-3deg);
  }
  40% {
    transform: translateX(6px) rotate(3deg);
  }
  60% {
    transform: translateX(-5px) rotate(-2deg);
  }
  80% {
    transform: translateX(4px) rotate(2deg);
  }
}
@keyframes wieko-wylot {
  0% {
    transform: translateY(0) rotate(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-140px) rotate(-28deg);
    opacity: 0;
  }
}
@keyframes blask-wybuch {
  0% {
    opacity: 0;
    scale: 0.3;
  }
  45% {
    opacity: 1;
    scale: 1.2;
  }
  100% {
    opacity: 0.8;
    scale: 1.5;
  }
}

.konfetti {
  position: absolute;
  top: 90px;
  left: 50%;
  z-index: 4;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  pointer-events: none;
  animation: konfetti-lot 1s ease-out forwards;
}
.konfetti--pasek {
  width: 5px;
  height: 14px;
  border-radius: 2px;
}
@keyframes konfetti-lot {
  from {
    transform: translate(-50%, -50%) rotate(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(0.4);
    opacity: 0;
  }
}

/* tył karty – oferta */
.paczka-back {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 18px;
  background: var(--noc);
  box-shadow: 0 0 0 1px rgba(255, 145, 0, 0.5), 0 8px 40px rgba(255, 145, 0, 0.25);
  transform: rotateY(180deg);
}
.back-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 20px;
  /* tło na wypadek braku zdjęcia */
  background: radial-gradient(circle at 50% 30%, rgba(255, 145, 0, 0.35) 0%, rgba(255, 145, 0, 0) 60%), var(--noc-2);
}
/* zastępcza ilustracja, gdy brak zdjęcia urządzenia: otwarta paczka ze światłem */
.back-photo__zastepcza {
  position: absolute;
  inset: 0 0 52% 0;
  display: none !important;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-photo__zastepcza::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 150, 0.55) 0%, rgba(255, 145, 0, 0.2) 40%, rgba(255, 145, 0, 0) 70%);
}
.back-photo__zastepcza svg {
  position: relative;
  width: 55%;
  max-width: 170px;
  height: auto;
  margin-top: 30px;
}
.back-photo > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transform: scale(1.15);
}
.back-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 26, 0.97) 0%, rgba(10, 14, 26, 0.88) 40%, rgba(10, 14, 26, 0.25) 68%, rgba(10, 14, 26, 0.05) 100%),
    radial-gradient(circle at 50% 100%, rgba(255, 145, 0, 0.25) 0%, rgba(255, 145, 0, 0) 60%);
  z-index: 2;
  pointer-events: none;
}
.back-photo__badge svg {
  width: 22px;
  height: 22px;
}
.back-photo__badge {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 10px;
  border-radius: 64px;
  background: var(--pomarancz);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 120%;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.4) rotate(-12deg);
}
.paczka-card.flipped .back-photo > img {
  animation: zdjecie-reveal 0.9s ease-out 0.5s forwards;
}
.paczka-card.flipped .back-photo__badge {
  animation: badge-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s forwards;
}
@keyframes zdjecie-reveal {
  from {
    opacity: 0;
    transform: scale(1.15);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}
@keyframes badge-pop {
  to {
    opacity: 1;
    transform: scale(1) rotate(-4deg);
  }
}
.back-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.back-content h3 {
  color: var(--pomarancz);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 120%;
  margin-bottom: 4px;
}
.regular-price {
  color: var(--tekst-przygaszony);
  font-size: 0.9rem;
}
.regular-price s {
  color: var(--tekst);
  text-decoration-color: var(--pomarancz);
  text-decoration-thickness: 2px;
  white-space: nowrap;
}
.promo-price {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
}
.promo-price strong {
  display: block;
  color: var(--zloto);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 130%;
  white-space: nowrap;
}
.saving {
  color: var(--pomarancz);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.saving strong {
  color: var(--pomarancz);
  white-space: nowrap;
}
.back-cta {
  margin-top: 10px;
  padding: 6px 18px;
  border-radius: 64px;
  border: 1px solid rgba(255, 145, 0, 0.6);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
}

/* inne urządzenie */
.inne-urzadzenie {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 145, 0, 0.55);
}
.inne-urzadzenie p {
  text-align: left;
}
.inne-urzadzenie__ikona {
  font-size: 2rem;
}
.inne-urzadzenie__tytul {
  color: var(--pomarancz) !important;
  font-size: 1.2rem;
  font-weight: 700;
}

.przycisk {
  display: inline-flex;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 64px;
  background: var(--pomarancz);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}
.przycisk:hover {
  background: #ff7a00;
  color: #fff;
  transform: translateY(-1px);
}
.przycisk--obrys {
  background: transparent;
  border: 1px solid var(--pomarancz);
  color: var(--pomarancz);
}
.przycisk--obrys:hover {
  background: var(--pomarancz);
}

/* =========================
   FORMULARZ
========================= */

.kontakt {
  padding: 24px 0;
}
.h2-sekcja {
  color: var(--pomarancz);
  font-size: 1.6875rem;
  font-weight: 700;
  line-height: 150%;
  text-transform: uppercase;
}
.text-under {
  color: var(--tekst);
}
.text-under span {
  color: var(--pomarancz-jasny);
  font-weight: 600;
}
#form-offer {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
#form-offer > div,
#form-offer > div > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
#form-offer > div.flex-lg-row {
  gap: 24px;
}
#form-offer label {
  color: var(--tekst);
  font-size: 1.125rem;
  line-height: 150%;
}
#form-offer *::placeholder {
  color: #6f7488;
}
#form-offer .kontakt-input {
  border-radius: 24px;
  background: var(--noc-2);
  color: #fff;
  border: 1px solid rgba(255, 145, 0, 0.35);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  padding: 12px 16px;
  width: 100%;
  font-family: Poppins, sans-serif;
  font-size: 1.125rem;
  line-height: 150%;
}
#form-offer .kontakt-input:focus {
  border-color: var(--pomarancz);
  box-shadow: 0 0 0 3px rgba(255, 145, 0, 0.25);
}
#form-offer select option {
  background: var(--noc-2);
  color: #fff;
}
#form-offer .akceptacja {
  flex-direction: row;
  align-items: center;
}
#form-offer .akceptacja__tekst {
  font-size: 1rem;
  cursor: pointer;
}
.akceptacja input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid var(--pomarancz);
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.akceptacja input[type="checkbox"]:checked {
  background-color: var(--pomarancz);
}
.akceptacja input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 8px;
  height: 14px;
  border-right: 3px solid white;
  border-bottom: 3px solid white;
  transform: rotate(45deg);
}
button[type="submit"] {
  padding: 14px 48px;
  border: none;
  border-radius: 64px;
  background: var(--pomarancz);
  font-family: Poppins, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  width: fit-content;
  transition: background 0.2s ease;
}
button[type="submit"]:hover {
  background: #ff7a00;
}
#rezultat {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  color: #fff;
  text-align: center;
  font-size: 1.4375rem;
  font-weight: 600;
  line-height: 120%;
}
#rezultat span {
  padding: 64px 0;
  color: var(--tekst);
}

/* =========================
   STOPKA
========================= */

footer {
  padding: 48px 0;
}
.footer-links div {
  display: flex;
  gap: 32px;
  justify-content: end;
}
.footer-social-links {
  display: flex;
  gap: 32px;
  justify-content: end;
  border-bottom: 1px solid rgba(255, 145, 0, 0.3);
}
.footer-social-links div a {
  color: var(--tekst);
  font-size: 0.875rem;
  line-height: 150%;
  text-decoration: none;
}
.footer-links,
.footer-social-links {
  padding: 16px 0;
  width: 100%;
}
.links-n-social {
  display: flex;
  flex-direction: column;
  align-items: end;
}
.polityka-div,
.polityka-div a {
  color: var(--pomarancz);
  font-size: 0.875rem;
  line-height: 150%;
}

/* komunikat po zakończeniu akcji */
.za-pozno {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
}
.za-pozno__emoji {
  font-size: 5rem;
  margin-bottom: 20px;
}
.za-pozno__tekst {
  color: var(--tekst);
  font-size: 1.5rem;
  line-height: 150%;
  text-transform: uppercase;
}

/* =========================
   DEKORACJE W TLE
========================= */

.dekoracja {
  position: absolute;
  pointer-events: none;
  opacity: 0.22;
  z-index: -1;
}
.dekoracja-1 {
  width: 340px;
  left: -90px;
  top: 60px;
}
.dekoracja-2 {
  width: 280px;
  right: -80px;
  top: 85vh;
  transform: rotate(25deg);
}
.dekoracja-3 {
  width: 300px;
  left: -70px;
  top: 170vh;
  transform: rotate(-15deg);
}
/* drobne migające iskry */
.iskry {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, #ffd25e, transparent),
    radial-gradient(1.5px 1.5px at 82% 12%, #fff, transparent),
    radial-gradient(2px 2px at 68% 34%, #ffb347, transparent),
    radial-gradient(1.5px 1.5px at 24% 46%, #fff, transparent),
    radial-gradient(2px 2px at 92% 52%, #ffd25e, transparent),
    radial-gradient(1.5px 1.5px at 6% 70%, #ffb347, transparent),
    radial-gradient(1.5px 1.5px at 46% 8%, #fff, transparent),
    radial-gradient(2px 2px at 36% 62%, #ffd25e, transparent);
  animation: iskry-migotanie 3s ease-in-out infinite alternate;
}
@keyframes iskry-migotanie {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* =========================
   WÓZEK WIDŁOWY
========================= */

.wozek {
  position: fixed;
  left: 0;
  bottom: 14px;
  z-index: 40;
  width: 130px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  will-change: transform;
  transform: translate3d(-260px, 0, 0);
}
.wozek:focus-visible {
  outline: 2px solid var(--pomarancz);
  outline-offset: 4px;
  border-radius: 12px;
}
.wozek--odjezdza {
  pointer-events: none;
}
.wozek__obrot,
.wozek__drgania {
  display: block;
  transform-origin: 50% 100%;
}
.wozek__drgania svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 14px rgba(255, 145, 0, 0.35));
}
.wozek--jedzie .wozek__drgania {
  animation: wozek-drgania 0.18s linear infinite;
}
.wozek--podskok .wozek__drgania {
  animation: wozek-podskok 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wozek__cien {
  position: absolute;
  left: 8%;
  bottom: -6px;
  width: 84%;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: -1;
}
.wozek__dymek {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  padding: 8px 14px;
  border-radius: 16px;
  background: var(--pomarancz);
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 130%;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateX(-50%) scale(0.6);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.wozek__dymek::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--pomarancz);
}
.wozek--mowi .wozek__dymek {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
@keyframes wozek-drgania {
  50% {
    transform: translateY(-1px);
  }
}
@keyframes wozek-podskok {
  40% {
    transform: translateY(-26px) rotate(-6deg);
  }
  70% {
    transform: translateY(0) rotate(2deg);
  }
}

/* =========================
   RESPONSYWNOŚĆ
========================= */

@media screen and (max-width: 1199px) {
  .regal__polki {
    grid-template-columns: repeat(2, 1fr);
  }
  /* przy dwóch kolumnach belki dochodzą do słupów co drugą paczkę */
  .paczka-slot:nth-child(odd)::after {
    left: -28px;
  }
  .paczka-slot:nth-child(even)::after {
    right: -28px;
  }
}

@media screen and (max-width: 992px) {
  .h1-glowny {
    font-size: 2.75rem;
  }
  .nadtytul {
    font-size: 1.4rem;
  }
  .footer-links div,
  .footer-social-links {
    gap: 16px;
    flex-direction: column;
    align-items: center;
  }
  .footer-logo-div {
    display: flex;
    justify-content: center;
  }
  .links-n-social {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .regal {
    padding: 52px 14px 0;
    border-left-width: 10px;
    border-right-width: 10px;
  }
  .regal__polki {
    grid-template-columns: 1fr;
  }
  .paczka-slot::after,
  .paczka-slot:nth-child(n)::after {
    left: -14px;
    right: -14px;
  }
  .paczka-card {
    height: 360px;
  }
  .hero-paczka--srodek {
    width: 170px;
  }
  .hero-paczka--lewa,
  .hero-paczka--prawa {
    width: 84px;
  }
  .hero-blask {
    width: 190px;
    height: 190px;
  }
  .dekoracja {
    display: none;
  }
  .inne-urzadzenie {
    flex-direction: column;
    text-align: center;
  }
  .inne-urzadzenie p {
    text-align: center;
  }
  .wozek {
    width: 86px;
    bottom: 8px;
  }
  .wozek__dymek {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-paczka--lewa,
  .hero-paczka--prawa,
  .hero-wieko,
  .hero-blask,
  .iskry {
    animation: none;
  }
  .paczka-card.otwieranie .paczka-karton,
  .paczka-card.otwieranie .paczka-wieko,
  .paczka-card.otwieranie .paczka-blask,
  .paczka-card.flipped .back-photo > img,
  .paczka-card.flipped .back-photo__badge {
    animation-duration: 0.01s;
    animation-delay: 0s;
  }
  .konfetti {
    display: none;
  }
}

/* =========================
   WYSOKI KONTRAST
========================= */

body.high-contrast {
  background: #000 !important;
  color: #fff !important;
}
body.high-contrast * {
  background-color: transparent !important;
  color: #fff !important;
  border-color: #fff !important;
}
body.high-contrast a {
  color: #00ffff !important;
}
body.high-contrast button,
body.high-contrast .nav-btn {
  background: #fff !important;
  color: #000 !important;
}
body.high-contrast .nav-btn svg path {
  fill: black;
}
body.high-contrast .wozek,
body.high-contrast .iskry,
body.high-contrast .dekoracja {
  display: none;
}
body.high-contrast .back-photo > img {
  opacity: 1;
}

/* zastępcza paczka tylko gdy zdjęcie urządzenia się nie wczytało */
.back-photo--brak .back-photo__zastepcza {
  display: flex !important;
}
