/* ================================================================== */
/* ===== CORE-CRAFT: ULTIMATE EDITION (Zoptymalizowana v2)    ===== */
/* ================================================================== */

/* -------------------- ZMIENNE I KONFIGURACJA -------------------- */
:root {
  /* --- SYSTEM KOLORÓW: CYBER-VOLT --- */

  /* Główny Akcent (Neon Turquoise) */
  --primary: #00e0d8;
  --primary-hover: #00b8b0;
  --primary-dark: #00b8b0;
  --primary-light: rgba(0, 224, 216, 0.15);
  --primary-gradient: linear-gradient(135deg, #00e0d8 0%, #009f99 100%);
  --primary-glow: rgba(0, 224, 216, 0.4);

  /* Tła (Deep Space Theme) */
  --bg-body: #050607;
  --bg-surface: #121417;
  --bg-glass: rgba(18, 20, 23, 0.7);
  --bg-darker: #0b0d10;
  --bg-dark: #121417;
  --bg-light: #1c1f24;
  --bg-lighter: #23272e;
  --graphite-input: #16191d;

  /* Tekst */
  --text-main: #f0f4f8;
  --text-muted: #cbd5e1;
  --text-light: #f0f2f5;
  --text-dark: #050607;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 255, 255, 0.2);
  /* Dodajemy kolor dla ramek inputów w stanie spoczynku dla lepszej widoczności */
  --border-input-idle: rgba(255, 255, 255, 0.15);

  /* Touch Targets - Zmienna dla spójności na mobile */
  --min-touch-target: 48px;

  /* Focus Ring dla dostępności */
  --focus-ring: 0 0 0 3px rgba(0, 224, 216, 0.4);

  /* Statusy */
  --success: #00d26a;
  --warning: #f5a623;
  --danger: #ff4d4f;
  --info: #2e93fa;
  --star-color: #ffc107;

  /* Obramowania i Linie */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 224, 216, 0.5);

  /* --- EFEKTY SPECJALNE (FX) --- */
  --glow: 0 0 20px rgba(0, 224, 216, 0.4), 0 0 10px rgba(0, 224, 216, 0.2);
  --glow-strong:
    0 0 30px rgba(0, 224, 216, 0.6), 0 0 60px rgba(0, 224, 216, 0.3);
  --glow-text: 0 0 15px rgba(0, 224, 216, 0.5);

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-card-hover: 0 20px 50px -10px rgba(0, 0, 0, 0.8);

  /* --- WYMIARY I EFEKTY --- */
  --radius-card: 24px;
  --radius-btn: 50px;
  --header-h: 80px;

  /* --- ANIMACJE --- */
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* --- NOWA FIZYKA RUCHU (PREMIUM FEEL) --- */
  /* Sprężyste, szybkie wejście i powolne hamowanie */
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* "Maślane" wygładzenie dla opacity/transform */
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);

  /* Bezpieczne strefy dla iPhone'ów z notchem */
  --safe-area-bottom: env(safe-area-inset-bottom, 20px);

  /* Layout */
  --header-h: 80px;
  --header-h-mobile: 70px;
  --section-spacing: 140px;
  --section-spacing-mobile: 80px;

  /* Typografia */
  --font-family-heading: 'Poppins', system-ui, sans-serif;
  --font-family-base: 'Inter', system-ui, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --lh-heading: 1.2;
  --lh-body: 1.65;

  /* Profesjonalne cienie (miękkie) */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

/* -------------------- RESET I BAZA -------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: scroll;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: var(--lh-body);
  margin: 0;
  background-image:
    radial-gradient(
      circle at 15% 50%,
      var(--primary-light) 0%,
      transparent 25%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(0, 143, 138, 0.1) 0%,
      transparent 25%
    );
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Tło z animowaną siatką */
@media (min-width: 1024px) {
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
    animation: background-pan 60s linear infinite;
    will-change: transform;
  }
}

@keyframes background-pan {
  0% {
    transform: translate3d(0, 0, 0);
  } /* Wymuszenie 3D */
  100% {
    transform: translate3d(-40px, -40px, 0);
  }
}

/* === KLUCZOWA NAPRAWA SCROLLA === */
body.no-scroll {
  overflow: hidden !important;
  position: fixed !important;
  width: 100%;
  padding-right: var(--scrollbar-width, 0px);
}

/* --- SCROLL LOCK FIX (MOBILE & DESKTOP) --- */
body.scroll-locked {
  overflow: hidden !important; /* Tylko blokujemy pasek */
  touch-action: none; /* Blokuje przewijanie dotykiem */
  -webkit-overflow-scrolling: none;
  overscroll-behavior: none;
}

/* Wyłączamy płynne przewijanie globalnie, gdy scroll jest zablokowany */
body.scroll-locked-behavior {
  scroll-behavior: auto !important;
}
html.scroll-locked-behavior {
  scroll-behavior: auto !important;
}

/* Stylowy Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 5px;
  border: 2px solid var(--bg-body);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Cyfry w specyfikacjach i cenach (Monospace Look) */
.stat-number,
.price-value,
.hud-price,
.total-amount {
  font-variant-numeric: tabular-nums; /* Cyfry mają stałą szerokość (nie skaczą) */
  letter-spacing: -0.02em;
  font-feature-settings:
    'tnum' on,
    'lnum' on;
}

::selection {
  background: var(--primary); /* Neonowy Turkus */
  color: #000; /* Czarny tekst dla kontrastu */
  text-shadow: none;
}

/* --- OPTYMALIZACJA GPU --- */
.anim-gpu {
  /* Promuje element do nowej warstwy kompozycyjnej - brak repaintów */
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* -------------------- TYPOGRAFIA -------------------- */
h1,
h2,
h3,
h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800; /* Grubiej dla lepszego efektu */
  letter-spacing: -0.03em; /* Ciaśniej = nowocześniej */
  color: #fff;

  /* Cień tekstowy dla lepszej czytelności na tle */
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
h4 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}
h5 {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-title + p,
.hero-content p,
.cta-content p {
  margin-left: auto;
  margin-right: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition:
    color 0.3s var(--ease-out-cubic),
    text-shadow 0.3s;
}
a:hover {
  color: var(--primary-dark);
  text-shadow: 0 0 8px rgba(0, 224, 216, 0.3);
}

.gradient-text {
  /* Bardziej agresywny, neonowy gradient */
  background: linear-gradient(
    135deg,
    #ffffff 20%,
    var(--primary) 60%,
    #009f99 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  /* Ważne: Renderowanie dla ostrości */
  display: inline-block;
  position: relative;
  z-index: 2;

  /* Delikatny glow wokół liter */
  filter: drop-shadow(0 0 20px rgba(0, 224, 216, 0.4));
}

/* -------------------- LAYOUT SEKCJI -------------------- */
main > section {
  padding: var(--section-spacing-mobile) 1.5rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  main > section {
    padding: var(--section-spacing) 2rem;
  }
}

#main-content,
section[id] {
  scroll-margin-top: calc(var(--header-h-mobile) + 16px);
}

@media (min-width: 1024px) {
  #main-content,
  section[id] {
    scroll-margin-top: calc(var(--header-h) + 16px);
  }
}

.section-title {
  text-align: center;
  margin-bottom: 6rem;
  position: relative;
  z-index: 2;
}
.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* Podbicie kontrastu */
}

/* ================================================================== */
/* ===== TYTUŁ: SOFT LIGHT BEAM (EFEKT WTAPIANIA)               ===== */
/* ================================================================== */

.section-title::after {
  content: '';
  display: block;

  /* Dłuższa, ale bardzo cienka linia */
  width: 180px;
  height: 1px;

  /* KLUCZ DO WTAPIANIA: */
  /* Gradient 90deg sprawia, że linia znika na końcach (transparent) */
  /* W środku ma Twój kolor turkusowy */
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 224, 216, 1) 50%,
    transparent 100%
  );

  /* Pozycjonowanie */
  margin: 1.5rem auto 0;

  /* Poświata, która tworzy efekt "mgiełki" wokół linii */
  box-shadow: 0 0 15px rgba(0, 224, 216, 0.6);

  /* Lekka przezroczystość, żeby nie "krzyczało" */
  opacity: 0.7;

  /* Subtelne wejście przy ładowaniu */
  transition:
    opacity 0.5s ease,
    width 0.5s ease;
}

/* Opcjonalnie: Delikatne rozjaśnienie po najechaniu na tekst */
.section-title:hover::after {
  opacity: 1;
  width: 220px; /* Lekko się wydłuża */
}
/* =========================================
   1. HEADER (Baza)
   ========================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h-mobile);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  background: rgba(
    11,
    13,
    16,
    0.75
  ); /* Nieco ciemniejsze tło dla czytelności */
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s var(--ease-out-cubic);
}

header.scrolled {
  background: rgba(11, 13, 16, 0.95);
  height: 70px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* =========================================
     2. LOGO
     ========================================= */
.logo {
  display: flex;
  align-items: center;
  z-index: 1002; /* Musi być nad menu mobilnym */
  position: relative;
}

.logo img {
  height: 40px;
  width: auto;
}

/* ================================================================== */
/* ===== 1. HEADER & MENU DESKTOP (Domyślne - Komputer)         ===== */
/* ================================================================== */

/* Kontener paska nawigacji */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px; /* Stała wysokość */
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;

  /* Glassmorphism na pasku */
  background: rgba(5, 6, 7, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* Menu na komputerze - poziome */
.nav-container {
  display: block;
}

.nav-list {
  display: flex;
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #cbd5e1; /* Szary */
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
  font-family: 'Inter', sans-serif;
}

.nav-link:hover {
  color: #fff;
}

/* Podkreślenie hover na PC */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #00e0d8; /* Twój turkus */
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Ukrywamy elementy mobilne na komputerze */
.burger-btn,
.nav-mobile-footer {
  display: none !important;
}

/* ================================================================== */
/* ===== 2. MENU MOBILE (ZSYNCHRONIZOWANE + LEKKA CZCIONKA)     ===== */
/* ================================================================== */

@media (max-width: 1023px) {
  .main-header {
    padding: 0 1.5rem;
    height: 70px;
  }

  /* --- BURGER BTN --- */
  .burger-btn {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1005;
    padding: 0;
  }

  .burger-box {
    width: 28px;
    height: 20px;
    position: relative;
  }

  .burger-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    position: absolute;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .burger-inner::before,
  .burger-inner::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    position: absolute;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .burger-inner::before {
    top: -8px;
  }
  .burger-inner::after {
    bottom: -8px;
  }

  /* Stan AKTYWNY burgera (X) */
  .burger-btn.open .burger-inner {
    background-color: transparent;
  }
  .burger-btn.open .burger-inner::before {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--primary);
  }
  .burger-btn.open .burger-inner::after {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--primary);
  }

  /* --- KONTENER MENU (PEŁNY EKRAN) --- */
  .nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;

    background: rgba(5, 6, 7, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    z-index: 1001;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition:
      opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0.4s;
    pointer-events: none;
  }

  .nav-container.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
  }

  .nav-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120vw;
    height: 120vw;
    background: radial-gradient(
      circle,
      rgba(0, 224, 216, 0.05) 0%,
      transparent 70%
    );
    pointer-events: none;
    z-index: -1;
  }

  /* --- LINKI --- */
  .nav-list {
    flex-direction: column;
    align-items: center;
    /* ZMNIEJSZONY ODSTĘP: Z 2.5rem na 2rem, żeby 4 linki lepiej pasowały */
    gap: 2rem;
    width: 100%;
  }

  .nav-list li {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .nav-container.active .nav-list li:nth-child(1) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
  }
  .nav-container.active .nav-list li:nth-child(2) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
  }
  .nav-container.active .nav-list li:nth-child(3) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
  }
  .nav-container.active .nav-list li:nth-child(4) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-link {
    font-family: 'Poppins', sans-serif;
    /* ZMNIEJSZONA CZCIONKA: Z 2.2rem na 1.8rem dla lepszego układu 4 elementów */
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
    position: relative;
    padding: 10px;
    display: block;
    transition: color 0.3s;
  }

  .nav-link:hover,
  .nav-link.active {
    color: transparent;
    -webkit-text-stroke: 1px var(--primary);
    text-shadow: 0 0 20px rgba(0, 224, 216, 0.4);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.active::before {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
  }

  /* --- STOPKA MENU --- */
  .nav-mobile-footer {
    display: block !important;
    margin-top: 3.5rem; /* Lekko zmniejszony margines */
    text-align: center;

    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.4s;
  }

  .nav-container.active .nav-mobile-footer {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-mobile-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  .mobile-email {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
  }
  .mobile-email:hover {
    color: var(--primary);
  }
}

/* Fix dla bardzo małych ekranów (np. iPhone SE) */
@media (max-width: 380px) {
  /* Jeszcze mniejsza czcionka dla ekranów < 380px */
  .nav-link {
    font-size: 1.6rem;
  }
  .nav-list {
    gap: 1.5rem;
  }
}
/* -------------------- PRZYCISKI -------------------- */

/* --- WSPÓLNE CECHY PRZYCISKÓW --- */
.cta-button,
.cta-button-secondary {
  /* Flexbox w środku dla idealnego centrowania tekstu/ikony */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* Inteligentna typografia: skaluje się między 0.9rem a 1.1rem */
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-family: var(--font-family-base, sans-serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;

  /* Wymiary */
  padding: 1rem 2.5rem;
  min-height: 54px; /* Gwarancja wygodnego kliknięcia na mobile */
  border-radius: 50px;

  /* Płynność */
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;

  /* Zapobiega sklejaniu się tekstu na małych ekranach */
  white-space: nowrap;
}

.cta-button {
  background: var(--primary);
  color: #050607;
  border: 1px solid transparent; /* Rezerwa pod spójność wymiarów */
  box-shadow: 0 0 20px rgba(0, 224, 216, 0.4);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transition: 0.5s;
}

/* Przycisk Drugorzędny - Ghost */
/* --- 2. DRUGI PRZYCISK (GLASS / GHOST) --- */
.cta-button-secondary {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}
.cta-button:hover::before {
  left: 100%; /* Przejazd światła */
}
.cta-button:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: 0 0 35px rgba(0, 224, 216, 0.6);
}
.cta-button:active {
  transform: translateY(-1px);
  box-shadow: var(--glow);
}

.cta-button:active,
.cta-button-secondary:active {
  transform: translateY(0) scale(0.98); /* Fizyczne wciśnięcie */
  box-shadow: none;
}

.cta-button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Karta "Glass" - Podstawa designu */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card); /* Zmieniono na 16px */
  padding: 2.5rem;
  transition:
    transform 0.4s var(--ease-smooth),
    border-color 0.4s ease;
}

.glass-card:hover {
  border-color: var(--border-focus); /* Użycie Base Color z logo */
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg); /* Kolorowy cień z nowej palety */
}

/* -------------------- HERO SECTION -------------------- */
@keyframes textGlow {
  0% {
    text-shadow: 0 0 30px rgba(0, 224, 216, 0.2);
  }
  100% {
    text-shadow: 0 0 50px rgba(0, 224, 216, 0.5);
  }
}

.hero-content p {
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-benefits {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem; /* Odstęp między elementami */

  list-style: none;
  padding: 0;
  margin: 0 auto 2.5rem; /* Margines dolny oddzielający od przycisków */
  max-width: 900px;

  position: relative;
  z-index: 2;
}
.hero-benefits li {
  /* Layout */
  display: flex;
  align-items: center;
  gap: 10px;

  /* Wygląd "Techniczny" */
  background: rgba(
    18,
    20,
    23,
    0.6
  ); /* Ciemniejsze tło dla czytelności na neonie */
  backdrop-filter: blur(8px); /* Rozmycie tła pod spodem */
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(255, 255, 255, 0.08); /* Subtelna ramka */
  border-radius: 12px; /* Mniej zaokrąglone niż przyciski = bardziej techniczne */

  padding: 10px 18px;

  /* Typografia */
  font-size: 0.95rem;
  font-weight: 500;
  color: #e2e8f0; /* Jasnoszary zamiast czystej bieli (mniej męczy oczy) */
  letter-spacing: 0.02em;

  /* Animacja */
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: default; /* To informacja, nie przycisk */
  user-select: none;
}
/* --- IKONY (GLOW) --- */
.hero-benefits li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;

  color: var(--primary); /* Neon Turquoise */
  /* Kluczowy efekt: Ikona lekko świeci */
  filter: drop-shadow(0 0 5px rgba(0, 224, 216, 0.4));

  transition: transform 0.3s ease;
}
.hero-benefits svg {
  stroke: var(--primary);
}

/* --- HOVER EFFECT --- */
.hero-benefits li:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 224, 216, 0.3); /* Ramka świeci na turkusowo */
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-benefits li:hover svg {
  transform: scale(1.1); /* Ikona lekko rośnie */
  filter: drop-shadow(0 0 8px rgba(0, 224, 216, 0.6)); /* Mocniejszy glow */
}

/* ============================================== */
/* ===== MOBILE OPTIMIZATION (< 768px)      ===== */
/* ============================================== */
@media (max-width: 768px) {
  /* 1. Kontener listy - układamy klocki jeden pod drugim */
  .hero-benefits {
    display: flex;
    flex-direction: column; /* Układ pionowy */
    align-items: center; /* Centrowanie samych pasków względem ekranu */
    gap: 10px;
    margin-bottom: 2rem;
    padding: 0 1rem;
    width: 100%; /* Pełna szerokość kontenera */
  }

  /* 2. Pojedynczy element (pasek) */
  .hero-benefits li {
    /* Układ wewnątrz paska */
    display: flex;
    align-items: center; /* Centrowanie pionowe (ikona względem tekstu) */
    justify-content: center; /* KLUCZOWE: Centrowanie poziome (ikona + tekst na środek) */

    width: 100%; /* Rozciągnij pasek na max szerokość */
    max-width: 450px; /* Blokada, żeby nie były za szerokie na tabletach */

    font-size: 0.9rem; /* Czytelny rozmiar */
    padding: 12px 16px; /* Wygodny odstęp wewnątrz */
    border-radius: 12px;
    background: rgba(18, 20, 23, 0.8);

    text-align: center; /* Zabezpieczenie dla tekstu */
  }

  /* Zabezpieczenie ikony */
  .hero-benefits li svg {
    flex-shrink: 0; /* Ikona nie może się zgniatać */
    margin-right: 8px; /* Odstęp od tekstu (zamiast gap, dla pewności) */
  }
}

/* Fix dla bardzo małych ekranów (np. Galaxy Fold) */
@media (max-width: 360px) {
  .hero-benefits {
    flex-direction: column; /* Jeden pod drugim */
    width: 100%;
  }
  .hero-benefits li {
    width: 100%;
    justify-content: flex-start; /* Wyrównaj do lewej */
  }
}

.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Pozwala spaść przyciskom niżej na średnich ekranach */
  gap: 1.5rem; /* Bezpieczny odstęp między guzikami (ok. 24px) */

  margin-top: 3rem;
  width: 100%;
  position: relative;
  z-index: 5;
}

/* -------------------- STATYSTYKI (Zaktualizowane) -------------------- */
.stats-section {
  position: relative;
  padding: 6rem 1.5rem;

  /* FIX: Zamiast radialnego, używamy liniowego gradientu.
     Zaczynamy od czerni (Hero), kończymy na kolorze tła następnej sekcji (#0b0d10).
     To gwarantuje idealne sklejenie bez jasnych plam. */
  background: linear-gradient(
    to bottom,
    #050607 0%,
    /* Czerń na górze */ #08090b 50%,
    /* Przejście */ #0b0d10 100%
      /* Kolor tła sekcji "Jak działamy" na samym dole */
  );

  border: none;
  z-index: 10;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%; /* Mniejsza wysokość = glow nie dotyka krawędzi */

  background: radial-gradient(
    ellipse at center,
    rgba(0, 224, 216, 0.04) 0%,
    transparent 70%
  );

  pointer-events: none;
  z-index: 0;
  filter: blur(40px); /* Miękkie rozmycie */
}

/* --- 2. SUBTELNE LINIE (Tylko góra, dół usuwamy dla płynności) --- */
.stats-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  /* Subtelna linia oddzielająca od Hero */
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
}

/* Krawędź dolna */
.stats-container::after {
  content: '';
  position: absolute;
  bottom: -6rem; /* Pozycjonowanie względem kontenera */
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 224, 216, 0.3),
    transparent
  );
}

/* --- KONTENER --- */
.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* --- ELEMENT STATYSTYKI --- */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  background: transparent;
  transition: transform 0.4s ease;
}

.stat-card:hover .stat-title {
  color: #fff;
}

/* --- LICZBY --- */
.stat-value-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 0.8rem;
  line-height: 1;
}

.stat-number {
  font-family: var(--font-family-heading, sans-serif);
  font-weight: 800;
  font-size: clamp(3.5rem, 5vw, 4.5rem);

  /* Gradient metaliczny na cyfrach */
  background: linear-gradient(to bottom, #ffffff 20%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.stat-prefix {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
  transform: translateY(-8px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 15px rgba(0, 224, 216, 0.3);
}

.stat-suffix {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 300;
  text-shadow: 0 0 15px rgba(0, 224, 216, 0.3);
}

/* --- TYTUŁY I OPISY --- */
.stat-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #64748b;
  margin-bottom: 0.5rem;
  font-weight: 700;
  transition: color 0.3s;
}

.stat-card p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
  max-width: 25ch;
  line-height: 1.6;
}

/* Efekt Hover na kartę */
.stat-card:hover {
  transform: translateY(-5px);
}
.stat-card:hover .stat-number {
  background: #fff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(0, 224, 216, 0.25));
}

/* ============================================== */
/* ===== MOBILE FIXES                       ===== */
/* ============================================== */
@media (max-width: 1023px) {
  .stats-section {
    padding: 4rem 1.5rem;
    /* Na mobile prosty gradient */
    background: linear-gradient(to bottom, #050607 0%, #0b0d10 100%);
  }

  .stats-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 1rem;
  }

  .stat-card:not(:last-child) {
    border-right: none;
  }

  .stat-number {
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  .stats-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .stat-card:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 2rem;
  }
}

/* -------------------- KARTY (Glass Cards) -------------------- */
.offer-section,
.why-us-refined {
  background: var(--bg-dark);
}
.offer-grid,
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 3rem auto 0;
}

.offer-card,
.benefit-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  transition: all 0.4s var(--ease-out-cubic);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.offer-card:hover,
.benefit-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover), var(--glow);
}

.benefit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 224, 216, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 0;
  pointer-events: none;
}
.benefit-card:hover::before {
  opacity: 1;
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 224, 216, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}
.benefit-card:hover .benefit-icon {
  transform: scale(1.1) rotate(5deg);
}
.benefit-card h3,
.benefit-card p {
  position: relative;
  z-index: 1;
}

/* ================================================================== */
/* ===== FEEDBACK BAR (MOBILE SAFE V2)                          ===== */
/* ================================================================== */

.feedback-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0; /* Zamiast width: 100% - bezpieczniejsze dla mobile */
  width: auto;

  background: rgba(
    220,
    20,
    60,
    0.95
  ); /* Nieco mniejsza przezroczystość dla czytelności */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #fff;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 8px 10px; /* Nieco więcej miejsca */
  min-height: 40px;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.feedback-content {
  flex-grow: 1;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.feedback-content span {
  opacity: 0.95;
}

.feedback-content a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

/* Przycisk X */
.feedback-close {
  background: rgba(0, 0, 0, 0.1); /* Lekkie tło ułatwia trafienie palcem */
  border-radius: 50%;
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* Zapobiega zgniataniu przycisku */
}

/* --- MOBILE OPTIMIZATION (Poniżej 600px) --- */
@media (max-width: 600px) {
  .feedback-bar {
    padding: 8px 12px;
    align-items: flex-start; /* Wyrównaj do góry */
  }

  .feedback-content {
    flex-direction: column; /* Tekst nad linkiem */
    align-items: flex-start; /* Do lewej */
    text-align: left;
    gap: 2px;
    font-size: 11px;
    padding-right: 5px;
  }

  .feedback-content span {
    display: block;
    line-height: 1.3;
  }

  .feedback-content a {
    color: #fff;
    font-weight: 800;
    margin-top: 2px;
    display: inline-block;
    padding: 2px 0; /* Powiększa obszar kliknięcia */
  }

  .feedback-close {
    margin-top: 2px; /* Wyrównanie do pierwszej linii tekstu */
  }
}

/* -------------------- PAGE LOADER (REAL TIME) -------------------- */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Używamy Twojego ciemnego tła */
  background-color: var(--bg-darker);
  z-index: 99999; /* Musi być nad wszystkim */
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.6s;
}

/* Klasa ukrywająca loader */
.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* KLUCZOWE: pozwala klikać w stronę pod spodem */
}

/* Nowoczesny Spinner (Neonowy) */
.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255, 255, 255, 0.1); /* Ciemny obrys */
  border-top: 5px solid var(--primary); /* Twój neonowy turkus */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 15px rgba(0, 224, 216, 0.3); /* Lekka poświata */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* --- SYSTEM ANIMACJI SCROLLA (Intersection Observer) --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Opcjonalne opóźnienia dla elementów w grupie */
.delay-100 {
  transition-delay: 0.1s;
}
.delay-200 {
  transition-delay: 0.2s;
}
.delay-300 {
  transition-delay: 0.3s;
}

/* Responsywność */
@media (max-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
  }
  .stats-container {
    grid-template-columns: 1fr;
  }
  .cta-button {
    width: 100%;
  }
}

/* ================================================================== */
/* ===== ULTRA-MODERN MOBILE MENU (FULLSCREEN GLASS)            ===== */
/* ================================================================== */

@media (max-width: 1024px) {
  /* 1. KONTENER GŁÓWNY (Pełny ekran) */
  .nav {
    display: flex !important;
    flex-direction: column;
    justify-content: center; /* Centrowanie pionowe linków */
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Fallback */
    height: 100dvh; /* Dynamiczna wysokość (omija pasek adresu) */

    /* Ciemne szkło */
    background: rgba(5, 6, 7, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    z-index: 999; /* Poniżej przycisku burgera (1000+) */

    /* Animacja wejścia: "Curtain" (Zasłona z góry) lub Fade */
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1); /* Lekkie powiększenie na start */
    transition:
      opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0.4s;
  }

  /* Stan otwarty */
  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }

  /* 2. PRZYCISK BURGERA (Musi być ZAWSZE na wierzchu) */
  .menu-btn {
    position: relative; /* Lub fixed, jeśli header nie jest fixed */
    z-index: 1005; /* Wyżej niż menu */
  }

  /* 3. LINKI (Typography) */
  .nav ul.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem; /* Duże odstępy */
    width: 100%;
  }

  .nav ul.nav-links li {
    /* Resetujemy transformacje, będziemy animować przy otwarciu */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Używamy zmiennej --i z HTML do opóźnienia */
    transition-delay: calc(0.1s * var(--i));
  }

  .nav.open ul.nav-links li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav a {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem; /* Bardzo duże napisy */
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.03em;
    position: relative;
    padding: 10px;
    display: block;
    transition: color 0.3s;
  }

  /* Efekt: Neonowy tekst po dotknięciu/najechaniu */
  .nav a:hover,
  .nav a.active {
    color: transparent;
    -webkit-text-stroke: 1px var(--primary); /* Obrys liter */
    text-shadow: 0 0 20px rgba(0, 224, 216, 0.4);
  }

  /* Mała kropka oznaczająca aktywną stronę */
  .nav a.active::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
  }

  /* 4. STOPKA MENU (Sociale na dole) */
  .nav-footer {
    position: absolute;
    bottom: 50px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    transition-delay: 0.4s; /* Pojawia się na końcu */
  }

  .nav.open .nav-footer {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  .nav-email {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    display: block;
    margin-bottom: 1.5rem;
  }

  .nav-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
  }

  .nav-socials a img {
    filter: invert(1); /* Ikony na biało */
    opacity: 0.7;
    transition: 0.3s;
  }

  .nav-socials a:hover img {
    opacity: 1;
    filter: drop-shadow(0 0 5px var(--primary));
  }

  /* 5. Dekoracyjne tło (Glow) */
  .nav-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vw;
    height: 120vw;
    transform: translate(-50%, -50%);
    background: radial-gradient(
      circle,
      rgba(0, 224, 216, 0.05) 0%,
      transparent 70%
    );
    pointer-events: none;
    z-index: -1;
  }
}

/* Fix dla bardzo małych ekranów (np. iPhone SE) */
@media (max-width: 380px) {
  .nav a {
    font-size: 1.8rem;
  }
  .nav ul.nav-links {
    gap: 1.5rem;
  }
}

/* ============================================== */
/* ===== MOBILE OPTIMIZATION (< 768px)      ===== */
/* ============================================== */
@media (max-width: 768px) {
  .hero-cta {
    /* Układ pionowy */
    flex-direction: column;
    gap: 1rem;

    /* Centrowanie kontenera */
    width: 100%;
    max-width: 450px; /* Blokada, żeby nie były za szerokie na tabletach */
    margin-left: auto;
    margin-right: auto;
  }

  .cta-button,
  .cta-button-secondary {
    width: 100%; /* Rozciągnij do szerokości kontenera */
    padding: 1rem 1.5rem; /* Nieco mniejszy padding boczny */
    white-space: normal; /* Pozwól na zawijanie tekstu w ekstremalnych przypadkach */
  }

  /* Karty */
  .why-us-grid,
  .offer-grid {
    grid-template-columns: 1fr;
  }
  .glass-card {
    padding: 2rem 1.5rem;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ============================================== */
/* ===== TINY SCREENS (< 360px) e.g. Fold ===== */
/* ============================================== */
@media (max-width: 360px) {
  .cta-button,
  .cta-button-secondary {
    font-size: 0.85rem; /* Zmniejsz czcionkę, żeby tekst się zmieścił */
    padding: 0.9rem 1rem;
    min-height: 48px;
  }
}

/* Animacje Keyframes */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------- KONFIGURATOR / FORMULARZ -------------------- */
.page-form {
  background-image: radial-gradient(
    circle at top right,
    rgba(0, 224, 216, 0.05),
    transparent 40%
  );
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 2rem);
}

.enhanced-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.form-group {
  margin-bottom: 2rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  cursor: pointer; /* Kliknięcie w label aktywuje input */
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 224, 216, 0.05); /* Subtelne podświetlenie tła */
  box-shadow: var(--focus-ring); /* Wyraźny pierścień focusa */
}
.form-group input::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

/* Obsługa błędów - wyraźniejsza */
.form-group input.has-error,
.form-group select.has-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Chips (Przyciski wyboru) */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px; /* Zastępuje margin - lepsza kontrola odstępów */
}

/* Custom Checkbox */
.checkbox-group {
  background: var(--graphite-input);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}
.custom-checkbox .checkmark svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-dark);
  stroke-width: 3;
  fill: none;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s var(--ease-out-back);
}
.custom-checkbox input:checked ~ .checkmark svg {
  opacity: 1;
  transform: scale(1);
}

/* Pasek Postępu */
.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.progress-bar {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.6s var(--ease-out-cubic);
  border-radius: 4px;
  box-shadow: var(--glow);
}
.step-indicator {
  width: 48px;
  height: 48px;
  background: var(--bg-dark);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  position: relative;
  z-index: 1;
  transition: all 0.4s var(--ease-out-back);
}
.progress-step-item.active .step-indicator {
  border-color: var(--primary);
  background: var(--bg-lighter);
  color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 224, 216, 0.2);
  transform: scale(1.1);
}
.progress-step-item.completed .step-indicator {
  background: var(--primary);
  color: var(--text-dark);
  border-color: var(--primary);
}

/* ================================================== */
/* === NOWY MODUŁ: CLEAN VISUAL CARDS (NAPRAWA) === */
/* ================================================== */

/* --- Kontener Sekcji --- */
.visual-preferences-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.visual-section-title {
  color: var(--primary); /* Turkus */
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.visual-label {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: #94a3b8; /* Wyciszony tekst */
  font-weight: 600;
  text-transform: uppercase;
}

/* --- GRID LAYOUT (Siatka 3 kolumn) --- */
.visual-grid {
  display: grid;
  /* Automatyczne dopasowanie: min 130px szerokości karty */
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  width: 100%;
}

/* ================================================== */
/* === VISUAL CARDS - FINALNY FIX (PADDING)       === */
/* ================================================== */

/* --- 1. KARTA (Wygląd podstawowy) --- */
.visual-card.chip {
  /* Resetujemy style poziomego chipa */
  width: 100%;
  height: auto;
  min-height: 120px;

  /* KLUCZOWE: !important blokuje zmianę paddingu po kliknięciu */
  padding: 1.2rem 0.8rem !important;

  border-radius: 12px;

  /* Układ PIONOWY (Column) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative; /* Dla checkboxa */
  transition: all 0.2s ease;
}

/* Ukrywamy stary checkmark z ::after (globalny) */
.visual-card.chip::after {
  display: none !important;
}

/* --- 2. Stan ACTIVE (Zaznaczona) --- */
.visual-card.chip.active {
  background: rgba(0, 224, 216, 0.12);
  border-color: var(--primary); /* Turkus */
  box-shadow: 0 0 20px rgba(0, 224, 216, 0.3); /* Glow */

  /* ZABEZPIECZENIA PRZED RUCHEM: */
  transform: none !important; /* Blokuje przesuwanie całej karty */
  padding-right: 0.8rem !important; /* Blokuje wpychanie treści w lewo */
}

/* Zabezpieczenie samej ikony/tekstu przed przesuwaniem */
.visual-card.chip.active .card-icon,
.visual-card.chip.active i,
.visual-card.chip.active span {
  transform: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* --- 3. Stan HOVER (Tylko gdy nieaktywna) --- */
.visual-card.chip:not(.active):hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* --- 4. Elementy Wewnątrz --- */

/* Kółko z ikoną */
.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 4px;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Upewniamy się, że ikona jest na środku */
  padding: 0;
}

/* Nowy Checkmark (Ptaszek w rogu) */
.card-checkbox {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  color: #000;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
}

.visual-card.chip.active .card-checkbox {
  opacity: 1;
  transform: scale(1);
}

/* Teksty */
.card-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.card-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}
.visual-card.chip.active .card-title {
  color: var(--primary);
}
.card-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.visual-card.chip.active .card-desc {
  color: rgba(255, 255, 255, 0.9);
}

/* Warianty Ikon (Kolory) */
.icon-black-case {
  background: #111;
  color: #888;
}
.icon-white-case {
  background: #e0e0e0;
  color: #333;
}
.icon-neutral {
  background: rgba(255, 255, 255, 0.05);
  color: #777;
}
.icon-static-rgb {
  background: rgba(0, 224, 216, 0.1);
  color: var(--primary);
  border-color: var(--primary);
}
.icon-full-rgb {
  background: linear-gradient(135deg, #ff00cc, #3333ff);
  color: #fff;
  border: none;
}
.icon-glass {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.02)
  );
  color: #a0e0ff;
}
.icon-solid {
  background: #1a1a1a;
  color: #555;
}

/* Aktywne ikony */
.visual-card.chip.active .icon-black-case {
  color: #fff;
  border-color: #fff;
}
.visual-card.chip.active .icon-white-case {
  background: #fff;
  color: #000;
}

/* --- RESPONSIVE (MOBILE) --- */
@media (max-width: 576px) {
  .visual-grid {
    /* Na telefonach 2 kolumny wyglądają idealnie */
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .visual-preferences-section {
    padding: 1.5rem 1rem;
  }
  .card-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

@keyframes rgbShift {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* --- RESPONSIVE FIX --- */
@media (max-width: 576px) {
  .visual-preferences-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
  .visual-preferences-section h4 {
    font-size: 1rem;
  }
  /* Na małych ekranach chipy na pełną szerokość wyglądają lepiej w tej sekcji */
  .visual-preferences-section .chip-group .chip {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* -------------------- FOOTER -------------------- */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: 5rem 2rem 2rem;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: shimmer 5s infinite linear;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto 3rem;
}
.footer-column h4 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.footer-column ul {
  list-style: none;
}
.footer-column li {
  margin-bottom: 0.8rem;
}
.footer-column a {
  color: var(--text-muted);
  transition: color 0.3s;
}
.footer-column a:hover {
  color: var(--primary);
  text-shadow: var(--glow-text);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
}

.social-icons {
  display: flex;
  gap: 1rem;
}
.social-icons a {
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out-back);
}
.social-icons a img {
  width: 20px;
  height: 20px;
  filter: invert(1) opacity(0.7);
  transition: filter 0.3s;
}
.social-icons a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}
.social-icons a:hover img {
  filter: invert(0);
}

/* -------------------- ANIMACJE KLUCZOWE -------------------- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes textGlow {
  from {
    text-shadow: 0 0 10px rgba(0, 224, 216, 0.2);
  }
  to {
    text-shadow: 0 0 30px rgba(0, 224, 216, 0.6);
  }
}
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
@keyframes pulseGlow {
  0% {
    box-shadow: none;
  }
  50% {
    box-shadow: var(--glow);
  }
  100% {
    box-shadow: none;
  }
}

/* Domyślny stan elementów animowanych - UKRYTE */
.anim-fade-up,
.process-step,
.faq-item,
.cta-content {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}
/* Stan WIDOCZNY (obsługuje obie wersje klas dla pewności) */
.is-visible,
.visible,
.anim-fade-up.is-visible,
.process-step.is-visible,
.faq-item.is-visible,
.section-title.is-visible,
.cta-content.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* -------------------- POPRAWKI RESPONSYWNE (Mobile) -------------------- */
@media (max-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-step {
    flex-direction: column !important;
    text-align: center !important;
    gap: 2rem;
    /* Dodajemy scroll-margin, żeby header nie zasłaniał treści po kliknięciu w link */
    scroll-margin-top: 120px;
    opacity: 0;
    /* Startujemy z transformacji, nie marginu */
    transform: translateY(40px);
    transition:
      opacity 0.8s var(--ease-smooth),
      transform 0.8s var(--ease-smooth);
    will-change: opacity, transform;
  }
}

@media (max-width: 767px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .reviews-tabs {
    flex-direction: column;
  }
  .benefit-card,
  .offer-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
  }
  .stats-container {
    grid-template-columns: 1fr;
  }
  .cta-button {
    width: 100%;
  }
  #configForm {
    padding: 1.5rem 1rem;
  }
  .policy-nav {
    flex-direction: column;
  }
  .policy-nav-link {
    width: 100%;
    text-align: center;
  }
}

/* Fixy Narzędziowe */
.honeypot,
#website {
  display: none !important;
  opacity: 0;
  position: absolute;
  z-index: -1;
}
@media (max-width: 360px) {
  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: 0 0;
    margin: 0 auto;
  }
}
.hidden {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ================================================================== */
/* =====         MODUŁ KONFIGURATORA (POPRAWIONY v3)            ===== */
/* ================================================================== */

.configurator-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.configurator-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
/* --- Grid Layout --- */
.configurator-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  width: 100%;
}
.configurator-wrapper form {
  position: relative;
  /* Zapobiega skokom szerokości przy zmianie contentu */
  min-height: 400px;
}
@media (min-width: 1024px) {
  .configurator-wrapper {
    display: grid;
    /* Zachowujemy proporcje, aby panel boczny miał oddech */
    grid-template-columns: 1fr 380px;
    align-items: start;
    gap: 3rem;
  }
}

/* --- Pasek Postępu --- */
.progress-container {
  max-width: 700px;
  margin: 0 auto 4rem;
  position: relative;
  padding: 0 1rem;
}
.progress-bar-container {
  position: absolute;
  top: 24px;
  left: 3rem;
  right: 3rem;
  height: 2px; /* Cieńsza linia jak w status-line panelu */
  background: rgba(255, 255, 255, 0.05); /* Bardziej subtelne tło */
  z-index: 0;
  border-radius: 10px;
}
.progress-bar {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px var(--primary);
  border-radius: 10px;
}
.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.progress-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width: 80px;
}
.step-indicator {
  width: 50px;
  height: 50px;
  /* Dopasowanie do stylu ikon w panelu */
  background: rgba(18, 20, 24, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  color: var(--text-muted);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.progress-step-item.active .step-indicator {
  border-color: var(--primary);
  background: var(--primary);
  color: #121418; /* Ciemny tekst na aktywnym kolorze */
  box-shadow: 0 0 20px rgba(0, 224, 216, 0.4); /* Glow effect */
  transform: scale(1.1);
}
.progress-step-item.completed .step-indicator {
  background: var(--bg-light);
  border-color: var(--primary);
  color: var(--primary);
}
.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s;
}
.progress-step-item.active .step-label {
  color: var(--text-light);
}

/* --- Formularz i Kroki (FIX RAMEK) --- */
#configForm {
  /* Kluczowe zmiany dla spójności wizualnej */
  background: var(--bg-surface);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.6); /* Ten sam cień */
  position: relative;
}
/* Reset brzydkich ramek fieldset */
.form-step {
  /* Ukrywamy, ale zachowujemy w DOM dla animacji */
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.form-step.active {
  display: block;
  animation: slideUpFade 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESET DOMYŚLNYCH RAMEK PRZEGLĄDARKI --- */
fieldset {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0; /* Zapobiega problemom z szerokością w Flexbox/Grid */
}

.step-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  /* Stylistyka nagłówka panelu */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Inputy i Formularze --- */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}
.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.form-group:focus-within label {
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  /* Zmieniamy tło na półprzezroczyste, jak itemy w panelu */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bordder-input-idle);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  color: #fff;
  font-family: inherit;
  transition: all 0.3s ease;
}

/* Select Arrow */
.select-wrapper {
  position: relative;
}
.select-wrapper select {
  appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
}
.select-arrow {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-60%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  pointer-events: none;
  transition: transform 0.3s;
}
.select-wrapper select:focus + .select-arrow {
  transform: translateY(-30%) rotate(225deg);
}

/* ================================================================== */
/* ===== FIX TELEFONU: SPÓJNY "CYBER-INPUT" (POŁĄCZONY)         ===== */
/* ================================================================== */

.phone-input {
  display: flex;
  align-items: stretch;
  width: 100%;
  position: relative;

  /* Tło wspólne dla całości - wygląda jak jeden element */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15); /* Spójna ramka z resztą inputów */
  border-radius: 10px;

  /* Płynna animacja dla całego kontenera */
  transition: all 0.3s ease;
}

/* Prefiks (+48) */
.phone-prefix {
  display: flex;
  align-items: center;
  justify-content: center;

  /* Przezroczyste tło, żeby zlewało się z kontenerem */
  background: transparent;
  border: none; /* Usuwamy wewnętrzną ramkę */
  border-right: 1px solid rgba(255, 255, 255, 0.1); /* Delikatna linia podziału */

  color: var(--primary); /* Neonowy kolor tekstu */
  font-weight: 700;
  padding: 0 1.2rem;
  font-size: 1rem;

  /* Zapobiega zwijaniu się */
  flex-shrink: 0;
  user-select: none;
}

/* Pole wpisywania numeru */
.phone-input input {
  /* Usuwamy domyślne style inputa, żeby pasował do kontenera */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important; /* Usuwamy domyślny cień inputa */
  border-radius: 0 10px 10px 0 !important;

  padding: 1rem 1.2rem;
  width: 100%;
  color: #fff; /* Biały tekst dla czytelności */
  font-weight: 500;
  font-size: 1rem;
}

/* --- STAN AKTYWNY (FOCUS) - CAŁOŚĆ ŚWIECI --- */
.phone-input:focus-within {
  /* Zmieniamy kolor ramki kontenera */
  border-color: var(--primary);
  /* Dodajemy neonową poświatę do środka */
  box-shadow:
    0 0 0 1px var(--primary),
    0 0 15px rgba(0, 224, 216, 0.15);
  background: rgba(0, 224, 216, 0.05); /* Lekkie podświetlenie tła */
}

/* Kiedy klikniemy, linia podziału też robi się neonowa */
.phone-input:focus-within .phone-prefix {
  border-right-color: rgba(0, 224, 216, 0.3);
  text-shadow: 0 0 10px rgba(0, 224, 216, 0.4);
}

/* Fix dla inputa, żeby nie miał własnego outline'u po kliknięciu */
.phone-input input:focus {
  outline: none !important;
  box-shadow: none !important;
}
/* Suwak Budżetu */
.budget-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px; /* Grubszy pasek jest łatwiejszy do zauważenia */
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  margin: 1.5rem 0;
  cursor: pointer;
}
.budget-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px; /* Duży, wygodny uchwyt */
  height: 28px;
  background: #121418;
  border: 3px solid var(--primary);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  margin-top: -11px; /* Wycentrowanie względem paska */
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.budget-slider::-webkit-slider-thumb:hover,
.budget-slider:focus::-webkit-slider-thumb {
  transform: scale(1.2);
  box-shadow: 0 0 20px var(--primary);
}
.budget-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
}
/* --- FIX NA SKAKANIE TREŚCI I MOBILE --- */
#budget-suggestion {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  /* Płynna animacja */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#budget-suggestion.visible {
  opacity: 1;
  visibility: visible;
  /* ZWIĘKSZONO Z 150px NA 600px DLA TELEFONÓW */
  max-height: 600px;
  margin-top: 1rem;
}

/* ========================================= */
/* === NAPRAWA PRESETÓW BUDŻETU (MOBILE) === */
/* ========================================= */

.budget-presets-container {
  display: flex;
  flex-wrap: wrap; /* Pozwala przyciskom spaść niżej na wąskim ekranie */
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 20px; /* Odstęp od suwaka pod spodem */
  width: 100%;
}

.preset-btn {
  /* Reset domyślnych stylów przeglądarki (To usuwa białe tło) */
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  box-shadow: none;

  /* Styl CoreCraft - Glass Effect */
  flex: 1; /* Rozciągnij, żeby wypełnić linię */
  min-width: 70px; /* Żeby nie były za wąskie na iPhone SE */

  padding: 12px 5px; /* Większy padding dla palca */
  background: rgba(255, 255, 255, 0.03); /* Ciemne półprzezroczyste tło */
  border: 1px solid rgba(255, 255, 255, 0.15); /* Subtelna ramka */
  border-radius: 8px;

  /* Tekst */
  color: var(--text-muted, #94a3b8);
  font-family: var(--font-family-base, sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;

  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover na komputerze */
.preset-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary, #00e0d8);
  color: #fff;
  transform: translateY(-2px);
}

/* Stan Aktywny (Kliknięty) */
.preset-btn.active {
  background: rgba(0, 224, 216, 0.15); /* Podświetlenie Primary */
  border-color: var(--primary, #00e0d8);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 224, 216, 0.15); /* Neon glow */
}

/* Przycisk MAX - wyróżniony */
.preset-btn[data-value='max'] {
  font-weight: 800;
  letter-spacing: 0.05em;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Dostosowanie dla bardzo małych ekranów (poniżej 360px) */
@media (max-width: 360px) {
  .preset-btn {
    min-width: 45%; /* Ustaw po 2 w rzędzie */
    font-size: 0.8rem;
  }
}

.chip {
  /* Wygląd i Interakcja */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--min-touch-target); /* Kluczowe dla mobile */
  padding: 0 1.5rem;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;

  color: var(--text-muted); /* Domyślnie przygaszony */
  font-weight: 500;
  font-size: 0.95rem;

  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
  overflow: hidden;
}
.chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.chip.active {
  background: rgba(0, 224, 216, 0.15);
  border-color: var(--primary);
  color: #fff;
  padding-right: 2.2rem; /* Miejsce na ikonkę */
}
/* Pseudoelement dla ikony wyboru - czysty CSS */
.chip.active::after {
  content: '\f00c'; /* FontAwesome check */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9em;
  color: var(--primary);
  animation: scaleIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes scaleIn {
  from {
    transform: translateY(-50%) scale(0);
    opacity: 0;
  }
  to {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
}

/* Mikro-interakcja Kliknięcia (Tap) */
.chip:active {
  transform: scale(0.96); /* Fizyczne uczucie wciśnięcia */
}

/* Focus klawiaturowy dla Chipów */
.chip:focus-visible,
.cta-button:focus-visible {
  box-shadow:
    0 0 0 4px var(--bg-body),
    0 0 0 6px var(--primary) !important;
  outline: none !important;
}

/* Custom Checkbox */
.checkbox-group {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}
.checkbox-group legend {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.custom-checkbox {
  display: flex;
  align-items: flex-start; /* Wyrównanie do góry przy długim tekście */
  padding: 12px;
  border-radius: 12px;
  transition: background 0.2s;
  cursor: pointer;
}
.custom-checkbox:hover {
  background: rgba(255, 255, 255, 0.03);
}
.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkmark {
  width: 24px;
  height: 24px;
  flex-shrink: 0; /* Nie zgniataj checkboxa */
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  margin-right: 16px;
  margin-top: 2px; /* Optyczne wyrównanie z pierwszą linią tekstu */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-checkbox input:checked ~ .checkmark {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 224, 216, 0.4);
}
.checkmark svg {
  width: 12px;
  height: 12px;
  stroke: #121418;
}
.custom-checkbox input:checked ~ .checkmark svg {
  opacity: 1;
  transform: scale(1);
}
.label-text {
  color: var(--text-muted);
  transition: color 0.3s;
}
.custom-checkbox input:checked ~ .label-text {
  color: #fff;
}

/* ================================================================== */
/* ===== SUMMARY PANEL PRO (DASHBOARD STYLE)                    ===== */
/* ================================================================== */

.summary-panel {
  background: rgba(18, 20, 24, 0.85); /* Ciemniejsze, bardziej eleganckie tło */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0; /* Reset paddingu, obsłużymy go wewnątrz sekcji */
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.6);
  overflow: hidden; /* Żeby nic nie wystawało poza zaokrąglenia */

  /* Sticky behavior */
  position: sticky;
  top: 100px;
  transition: all 0.3s ease;
}

/* --- 1. Header --- */
.summary-header-box {
  padding: 1.5rem 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-header-box h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-header-box h4 i {
  color: var(--primary);
}

.summary-status-line {
  height: 2px;
  width: 40px;
  background: var(--primary);
  margin-top: 10px;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--primary);
}

/* --- 2. Lista Elementów --- */
.summary-scroll-area {
  padding: 1.5rem;
  max-height: 400px; /* Ograniczenie wysokości na dużych ekranach */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Pojedynczy wiersz (Item) */
.summary-row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  animation: fadeInRight 0.4s ease-out;
}
.summary-row-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.item-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.item-details {
  display: flex;
  flex-direction: column;
}

.item-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.item-value {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
}

/* Stan pusty */
.empty-summary-state {
  text-align: center;
  color: rgba(255, 255, 255, 0.2);
  padding: 1rem 0;
}
.empty-summary-state i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.empty-summary-state p {
  font-size: 0.85rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.3);
}

/* --- 3. Breakdown (Szczegóły) --- */
.summary-breakdown-wrapper {
  padding: 0 1.5rem 1.5rem;
}

.summary-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.summary-toggle-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.summary-toggle-btn:hover {
  background: rgba(0, 224, 216, 0.1);
}

.toggle-icon {
  transition: transform 0.3s ease;
}
.summary-toggle-btn[aria-expanded='true'] .toggle-icon {
  transform: rotate(180deg);
}

.summary-breakdown-content {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 0 1rem;
  margin-top: 0; /* Margines dodamy klasą .open, żeby było płynnie */

  /* KLUCZOWE: Domyślnie zamknięte */
  max-height: 0;
  opacity: 0;
  overflow: hidden;

  /* Płynna animacja otwierania */
  transition:
    max-height 0.4s ease-out,
    opacity 0.4s ease-out,
    margin-top 0.4s ease;
  border: 1px solid transparent; /* Ukrywamy border gdy zamknięte */
}
.summary-toggle-btn[aria-expanded='true'] + .summary-breakdown-content {
  display: block;
  animation: slideDown 0.3s ease;
}

.bd-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #ccc;
}
.bd-row:last-child {
  margin-bottom: 0;
}
.text-success {
  color: var(--success);
}
.text-primary {
  color: var(--primary);
}

/* --- 4. Footer (Cena) --- */
.summary-footer-box {
  background: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.total-labels {
  display: flex;
  flex-direction: column;
}

.main-label {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 600;
}
.sub-label-tax {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.total-price-display {
  font-size: 1.8rem;
  color: var(--primary);
  text-shadow: 0 0 15px rgba(0, 224, 216, 0.25);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Zaliczka */
.deposit-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.deposit-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #ccc;
}

.deposit-value {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.tooltip-trigger {
  cursor: help;
  color: var(--text-muted);
  transition: color 0.2s;
}
.tooltip-trigger:hover {
  color: var(--primary);
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 1024px) {
  .summary-panel {
    position: static;
    margin-top: 3rem;
  }
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.breakdown-item:last-child {
  border-bottom: none;
}
.breakdown-item .label {
  color: #aaa;
}
.breakdown-item .value {
  color: #fff;
  font-weight: 600;
  font-family: monospace;
}
.breakdown-item .value.positive {
  color: var(--success);
} /* Zielony dla dodatków */
.breakdown-item .value.negative {
  color: var(--primary);
} /* Turkus dla rabatów */

/* 4. Sekcja TOTAL (Dół - Cena) - ZINTEGROWANA */
.summary-total {
  background: rgba(
    0,
    0,
    0,
    0.3
  ); /* Jeszcze ciemniejsze tło wyróżniające cenę */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  /* Brak margin-top, bo jest na dole panelu */
}

/* Układ wiersza ceny głównej */
.main-price-row {
  display: flex;
  flex-direction: column; /* PIONOWO: Etykieta nad ceną */
  margin-bottom: 1.2rem;
}

/* Etykieta "Szacunkowa cena" */
.price-label-col {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.main-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
}
.sub-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Wartości ceny */
.price-value-col {
  text-align: right;
}

.total-amount {
  display: block;
  font-size: 2.2rem; /* Duża cena */
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(0, 224, 216, 0.3);
  letter-spacing: -0.02em;
}

.netto-amount {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
  margin-top: 4px;
}

/* Ukrywamy stary separator */
.summary-divider {
  display: none;
}

/* Wiersz zaliczki */
.deposit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05); /* Jaśniejszy pasek */
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.deposit-label-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #ccc;
  font-weight: 500;
}

/* Tooltip (Ikonka ?) */
.summary-tooltip {
  cursor: help;
  color: var(--text-muted);
  transition: 0.3s;
}
.summary-tooltip:hover {
  color: var(--primary);
}

/* Animacja pulsu przy zmianie ceny */
.price-pulse {
  animation: priceUpdate 0.4s ease-out;
}
@keyframes priceUpdate {
  0% {
    transform: scale(1);
    color: #fff;
  }
  50% {
    transform: scale(1.05);
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary);
  }
  100% {
    transform: scale(1);
  }
}

/* --- RESPONSYWNOŚĆ (Mobile) --- */
@media (max-width: 1023px) {
  .summary-panel {
    /* Na mobile panel przestaje być sticky, wchodzi pod formularz */
    position: static;
    margin-top: 3rem;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .summary-panel {
    border-radius: 16px;
    padding: 1.2rem;
  }
  .total-amount {
    font-size: 2rem;
  }
}
/* --- FIX: PRZEŁĄCZNIK I LISTA KOSZTÓW (Naprawa ucinania) --- */
.summary-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 0;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(0, 224, 216, 0.05);
  border: 1px dashed rgba(0, 224, 216, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 5;
  text-decoration: none;
}
.summary-toggle:hover {
  background: rgba(0, 224, 216, 0.1);
  border-color: var(--primary);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}
.toggle-arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
  font-size: 0.8em;
}

/* Lista kosztów - Czarna Skrzynka */
.summary-breakdown {
  background: #0b0d10;
  /* Domyślnie brak ramki i marginesu - pojawią się dopiero po otwarciu */
  border: 0 solid rgba(255, 255, 255, 0.08);
  margin-top: 0;

  border-radius: 12px;
  padding: 0;
  overflow: hidden;

  /* Animujemy wysokość, ramkę i margines dla płynności */
  transition:
    max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    border-width 0.1s linear,
    margin-top 0.3s ease,
    opacity 0.3s ease;

  opacity: 0; /* Ukryj treść wizualnie */
}
.summary-breakdown[aria-hidden='false'] {
  border-width: 1px; /* Przywróć ramkę */
  margin-top: 10px; /* Przywróć odstęp */
  opacity: 1; /* Pokaż treść */
}
.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--bg-darker);
  padding: 12px 20px;
}
.breakdown-item:first-child {
  padding-top: 25px;
}
.breakdown-item:last-child {
  border-bottom: none;
  padding-bottom: 20px;
}
.breakdown-item .label {
  color: var(--text-muted);
  font-weight: 500;
}
.breakdown-item .value {
  color: #fff;
  font-family: var(--font-family-base);
  font-weight: 600;
}
.breakdown-item .value.positive {
  color: var(--success);
  text-shadow: 0 0 10px rgba(0, 210, 106, 0.2);
}
.breakdown-item .value.negative {
  color: var(--primary);
}

/* --- Tooltipy i Modale (Fix Z-Index) --- */
.software-info,
.summary-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  color: var(--text-muted);
  cursor: help;
  position: relative;
  z-index: 20;
  pointer-events: auto;
  transition: color 0.3s;
}
.software-info:hover,
.summary-tooltip:hover {
  color: var(--primary);
}

/* --- RESPONSIVE MOBILE FIX --- */
@media (max-width: 480px) {
  .total-amount {
    font-size: 2rem;
  }
}

/* ================================================== */
/* ===== INFO MODAL: PREMIUM & ACCESSIBLE v2.0  ===== */
/* ================================================== */

/* 1. KONTENER GŁÓWNY (Cały ekran) */
.info-modal-container {
  position: fixed;
  inset: 0; /* Zastępuje top/left/right/bottom: 0 */
  z-index: 100000; /* Najwyższa warstwa, nad loaderem i menu */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem; /* Margines bezpieczeństwa na telefonach */

  /* Domyślny stan: ukryty */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stan aktywny (Gdy JS doda klasę .active) */
.info-modal-container.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* 2. TŁO (Backdrop) - Ciemne i rozmyte */
.info-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.85); /* Głęboka czerń z przezroczystością */
  backdrop-filter: blur(8px); /* Efekt szkła (rozmywa stronę pod spodem) */
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}

/* 3. KARTA Z TREŚCIĄ (To co widzi użytkownik) */
.info-modal-content {
  position: relative;
  width: 100%;
  max-width: 500px; /* Optymalna szerokość do czytania */
  max-height: 85vh; /* Zabezpieczenie na małe ekrany */

  /* Wygląd Premium */
  background: #121417; /* Spójne z kolorem kart na stronie */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    /* Wewnętrzny obrys */ 0 25px 50px -12px rgba(0, 0, 0, 0.9); /* Głęboki cień */

  padding: 2.5rem;
  text-align: center;
  overflow-y: auto; /* Scrollowanie wewnątrz karty jeśli tekst jest długi */

  /* Animacja wejścia (Pop-up) */
  transform: scale(0.95) translateY(10px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.info-modal-container.active .info-modal-content {
  transform: scale(1) translateY(0);
}

/* 4. PRZYCISK ZAMKNIĘCIA (X) - Duży i dostępny */
.info-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 44px; /* Minimum 44px dla dotyku (standard WCAG) */
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;

  /* Ikona X zrobiona CSSem (lub fontawesome jeśli jest w HTML) */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

/* Ikona X z FontAwesome wewnątrz buttona */
.info-modal-close::before {
  content: '\00d7'; /* Znak mnożenia (X) jako fallback */
  font-family: Arial, sans-serif;
  line-height: 1;
  font-weight: 300;
}
/* Jeśli używasz fontawesome w HTML wewnątrz buttona, to powyższe ::before jest zbędne, ale nie szkodzi */

.info-modal-close:hover {
  background: rgba(255, 77, 79, 0.15); /* Czerwona poświata */
  border-color: #ff4d4f;
  color: #ff4d4f;
  transform: rotate(90deg);
}

/* 5. ELEMENTY WEWNĄTRZ */

/* Ikona nad tytułem */
.info-modal-icon {
  font-size: 3rem;
  color: var(--primary); /* Twój turkus */
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 15px rgba(0, 224, 216, 0.2)); /* Lekki glow */
}

/* Tytuł */
.info-modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

/* Treść (Opis) */
.info-modal-body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #cbd5e1; /* Bardzo jasny szary - wysoki kontrast */
  line-height: 1.65; /* Większy odstęp między liniami dla czytelności */
  margin-bottom: 2rem;
}

/* Przycisk "Rozumiem" */
.info-modal-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 12px;
  border: none;
  cursor: pointer;

  /* Styl Primary */
  background: var(--primary);
  color: #050607; /* Czarny tekst na turkusie - najlepszy kontrast */

  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.info-modal-btn:hover {
  background: #00b8b0; /* Ciemniejszy turkus */
  box-shadow: 0 0 20px rgba(0, 224, 216, 0.3);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* 6. RESPONSYWNOŚĆ (Mobile) */
@media (max-width: 600px) {
  .info-modal-content {
    padding: 2rem 1.5rem; /* Mniejsze marginesy wewnątrz */
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    /* Na mobile często lepiej wygląda, gdy modal jest na dole */
    margin-top: auto;
    margin-bottom: auto;
  }

  .info-modal-title {
    font-size: 1.3rem;
  }

  .info-modal-body {
    font-size: 0.95rem;
  }
}

/* ======================================================= */
/* === NAPRAWIONY PRZYCISK INFO (BEZPIECZNY DLA LABEL) === */
/* ======================================================= */

.info-trigger-btn {
  /* Nadpisujemy stare style .software-info */
  display: flex !important;
  align-items: center;
  justify-content: center;

  /* Wygląd przycisku */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: help;

  /* Wymiary stałe */
  width: 28px;
  height: 28px;
  border-radius: 50%;

  /* Pozycjonowanie */
  position: relative;
  z-index: 20; /* Musi być wyżej niż reszta */
  margin-left: auto;

  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: 0.85rem;
}

/* Stan Hover */
.info-trigger-btn:hover {
  background: rgba(0, 224, 216, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0, 224, 216, 0.3);
}

/* Obsługa zaznaczonej karty (żeby przycisk pasował) */
.addon-checkbox:checked + .addon-visual .info-trigger-btn {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.addon-checkbox:checked + .addon-visual .info-trigger-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
}

/* Zwiększenie pola dotyku dla palca (niewidzialne) */
.info-trigger-btn::before {
  content: '';
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: -10px;
  right: -10px;
  cursor: help;
}

/* -------------------- INNE ELEMENTY -------------------- */
.field-error {
  color: var(--danger);
  background: rgba(255, 77, 79, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-top: 0.8rem;
  display: none;
  border-left: 3px solid var(--danger);
}
.field-suggestion {
  background: rgba(0, 224, 216, 0.08);
  border: 1px solid rgba(0, 224, 216, 0.2);
  color: #b0c4de;
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 1rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.shipping-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: right;
}
.free-shipping-note {
  color: var(--success);
  font-weight: bold;
  display: block;
}
.legal-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
}

/* Nawigacja Formularza */
.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  /* Oddzielenie kreską, tak jak w sekcjach Summary Panelu */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-navigation .btn-prev[style*='display: none'] + .btn-next {
  margin-left: auto; /* Dopycha przycisk Dalej do prawej, gdy nie ma Wstecz */
}

/* Fancy Loader */
#fancyLoader {
  /* Pozycjonowanie pełnoekranowe - "sztywne" */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* lub 100dvh dla nowoczesnych mobili */
  z-index: 99999; /* Musi przykryć absolutnie wszystko (nawet navbar) */

  /* Wygląd tła */
  background: rgba(11, 13, 16, 0.98); /* Prawie nieprzezroczyste tło */
  backdrop-filter: blur(15px); /* Rozmycie tego co pod spodem */
  -webkit-backdrop-filter: blur(15px); /* Wsparcie dla Safari */

  /* KLUCZ DO CENTROWANIA (FLEXBOX) */
  display: flex;
  flex-direction: column; /* Układ pionowy (kółko nad tekstem) */
  justify-content: center; /* Idealny środek w pionie */
  align-items: center; /* Idealny środek w poziomie */

  /* Animacje wejścia/wyjścia */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#fancyLoader.active {
  opacity: 1;
  visibility: visible;
}

/* Kontener wewnętrzny (Kółko + Tekst) */
.loaderBox {
  position: relative;
  z-index: 10; /* Musi być nad confetti */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: translateY(20px); /* Startowa pozycja dla animacji wjazdu */
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.5s;
  opacity: 0;
  padding: 20px; /* Bezpieczny margines */
  width: 100%;
  max-width: 400px; /* Żeby na dużych ekranach nie było za szeroko */
}

/* Klasa dodawana przez JS, gdy loader się pojawia */
.loaderBox.show {
  transform: translateY(0);
  opacity: 1;
}

/* Wizualizacja Kółka (SVG) */
.loader-visual-container {
  width: 80px; /* Stały rozmiar na każdym urządzeniu */
  height: 80px;
  margin-bottom: 1.5rem;
  position: relative;
}

.loader-svg {
  width: 100%;
  height: 100%;
}

#spinnerGroup {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.loader-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 6;
}

.loader-fg {
  fill: none;
  stroke: var(--primary); /* Neon Turquoise */
  stroke-width: 6;
  stroke-dasharray: 283; /* 2 * PI * 45 */
  stroke-dashoffset: 283;
  stroke-linecap: round;
  animation: loaderSpin 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-origin: 50% 50%; /* Ważne dla obrotu */
}

/* Animacja obrotu */
@keyframes loaderSpin {
  0% {
    stroke-dashoffset: 283;
    transform: rotate(0deg);
  }
  50% {
    stroke-dashoffset: 70;
    transform: rotate(180deg);
  }
  100% {
    stroke-dashoffset: 283;
    transform: rotate(360deg);
  }
}

/* Ptaszka (Sukces) */
#checkGroup {
  opacity: 0;
  transform-origin: 50% 50%;
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(0.5);
}

#checkPath {
  stroke: var(--primary);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}

/* Stan Sukcesu */
#fancyLoader.success .loader-fg {
  animation: none;
  stroke-dashoffset: 0; /* Pełne kółko */
  transition: stroke-dashoffset 0.5s ease;
  stroke: var(--success); /* Zmiana koloru na zielony */
}

#fancyLoader.success #checkGroup {
  opacity: 1;
  transform: scale(1);
}

#fancyLoader.success #checkPath {
  transition: stroke-dashoffset 0.4s ease 0.2s; /* Opóźnienie rysowania ptaszka */
  stroke-dashoffset: 0;
  stroke: var(--success);
}

/* Teksty */
.loader-text {
  font-family: var(--font-family-heading);
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 10px;
}

.loader-text.success {
  display: none;
  color: var(--success);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 15px rgba(0, 210, 106, 0.4);
}

#fancyLoader.success .loader-text:not(.success) {
  display: none;
}
#fancyLoader.success .loader-text.success {
  display: block;
  animation: fadeInUp 0.4s ease;
}

/* Confetti Canvas (Tło) */
#confettiCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* Pod loaderBoxem */
}

.anim-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsywność (Mobile) */
@media (max-width: 1023px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: 85vw;
    max-width: 400px;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: 0.5s var(--ease-out-cubic);
    z-index: 998;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }
  .nav.open {
    transform: translateX(0);
  }
  .nav ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .nav a {
    font-size: 1.5rem;
  }
}
@media (max-width: 768px) {
  .configurator-wrapper {
    display: flex;
    flex-direction: column;
  }
  .summary-panel {
    position: static;
    margin-top: 2rem;
    order: 2;
  }
  .form-navigation {
    flex-direction: column-reverse;
    gap: 1rem;
  }
  .form-navigation button {
    width: 100%;
  }
  .chip {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .progress-steps {
    padding: 0;
  }
  .step-label {
    display: none;
  }
  #configForm {
    padding: 1.5rem;
  }
}

:focus-visible {
  outline: 3px solid var(--primary) !important;
  outline-offset: 4px;
  border-radius: 4px;
  z-index: 1000; /* Wyciąga obrys nad inne elementy */
}

/* ================================================================== */
/* ===== PODSTRONA: JAK TO DZIAŁA (V8 - ULTIMATE EDITION)       ===== */
/* ================================================================== */

/* ================================================================== */
/* ===== FINAL CTA SECTION (PIXEL PERFECT REPAIR)               ===== */
/* ================================================================== */

.final-cta-section {
  position: relative;
  /* Głęboka czerń zgodna ze screenem */
  padding: 8rem 1.5rem;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.cta-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.final-cta-section h2 {
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem); /* Responsywny rozmiar */
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.final-cta-section p {
  color: #94a3b8; /* var(--text-muted) */
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-neon-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 224, 216, 0.8) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  box-shadow: 0 -1px 15px rgba(0, 224, 216, 0.5); /* Glow w górę */
  z-index: 5;
}

/* Responsywność dla mobile */
@media (max-width: 600px) {
  .final-cta-section {
    padding: 6rem 1.5rem;
  }
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-button,
  .cta-button-secondary {
    width: 100%; /* Pełna szerokość na telefonie */
  }
}

/* -------------------- 1. HERO SECTION (FULL SCREEN PREMIUM) -------------------- */
.process-hero {
  position: relative;
  width: 100%;
  /* 100dvh dla mobile (uwzględnia pasek adresu) */
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 1.5rem;
  padding-top: var(--header-h);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;

  /* Baza - głęboki, techniczny kolor */
  background-color: var(--bg-body);
  z-index: 1;
}
/* 1. ANIMOWANA POŚWIATA (CYBER GLOW) */
.process-hero::before {
  content: '';
  position: absolute;
  /* Centrujemy glow */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 140vw; /* Szersze niż ekran dla płynności */
  height: 140vw;
  max-width: 1200px;
  max-height: 1200px;

  /* Gradient: Od neonu do przezroczystości */
  background: radial-gradient(
    circle,
    rgba(0, 224, 216, 0.15) 0%,
    rgba(0, 224, 216, 0.05) 30%,
    transparent 70%
  );

  /* Rozmycie dla efektu "mgły" */
  filter: blur(60px);
  border-radius: 50%;
  z-index: -2;

  /* Animacja "oddechu" */
  animation: heroPulse 8s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
/* 2. TECHNICZNA SIATKA (GRID) */
.process-hero::after {
  content: '';
  position: absolute;
  inset: 0;

  /* Cienka, ledwo widoczna siatka */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);

  background-size: 50px 50px; /* Rozmiar kratek */

  /* Maska: Siatka widoczna tylko na środku, zanika na brzegach */
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(
    circle at center,
    black 30%,
    transparent 80%
  );

  z-index: -1;
  pointer-events: none;
}
/* 3. ANIMACJE */
@keyframes heroPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  opacity: 0;
  animation: heroEnter 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE FIX --- */
@media (max-width: 768px) {
  .process-hero::before {
    /* Na telefonach glow jest nieco mniejszy, żeby nie raził */
    width: 150vw;
    height: 150vw;
    background: radial-gradient(
      circle,
      rgba(0, 224, 216, 0.12) 0%,
      transparent 60%
    );
  }

  .process-hero::after {
    background-size: 30px 30px; /* Mniejsza kratka na telefonie */
  }
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 auto 3rem;
  max-width: 750px;
}

/* Dekoracje */
.hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.decoration-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}
.circle-1 {
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: var(--primary);
  opacity: 0.15;
}

/* -------------------- 2. KONTENER PROCESU (TIMELINE) -------------------- */

.process-container {
  position: relative;
  margin-top: 0;
  padding: 4rem 1.5rem 6rem;

  /* Baza: Głęboka czerń, taka jak w stopce */
  background-color: #0b0d10;

  /* Z-index musi być wyższy niż tło hero, ale niższy niż menu */
  z-index: 5;
}

/* --- WARSTWA MASKUJĄCA (MGŁA) --- */
.process-container::before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  width: 100%;

  /* Wymiary: Wychodzimy bardzo wysoko do góry */
  top: -250px;
  height: 252px; /* Musi być minimalnie wyższe niż przesunięcie, żeby zakryć szew */

  /* PANCERNY GRADIENT: */
  /* Zaczyna się od pełnej przezroczystości (0%), żeby nie uciąć napisów Hero */
  /* Szybko przechodzi w czerń, żeby zakryć koniec siatki */
  background: linear-gradient(
    to bottom,
    rgba(11, 13, 16, 0) 0%,
    /* Przezroczyste na górze (widać Hero) */ rgba(11, 13, 16, 0.6) 40%,
    /* Pół-cień w połowie */ #0b0d10 100%
      /* Pełna czerń na dole (styka się z sekcją) */
  );

  /* KLUCZOWE: Pozwala klikać w przyciski, które są POD tą mgłą */
  pointer-events: none;

  /* Musi być na wierzchu tła Hero */
  z-index: 10;
}

/* Usuwamy wszelkie inne dekoracje, które mogłyby robić "kreskę" */
.process-container::after {
  display: none !important;
}

.process-container,
.process-wrapper {
  padding: 6rem 5%;
}

.process-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

.section-title {
  display: flex; /* Flexbox to najlepsza metoda centrowania */
  flex-direction: column;
  align-items: center; /* Centruje elementy w poziomie (blokowo) */
  text-align: center; /* Centruje sam tekst */

  width: 100%;
  max-width: 900px; /* Zapobiega rozlewaniu się tekstu na boki na dużych ekranach */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 6rem; /* Zachowujemy oryginalny odstęp od dołu */
  position: relative;
  z-index: 2;
}

/* Linia Czasu (Desktop) */
@media (min-width: 1024px) {
  .process-wrapper::before {
    content: '';
    position: absolute;
    top: 300px; /* Start pod tytułem */
    bottom: 100px;
    left: 50%;
    width: 2px;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 224, 216, 0.5) 20%,
      rgba(0, 224, 216, 0.5) 80%,
      transparent 100%
    );
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(0, 224, 216, 0.3); /* Neonowy glow */
    z-index: 0;
  }
}

/* -------------------- 3. KROKI (STEPS - PREMIUM CARDS) -------------------- */
.process-step {
  display: flex;
  flex-direction: row !important; /* Wymusza: Obrazek Lewo -> Tekst Prawo */
  align-items: center; /* Wyśrodkowanie pionowe */
  justify-content: center;
  gap: 4rem; /* Optymalny odstęp */
  margin-bottom: 8rem;
  position: relative;
  z-index: 15;

  /* Animacja wejścia */
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

/* --- 2. ANIMACJE SCROLLA (GPU) --- */
/* Stan początkowy */
.process-step,
.faq-item,
.section-title,
.cta-content {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform; /* Hint dla przeglądarki */
}

/* Stan końcowy (nadawany przez JS) */
.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Kiedy element staje się widoczny */
.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Resetujemy dziwne zachowania dla parzystych elementów */
.process-step:nth-child(even) {
  flex-direction: row !important; /* Blokada odwracania (zygzaka) */
}

/* === ELEMENTY WEWNĄTRZ === */

/* Kontenery treści */
.process-content,
.process-image {
  flex: 1;
  max-width: 550px; /* Ograniczenie szerokości dla estetyki */
  position: relative; /* Ważne dla pozycjonowania numeru */
}

/* Tekst ZAWSZE do lewej */
.process-content {
  text-align: left !important;
}

/* Elementy listy funkcji zawsze startują od lewej */
.process-features,
.feature-grid {
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

/* === OBRAZEK (STYLIZACJA) === */
.process-image img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.5s ease,
    border-color 0.3s;
  background: #121417;
  display: block; /* Usuwa puste przestrzenie */
}

/* Glow pod obrazkiem */
.process-image::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(0, 224, 216, 0.15), transparent 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.process-step:hover .process-image img {
  transform: scale(1.02);
  border-color: rgba(0, 224, 216, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.5s var(--ease-smooth),
    box-shadow 0.5s ease;
}
.process-step:hover .process-image::before {
  opacity: 1;
}

/* === NUMER W TLE (NAPRAWIONY) === */
.process-number {
  position: absolute;
  /* Pozycjonowanie statyczne względem kontenera */
  top: -3rem;
  left: 0;
  font-family: var(--font-family-heading);
  font-weight: 900;
  font-size: 6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.05);
  z-index: -1;

  /* Animacja wydajna */
  transition:
    transform 0.6s var(--ease-spring),
    opacity 0.6s ease;
  transform-origin: left center;
}

/* Efekt hover na numerze */
.process-step:hover .process-number {
  /* Przesunięcie na GPU */
  transform: translateX(20px) scale(1.1);
  opacity: 0.8;
  -webkit-text-stroke-color: rgba(0, 224, 216, 0.2);
}

/* Reset dla parzystych/nieparzystych (dla pewności) */
.process-step:nth-child(odd) .process-number,
.process-step:nth-child(even) .process-number {
  left: 0;
  right: auto;
}

/* === NAGŁÓWKI I TEKST === */
.process-content h3 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  color: #fff;
  position: relative; /* Żeby był nad numerem */
}

.process-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* === RESPONSYWNOŚĆ (MOBILE) === */
@media (max-width: 1023px) {
  .process-step,
  .process-step:nth-child(even) {
    flex-direction: column !important; /* Obrazek nad tekstem */
    gap: 2rem;
    margin-bottom: 5rem;
    text-align: center !important;
  }

  .process-content {
    text-align: center !important; /* Na telefonie centrujemy */
    padding: 0 1rem;
  }

  .process-number {
    font-size: 4rem;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
  }

  .process-step:hover .process-number {
    transform: translateX(-50%) scale(1.1);
  }

  .process-features,
  .feature-grid {
    align-items: center !important; /* Centrowanie ikon na mobile */
  }
}
.process-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.process-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* LISTY & GRID */
.process-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Karty Funkcji (High-Tech Look) */
.feature-item,
.feature-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.process-step:nth-child(odd) .feature-item {
  flex-direction: row-reverse;
  text-align: right;
}

.feature-item:hover,
.feature-card:hover {
  background: linear-gradient(
    145deg,
    rgba(0, 224, 216, 0.1) 0%,
    rgba(0, 224, 216, 0.02) 100%
  );
  border-color: rgba(0, 224, 216, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(0, 224, 216, 0.15);
}

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(0, 224, 216, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  box-shadow: 0 0 15px rgba(0, 224, 216, 0.2);
}
.feature-card .feature-icon {
  margin-bottom: 1rem;
}
.process-step:nth-child(odd) .feature-card .feature-icon {
  margin-left: auto;
}

.feature-item h4,
.feature-card h4 {
  margin: 0 0 0.3rem 0;
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
}
.feature-item p,
.feature-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* ================================================================== */
/* ===== 4. FAQ SECTION: PROFESSIONAL ACCORDION (FIXED)         ===== */
/* ================================================================== */

.faq-section {
  width: 100%;
  max-width: 900px; /* Szersze dla lepszej czytelności */
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
  position: relative;
  z-index: 5;
}

/* Kontener pojedynczego pytania */
.faq-item {
  background: rgba(18, 20, 23, 0.6); /* Ciemne tło */
  border: 1px solid rgba(255, 255, 255, 0.08); /* Subtelna ramka */
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden; /* Ważne dla animacji */
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;

  /* Usuwamy problematyczne maski, które psuły cienie */
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* Stan: Otwarty */
.faq-item[open] {
  background: rgba(18, 20, 23, 0.95); /* Pełne krycie po otwarciu */
  border-color: rgba(0, 224, 216, 0.5); /* Neonowy akcent */
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 224, 216, 0.1); /* Glow */
}

/* Hover (tylko na komputerze) */
@media (hover: hover) {
  .faq-item:not([open]):hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
  }
}

/* --- NAGŁÓWEK PYTANIA (SUMMARY) --- */
.faq-question {
  list-style: none; /* Ukrywa domyślny trójkąt */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #f0f4f8;
  line-height: 1.4;
  outline: none;
  transition: color 0.3s ease;
}

/* Ukrycie domyślnego znacznika w Safari/Chrome */
.faq-question::-webkit-details-marker {
  display: none;
}

/* Ikona Strzałki (Chevron) */
.faq-question::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary); /* Używamy zmiennej koloru */
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg); /* Strzałka w dół */
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-left: 1.5rem;
  flex-shrink: 0;
}

/* Obrót strzałki po otwarciu */
.faq-item[open] .faq-question::after {
  transform: rotate(225deg); /* Strzałka w górę */
}

.faq-item[open] .faq-question {
  color: var(--primary); /* Podświetlenie pytania */
}

/* --- ANIMACJA TREŚCI (GRID TRICK) --- */
/* To sprawia, że details animuje się płynnie */
.faq-answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.faq-item[open] .faq-answer-wrapper {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer {
  overflow: hidden;
  min-height: 0; /* Kluczowe dla poprawnego działania grida */
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: #94a3b8; /* Czytelny szary */
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.faq-answer-inner p {
  margin-bottom: 1rem;
}
.faq-answer-inner p:last-child {
  margin-bottom: 0;
}

.faq-answer-inner strong {
  color: #fff;
  font-weight: 600;
}

.faq-answer-inner ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}
.faq-answer-inner li {
  margin-bottom: 0.5rem;
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 768px) {
  .faq-section {
    padding: 0 1rem 4rem;
  }

  .faq-question {
    padding: 1.2rem;
    font-size: 1rem;
  }

  .faq-answer-inner {
    padding: 0 1.2rem 1.2rem;
  }
}

/* SKLEJENIE ZE STOPKĄ */
.cta-section {
  margin: 0 !important;
  padding: 8rem 1.5rem;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-darker) 0%, #050607 100%);
  position: relative;
}
.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.cta-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.footer {
  margin-top: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #050607;
  padding-top: 5rem;
}

/* -------------------- 5. RESPONSIVE (MOBILE) -------------------- */
@media (max-width: 1023px) {
  .process-wrapper::before {
    display: none;
  } /* Ukrywamy linię */

  .process-step,
  .process-step:nth-child(even) {
    flex-direction: column !important;
    gap: 3rem;
    margin-bottom: 6rem;
  }

  .process-content,
  .process-image {
    width: 100%;
    max-width: 600px;
    text-align: center !important;
    transform: translateZ(0);
  }

  .process-step:nth-child(odd) .process-number,
  .process-step:nth-child(even) .process-number {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    font-size: 3rem;
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
    -webkit-text-stroke: 0;
    text-shadow: 0 0 20px rgba(0, 224, 216, 0.3);
  }

  /* Reset flexa w kartach */
  .process-step:nth-child(odd) .feature-item {
    flex-direction: row;
    text-align: left;
  }
  .process-step:nth-child(odd) .feature-card .feature-icon {
    margin-left: 0;
  }
  .process-step:nth-child(odd) .feature-card {
    text-align: left;
  }

  .process-step:nth-child(odd) .process-features,
  .process-step:nth-child(odd) .feature-grid {
    align-items: stretch;
  }
  .process-step:nth-child(even) .process-features,
  .process-step:nth-child(even) .feature-grid {
    align-items: stretch;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .cta-content h2 {
    font-size: 2rem;
  }
}

@media (hover: hover) {
  .process-step:hover .process-image img {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 224, 216, 0.15);
  }
}

/* ================================================================== */
/* ===== PODSTRONA: CENTRUM PRAWNE (ULTIMATE RESPONSIVE v2) ===== */
/* ================================================================== */

/* 1. Główny Layout Strony */
.page-policy {
  background-color: var(--bg-darker);
  min-height: 100vh;
  /* Padding górny uwzględnia wysokość headera */
  padding-top: var(--header-h);
  padding-bottom: 6rem;
  position: relative;
}

/* Tło dekoracyjne */
.page-policy::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 80% 10%,
    rgba(0, 224, 216, 0.05),
    transparent 40%
  );
  pointer-events: none;
  z-index: 0;
}

.policy-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  /* GRID DESKTOP: Sidebar (300px) | Treść (Auto) */
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
  align-items: start; /* Ważne dla sticky */
}

/* 2. Nawigacja - Sidebar (Desktop) */
.policy-nav {
  /* STICKY LOGIC: Menu "pływa" za użytkownikiem */
  position: sticky;
  top: calc(var(--header-h) + 2rem); /* Odstęp od góry (pod nagłówkiem) */

  background: rgba(22, 25, 29, 0.8); /* Ciemne szkło */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;

  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-height: calc(100vh - 150px); /* Zabezpieczenie na niskie ekrany */
  overflow-y: auto; /* Scrollowanie wewnątrz menu jeśli za długie */

  /* Custom Scrollbar dla menu */
  scrollbar-width: thin;
  scrollbar-color: var(--primary-dark) var(--bg-dark);
}

/* Styl linków w menu */
.policy-nav-link {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  border-left: 3px solid transparent;
}

.policy-nav-link i {
  margin-right: 12px;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  transition: color 0.3s;
}

.policy-nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  transform: translateX(5px);
}

.policy-nav-link:hover i {
  color: var(--primary);
}

/* Stan Aktywny (gdy sekcja jest widoczna) */
.policy-nav-link.active {
  background: linear-gradient(
    90deg,
    rgba(0, 224, 216, 0.1) 0%,
    transparent 100%
  );
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 700;
  box-shadow: inset 10px 0 20px -10px rgba(0, 224, 216, 0.15);
}

/* Link "Powrót" */
.policy-nav-link.home-link {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.2rem;
  border-left: none;
  color: #fff;
}
.policy-nav-link.home-link:hover {
  transform: translateX(0);
  background: transparent;
}
.policy-nav-link.home-link i {
  color: var(--primary);
}

/* 3. Treść Prawna (Content) */
.policy-content {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  min-width: 0; /* Zapobiega rozpychaniu grida przez długie linki */
}

.policy-section {
  margin-bottom: 5rem;
  /* Scroll Margin: Żeby nagłówek nie chował się pod menu sticky */
  scroll-margin-top: 180px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 4rem;
}

.policy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Typografia */
.policy-section h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 224, 216, 0.2);
  width: fit-content;
}
.policy-section h2 i {
  color: var(--primary);
}

.policy-section h4 {
  color: var(--text-light);
  margin: 2.5rem 0 1rem;
  font-size: 1.2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--primary);
}

.policy-section p,
.policy-section li {
  color: #94a3b8;
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 1rem;
  max-width: 75ch;
}

.policy-section strong {
  color: #e2e8f0;
  font-weight: 600;
}

/* Listy */
.policy-section ul,
.policy-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.detailed-list li {
  margin-bottom: 0.8rem;
}

/* 4. Highlight Box & Button */
.policy-highlight {
  background: rgba(0, 224, 216, 0.04);
  border: 1px solid rgba(0, 224, 216, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
  color: #cbd5e1;
}

.form-download-cta {
  margin-top: 3rem;
  text-align: center;
}
.button-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2rem;
  border: 1px solid var(--primary);
  border-radius: 50px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: 0.3s;
}
.button-download:hover {
  background: rgba(0, 224, 216, 0.1);
  box-shadow: 0 0 25px rgba(0, 224, 216, 0.2);
  transform: translateY(-3px);
  color: #fff;
}

/* ============================================== */
/* ===== MOBILE / TABLET (PONIŻEJ 1024px) ===== */
/* ============================================== */

@media (max-width: 1024px) {
  .page-policy {
    padding-top: var(--header-h-mobile); /* Mniejszy offset */
    padding-bottom: 4rem;
  }

  .policy-container {
    display: block; /* Wyłączamy grid, elementy jeden pod drugim */
    padding: 0; /* Reset paddingu kontenera */
  }

  /* --- STICKY NAV BAR (POZIOMY) --- */
  .policy-nav {
    /* Pozycjonowanie */
    position: sticky;
    top: var(--header-h-mobile); /* Przyklejony zaraz pod headerem */
    z-index: 990; /* Nad treścią, pod modalem */

    /* Layout */
    flex-direction: row; /* Poziomy układ */
    align-items: center;
    flex-wrap: nowrap; /* Nie zawijaj */

    /* Stylizacja Paska */
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(18, 20, 23, 0.95); /* Prawie pełne krycie */
    backdrop-filter: blur(15px);
    border-radius: 0; /* Prostokątny pasek */
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);

    /* Scrollowanie Poziome (Swipe) */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;

    /* Ukrycie Scrollbara */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }
  .policy-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  /* Linki w trybie poziomym */
  .policy-nav-link {
    flex: 0 0 auto; /* Nie rozciągaj */
    margin-right: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px; /* "Tabletki" */
    font-size: 0.85rem;
    border-left: none;
    border: 1px solid transparent;
    white-space: nowrap; /* Tekst w jednej linii */
  }

  .policy-nav-link i {
    margin-right: 6px;
    font-size: 0.9rem;
  }

  .policy-nav-link:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.1);
  }

  .policy-nav-link.active {
    background: var(--primary);
    color: #050607; /* Ciemny tekst na jasnym tle */
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 224, 216, 0.4);
  }

  /* Przycisk Powrót (Zminimalizowany) */
  .policy-nav-link.home-link {
    margin-bottom: 0;
    padding: 0.6rem;
    border-bottom: none;
    margin-right: 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
  }
  .policy-nav-link.home-link span {
    display: none; /* Ukryj tekst "Powrót" na mobile */
  }
  .policy-nav-link.home-link i {
    margin: 0;
    font-size: 1rem;
  }

  /* TREŚĆ NA MOBILE */
  .policy-content {
    padding: 2rem 1.5rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
    background: transparent; /* Brak tła karty na mobile dla lżejszego wyglądu */
    box-shadow: none;
  }

  .policy-section {
    scroll-margin-top: 160px; /* Poprawka na sticky header + sticky nav */
  }

  .policy-section h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .policy-section h2 {
    font-size: 1.4rem;
    flex-wrap: wrap;
  }
  .policy-content {
    padding: 1.5rem 1rem;
  }
  .button-download {
    width: 100%;
    justify-content: center;
  }
}

/* ================================================================== */
/* ===== UKRYCIE IKONY RECAPTCHA                                ===== */
/* ================================================================== */

.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* ================================================================== */

/* ================================================================== */
/* ===== FINAL OPINIE FIX (PREMIUM EDITION v1.0)                ===== */
/* ================================================================== */

/* 1. UKŁAD STRONY I DASHBOARD */
.reviews-wrapper {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 4rem;
  background-image: radial-gradient(
    circle at 50% 10%,
    rgba(0, 224, 216, 0.05),
    transparent 40%
  );
}

.reviews-dashboard {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: stretch;
}

/* Karta Oceny */
.dashboard-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem;
}

.score-header {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.score-val-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-big {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 30px rgba(0, 224, 216, 0.3);
}

.score-stars-display {
  font-size: 1.5rem;
  color: var(--star-color);
  margin: 0.5rem 0 1rem;
}

/* Histogram */
.dashboard-histogram {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
}

.hist-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.hist-star-label {
  width: 50px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.hist-star-label i {
  font-size: 0.8em;
}

.hist-bar-track {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin: 0 15px;
  overflow: hidden;
}

.hist-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 224, 216, 0.4);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hist-count-label {
  width: 30px;
  text-align: right;
  color: #fff;
  font-weight: 600;
}

/* LIGHTBOX */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s;
}
.lightbox-close:hover {
  color: var(--primary);
}

select option {
  background-color: var(--bg-dark) !important; /* Twój ciemny kolor tła */
  color: var(--text-main) !important;
  padding: 10px;
}

/* --- MOBILE STICKY BAR (PREMIUM EDITION) --- */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;

  /* Glassmorphism tło */
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* Neonowa krawędź u góry */
  border-top: 1px solid rgba(0, 224, 216, 0.3);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);

  z-index: 9990;

  /* Układ */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  /* Padding bezpieczny dla iPhone (Notch/Home Bar) */
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));

  /* Animacja wejścia */
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-sticky-bar.visible {
  transform: translateY(0);
}

/* Sekcja z ceną */
.msb-price-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.msb-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.msb-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary, #00e0d8);
  line-height: 1;
  text-shadow: 0 0 15px rgba(0, 224, 216, 0.25);
  font-family: 'Poppins', sans-serif;
}

/* Przycisk w pasku */
.msb-btn {
  /* Nadpisanie domyślnych stylów przycisku dla paska */
  margin: 0 !important;
  width: auto !important;
  padding: 0.8rem 1.8rem !important;
  min-width: 140px;
  border-radius: 12px !important;
  font-size: 1rem !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 15px rgba(0, 224, 216, 0.2);
}

/* Dodaj odstęp na dole strony, żeby pasek nie zasłaniał treści */
@media (max-width: 1024px) {
  body {
    padding-bottom: 100px !important;
  }
}

/* Ukrycie na Desktopie */
@media (min-width: 1024px) {
  .mobile-sticky-bar {
    display: none !important;
  }
}

/* === MODULE: PREMIUM ADDONS GRID === */
.addons-section {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
}

.addons-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.addons-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Grid Layout */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* Karta (Label) */
.addon-card {
  position: relative;
  cursor: pointer;
  display: block;
  user-select: none;
  /* Usuwamy domyślne style labela */
  margin: 0;
}

/* Ukryty Input */
.addon-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Wizualna Warstwa Karty */
.addon-visual {
  background: rgba(18, 20, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hover Effect */
.addon-card:hover .addon-visual {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Stan ZAZNACZONY (Checked) */
.addon-checkbox:checked + .addon-visual {
  background: rgba(0, 224, 216, 0.08); /* Delikatny turkus */
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 224, 216, 0.15);
}

/* Top: Icon + Info */
.addon-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.addon-icon {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.addon-checkbox:checked + .addon-visual .addon-icon {
  color: #fff;
}

/* Info Trigger - Stylowanie */
.addon-info-trigger {
  color: var(--text-muted);
  font-size: 1rem;
  padding: 5px;
  margin: -5px; /* Zwiększa obszar kliknięcia */
  cursor: help;
  transition: color 0.2s;
  z-index: 2; /* Musi być nad kartą, żeby modal działał */
}
.addon-info-trigger:hover {
  color: var(--primary);
}

/* Body: Title + Desc */
.addon-body {
  flex-grow: 1; /* Wypycha footer na dół */
  margin-bottom: 1rem;
}

.addon-title {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 4px;
}

.addon-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
}

/* Footer: Price + Checkbox Visual */
.addon-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.8rem;
}

.addon-price {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

/* Status Icon Swap */
.addon-status {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

.addon-status .check-icon {
  display: none;
}
.addon-status .uncheck-icon {
  display: block;
}

.addon-checkbox:checked + .addon-visual .addon-status {
  color: var(--primary);
  transform: scale(1.1);
}

.addon-checkbox:checked + .addon-visual .addon-status .check-icon {
  display: block;
}
.addon-checkbox:checked + .addon-visual .addon-status .uncheck-icon {
  display: none;
}

/* ======================================================= */
/* === MOBILE ADDONS FIX v7 (NO OVERLAP GUARANTEE)     === */
/* ======================================================= */

@media (max-width: 600px) {
  /* 1. Reset kontenera */
  .addons-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .addon-card {
    width: 100%;
    margin: 0;
    overflow: visible;
  }

  /* 2. Grid Wewnętrzny - UKŁAD 2-RZĘDOWY */
  .addon-visual {
    display: grid;
    /* Kolumny: Ikona | Tekst i Cena | Checkbox */
    grid-template-columns: 48px 1fr auto;
    /* Rzędy: Tekst | Cena */
    grid-template-rows: auto auto;

    gap: 6px 16px; /* 6px pionowo, 16px poziomo */
    align-items: center;

    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
    min-height: 84px;
    position: relative;
  }

  /* 3. LEWA STRONA: IKONA (Zajmuje całą wysokość) */
  .addon-top {
    grid-column: 1;
    grid-row: 1 / -1; /* Rozciągnij od 1 do ostatniego rzędu */

    position: relative;
    width: 48px;
    height: 48px;
    margin: 0;
    align-self: center; /* Wyśrodkowanie w pionie */
  }

  .addon-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-muted);
  }

  /* Badge "i" - naprawiony */
  .addon-top .info-trigger-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0b0d10;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
  }

  /* 4. ŚRODEK GÓRA: TYTUŁ I OPIS */
  .addon-body {
    grid-column: 2;
    grid-row: 1; /* Pierwszy rząd */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    min-width: 0;
    margin-bottom: 2px;
  }

  .addon-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 2px;
    /* Bezpieczny tekst */
    white-space: normal;
    word-break: break-word;
  }

  .addon-desc {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* 5. FOOTER MAGIC - ROZBIJAMY GO */
  .addon-footer {
    display: contents; /* To sprawia, że Cena i Status stają się dziećmi Grida! */
  }

  /* CENA - LĄDUJE POD TEKSTEM (Jako nowoczesny tag) */
  .addon-price {
    grid-column: 2; /* Ta sama kolumna co tekst */
    grid-row: 2; /* Drugi rząd */

    justify-self: start; /* Wyrównaj do lewej */

    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0, 224, 216, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    margin-top: 2px;
    border: 1px solid rgba(0, 224, 216, 0.2);
  }

  /* 6. CHECKBOX - PRAWA STRONA (Zajmuje całą wysokość) */
  .addon-status {
    grid-column: 3;
    grid-row: 1 / -1; /* Rozciągnij na całą wysokość karty */
    align-self: center; /* Wyśrodkuj pionowo */

    font-size: 1.4rem;
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  /* --- STYLE AKTYWNE --- */
  .addon-checkbox:checked + .addon-visual {
    background: rgba(0, 224, 216, 0.05);
    border-color: var(--primary);
  }
  .addon-checkbox:checked + .addon-visual .addon-icon {
    border-color: var(--primary);
    color: #fff;
    background: rgba(0, 224, 216, 0.15);
  }
  .addon-checkbox:checked + .addon-visual .info-trigger-btn {
    background: var(--primary);
    color: #000;
  }
  /* Podświetlenie ceny gdy aktywne */
  .addon-checkbox:checked + .addon-visual .addon-price {
    background: var(--primary);
    color: #000;
  }
}

/* ======================================================= */
/* === NAPRAWIONY PRZYCISK INFO (BEZPIECZNY DLA LABEL) === */
/* ======================================================= */

.info-trigger-btn {
  /* Nadpisujemy stare style .software-info */
  display: flex !important;
  align-items: center;
  justify-content: center;

  /* Wygląd przycisku */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: help;

  /* Wymiary stałe */
  width: 28px;
  height: 28px;
  border-radius: 50%;

  /* Pozycjonowanie */
  position: relative;
  z-index: 20; /* Musi być wyżej niż reszta */
  margin-left: auto;

  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: 0.85rem;
}

/* Stan Hover */
.info-trigger-btn:hover {
  background: rgba(0, 224, 216, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0, 224, 216, 0.3);
}

/* Obsługa zaznaczonej karty (żeby przycisk pasował) */
.addon-checkbox:checked + .addon-visual .info-trigger-btn {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.addon-checkbox:checked + .addon-visual .info-trigger-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
}

/* Zwiększenie pola dotyku dla palca (niewidzialne) */
.info-trigger-btn::before {
  content: '';
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: -10px;
  right: -10px;
  cursor: help;
}

/* ================================================================== */
/* ===  SEKCJA KARTY (MASTERPIECE CARD) - FINAL MOBILE FIX        === */
/* ================================================================== */

.masterpiece-section {
  padding: 4rem 0 6rem;
  background-color: var(--bg-darker);
  overflow: hidden;
  position: relative;
}

/* Tło siatki */
.masterpiece-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(
    circle at center,
    black 40%,
    transparent 90%
  );
  z-index: 0;
  pointer-events: none;
}

/* 1. GRID (SIATKA) - ZABEZPIECZENIE PRZED WĄSKIMI EKRANAMI */
.masterpiece-grid {
  display: grid;
  /* Zmieniono minmax na 260px - to pozwala wyświetlić kartę poprawnie nawet na małych iPhone'ach */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 2rem 1rem; /* Margines boczny, żeby karty nie dotykały krawędzi ekranu */
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- KARTA (KONTENER) --- */
.masterpiece-card {
  position: relative;
  border-radius: 20px;
  background: #050607;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);

  /* FIX: Domyślnie na PC sztywne proporcje, na mobile zmieniamy to niżej */
  aspect-ratio: 4/5;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;

  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease,
    border-color 0.5s ease;
}

/* ================================================== */
/* ===== MASTERPIECE GALLERY: CINEMATIC ENTRANCE  === */
/* ================================================== */

/* 1. DEFINICJA RUCHU (Sprężysta, "droga" fizyka) */
@keyframes galleryCardEntrance {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.95); /* Startują niżej i lekko zmniejszone */
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 2. STAN POCZĄTKOWY KARTY */
.masterpiece-card {
  opacity: 0; /* Domyślnie ukryta */
  transform: translateY(60px);
  will-change: transform, opacity; /* Optymalizacja GPU */

  /* Resetujemy wszelkie inne transition, żeby nie kolidowały z animacją */
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease !important;
}

/* 3. MOMENT WEJŚCIA (Gdy JS doda .is-visible) */
.masterpiece-card.is-visible {
  animation: galleryCardEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* 4. OPÓŹNIENIA (EFEKT KASKADY) */
/* Dzięki temu karty wjeżdżają jedna po drugiej, a nie wszystkie naraz */
.masterpiece-card.is-visible:nth-child(1) {
  animation-delay: 0.1s;
}
.masterpiece-card.is-visible:nth-child(2) {
  animation-delay: 0.25s; /* Dłuższe opóźnienie dla drugiej */
}
.masterpiece-card.is-visible:nth-child(3) {
  animation-delay: 0.4s; /* Jeszcze dłuższe dla trzeciej */
}

/* 5. EFEKT "ZOOM OUT" DLA ZDJĘCIA W ŚRODKU (DODATKOWY SMACZEK) */
/* Zdjęcie w środku będzie się delikatnie oddalać podczas wchodzenia karty */
.masterpiece-card .card-media img {
  transform: scale(1.15); /* Startuje powiększone */
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.masterpiece-card.is-visible .card-media img {
  transform: scale(1); /* Wraca do normy */
}

/* Hover Effect (nadpisujemy, żeby działał po wejściu) */
.masterpiece-card:hover .card-media img {
  transform: scale(1.05) !important;
  transition: transform 0.5s ease;
}

/* ZDJĘCIE */
.card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

/* OVERLAY - CIENIOWANIE POD TEKSTEM */
.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    /* Czerń na dole pod tekstem */ rgba(0, 0, 0, 0.6) 40%,
    /* Półcień w środku */ transparent 100%
  );
  z-index: 1;
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

/* BADGE (PREMIUM) */
.badge-tier {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  font-size: 0.7rem;
  padding: 0.4em 0.8em;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.tier-high {
  background: rgba(0, 224, 216, 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.tier-mid {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- HUD (TREŚĆ) - SKALOWANIE TEKSTU --- */
.card-hud {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 1.5rem;

  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* TYTUŁ */
.hud-header h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.1;

  /* CLAMP: Tekst zmniejsza się automatycznie, żeby nie wychodził poza linię */
  font-size: clamp(1.3rem, 5vw, 1.6rem);
}

/* CENA */
.hud-price {
  display: block;
  color: var(--primary);
  font-weight: 700;
  font-family: monospace;
  margin-top: 0.2rem;
  font-size: clamp(1rem, 4vw, 1.2rem);
  text-shadow: 0 0 10px rgba(0, 224, 216, 0.3);
}

/* PIGUŁKI SPECYFIKACJI */
.hud-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.spec-pill {
  font-size: 0.75rem;
  color: #ccc;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap; /* Nie łam tekstu w pigułce */
}

/* Ikony w pigułkach */
.spec-icon-gpu::before {
  content: 'GPU';
  font-weight: 800;
  font-size: 0.65em;
  color: var(--primary);
}
.spec-icon-cpu::before {
  content: 'CPU';
  font-weight: 800;
  font-size: 0.65em;
  color: var(--primary);
}

/* PRZYCISK */
/* --- PRZYCISK: ULTRA RESPONSIVE --- */
.btn-explore {
  width: 100%;

  /* 1. Responsywny Padding: 
     Na małym telefonie: 0.75rem (smukły)
     Na dużym monitorze: 1rem (wygodny) */
  padding: clamp(0.75rem, 2vw, 1rem) 1rem;

  /* 2. Responsywna Typografia: 
     Nigdy mniejsza niż 0.7rem, nigdy większa niż 0.9rem */
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(0.7rem, 2.5vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;

  /* Zapobiega łamaniu tekstu w dwóch liniach na wąskich ekranach */
  white-space: nowrap;

  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Responsywny odstęp ikony od tekstu */
  gap: clamp(8px, 1.5vw, 12px);

  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  margin-top: auto; /* Dopycha przycisk do dołu kontenera, jeśli jest miejsce */
  backdrop-filter: blur(4px);
}

.btn-explore svg {
  /* Ikona też się lekko skaluje */
  width: clamp(16px, 3vw, 18px);
  height: clamp(16px, 3vw, 18px);
  transition: transform 0.3s ease;
  flex-shrink: 0; /* Zapobiega zgniataniu ikony */
}

/* Hover: Neonowy Turkus */
.btn-explore:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #050607;
  box-shadow: 0 0 25px rgba(0, 224, 216, 0.25);
  transform: translateY(-2px);
}

.btn-explore:hover svg {
  transform: translateX(4px);
}

/* Fix dla bardzo małych ekranów (poniżej 360px - np. Galaxy Fold złożony) */
@media (max-width: 360px) {
  .btn-explore {
    width: 100%;
    padding: 0.7rem 0.5rem; /* Minimalny padding boczny */
    font-size: 0.65rem; /* Mikro font */
  }
}

/* ========================================================= */
/* ===  INTERAKCJE PC (HOVER - Działa tylko z myszką)    === */
/* ========================================================= */
@media (hover: hover) and (pointer: fine) {
  /* Domyślnie ukrywamy przycisk na PC */
  .btn-explore {
    height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    transform: translateY(10px);
  }

  .card-hud {
    transform: translateY(15px); /* Lekko w dół */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }

  /* HOVER */
  .masterpiece-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -10px rgba(0, 224, 216, 0.15);
    border-color: rgba(0, 224, 216, 0.3);
  }

  .masterpiece-card:hover .card-media img {
    transform: scale(1.06);
  }

  .masterpiece-card:hover .card-hud {
    transform: translateY(0);
  }

  /* Pokaż przycisk */
  .masterpiece-card:hover .btn-explore {
    height: auto;
    opacity: 1;
    padding: 0.9rem;
    margin-top: 0.5rem;
    transform: translateY(0);
  }

  .btn-explore:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
  }
}

/* ========================================================= */
/* ===  INTERAKCJE MOBILE (DOTYK - NAPRAWA PRZYCINANIA)  === */
/* ========================================================= */
@media (max-width: 1024px) {
  /* Dotyczy tabletów i telefonów */

  .masterpiece-card {
    /* KLUCZOWE: Wyłączamy sztywne proporcje! */
    aspect-ratio: auto !important;

    /* Ustalamy minimalną wysokość, żeby zdjęcie było widoczne */
    min-height: 420px;

    /* Pozwalamy karcie rosnąć, jeśli tekst jest długi */
    height: auto;
  }

  .card-media {
    /* Zdjęcie jest tłem, ale niech nie wychodzi poza granice */
    height: 100%;
  }

  .card-hud {
    /* Tekst zawsze na swoim miejscu, bez przesuwania */
    transform: none !important;
    padding: 1.2rem;

    /* Dodatkowy gradient w tle tekstu dla czytelności */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 20%, transparent);
  }

  .btn-explore {
    /* Przycisk zawsze widoczny na mobile */
    height: auto !important;
    opacity: 1 !important;
    transform: none !important;
    padding: 0.8rem !important;

    background: rgba(0, 224, 216, 0.1);
    border-color: var(--primary);
    color: var(--primary);
  }

  .btn-explore:active {
    background: var(--primary);
    color: #000;
  }
}

/* Fix dla bardzo małych ekranów (np. iPhone SE) */
@media (max-width: 380px) {
  .masterpiece-grid {
    grid-template-columns: 1fr; /* Jedna kolumna na całą szerokość */
  }
  .masterpiece-card {
    min-height: 380px; /* Nieco niższa karta */
  }
}

/* ================================================================== */
/* ===  SEKCJA 2: TECH-SPEC MODAL (FIX WYSOKOŚCI I UCINANIA)   === */
/* ================================================================== */

/* 1. WRAPPER & BACKDROP */
.tech-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.tech-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tech-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1;
}

/* 2. KARTA MODALA (DESKTOP) */
.tech-modal-card {
  position: relative;
  z-index: 2;
  width: 95%; /* Szerszy na małych ekranach */
  max-width: 1100px;

  /* FIX WYSOKOŚCI: 85vh zapobiega ucinaniu na laptopach */
  height: min(650px, 85vh);

  background: #121417;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 50px 100px -20px rgba(0, 0, 0, 0.8);

  display: grid;
  grid-template-columns: 40% 60%; /* Więcej miejsca na tekst */
  overflow: hidden;

  transform: scale(0.96) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-modal.active .tech-modal-card {
  transform: scale(1) translateY(0);
}

/* LEWA STRONA (Visual) */
.tech-modal-visual {
  position: relative;
  height: 100%;
  background: #000;
  overflow: hidden;
}
.tech-modal-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visual-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, #121417 100%);
  pointer-events: none;
}
.visual-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 5px 10px;
  background: var(--primary);
  color: #000;
  font-weight: 800;
  font-size: 0.7rem;
  border-radius: 4px;
  z-index: 2;
}

/* --- PRAWA STRONA (Content) - TUTAJ JEST GŁÓWNA NAPRAWA --- */
.tech-modal-content {
  display: flex;
  flex-direction: column; /* Układ pionowy */
  height: 100%; /* Wypełnij całą wysokość karty */
  min-height: 0; /* Kluczowy fix dla Flexboxa i scrollowania */
  position: relative;
  background: #121417;
}

/* HEADER (Sztywny) */
.modal-header {
  padding: 1.5rem 2rem 1rem; /* Mniejsze paddingi */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0; /* Nie zgniataj nagłówka */
}
.modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}
.modal-subtitle {
  color: #9ca3af;
  font-size: 0.85rem;
  margin-top: 4px;
}
.btn-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.btn-close:hover {
  background: rgba(255, 77, 79, 0.2);
  border-color: #ff4d4f;
  color: #ff4d4f;
}

/* BODY (Scrollowalny Środek) */
.modal-body-scroll {
  flex: 1; /* Zajmij całe dostępne miejsce */
  overflow-y: auto; /* Przewijaj tylko to */
  padding: 1.5rem 2rem;

  /* Scrollbar Styling */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
.modal-body-scroll::-webkit-scrollbar {
  width: 6px;
}
.modal-body-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

/* Grid Specyfikacji */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.spec-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 700;
}
.spec-value {
  font-size: 0.95rem;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
}
.modal-description p {
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.text-primary {
  color: var(--primary);
}

/* FOOTER (Sztywny na dole) */
.modal-footer {
  padding: 1rem 2rem;
  background: rgba(18, 20, 23, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0; /* Nie zgniataj stopki */
  z-index: 5;
}
.price-label {
  display: block;
  font-size: 0.65rem;
  color: #6b7280;
  text-transform: uppercase;
}
.price-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  font-family: monospace;
}
.btn-action {
  padding: 0.7rem 1.5rem;
  background: var(--primary);
  color: #000;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: 0.3s;
}
.btn-action:hover {
  background: #fff;
  box-shadow: 0 0 15px rgba(0, 224, 216, 0.4);
}

/* ================================================================== */
/* ===  SEKCJA 3: MOBILE FIXES (NADCHODZI POMOC DLA TELEFONU)  === */
/* ================================================================== */

@media (max-width: 900px) {
  .tech-modal {
    padding: 0;
    align-items: flex-end;
  }

  .tech-modal-card {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column; /* Zmiana Grid na Flex */
    transform: translateY(100%);
  }

  .tech-modal.active .tech-modal-card {
    transform: translateY(0);
  }

  /* ZDJĘCIE (GÓRA) */
  .tech-modal-visual {
    width: 100%;
    height: 180px; /* Jeszcze mniejsze zdjęcie na mobile, by oddać miejsce treści */
    min-height: 180px;
    flex-shrink: 0;
  }
  .visual-gradient {
    background: linear-gradient(to top, #121417 0%, transparent 100%);
  }
  .visual-badge {
    top: auto;
    bottom: 10px;
    left: 15px;
  }

  /* TREŚĆ (DÓŁ) */
  .tech-modal-content {
    flex: 1;
    overflow: hidden;
  }

  .modal-header {
    padding: 1rem 1.2rem;
    background: #121417;
  }
  .modal-title {
    font-size: 1.3rem;
  }

  .modal-body-scroll {
    padding: 1rem 1.2rem;
  }
  .spec-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .modal-footer {
    padding: 0.8rem 1.2rem;
    padding-bottom: calc(0.8rem + env(safe-area-inset-bottom));
  }
  .price-value {
    font-size: 1.2rem;
  }
  .btn-action {
    padding: 0.6rem 1rem;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  /* Fix dla telefonu w poziomie - ukrywamy zdjęcie */
  .tech-modal-visual {
    display: none;
  }
}

/* ================================================== */
/* === FIX FINALNY: PŁYNNE KARTY (BEZ ZNIKANIA)   === */
/* ================================================== */

/* 1. Definicja animacji wejścia */
@keyframes enterSmoothly {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. STAN POCZĄTKOWY - Tylko Opacity (Bezpieczne) */
.masterpiece-card.anim-fade-up {
  opacity: 0; /* Ukryte, ale renderowane przez przeglądarkę */
  transform: translateY(40px);

  /* KLUCZOWE: Wyłączamy 'transition', bo to ono powodowało mignięcie */
  transition: none !important;
}

/* 3. MOMENT STARTU (Gdy JS doda klasę .is-visible) */
.masterpiece-card.anim-fade-up.is-visible {
  /* Odpalamy animację klatkową zamiast transition */
  animation-name: enterSmoothly;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  /* 'forwards' sprawia, że po animacji karta zostaje widoczna (nie znika) */
  animation-fill-mode: forwards;
}

/* 4. OPÓŹNIENIA KASKADOWE */
.delay-100 {
  animation-delay: 0.15s;
}

.delay-200 {
  animation-delay: 0.3s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* ================================================================== */
/* ===== PROCESS SECTION: CLEAN TECH (FINAL FIX)                ===== */
/* ================================================================== */

.process-section {
  padding: 6rem 1.5rem;
  background-color: var(--bg-darker);
  position: relative;
  overflow: hidden;
}

/* Subtelny Grid w tle (dekoracja) */
.process-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle, black 40%, transparent 80%);
  z-index: 0;
  pointer-events: none;
}

/* Kontener siatki */
.steps-grid {
  display: grid;
  /* Desktop: 3 równe kolumny */
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

/* --- KARTA KROKU --- */
.step-card {
  background: #121417; /* Ciemne, solidne tło - klucz do czytelności */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;

  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Hover na Desktopie */
.step-card:hover {
  border-color: var(--primary); /* Neonowa ramka */
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

/* --- NAGŁÓWEK KARTY (Numer + Ikona) --- */
.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.2rem;
}

.step-number {
  font-family: var(--font-family-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1); /* Subtelny numer */
  line-height: 1;
  transition: color 0.3s;
}

.step-card:hover .step-number {
  color: var(--primary); /* Podświetlenie numeru po najechaniu */
}

.step-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(0, 224, 216, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.step-icon-box svg {
  width: 24px;
  height: 24px;
}

/* --- TREŚĆ KARTY --- */
.step-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
}

.step-body p {
  font-size: 0.95rem;
  color: #94a3b8; /* Jasnoszary, wysoki kontrast */
  line-height: 1.6;
  margin: 0;
}

/* ============================================== */
/* ===== MOBILE FIX (TELEFON)               ===== */
/* ============================================== */

@media (max-width: 900px) {
  .steps-grid {
    /* Zmieniamy na 1 kolumnę */
    grid-template-columns: 1fr;
    gap: 1.5rem; /* Odstęp między kartami */
  }

  .step-card {
    padding: 1.5rem; /* Nieco mniejszy padding */

    /* Układ poziomy wewnątrz karty na mobile wygląda lepiej */
    flex-direction: row;
    align-items: flex-start;
    gap: 1.2rem;
  }

  /* Przebudowa nagłówka na mobile */
  .step-header {
    flex-direction: column;
    align-items: center;
    border-bottom: none;
    padding-bottom: 0;
    margin-right: 0.5rem;
    gap: 0.5rem;
  }

  .step-number {
    font-size: 1rem;
    color: var(--primary); /* Na mobile od razu kolorowy */
    font-weight: 700;
    order: 2; /* Numer pod ikoną */
  }

  .step-icon-box {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05); /* Spokojniejsze tło */
    border: 1px solid rgba(255, 255, 255, 0.1);
    order: 1; /* Ikona na górze */
  }

  /* Treść obok ikony */
  .step-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .step-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }

  .step-body p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* Fix dla bardzo małych ekranów */
@media (max-width: 360px) {
  .step-card {
    flex-direction: column;
  }
  .step-header {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    order: -1;
  }
}

/* ================================================================== */
/* ===== COST BREAKDOWN: RECEIPT STYLE (PRO DESIGN)             ===== */
/* ================================================================== */

.summary-breakdown-content {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 0 1rem; /* Padding pionowy zerujemy dla animacji */
  margin-top: 0.5rem;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Pojedynczy wiersz kosztów */
.bd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* Ostatni element bez linii */
.bd-row:last-child {
  border-bottom: none;
}

/* Nazwa usługi (lewa strona) */
.bd-row span:first-child {
  font-weight: 500;
}

/* Cena (prawa strona) */
.bd-row span:last-child {
  font-weight: 600;
  color: #fff;
  font-family: 'Inter', sans-serif; /* Monospace wyglądałby zbyt technicznie */
}

/* Kolor dla rabatów (Zielony/Turkusowy) */
.bd-row.discount span:last-child,
.bd-row .text-primary {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 224, 216, 0.2);
}

/* Przycisk rozwijania */
.summary-toggle-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 1rem auto 0;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  font-weight: 600;
  opacity: 0.8;
}

.summary-toggle-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.summary-toggle-btn i {
  transition: transform 0.3s ease;
}

/* Klasa otwierająca (dodawana przez JS) */
.summary-breakdown-content.open {
  opacity: 1;
  margin-top: 0.5rem;
  border-color: rgba(255, 255, 255, 0.05);
  /* max-height jest ustawiany inline przez JS */
}

/* ================================================================== */
/* ===  MOBILE GALLERY (HORIZONTAL SWIPE / SCROLL SNAP - REFINED) === */
/* ================================================================== */

@media (max-width: 900px) {
  /* 1. KONTENER (Płynny układ poziomy) */
  .masterpiece-grid {
    display: flex !important;
    flex-wrap: nowrap;

    overflow-x: auto;
    /* Zmieniamy na hidden, aby uniknąć glitchy na iOS. 
       Cienie rekompensujemy większym paddingiem poniżej. */
    overflow-y: hidden;

    /* Mechanika Scroll Snappingu */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Płynne przewijanie (momentum) na iOS */

    gap: 1.2rem;

    /* Padding: góra(2rem), prawo(0), dół(3rem), lewo(1.5rem). 
       Duży dolny padding zapobiega ucinaniu cieni kart. */
    padding: 2rem 0 3rem 1.5rem !important;

    /* Zatrzymywanie przewijania równo z lewym paddingiem */
    scroll-padding-left: 1.5rem;

    /* Ukrycie paska przewijania (Premium Look) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */

    /* Sprawia, że wszystkie karty w rzędzie będą równej wysokości */
    align-items: stretch;
  }

  .masterpiece-grid::-webkit-scrollbar {
    display: none; /* Safari / Chrome */
  }

  /* FIX: Gwarantuje, że za ostatnią kartą będzie odstęp (Safari ma z tym problem) */
  .masterpiece-grid::after {
    content: '';
    display: block;
    flex: 0 0 1px;
    padding-right: 1.5rem;
  }

  /* 2. POJEDYNCZA KARTA */
  .masterpiece-card {
    /* 85% szerokości pozwala zawsze widzieć "kawałek" kolejnej maszyny */
    flex: 0 0 85%;
    max-width: 350px; /* Delikatne zabezpieczenie dla tabletów */
    height: auto; /* Karta dopasuje się do reszty dzięki align-items: stretch */
    min-height: 460px;

    /* Przyciąganie do lewej krawędzi ekranu */
    scroll-snap-align: start;

    /* Wymusza zatrzymanie na każdej karcie (zapobiega przeskoczeniu kilku naraz) */
    scroll-snap-stop: always;

    margin: 0 !important;

    /* Ochrona przed skakaniem przy animacjach wejścia (Hardware Acceleration) */
    transform: translateZ(0);
    will-change: transform;
  }
}

/* 3. FIX DLA BARDZO WĄSKICH EKRANÓW (np. iPhone SE) */
@media (max-width: 380px) {
  .masterpiece-grid {
    padding-left: 1rem !important;
    scroll-padding-left: 1rem;
  }
  .masterpiece-grid::after {
    padding-right: 1rem;
  }
  .masterpiece-card {
    flex: 0 0 90%; /* Dajemy karcie odrobinę więcej miejsca na małym ekranie */
    min-height: 420px;
  }
}
