* {
  box-sizing: border-box;
}

body {
  background-color: #000000;
  font-size: 16px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  color: #ffffff;
}

html {
  scroll-behavior: smooth;
}

a:link {
  color: #ffffff;
  text-decoration: none;
}

a:active {
  color: #ffffff;
  text-decoration: none;
}

a:visited {
  color: #ffffff;
  text-decoration: none;
}

a:hover {
  color: #ffffff;
  text-decoration: none;
}

.okno_gora {
  width: 100%;
  min-width: 360px;
  margin: 0 auto;
  padding: 2px 0px 10px 0px;
  min-height: 400px;
  background-color: #000000;
  /* background: linear-gradient(to right, #086100 0%, #000000 50%, #086100 100%); */
  background: linear-gradient(to right, #612400 0%, #000000 50%, #612400 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.okno_gora_szer {
  max-width: 900px;
  margin: 0 auto;
}

.hr-s {
  border: none;
  /* Usuwamy domyślną ramkę przeglądarki */
  height: 2px;
  /* Grubość naszej linii */
  background: linear-gradient(to right, #000000 0%, #612400 50%, #000000 100%);
  /* Dodajemy cień, który również jest najmocniejszy na środku */
  filter: drop-shadow(0px 0px 5px #ff7220);
  width: 100%;
  /* Szerokość na telefonie */
  margin-left: auto;
  /* Automatyczny lewy margines (środkowanie) */
  margin-right: auto;
  /* Automatyczny prawy margines (środkowanie) */
}

.div_tagi {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-size: 24px;
  font-style: italic;
  font-weight: bold;
  line-height: 1.4;
  box-sizing: border-box;
}

.tag-line-1 {
  text-align: center;
}

main {
  text-align: justify;
}

footer {
  text-align: center;
  padding: 20px 0;
}

.neon-btn {
  padding: 8px 16px;
  height: auto;
  min-height: 0;
  line-height: normal;
  font-size: 18px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  display: inline-block;
  float: none;
  margin: 0;
  box-sizing: border-box;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
}

.neon-btn:hover {
  transform: rotate(-4deg) translateY(-2px);
}

.neon-brown,
.neon-brown:link,
.neon-brown:visited,
.neon-brown:hover {
  border: 2px solid #ff7220;
  color: #ff7220;
  text-shadow: 0 0 5px #ff7220;
}

.neon-brown:hover {
  box-shadow: 0 0 15px #612400, inset 0 0 10px #612400;
}

.neon-btn.active {
  box-shadow: 2px 3px 15px currentColor, inset 0 0 10px currentColor;
  opacity: 1;
  /* opcjonalnie wyłączenie wskaźnika kliknięcia: pointer-events: none; */
}

.text-link {
  color: #ff7220 !important;
  text-decoration: underline;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

/* --- NOWY UKŁAD NAGŁÓWKA --- */
.banner-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 20px auto;
  padding: 0 15px;
}

.banner-link {
  display: block;
  /* Wymagane, aby link przyjął wymiary */
  width: 250px;
  height: 75px;
  margin: 0 5px;
  border-radius: 8px;
  border: 2px solid #ff7220;
  box-shadow: 0 0 15px #ff7220;
  transition: transform 0.3s ease, box-shadow 0.3s ease, width 0.3s ease, height 0.3s ease;
  /* KLUCZ: Magiczne kadrowanie tła */
  background-size: cover;
  /* Skaluje obrazek tak, by pokrył cały kafel */
  background-position: center;
  /* Środek zostaje, boki znikają poza krawędzią */
  background-repeat: no-repeat;
}

/* Podpięcie Twoich grafik jako tła */
.banner-1 {
  background-image: url('../images/ktsound-baner.png');
}

.banner-2 {
  background-image: url('../images/technika_estradowa.png');
}

.banner-3 {
  background-image: url('../images/car-multimedia.png');
}

.banner-link:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #ff7220;
}

#nowe-menu-testowe {
  display: flex;
  flex-wrap: nowrap;
  /* Blokujemy spadanie do drugiej linii */
  justify-content: center;
  /* Wyśrodkowanie całości na stronie */
  gap: 12px;
  /* Ładne, luźne odstępy między kafelkami */
  margin: 25px auto;
  clear: both;
  max-width: 950px;
  padding: 0 10px;
}

.menu-testowe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.header-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.header-left {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.header-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mid {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.div_logo {
  float: right;
  width: 300px;
  max-width: calc(100% - 20px);
  height: auto;
  /* Zmiana ze sztywnego 166px */
  min-height: 110px;
  margin: 10px 20px 20px 0px;
  background-color: rgba(0, 0, 0, 0.4);
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  border: 2px solid #ff7220;
  border-radius: 10px;
  transform: rotate(3deg);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.div_logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.d_shadow {
  -webkit-box-shadow: 0 10px 6px -6px #ff7220;
  -moz-box-shadow: 0 10px 6px -6px #ff7220;
  box-shadow: 0 10px 10px -6px #ff7220;
}

.soc_img {
  height: 60px;
  margin: 10px 0;
}

.soc_img:hover {
  box-shadow: 0 0 10px #ffffff, inset 0 0 12px #ff7220;
}

.image_wrapper {
  background: #000000;
  margin: 2px 10px;

}

.image_wrapper img {
  border: 1px solid #0066ff;
}

.image_wrapper_fl {
  float: left;
  margin-top: 3px;
  margin-right: 10px;
}

.image_wrapper_fr {
  float: right;
  margin-top: 3px;
  margin-left: 10px;
}

.margin_bottom_10 {
  clear: both;
  width: 100%;
  height: 10px;
  font-size: 1px;
}

.margin_bottom_30 {
  clear: both;
  width: 100%;
  height: 30px;
  font-size: 1px;
}

.em_text {
  color: #ff7220;
  text-align: left;
}

.naglowek {
  text-align: left;
  margin-bottom: 20px;
}

h3 {
  margin-top: 8px;
  margin-bottom: 6px;
}

h4 {
  margin-top: 6px;
  margin-bottom: 4px;
}

ol {
  margin-top: 6px;

}

.lewy {
  float: left;
  min-width: 310px;
}

.prawy {
  float: right;
  min-width: 310px;
}

/* ========= STYLE DOMYŚLNE DLA MENU HAMBURGEROWEGO (DESKTOP) ======== */
#hamburger-btn,
#mobile-menu-overlay {
  display: none;
}

.wykaz1 {
  list-style: none;
  min-width: 100%;
}

.wykaz2:hover {
  transform: translateX(3px);
}

.wykaz1>li {
  position: relative;
  padding-left: 16px;
}

.wykaz1>li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 20% 40%, #ffc6a4, #ff7220);
}

/* --- STYLE DLA SEKCJI DOWNLOAD --- */
.download-intro {
  line-height: 1.6;
  margin-bottom: 25px;
}

.download-card {
  background: rgba(97, 36, 0, 0.15);
  border: 1px solid #612400;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 25px;
  display: block;
  /* Zmiana z flex na block, aby opływanie float działało */
  overflow: hidden;
  /* Czyszczenie floatów, aby karta obejmowała całą treść */
}

.download-card-images {
  float: right;
  /* Zdjęcia uciekają na prawo, a tekst je opływa z lewej */
  display: flex;
  flex-direction: column;
  /* Zdjęcia układają się pionowo jedno pod drugim */
  gap: 10px;
  padding: 8px 0px 6px 10px;
  /* NOWE WŁAŚCIWOŚCI: Wyciągają zdjęcia nad elementy listy */
  position: relative;
  z-index: 2;
}

.download-card-images img {
  float: none;
  /* Kasujemy float: left narzucony przez klasę .modern-image */
  border: 1px solid #612400;
  max-width: 300px;
  max-height: 300px;
  height: auto;
  border-radius: 4px;
}

.download-card-actions {
  clear: both;
  /* Gwarancja, że przycisk pobierania zawsze znajdzie się pod spodem */
  padding-top: 10px;
}

.download-card-images-small {
  gap: 10px;
}

/* Lista tradycyjna instrukcji (tekstowa) */
.manuals-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.manuals-list li {
  padding: 10px 15px;
  border-bottom: 1px solid rgba(255, 166, 0, 0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.manuals-list li:hover {
  background: rgba(255, 166, 0, 0.8);
}

.btn-download-small {
  font-size: 14px;
  padding: 4px 12px;
}

/* --- NOWOCZESNY, WSPÓLNY STYL DLA OBRAZKÓW --- */
.modern-image {
  position: relative;
  float: left;
  margin: 4px 12px 4px 0px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-image:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 114, 32, 0.25);
}

.lightbox-trigger {
  cursor: zoom-in;
  width: 270px;
}

/* --- STYLIZACJA MODALA DLA ZDJĘĆ --- */
.image-modal-overlay {
  display: none;
  /* Domyślnie ukryty */
  position: fixed;
  z-index: 2000;
  /* Nad wszystkim, nawet nad menu hamburgerowym */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  /* Ciemne, głębokie tło */
  backdrop-filter: blur(8px);
  /* Efekt rozmycia jak w Twoim menu */
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* Kiedy modal jest aktywny */
.image-modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* Styl powiększonego obrazka */
.image-modal-content {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border: 3px solid #ff7220;
  /* Neonowa zielona ramka pasująca do Twojego stylu */
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(255, 114, 32, 0.4);
  transform: scale(0.9);
  transition: transform 0.3s ease-in-out;
}

.image-modal-overlay.active .image-modal-content {
  transform: scale(1);
}

/* Przycisk zamykania (X) */
.image-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ff7220;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
  user-select: none;
}

.image-modal-close:hover {
  color: #ffffff;
  transform: scale(1.1);
}

/* Nieruchomy kontener-baza */
.tabela-wrapper {
  position: relative;
  width: 100%;
  margin: 15px;
}

/* Efekt maski - łagodne przejście do czerni strony */
.tabela-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 45px;
  /* Szerokość strefy ściemniania */
  /* Gradient od pełnej przezroczystości do głębokiej czerni */
  background: linear-gradient(to right, rgba(0, 0, 0, 0), #000000 95%);
  pointer-events: none;
  /* KLUCZOWE: pozwala na dotyk i przewijanie "przez" gradient */
}

.tabela-responsywna {
  width: 100%;
  overflow-x: auto;
  /* Włącza suwak poziomego przewijania, gdy treść się nie mieści */
  -webkit-overflow-scrolling: touch;
  /* Zapewnia płynne przewijanie na urządzeniach z iOS (Safari) */
  margin-bottom: 15px;
}

.tabela-responsywna table {
  min-width: 500px;
  /* Wymusza optymalną szerokość tabeli na telefonach, żeby tekst się nie "gniótł" */
  width: 100%;
  border-collapse: collapse;
  /* Dodatkowo: wygładza podwójne ramki tabeli, dopasowując do nowoczesnych standardów */
}

.tabela-responsywna {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* Płynny scroll na iOS */
  padding-right: 45px;
  /* BARDZO WAŻNE: daje margines wewnętrzny, aby ostatnia kolumna mogła wysunąć się spod gradientu */
}

.tabela-responsywna table {
  min-width: 500px;
  width: 100%;
  border-collapse: collapse;
}

/* Stylizacja paska przewijania dedykowana dla tej tabeli */
.tabela-responsywna::-webkit-scrollbar {
  height: 4px;
  /* Bardzo cieniutki, dyskretny pasek */
}

.tabela-responsywna::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
  /* Ledwo widoczne tło paska */
  border-radius: 10px;
}

.tabela-responsywna::-webkit-scrollbar-thumb {
  background: #ff7220;
  /* Neonowy pasujący do designu strony */
  border-radius: 10px;
  box-shadow: 0 0 8px #ff7220;
  /* Subtelna poświata */
}

.comment {
  color: #008000;
  font-style: italic;
  margin-top: 4px;
}

/* ================================================================= */
/*             --- SEKCJA RESPONSYWNA (MAX-WIDTH: 960PX) ---         */
/* ================================================================= */
@media (max-width: 960px) {

  /* Globalne zablokowanie rozciągania całej strony w prawo */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  /* 1. Neutralizacja "kotwic" rozpychających stronę w prawo */
  .okno_gora {
    background-size: cover;
    /* Tło na urządzeniach mobilnych */
    height: auto;
    min-height: 0;
    min-width: 0;
    /* Zwalniamy sztywne ograniczenie 360px na telefonach */
    width: 100%;
    padding-bottom: 10px;
    box-sizing: border-box;
  }

  .okno_gora_szer {
    display: flex;
    flex-direction: column;
    /* Układ pionowy na telefonie */
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  /* Wyśrodkowanie sekcji z 3 banerami */
  .banner-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 15px auto;
    padding: 0;
    gap: 8px;
  }

  /* Banner-section na smartfonach (poziomo obok siebie jako kwadraty) */
  .banner-section {
    flex-direction: row;
    gap: 8px;
  }

  .banner-link {
    width: 75px;
    height: 75px;
  }

  /* Kafelki neonowe w menu mobilnym */
  #nowe-menu-testowe {
    display: none;
    /* Ukrywane domyślnie, bo mamy Hamburger-Menu */
  }

  /* Idealne wyśrodkowanie kontenera nagłówka i jego dzieci na telefonach */
  .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 15px;
  }

  .header-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .header-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Wyśrodkowanie LOGO na smartfonach */
  .div_logo {
    float: none;
    width: 280px;
    max-width: 90%;
    height: auto;
    min-height: 0;
    margin: 2px auto 10px auto;
    padding: 10px;
    transform: none;
    box-sizing: border-box;
    display: block;
  }

  .div_logo img {
    width: 100%;
    height: auto;
    max-width: 240px;
    padding-top: 0;
    display: block;
    margin: 0 auto;
  }

  /* --- MENU HAMBURGEROWE (Wersja poprawiona) --- */
  #hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: rgba(255, 166, 0, 0.3);
    border: 2px solid #ff7220;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    box-sizing: border-box;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    transition: background 0.3s;
  }

  #hamburger-btn:hover {
    background: rgba(255, 114, 32, 0.205);
  }

  #hamburger-btn span {
    width: 100%;
    height: 2px;
    background-color: #ff7220;
    border-radius: 2px;
  }

  #mobile-menu-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  #mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  #mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: auto;
    padding: 60px 0;
  }

  #mobile-menu-content>div {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  #mobile-menu-content .neon-btn {
    transform: none;
    padding: 12px 24px;
    font-size: 20px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 18px;
  }

  .wykaz1 {
    min-width: 100%;
    padding-left: 0px;
  }

  .wykaz2 .wykaz3 {
    padding: 6px 6px 6px 0px;
  }

  ol {
    padding-left: 16px;
  }

  /* Responsywność dla sekcji pobierania */
  .download-card {
    display: flex;
    flex-direction: column;
    /* Na smartfonie przełączamy w układ pionowy Flex */
  }

  .download-card-text {
    order: 1;
    /* Tekst wyświetla się jako pierwszy */
  }

  .download-card-images {
    float: none;
    /* Wyłączamy opływanie */
    order: 2;
    /* Zdjęcia wpadają na dole, PONIŻEJ tekstu */
    width: 100%;
    align-items: center;
    /* Wyśrodkowanie zdjęć na ekranie telefonu */
    margin: 6px 0;
  }

  .download-card-actions {
    order: 3;
    /* Przycisk pobierania na samym dole pod zdjęciami */
    text-align: center;
  }

  .mar_b1 {
    margin-bottom: 10px;
  }

  .naglowek {
    margin-bottom: 6px;
  }

  pre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Płynny scroll na urządzeniach Apple */
    white-space: pre;
    /* Zachowuje wcięcia kodu */
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.03);
    /* Subtelne ciemne tło pod kodem */
    border: 1px solid #612400;
    border-radius: 6px;
    padding: 10px;
  }

  /* Dostosowanie paska przewijania dla bloku kodu */
  pre::-webkit-scrollbar {
    height: 4px;
  }

  pre::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
  }

  pre::-webkit-scrollbar-thumb {
    background: #ff7220;
    border-radius: 10px;
    box-shadow: 0 0 8px #ff7220;
  }

}