/* --- Zmienne kolorystyczne --- */
/* --- Import nowoczesnego fontu --- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap");

:root {
  /* Kolory główne */
  --primary-navy: #0a192f;
  --accent-blue: #004e92;
  --light-blue: #00b4db;
  --white: #ffffff;
  --light-gray: #f8fafc;
  --medium-gray: #e2e8f0;
  --dark-text: #1e293b;
  --glass-bg: rgba(255, 255, 255, 0.85);

  /* Gradienty */
  --grad-main: linear-gradient(
    135deg,
    var(--primary-navy) 0%,
    var(--accent-blue) 100%
  );
  --grad-action: linear-gradient(
    135deg,
    var(--accent-blue) 0%,
    var(--light-blue) 100%
  );
  --grad-soft: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);

  /* Cienie i przejścia */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Globalne ustawienia --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Zabezpieczenie wszystkich zdjęć przed wylewaniem się */
img {
  max-width: 100%;
  height: auto;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  color: var(--dark-text);
  background-color: var(--white);
  overflow-x: hidden;
}

/* ========================================= */
/* --- SYSTEMY BAZOWE I TYPOGRAFIA --- */
/* ========================================= */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap");

:root {
  /* Kolory główne */
  --primary-navy: #0a192f;
  --accent-blue: #004e92;
  --light-blue: #00b4db;
  --white: #ffffff;
  --light-gray: #f8fafc;
  --medium-gray: #e2e8f0;
  --dark-text: #1e293b;

  /* Gradienty */
  --grad-main: linear-gradient(
    135deg,
    var(--primary-navy) 0%,
    var(--accent-blue) 100%
  );
  --grad-action: linear-gradient(
    135deg,
    var(--accent-blue) 0%,
    var(--light-blue) 100%
  );

  /* Parametry */
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  color: var(--dark-text);
  background-color: var(--white);
  overflow-x: hidden;
}

section {
  padding: 100px 8%;
}

/* --- Nowoczesny Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--light-gray);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-blue);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-navy);
}

/* ========================================= */
/* --- ELEMENTY INTERFEJSU (PRZYCISKI) --- */
/* ========================================= */

.btn {
  padding: 18px 40px;
  background: var(--grad-action);
  color: var(--white);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 20px rgba(0, 78, 146, 0.2);
  transition: var(--transition);
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 78, 146, 0.3);
}

.btn-text {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn-text:hover {
  color: var(--light-blue);
}

/* ========================================= */
/* --- SEKCJA PRODUKTOWA (GRID) --- */
/* ========================================= */

.title-center {
  text-align: center;
  margin-bottom: 60px;
}

.title-center h2 {
  /* Zmniejszamy bazowy rozmiar dla najmniejszych ekranów (z 2rem na 1.6rem) */
  font-size: clamp(1.6rem, 6vw, 2.8rem);
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.2;

  /* KLUCZOWE: Wymusza przełamanie długiego słowa, jeśli nie mieści się na ekranie */
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto; /* Opcjonalnie: dodaje myślnik przy łamaniu, jeśli przeglądarka to obsługuje */
}

.product-grid {
  display: grid;
  /* Zmieniamy 320px na 280px, żeby zmieściły się na najmniejszych smartfonach */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--medium-gray);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card.highlight {
  border-color: var(--light-blue);
  box-shadow: 0 15px 40px rgba(0, 78, 146, 0.05);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.tag-premium {
  align-self: flex-start;
  padding: 6px 14px;
  background: var(--grad-action);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 6px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.specs-list {
  list-style: none;
  margin: 25px 0;
  flex-grow: 1; /* Pcha przycisk na dół karty */
}

.specs-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
}

.specs-list li span {
  font-weight: 700;
  color: var(--primary-navy);
}

/* ========================================= */
/* --- SEKCJA WARUM UNS (BAUHAUS STYLE) --- */
/* ========================================= */

.why-us-section {
  background-color: var(--light-gray);
  border-top: 1px solid var(--medium-gray);
}

.why-us-container {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.features-column {
  flex: 1.2;
  min-width: 280px;
}
.brand-column {
  flex: 0.8;
  min-width: 280px;
}
.technical-subtitle {
  display: block;
  color: var(--accent-blue);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.section-title {
  color: var(--primary-navy);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 40px;
}

.technical-card {
  display: flex;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tech-icon {
  min-width: 45px;
  color: var(--accent-blue);
}

.tech-text h4 {
  color: var(--primary-navy);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

/* --- BLOK SPECYFIKACJI (BRAND BLOCK) --- */
.brand-column {
  flex: 0.8;
  min-width: 320px;
}

.solid-spec-block {
  background-color: var(--primary-navy);
  padding: 60px 40px;
  border-radius: 12px;
  color: white;
  box-shadow: var(--shadow-lg);
}

.block-header {
  margin-bottom: 30px;
  border-bottom: 2px solid var(--accent-blue);
  padding-bottom: 20px;
}

.block-title {
  display: block;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
}

.block-subtitle {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 4px;
  color: var(--light-blue);
  margin-top: 10px;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 40px;
}

.data-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
}

.data-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--light-blue);
}

/* ========================================= */
/* --- RESPONSIVE ADJUSTMENTS --- */
/* ========================================= */

@media (max-width: 992px) {
  section {
    padding: 80px 5%;
  }
  .why-us-container {
    gap: 40px;
  }
  .data-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .title-center h2 {
    font-size: 2.2rem;
  }
}

/* ========================================= */
/* --- SEKCJA MOBILNOŚCI / MAPY --- */
/* ========================================= */

.map-column {
  flex: 0.8;
  min-width: 300px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.map-wrapper {
  margin-bottom: 20px;
  padding: 10px;
}

.brand-map {
  width: 100%;
  max-width: 380px;
  height: auto;
  /* Ten sam premium cień */
  filter: drop-shadow(0 20px 30px rgba(0, 78, 146, 0.15));
  transition: transform 0.3s ease;
}

/* Nowoczesny efekt hover w czystym CSS, bez JavaScript */
.brand-map:hover {
  transform: scale(1.02);
}

.map-caption {
  color: var(--primary-navy);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 25px;
  max-width: 300px; /* Dodatkowy oddech dla tekstu */
}

/* Specjalny układ przycisku w tej kolumnie */
.map-column .map-btn {
  width: 100%;
  max-width: 320px;
  text-align: center;
  padding: 16px 0;
  font-size: 1.1rem;
  /* Premium cień przycisku */
  box-shadow: 0 10px 20px rgba(0, 78, 146, 0.2);
}

/* ========================================= */
/* --- ANIMOWANA KOLUMNA TECHNOLOGICZNA --- */
/* ========================================= */

.animated-window-column {
  flex: 1; /* Pozwalamy jej urosnąć w poziomie */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* KARTA TECHNOLOGICZNA (Premium, Glassmorphism) */
.animated-tech-card {
  width: 100%;
  max-width: 480px; /* Nieco szersza niż poprzedni solid spec */
  background: var(--primary-navy);
  padding: 40px;
  border-radius: 24px;

  /* Efekt szklanego, nowoczesnego tła */
  background: linear-gradient(
    135deg,
    rgba(16, 24, 40, 1) 0%,
    rgba(10, 15, 25, 0.9) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.1),
    0 25px 50px rgba(0, 78, 146, 0.25);

  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden; /* Trzymamy wszystko wewnątrz */
}

/* GŁÓWNY KONTENER ANIMACJI */
.svg-animation-container {
  width: 100%;
  max-width: 220px;
  position: relative;
  margin: 30px 0;
}

/* SVG WIZERUNEK OKNA */
.window-profile-svg {
  width: 100%;
  height: auto;
  overflow: visible; /* Pozwalamy cieniom wyjść na zewnątrz */
}

/* --- DETALE TECHNICZNE SVG --- */
.profile-chamber {
  stroke: rgba(255, 255, 255, 0.1);
  fill: rgba(0, 78, 146, 0.1);
}

.profile-outline {
  stroke: rgba(0, 180, 219, 0.4); /* Kolor accent */
  stroke-width: 1.2;
}

.reinforcement {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
  fill: rgba(255, 255, 255, 0.05);
}

.seal {
  stroke: var(--dark-text); /* Ciemna guma */
  stroke-width: 1.5;
  stroke-linecap: round;
}

.glass-unit rect {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(255, 255, 255, 0.2);
}

/* BARIERA OCHRONNA */
.protection-barrier {
  fill: var(--grad-main); /* Przejrzysty gradient ochronny */
  stroke: var(--light-blue);
  stroke-width: 1;
}

/* ========================================= */
/* --- INFOGRAFICZNA KOLUMNA TECHNOLOGICZNA --- */
/* ========================================= */

.illustrated-window-column {
  flex: 1.2; /* Pozwalamy jej urosnąć jeszcze bardziej, żeby infografika była duża */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* KARTA TECHNOLOGICZNA (Premium, ale przyjazna) */
.infographic-tech-card {
  width: 100%;
  max-width: 520px;
  background: var(--primary-navy);
  padding: 40px;
  border-radius: 24px;

  background: linear-gradient(
    135deg,
    rgba(16, 24, 40, 1) 0%,
    rgba(10, 15, 25, 0.9) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.1),
    0 25px 50px rgba(0, 78, 146, 0.25);

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* GŁÓWNY KONTENER ANIMACJI */
.infographic-window-container {
  width: 100%;
  max-width: 300px;
  position: relative;
  margin: 30px 0;
  display: flex;
  justify-content: center;
}

/* SVG WIZERUNEK OKNA */
.infographic-window-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* BAZA OKNA (SUPER PROSTA) */
.window-frame-infographic {
  fill: #fff; /* Czysta biel premium */
  stroke: rgba(0, 78, 146, 0.2);
  stroke-width: 1.2;
}

.window-glass-infographic {
  fill: rgba(0, 180, 219, 0.05); /* Delikatnie niebieska szyba */
  stroke: rgba(0, 180, 219, 0.2);
  stroke-width: 1;
}

/* --- ANIMACJE CSS: SCENARIUSZE ATАКU I OBRONY --- */

/* 1. SCENARIUSZ A: CIEPŁO */

/* Zimne powietrze (mroźne fale) */
.cold-air {
  stroke: #a8d1e7; /* Kolor mroźny */
  stroke-width: 1.5;
  stroke-linecap: round;
  fill: none;
  opacity: 0;
}

/* Animacja mrozu */
.cold-air-flow {
  animation: coldAirFlow 3s ease-in-out infinite;
}

@keyframes coldAirFlow {
  0% {
    opacity: 0;
    transform: translateX(-20px) scaleX(0.5);
  }
  30% {
    opacity: 1;
    transform: translateX(0px) scaleX(1);
  }
  60% {
    opacity: 0;
    transform: translateX(20px) scaleX(0.5);
  }
  100% {
    opacity: 0;
    transform: translateX(-20px) scaleX(0.5);
  }
}

/* Opóźnienia dla płynności */
.delay-1 {
  animation-delay: 0.5s;
}
.delay-2 {
  animation-delay: 1s;
}

/* Ciepła aura w oknie */
.window-heat-pulse {
  fill: #ee8100; /* Ciepły pomarańcz */
  opacity: 0;
  filter: blur(10px);
}

/* Kiedy karta pulsuje ciepłem */
.infographic-tech-card:hover .window-heat-pulse {
  animation: heatPulse 3s ease-in-out infinite;
}

@keyframes heatPulse {
  0% {
    opacity: 0.1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.02);
  }
  100% {
    opacity: 0.1;
    transform: scale(1);
  }
}

/* 2. SCENARIUSZ B: CISZA */

/* Fale dźwiękowe */
.sound-wave {
  stroke: var(--dark-text); /* Ciemny hałas */
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  opacity: 0;
}

/* Animacja hałasu */
.sound-wave-impact {
  animation: soundWaveImpact 3s ease-in-out infinite;
  animation-delay: 0.2s;
}

@keyframes soundWaveImpact {
  0% {
    opacity: 0;
    transform: scaleX(0.5);
  }
  40% {
    opacity: 1;
    transform: scaleX(1.2);
  }
  70% {
    opacity: 0;
    transform: scaleX(0.8);
  }
  100% {
    opacity: 0;
    transform: scaleX(0.5);
  }
}

/* Wyciszona aura w oknie */
.window-silence-pulse {
  fill: rgba(255, 255, 255, 0.05); /* Prawie przezroczysta cisza */
  filter: blur(15px);
  opacity: 0;
}

.infographic-tech-card:hover .window-silence-pulse {
  animation: silencePulse 3s ease-in-out infinite;
}

@keyframes silencePulse {
  0%,
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
  50% {
    opacity: 0.3;
    transform: scaleX(1.01);
  }
}

/* 3. SCENARIUSZ C: BEZPIECZEŃSTWO */

/* Łom/Narzędzie włamywacza */
.burglar-tool {
  stroke: #777; /* Metaliczny szary */
  stroke-width: 2;
  fill: none;
  opacity: 0;
}

/* Animacja ataku na ramę */
.tool-impact {
  animation: toolImpact 4s ease-in-out infinite;
}

@keyframes toolImpact {
  0%,
  100% {
    opacity: 0;
    transform: translate(10px, 10px);
  }
  20% {
    opacity: 1;
    transform: translate(0px, 0px);
  }
  40% {
    opacity: 1;
    transform: translate(-2px, -2px);
  }
  60% {
    opacity: 1;
    transform: translate(0px, 0px);
  }
  80% {
    opacity: 0;
    transform: translate(10px, 10px);
  }
}

/* Kłódka */
.lock-icon {
  opacity: 0;
}

/* Kłódka wyskakuje w momencie ataku */
.lock-appear {
  animation: lockAppear 4s ease-in-out infinite;
}

@keyframes lockAppear {
  0%,
  10% {
    opacity: 0;
    transform: translateY(10px);
  }
  25% {
    opacity: 1;
    transform: translateY(0px);
  }
  75% {
    opacity: 1;
    transform: translateY(0px);
  }
  90%,
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* --- LISTA KORZYŚCI --- */
.infographic-benefits-list {
  width: 100%;
  list-style: none;
  padding: 20px 0 0;
  margin: 0;
}

.infographic-benefits-list li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.benefit-icon {
  font-size: 1.3rem;
  opacity: 0.9;
}

/* --- HERO VIDEO FRAME --- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px; /* Delikatny efekt głębi */
}

.video-frame-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  border-radius: 20px;
  padding: 10px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.hero-video-element {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Szklana poświata przechodząca nad wideo */
.video-glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Plakietka w rogu wideo */
.video-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(16, 24, 40, 0.8);
  backdrop-filter: blur(5px);
  color: white;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(0, 180, 219, 0.3);
  display: flex;
  align-items: center;
  gap: 1px;
  z-index: 3;
}

.badge-icon {
  font-size: 0.8rem;
  color: var(--light-blue);
  text-shadow: 0 0 10px rgba(0, 180, 219, 0.8);
  margin-right: 5px; /* Dodajemy odstęp od tekstu */
}

@keyframes pulse-dot {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

/* Responsywność */
@media (max-width: 768px) {
  .video-frame-container {
    max-width: 90%;
    margin-top: 30px;
  }
}

/* ========================================= */
/* --- BANER COOKIE (DSGVO COMPLIANT) --- */
/* ========================================= */
.cookie-banner {
  position: fixed;
  bottom: 30px;
  left: 30px;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 40px rgba(10, 25, 47, 0.15);
  border-radius: 20px;
  padding: 25px;
  z-index: 99999;

  /* Animacja wyjazdu z dołu */
  transform: translateY(150%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-banner h4 {
  color: var(--primary-navy);
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 800;
}

.cookie-banner p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.cookie-banner a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}

.cookie-banner a:hover {
  border-bottom-color: var(--accent-blue);
}

.cookie-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-btn-primary {
  width: 100%;
  padding: 12px;
  font-size: 0.9rem;
  text-align: center;
  border-radius: 10px;
}

.cookie-btn-secondary {
  width: 100%;
  padding: 10px;
  font-size: 0.85rem;
  text-align: center;
  border: 1.5px solid #ddd;
  color: #666;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.cookie-btn-secondary:hover {
  background: #f0f3f5;
  color: var(--primary-navy);
  border-color: #bbb;
}

/* Na telefonach baner na całą szerokość ekranu na dole */
@media (max-width: 500px) {
  .cookie-banner {
    bottom: 15px;
    left: 15px;
    right: 15px;
    max-width: none;
    padding: 20px;
  }
}
