/* ==========================================================================
   1. RESET I PODSTAWOWE USTAWIENIA (FIX DLA OPERY / CHROME)
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-size: 15px;
  letter-spacing: 1px;
  max-width: 1370px;
  margin: 0 auto !important;
  scroll-behavior: smooth;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fff;
  color: #000;
  overflow-x: hidden;
  position: relative;
}

a {
  text-decoration: none !important;
  color: inherit !important;
  outline: none;
}

/* ==========================================================================
   2. SEKCJA HOME (SLIDER WIDEO)
   ========================================================================== */
.home {
  position: relative;
  width: 100%;
  height: 85vh;
  overflow: hidden;
  background-color: #000;
}

.home-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.language-switcher {
  position: absolute;
  top: 30px;
  right: 50px;
  z-index: 20;
  display: flex;
  gap: 8px;
}

.language-switcher .lang-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-switcher .lang-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: #fff;
  transform: translateY(-1px);
}

.home::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 88, 8, 0.6);
  z-index: 2;
  pointer-events: none;
}

.home .video-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: none;
}

.home .video-slide.active {
  display: block;
}

.home .content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 0 50px;
  color: #fff;
}

.home .content.active {
  display: flex;
  animation: fadeIn 0.8s ease-in-out;
}

.home .content img {
  max-width: 400px;
  height: auto;
  margin: 20px 0;
  border-radius: 10px;
  display: block;
}

.home .content h1 {
  font-size: 3rem;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 20px;
}

.home .content p {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 30px;
}

.home .content a {
  display: inline-block;
  width: fit-content;
  padding: 12px 30px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid #fff;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s;
}

.slider-navigation {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
}

.slider-navigation .nav-btn {
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  margin: 0 10px;
  cursor: pointer;
}

.slider-navigation .nav-btn.active {
  background: #fff;
}

/* ==========================================================================
   4. MENU DOLNE
   ========================================================================== */
.menu-section {
  position: fixed;
  bottom: 0;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100%;
  max-width: 1370px;
  z-index: 999;
}

.menu-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  padding: 8px;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.menu-container .icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 10px;
  text-align: center;
}

.menu-container .icon img {
  width: 45px;
  height: 38px;
  object-fit: contain;
  margin-bottom: 2px;
}

.menu-container .icon p {
  font-size: 0.8rem;
  font-weight: bold;
}

/* ==========================================================================
   5. KONTENER GŁÓWNY I KONTAKT
   ========================================================================== */
.content-block {
  background-color: #f4f9f4;
  width: 100%;
  max-width: 1370px;
  padding: 60px 50px;
  margin: 0 auto;
  border-radius: 0;
}

.contact-section {
  padding: 50px 20px 120px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f4f9f4;
}

.kontakt {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-info {
  background: #12365f;
  color: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 300px;
  text-align: center;
}

.contact-info img {
  width: 45px;
  margin-bottom: 10px;
}

.payment {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.payment img {
  height: 30px;
}

/* ==========================================================================
   6. SOCIAL MEDIA
   ========================================================================== */
.social-media {
  text-align: center;
  margin-bottom: 25px;
  width: 100%;
}

.social-title {
  font-size: 1.95rem;
  font-weight: bold;
  color: #12365f;
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 15px;
}

.social-icons a {
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}

.social-icons img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.social-icons a:hover {
  transform: translateY(-3px) scale(1.08);
}

/* ==========================================================================
   7. TEAM (SLIDER I MAPA)
   ========================================================================== */
.team-section {
  width: 100%;
  max-width: 650px;
  margin: 10px auto 40px auto;
  text-align: center;
}

.team-main-title {
  font-size: 1.95rem;
  font-weight: bold;
  color: #12365f;
  margin-bottom: 25px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.team-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.team-slider {
  display: flex;
  position: relative;
  width: 100%;
  height: auto;
}

.team-slide-item {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-slide-item.active {
  display: flex;
  animation: teamFade 0.6s ease-in-out;
}

.team-image-container {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 15px;
  border: 4px solid #12365f;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 1.4rem;
  color: #12365f;
  font-weight: bold;
  margin-bottom: 5px;
}

.team-role {
  font-size: 1rem;
  color: #0c8a05;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-bio {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  max-width: 550px;
  margin: 0 auto;
}

.team-dots-navigation {
  margin-top: 15px;
}

.team-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s;
}

.team-dot.active,
.team-dot:hover {
  background-color: #12365f;
  transform: scale(1.2);
}

#map {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  z-index: 1;
}

/* ==========================================================================
   8. PODSTRONY OFERTOWE (BAZA I FAQ)
   ========================================================================== */
.home-subpage {
  width: 100%;
  color: #222 !important;
}

.home-subpage .offer-header {
  text-align: center;
  padding: 20px 0 40px 0;
}

.home-subpage .offer-header .lead-text {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  color: #555 !important;
  line-height: 1.6;
}

.parallax-window {
  height: 250px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 54, 95, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.parallax-overlay h3 {
  color: #fff !important;
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  z-index: 2;
  width: 100%;
  margin: 0;
  padding: 0 20px;
}

.parallax-bg-electronics {
  background-image: url("../img/Lutownica-penseta.jpg");
}
.parallax-bg-industrial {
  background-image: url("../img/BGA-maszyna.jpg");
}
.parallax-bg-electrical {
  background-image: url("../img/sonel-pomiar.jpeg");
}
.parallax-bg-software {
  background-image: url("../img/kodowanie-software.jpg");
}
.parallax-bg-sub-electronics {
  background-image: url("../img/Lutownica-penseta.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.service-description {
  padding: 40px 0 60px 0;
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.05rem;
}

.service-description p {
  margin-bottom: 25px;
  color: #222 !important;
}

.service-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-list li {
  position: relative;
  padding-left: 25px;
  color: #333 !important;
  line-height: 1.6;
}

.service-list li::before {
  content: "■";
  position: absolute;
  left: 0;
  color: #0c8a05;
  font-size: 0.9rem;
  top: 2px;
}

.service-list li strong {
  color: #12365f !important;
  display: block;
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* ==========================================================================
   11. UNIWERSALNE STYLE PODSTRON (HERO OVERLAY I NAGŁÓWKI)
   ========================================================================== */
.electronics-subpage {
  width: 100%;
  animation: fadeIn 0.6s ease-in-out;
}

.elec-hero-overlay {
  background-color: rgba(18, 54, 95, 0.7) !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px 20px;
}

.elec-hero {
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.elec-hero h2,
.home-subpage .offer-header h2 {
  font-size: 2.2rem !important;
  text-transform: uppercase !important;
  color: #fff !important;
  margin-bottom: 15px !important;
  letter-spacing: 2px !important;
  font-weight: 800 !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6) !important;
  line-height: 1.2 !important;
  display: block !important;
}

.home-subpage .offer-header h2 {
  color: #12365f !important;
  text-shadow: none !important;
}

.elec-hero h2 .brand-color,
.home-subpage .offer-header h2 .brand-color {
  color: #0c8a05 !important;
  text-shadow: none !important;
}

.elec-lead {
  font-size: 1.05rem !important;
  color: #f0f5fa !important;
  line-height: 1.6;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   11b. STRUKTURA SIATEK I ELEMENTÓW PODSTRON
   ========================================================================== */
.tech-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin: 30px auto;
  max-width: 1100px;
  padding: 0 5px;
}

.stat-card {
  background: #12365f;
  color: #fff;
  padding: 22px 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(18, 54, 95, 0.08);
}

.stat-card h3 {
  font-size: 1.8rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 5px;
}

.stat-card p {
  font-size: 0.95rem;
  color: #d1dfed;
}

.elec-grid-section {
  margin-bottom: 5px;
}

.elec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.elec-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2ece2;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.elec-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(12, 138, 5, 0.1);
  border-color: #0c8a05;
}

.card-icon-wrapper {
  margin-bottom: 15px;
}

.card-badge {
  display: inline-block;
  background: #f0f7f0;
  color: #0c8a05;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid rgba(12, 138, 5, 0.15);
  line-height: 1.3;
  text-align: center;
  max-width: 100%;
  letter-spacing: 0.5px;
}

.elec-card p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.card-details-hint {
  display: block;
  margin-top: 15px;
  font-size: 0.8rem;
  color: #0c8a05;
  font-weight: 600;
  border-top: 1px dashed #e2ece2;
  padding-top: 10px;
  text-transform: uppercase;
}

.elec-symptoms-section,
.elec-faq-section {
  margin-bottom: 5px;
  margin-top: 40px;
  background: rgba(18, 54, 95, 0.01);
  padding: 30px 15px;
  border-radius: 16px;
  border: 1px solid #e2ece2;
}

.section-divider-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #12365f;
  text-align: center;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.symptoms-container,
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.symptom-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
}

.symptom-dot {
  width: 8px;
  height: 8px;
  background: #0c8a05;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.elec-process-section {
  margin-top: 40px;
  margin-bottom: 5px;
}

.elec-pipeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.pipeline-step {
  background: #fff;
  padding: 25px 20px;
  border-radius: 14px;
  border-left: 4px solid #12365f;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.step-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(18, 54, 95, 0.1);
  margin-bottom: 5px;
}

.pipeline-step h5 {
  font-size: 1.1rem;
  color: #12365f;
  margin-bottom: 5px;
}

.faq-item {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  border-left: 3px solid #0c8a05;
}

.faq-item h6 {
  font-size: 1.1rem;
  color: #12365f;
  margin-bottom: 8px;
}

/* ==========================================================================
   12. UTILITY CLASSES
   ========================================================================== */
.elec-card-plain {
  box-shadow: none !important;
  background: #fff !important;
}

.brands-sub-text {
  text-align: center;
  max-width: 800px;
  margin: -10px auto 30px auto;
  color: #555;
  font-size: 1rem;
}

.brands-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 15px !important;
}

.brand-card {
  text-align: center;
  padding: 20px !important;
  box-shadow: none !important;
  border-color: #d1dfed !important;
}

.badge-dark {
  background: #12365f !important;
  color: #fff !important;
  font-size: 0.9rem !important;
}

.brand-desc-text {
  font-size: 0.85rem;
  margin-top: 10px;
  color: #666;
}

/* ==========================================================================
   13. ANIMACJA LASEROWA KART OPROGRAMOWANIA (APPS)
   ========================================================================== */
@keyframes laserScan {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.software-laser-bar {
  position: relative;
  overflow: hidden;
}

.software-laser-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #064003, #0c8a05, #52e04b, #0c8a05, #064003);
  background-size: 300% 300%;
  animation: laserScan 4s linear infinite;
  box-shadow: 0 2px 10px rgba(12, 138, 5, 0.4);
  z-index: 3;
}

/* ==========================================================================
   14. PORTFOLIO PROMO - EFEKT THREE.JS ORAZ SZEŚCIAN (APPS.HTML)
   ========================================================================== */
.portfolio-promo-section {
  position: relative;
  overflow: hidden;
  margin: 60px auto 40px auto;
  padding: 70px 40px;
  background: linear-gradient(145deg, #0a1118 0%, #12365f 100%);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(18, 54, 95, 0.25);
  z-index: 1;
}

.portfolio-content {
  position: relative;
  z-index: 2;
}

.threejs-grid {
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(rgba(12, 138, 5, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 138, 5, 0.2) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(600px) rotateX(75deg);
  animation: gridMove 10s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes gridMove {
  0% {
    transform: perspective(600px) rotateX(75deg) translateY(0);
  }
  100% {
    transform: perspective(600px) rotateX(75deg) translateY(40px);
  }
}

.threejs-node {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  z-index: 0;
  animation: floatNode 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.node-1 {
  width: 250px;
  height: 250px;
  background: #0c8a05;
  top: -80px;
  left: -50px;
  opacity: 0.45;
}

.node-2 {
  width: 300px;
  height: 300px;
  background: #1e90ff;
  bottom: -100px;
  right: -50px;
  opacity: 0.3;
  animation-delay: -4s;
  animation-duration: 12s;
}

@keyframes floatNode {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(40px, 50px) scale(1.3);
  }
}

.portfolio-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.portfolio-promo-desc {
  max-width: 800px;
  margin: 0 auto 35px auto;
  color: #d1dfed;
  line-height: 1.7;
  font-size: 1.15rem;
}

.portfolio-promo-btn {
  display: inline-block;
  padding: 16px 45px;
  background: linear-gradient(90deg, #0c8a05, #12a10a);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 30px;
  box-shadow: 0 5px 20px rgba(12, 138, 5, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.portfolio-promo-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(12, 138, 5, 0.6);
}

.portfolio-promo-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.6s ease;
}

.portfolio-promo-btn:hover::after {
  left: 100%;
}

.avatar-render-zone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.wireframe-cube {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  margin-top: -100px;
  margin-left: -100px;
  transform-style: preserve-3d;
  animation: rotateAndBounce 8s infinite ease-in-out alternate;
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
}
.cube-face {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 3px solid #0c8a05;
  background: rgba(12, 138, 5, 0.05);
  box-shadow:
    inset 0 0 20px rgba(12, 138, 5, 0.5),
    0 0 20px rgba(12, 138, 5, 0.4);
}
.cube-face.front {
  transform: rotateY(0deg) translateZ(100px);
}
.cube-face.right {
  transform: rotateY(90deg) translateZ(100px);
}
.cube-face.back {
  transform: rotateY(180deg) translateZ(100px);
}
.cube-face.left {
  transform: rotateY(-90deg) translateZ(100px);
}
.cube-face.top {
  transform: rotateX(90deg) translateZ(100px);
}
.cube-face.bottom {
  transform: rotateX(-90deg) translateZ(100px);
}
@keyframes rotateAndBounce {
  0% {
    transform: translateY(-40px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  100% {
    transform: translateY(40px) rotateX(360deg) rotateY(360deg) rotateZ(180deg);
  }
}

/* ==========================================================================
   14b. NOWA STREFA POBIERANIA APLIKACJI (ZUNIFIKOWANA STRUKTURA)
   ========================================================================== */
.apps-showcase-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 35px !important;
  margin: 40px auto 20px auto !important;
  width: 100% !important;
}

.app-showcase-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  background: #fff !important;
  padding: 25px !important;
  border-radius: 16px !important;
  border: 1px solid #e2ece2 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02) !important;
  width: 100% !important;
}

/* BAZA DLA OKIENKA SLAJDERA */
.app-slider-box {
  position: relative !important;
  width: 100% !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #000 !important;
  border: 1px solid #d1dfed !important;
  display: block !important;
}

/* SLAJDER PIONOWY (MOUSEWEATHER): Ustawiamy idealne proporcje smartfona */
.app-slider-box.portrait-slider {
  aspect-ratio: 9 / 16 !important;
  max-width: 260px !important;
  margin: 0 auto !important;
}

/* SLAJDER POZIOMY (UNI-T): Ustawiamy proporcje monitora 16:10 */
.app-slider-box.landscape-slider {
  aspect-ratio: 16 / 10 !important;
  width: 100% !important;
  background-color: #1c1c1c !important; /* Ciemne tło maskujące ewentualne pasy po bokach */
}

/* REGUŁY DOPASOWANIA ZDJĘĆ */
.app-showcase-slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity 0.8s ease-in-out !important;
  z-index: 1 !important;
}

/* Dla MouseWeather zostawiamy cover, aby ładnie docięło do krawędzi smartfona */
.portrait-slider .app-showcase-slide {
  object-fit: cover !important;
  object-position: center !important;
}

/* Dla UNI-T zmieniamy na CONTAIN: Bezpieczne skalowanie, widać 100% interfejsu i dziewczynę! */
.landscape-slider .app-showcase-slide {
  object-fit: contain !important;
  object-position: center top !important;
}

.app-showcase-slide.active {
  opacity: 1 !important;
  z-index: 2 !important;
}

.apps-download-info-panel {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  background: #f0f7f0 !important;
  padding: 25px !important;
  border-radius: 14px !important;
  border-left: 4px solid #12365f !important;
  text-align: left !important;
  width: 100% !important;
}

.app-download-space {
  margin-top: 15px !important;
  margin-bottom: 12px !important;
}

.app-link-btn {
  display: inline-block !important;
  padding: 11px 26px !important;
  background-color: #12365f !important;
  color: #fff !important;
  font-size: 0.9rem !important;
  font-weight: bold !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 10px rgba(18, 54, 95, 0.15) !important;
  width: fit-content !important;
}

.app-link-btn:hover {
  background-color: #0c8a05 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 15px rgba(12, 138, 5, 0.25) !important;
}

/* ==========================================================================
   STREFA LIGHTBOX (POWIĘKSZANIE ZDJĘĆ)
   ========================================================================== */
.app-slider-box img {
  cursor: pointer; /* Zmiana kursora na rączkę, sugerująca klikalność */
}

.lightbox {
  display: none; /* Domyślnie ukryty */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 2000; /* Wyżej niż menu dolne */
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.show {
  display: flex;
  opacity: 1;
}

.lightbox-content-wrapper {
  max-width: 85%;
  max-height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.2s ease-in-out;
}

/* Przyciski nawigacyjne */
/* Przyciski nawigacyjne */
.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  -webkit-user-select: none; /* Krok 1: Naprawa dla Safari / iOS */
  user-select: none;
  z-index: 2002;
}
.lightbox-close:hover {
  color: #0c8a05;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 24px;
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.2s;
  -webkit-user-select: none; /* Krok 2: Naprawa dla Safari / iOS */
  user-select: none;
  z-index: 2001;
}
.lightbox-nav-btn:hover {
  background: #0c8a05;
  border-color: #0c8a05;
  transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
  left: 30px;
}
.lightbox-next {
  right: 30px;
}

/* Ukrycie strzałek na małych ekranach i obsługa gestów */
@media (max-width: 768px) {
  .lightbox-nav-btn {
    padding: 10px 15px;
    font-size: 18px;
  }
  .lightbox-prev {
    left: 15px;
  }
  .lightbox-next {
    right: 15px;
  }
}

/* ==========================================================================
   15. GŁÓWNE FIXY RESPONSYWNE (MOBILE-FIRST)
   ========================================================================== */
@media (max-width: 768px) {
  .electronics-subpage .parallax-window {
    height: auto !important;
    min-height: 250px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .elec-hero-overlay {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    padding: 50px 20px !important;
    flex: 1 !important;
  }

  .elec-hero h2,
  .home-subpage .offer-header h2 {
    font-size: 1.7rem !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
    -webkit-hyphens: auto !important;
    hyphens: auto !important;
    margin-bottom: 15px !important;
    letter-spacing: 1px !important;
  }

  .elec-lead,
  .home-subpage .offer-header .lead-text {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
  }

  .parallax-overlay h3 {
    font-size: 1.5rem !important;
    padding: 0 15px;
  }

  .parallax-window {
    min-height: 180px !important;
    background-attachment: scroll !important;
  }

  .content-block,
  .contact-section {
    padding: 40px 20px !important;
    width: 100% !important;
  }

  .language-switcher {
    top: 20px;
    right: 20px;
    gap: 5px;
  }

  .language-switcher .lang-btn {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .service-description p {
    font-size: 1.2rem !important;
    line-height: 1.6;
  }

  .service-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .service-list li {
    font-size: 1.15rem !important;
    line-height: 1.5;
    padding-left: 20px;
  }

  .service-list li::before {
    font-size: 1.1rem;
    top: 2px;
  }

  .service-list li strong {
    font-size: 1.3rem !important;
    margin-bottom: 8px !important;
  }

  .home {
    height: 90vh;
  }

  .home .content {
    padding: 20px;
    text-align: center;
    align-items: center;
  }

  .home .content h1 {
    font-size: 1.7rem;
  }

  .home .content img {
    max-width: 80%;
    margin: 15px auto;
  }

  .kontakt {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .contact-info {
    width: 100%;
  }

  .team-main-title {
    font-size: 1.5rem;
  }

  .team-slider-wrapper {
    padding: 20px 15px;
  }

  .team-image-container {
    width: 110px;
    height: 110px;
  }

  .team-name {
    font-size: 1.25rem;
  }

  .team-role {
    font-size: 0.9rem;
  }

  .team-bio {
    font-size: 0.95rem;
  }

  .social-title {
    font-size: 1.2rem;
  }

  .social-icons img {
    height: 45px;
  }

  .menu-container {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    white-space: nowrap;
    padding: 8px 10px !important;
  }

  .menu-container::-webkit-scrollbar {
    display: none;
  }

  .menu-container .icon {
    flex: 0 0 auto !important;
    margin: 0 8px !important;
    min-width: 75px;
  }

  .menu-container .icon:first-child {
    margin-left: 0 !important;
  }

  .menu-container .icon img {
    width: 38px !important;
    height: 34px !important;
    margin-bottom: 5px;
  }

  .menu-container .icon p {
    font-size: 0.8rem !important;
    font-weight: bold !important;
    letter-spacing: 0px;
  }

  object {
    display: none;
  }

  .contact-section .contact-container {
    width: 100% !important;
    max-width: 100% !important;
  }

  .contact-section .mapa {
    width: calc(100% + 40px) !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
    margin-top: 30px !important;
    margin-bottom: 20px !important;
  }

  .contact-section #map {
    border-radius: 0 !important;
    height: 380px !important;
    width: 100% !important;
  }

  .portfolio-promo-section {
    padding: 40px 20px;
    border-radius: 12px;
  }

  .portfolio-title {
    font-size: 1.4rem;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    line-height: 1.3;
  }

  .portfolio-promo-desc {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .portfolio-promo-btn {
    padding: 12px 25px;
    font-size: 0.95rem;
  }

  .avatar-render-zone {
    width: 200px;
    height: 200px;
  }

  .wireframe-cube {
    width: 120px;
    height: 120px;
    margin-top: -60px;
    margin-left: -60px;
  }
  .cube-face {
    width: 120px;
    height: 120px;
  }
  .cube-face.front {
    transform: rotateY(0deg) translateZ(60px);
  }
  .cube-face.right {
    transform: rotateY(90deg) translateZ(60px);
  }
  .cube-face.back {
    transform: rotateY(180deg) translateZ(60px);
  }
  .cube-face.left {
    transform: rotateY(-90deg) translateZ(60px);
  }
  .cube-face.top {
    transform: rotateX(90deg) translateZ(60px);
  }
  .cube-face.bottom {
    transform: rotateX(-90deg) translateZ(60px);
  }

  .apps-showcase-section {
    padding: 20px 15px !important;
  }
}

/* WIDOWISKOWA AKTYWACJA PARALAKSY I UKŁADÓW DLA DESKTOPU */
@media (min-width: 992px) {
  .parallax-window {
    background-attachment: fixed;
    min-height: 480px;
  }

  .elec-hero-overlay {
    padding: 60px 40px;
  }

  .elec-hero h2 {
    font-size: 3.8rem !important;
    letter-spacing: 4px !important;
  }

  .home-subpage .offer-header h2 {
    font-size: 3.8rem !important;
    letter-spacing: 4px !important;
  }

  .elec-lead {
    font-size: 1.25rem !important;
  }

  .tech-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .symptoms-container,
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .elec-pipeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .elec-symptoms-section,
  .elec-faq-section {
    padding: 40px;
  }

  .section-divider-title {
    font-size: 1.5rem;
  }

  /* Układ poziomy kart programów na komputerze */
  .app-showcase-card {
    flex-direction: row !important;
    align-items: stretch !important;
  }

  /* Dopasowanie szerokości okienek na laptopach/PC */
  .app-slider-box.portrait-slider {
    width: 220px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  .app-slider-box.landscape-slider {
    width: 440px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  .apps-download-info-panel {
    flex: 1 !important;
  }
}

/* ==========================================================================
   16. SYSTEM ANIMACJI STRONY
   ========================================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes teamFade {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
