/* ============================= */
/* Reset i podstawowe            */
/* ============================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
  color: #fff;
  min-height: 100vh;
}

/* ============================= */
/* Sticky header with shadow     */
/* ============================= */
header {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 0.5em 1em;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}
header.scrolled {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ============================= */
/* Menu container                */
/* ============================= */
.menu-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================= */
/* Logo + brand-name             */
/* ============================= */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  height: 36px !important;
  width: auto;
  display: block;
  max-width: 100%;
}
.brand-name {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 1.2em;
  line-height: 1;
}
.brand-name .core { color: #000; font-weight: 700; }
.brand-name .nexis { color: #00BCD4; font-weight: 700; }
.brand-name .tech { color: #333; font-weight: 500; font-size: 0.9em; margin-left: 6px; }

/* ============================= */
/* Navigation – desktop          */
/* ============================= */
nav.nav-menu {
  display: flex;
  gap: 1em;
  align-items: center; /* Ta linia wycentruje wszystko w pionie */
}
nav.nav-menu a {
  color: #111;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
nav.nav-menu a:hover {
  color: #00BCD4;
}

/* ============================= */
/* Hamburger icon animation      */
/* ============================= */
.menu-toggle {
  display: none;
  position: relative;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background: #111;
  transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}
.menu-toggle span { top: 50%; transform: translateY(-50%); }
.menu-toggle span::before { top: -8px; }
.menu-toggle span::after  { top: 8px; }
.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.open span::after  { top: 0; transform: rotate(-45deg); }

/* ============================= */
/* Sekcja hero – desktop         */
/* ============================= */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translateX(-50%) translateY(0);
  transition: transform 0.1s linear;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 400px;
  text-align: center;
  background: rgba(0,0,0,0.45);
  padding: 40px;
  border-radius: 16px;
}

/* Sekcja hero – mobile fallback */
.hero-overlay-mobile {
  display: none;
  position: relative;
  z-index: 2;
  max-width: 400px;
  margin: 20px auto;
  text-align: center;
  background: rgba(0,0,0,0.45);
  padding: 40px;
  border-radius: 16px;
}

/* ============================= */
/* CTA i tekst hero              */
/* ============================= */
.slogan {
  font-size: 2em;
  font-weight: 400;
  color: #fff;
  margin-bottom: 20px;
}
.cta {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1.05em;
  background: #00BCD4;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,188,212,0.4);
  transition: transform 0.2s;
}
.cta:hover {
  transform: translateY(-2px);
}

/* ============================= */
/* Sekcja usług                  */
/* ============================= */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding: 80px 10vw;
  background: linear-gradient(180deg, #2D2D2D 0%, #404040 100%);
  position: relative;
}
.service {
  background: #2D2D2D;
  padding: 35px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #404040;
}
.service:hover {
  background: #404040;
  border-color: #00BCD4;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,188,212,0.2);
}

/* ============================= */
/* Stopka (Footer)               */
/* ============================= */
footer {
  background: #0d0d0d;
  color: #aaa;
  padding: 2em 1em;
  border-top: 1px solid #404040;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2em;
}

/* Definitywna poprawka dla logo w stopce */
.footer-logo img {
  height: 70px !important; /* Sztywna wysokość 45px na wszystkich ekranach */
  width: auto !important;   /* Szerokość dopasuje się, by zachować proporcje */
  display: block;
}

.footer-content {
  flex-grow: 1;
  padding-left: 2em;
  border-left: 1px solid #444;
}

.footer-content p {
  margin: 0.2em 0;
  font-size: 0.9em;
}

.footer-socials {
  display: flex;
  gap: 1.5em;
}

.footer-socials a {
  color: #aaa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #00BCD4;
}

/* Poprawki dla widoku mobilnego */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-logo {
    margin-bottom: 20px; /* Dodajemy odstęp pod logo na mobile */
  }

  .footer-content {
    border-left: none;
    padding-left: 0;
    padding-top: 1.5em;
    border-top: 1px solid #444;
  }
}

/* ============================= */
/* Utility classes               */
/* ============================= */
.desktop-only { display: block !important; }
.mobile-only  { display: none !important; }

/* ============================= */
/* Responsywność ze skalowaniem menu */
/* ============================= */
@media (max-width: 768px) {
  /* Hamburger visible */
  .menu-toggle {
    display: block;
  }

  /* Animated dropdown menu */
  nav.nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    overflow: hidden;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
    z-index: 1001;
  }
  nav.nav-menu.active {
    transform: scaleY(1);
  }
  nav.nav-menu a {
    padding: 0.75em 0;
    font-size: 1.1em;
  }

  /* Overlay switch */
  .hero-overlay { display: none !important; }
  .hero-overlay-mobile { display: block !important; }

  /* Hero on mobile: natural proportions */
  .hero {
    height: auto;
  }
  .hero-img {
    position: static;
    width: 100%;
    height: auto;
    transform: none;
    object-fit: contain;
  }
}
/* ============================= */
/* Większy header, logo i brand  */
/* Wyłącznie na desktop (>768px) */
/* ============================= */
@media (min-width: 769px) {
  header {
    padding: 1em 2em;            /* więcej przestrzeni wokół menu */
  }
  .logo {
    gap: 16px;                   /* większy odstęp między logo a napisem */
  }
  .logo img {
    height: 80px !important;     /* większe logo */
  }
  .brand-name {
    font-size: 1.4em;            /* większy tekst nazwy */
  }
}
/* ============================= */
/* Wyróżniony przycisk logowania */
/* ============================= */
.login-button {
  background-color: #00BCD4;
  color: #fff !important; /* Używamy important, by nadpisać domyślny kolor linku w menu */
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-button:hover {
  background-color: #009688;
  color: #fff !important;
  transform: translateY(-2px);
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9em;
  color: #ccc;
}
.form-footer a {
  color: #00BCD4;
  font-weight: 500;
  text-decoration: none;
}
.form-footer a:hover {
  text-decoration: underline;
}
/* ============================= */
/* Baner Cookies                 */
/* ============================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #1a1a1a;
  color: #fff;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  border-top: 1px solid #444;
  transform: translateY(100%);
  transition: transform 0.5s ease-in-out;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner p {
  margin: 0;
  flex-grow: 1;
  font-size: 0.9em; /* Lekko mniejszy tekst */
}

.cookie-banner a {
  color: #00BCD4;
  text-decoration: underline;
  margin-left: 5px;
}

.cookie-banner .cta {
  margin-left: 20px;
  padding: 10px 25px;
  flex-shrink: 0;
}

/* Ulepszona responsywność dla banera */
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 15px; /* Mniejszy padding na mobile */
  }
  .cookie-banner .cta {
    width: 100%;
    margin-left: 0;
  }
}
/* Dodatkowe style dla linków w stopce */
.footer-links {
  display: flex;
  gap: 1.5em;
}

/* ============================= */
/* Rewolucyjna sekcja pakietów */
/* ============================= */

.packages-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
  position: relative;
  overflow: hidden;
}

.packages-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00BCD4, #009688, #00BCD4);
  background-size: 200% 100%;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.packages-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.packages-header h2 {
  font-size: 2.5em;
  color: #00BCD4;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,188,212,0.3);
}

.packages-header p {
  font-size: 1.2em;
  color: #CCCCCC;
  line-height: 1.6;
  margin: 0;
}

/* Kategorie pakietów */
.package-category {
  margin-bottom: 80px;
}

.category-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background: linear-gradient(135deg, #2D2D2D 0%, #404040 100%);
  border-radius: 15px;
  border: 1px solid #404040;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.category-header h3 {
  font-size: 2em;
  color: #00BCD4;
  margin-bottom: 15px;
  font-weight: 700;
}

.category-header p {
  font-size: 1.1em;
  color: #CCCCCC;
  margin: 0;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.package-card {
  background: linear-gradient(135deg, #2D2D2D 0%, #404040 100%);
  border-radius: 20px;
  padding: 40px 30px;
  border: 2px solid #404040;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.package-card:hover {
  transform: translateY(-10px);
  border-color: #00BCD4;
  box-shadow: 0 20px 40px rgba(0,188,212,0.2);
}

.package-card.featured {
  border-color: #00BCD4;
  box-shadow: 0 15px 35px rgba(0,188,212,0.3);
  transform: scale(1.05);
}

.package-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

/* Style dla pakietów biznesowych */
.package-card.business {
  border-color: #FF9800;
  position: relative;
}

.package-card.business::before {
  content: '🏢';
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5em;
  opacity: 0.7;
}

.package-card.business:hover {
  border-color: #FF9800;
  box-shadow: 0 20px 40px rgba(255,152,0,0.2);
}

.package-card.business.featured {
  border-color: #FF9800;
  box-shadow: 0 15px 35px rgba(255,152,0,0.3);
}

.package-card.business.featured:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 20px 40px rgba(255,152,0,0.4);
}

.package-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  color: #fff;
  padding: 8px 25px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(255,152,0,0.4);
}

.package-header {
  text-align: center;
  margin-bottom: 30px;
}

.package-header h3 {
  font-size: 1.8em;
  color: #fff;
  margin-bottom: 15px;
  font-weight: 700;
}

.package-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
}

.package-price .price {
  font-size: 2.5em;
  color: #00BCD4;
  font-weight: 700;
}

.package-price .period {
  font-size: 1em;
  color: #CCCCCC;
}

.package-features {
  margin-bottom: 30px;
}

.package-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.package-features li {
  padding: 12px 0;
  color: #CCCCCC;
  font-size: 1em;
  line-height: 1.5;
  border-bottom: 1px solid #404040;
}

.package-features li:last-child {
  border-bottom: none;
}

.package-features strong {
  color: #00BCD4;
}

.package-cta {
  text-align: center;
}

.package-btn {
  display: inline-block;
  background: linear-gradient(135deg, #00BCD4 0%, #009688 100%);
  color: #fff;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,188,212,0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.package-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,188,212,0.4);
  background: linear-gradient(135deg, #0097A7 0%, #00695C 100%);
}

.packages-benefits {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.packages-benefits h3 {
  font-size: 2em;
  color: #00BCD4;
  margin-bottom: 40px;
  font-weight: 700;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.benefit {
  background: linear-gradient(135deg, #2D2D2D 0%, #404040 100%);
  padding: 40px 30px;
  border-radius: 15px;
  border: 1px solid #404040;
  transition: all 0.3s ease;
}

.benefit:hover {
  transform: translateY(-5px);
  border-color: #00BCD4;
  box-shadow: 0 10px 25px rgba(0,188,212,0.2);
}

.benefit-icon {
  font-size: 3em;
  margin-bottom: 20px;
}

.benefit h4 {
  font-size: 1.3em;
  color: #00BCD4;
  margin-bottom: 15px;
  font-weight: 600;
}

.benefit p {
  color: #CCCCCC;
  line-height: 1.6;
  margin: 0;
}

/* Responsywność dla pakietów */
@media (max-width: 768px) {
  .packages-section {
    padding: 60px 15px;
  }
  
  .packages-header h2 {
    font-size: 2em;
  }
  
  .packages-header p {
    font-size: 1.1em;
  }
  
  .packages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .package-card {
    padding: 30px 20px;
  }
  
  .package-card.featured {
    transform: none;
  }
  
  .package-card.featured:hover {
    transform: translateY(-10px);
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .benefit {
    padding: 30px 20px;
  }
}

/* Dodatkowe style dla lepszego wyglądu */
.services h2 {
  text-align: center;
  font-size: 2.5em;
  color: #00BCD4;
  margin-bottom: 50px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,188,212,0.3);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service {
  background: linear-gradient(135deg, #2D2D2D 0%, #404040 100%);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid #404040;
  transition: all 0.3s ease;
  text-align: center;
}

.service:hover {
  transform: translateY(-5px);
  border-color: #00BCD4;
  box-shadow: 0 10px 25px rgba(0,188,212,0.2);
}

.service h3 {
  color: #00BCD4;
  margin-bottom: 15px;
  font-size: 1.3em;
  font-weight: 600;
  font-size: 1.3em;
}

.service p {
  color: #CCCCCC;
  line-height: 1.6;
}

/* Dekoracyjny element dla sekcji usług */
.services::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #00BCD4, #009688);
  border-radius: 2px;
  z-index: 1;
}


.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #00BCD4;
}

/* Poprawka dla widoku mobilnego */
@media (max-width: 768px) {
  .footer-links {
    margin-top: 20px;
    flex-direction: column;
    gap: 10px;
  }
}

.privacy-check { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  font-size: 0.9em; 
  color: #ccc; 
}