/* 🔧 DEBUG MODE – outline wszystkich elementów */
/*
* {
  outline: 1px solid red !important;
}
*/


/* === SECTION: BODY === */
 
html, body {
  margin: 0;
  padding: 0;
}
 
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: #2c2c2c;
  color: #ffffff;
  scroll-behavior: smooth;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.6;
  box-sizing: border-box;
  overflow-x: clip; /* 👈 lepiej niż hidden: nie odcina z-indexów, nie psuje sticky */
  position: relative; /
}
.site-header {
  display: flex;
  align-items: left;
  justify-content: left; /* Wyśrodkowanie treści */
  background: linear-gradient(135deg, #ff6f00, #ff8c00);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 1px;
  color: white;
  position: relative;
  z-index: 1001;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}



.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.site-header {
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

.site-header.hide-header {
  transform: translateY(-100%);
}


.avatar {
  width: 100px;
  border-radius: 50%;
}

.nav-menu {
  position: sticky;
  top: 0;
  z-index: 9999;
  padding: 5px 5px;
  background: rgba(0, 0, 0, 0.8); /* lekka szyba, jak szkło */
  backdrop-filter: blur(4px);     /* szklany efekt (glassmorphism) */
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 2px 10px rgba(255, 140, 0, 0.3); /* subtelny glow */
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.nav-links li {
  position: relative;
  padding: 0 5px;
}

.nav-links li:not(:last-child)::after {
  content: '|';
  color: orange;
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: normal;
}

.nav-links a {
  font-size: 14px;
  padding: 10px 0;
  color: white;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

/* 🔶 aktywny */
.nav-links a.active {
  color: orange;
}

/* 🔴 hover - czerwony i underline */
.nav-links a:hover {
  color: orange;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color:orange; 
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}



.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: orange;
  width: 0%;
  transition: width 0.3s ease;
}

 

/* Globalny styl scrollbara dla wszystkich elementów */
/* 🌐 Globalne scrollbary – Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: #999;       /* Szary suwak */
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background-color: #ff8c00;    /* Pomarańczowe tło */
}

/* 🦊 Firefox */
* {
  scrollbar-width: thin;                         /* Cieńszy pasek */
  scrollbar-color: #999 #ff8c00;                 /* szary suwak, pomarańczowy tor */
}

#omnie .icon-list img {
  width: 16px;
  height: 16px;
  margin-right: 0.6em;
  vertical-align: middle;
  border-radius: 3px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
  object-fit: contain;
}
#omnie .icon-list {
  list-style: none;
  padding-left: 0;
}

#omnie .icon-list li {
  margin-bottom: 0.4em;
  display: flex;
  align-items: center;
}
.partner-box img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
 
 

 
 

/* === SECTION: HEADER === */
header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(135deg, #ff6f00, #ff8c00);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  color: white;
  gap: 20px;
}

header {
  width: 100%;
  background-color: #111; /* albo Twój kolor */
  color: white;
  padding: 40px 0;
}
.header-text {
  text-align: left;
  padding-left: 10px;
}



.header-text h1 {
  font-size: clamp(20px, 4vw, 32px);
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  margin: 0;
}

.header-subtext {
  font-size: clamp(14px, 2.5vw, 18px);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  margin: 0;
}

.avatar {
  width: clamp(60px, 20vw, 110px);
  height: clamp(60px, 20vw, 110px);
  border-radius: 50%;
  margin-right: 10px;
  margin-left: 5px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

 

/* === SECTION: NAVIGATION & HAMBURGER === */

 
 

 

@media (max-width: 768px) {


  .progress-bar {
    z-index: 1; /* nie może przykrywać hamburgera */
  }

  .site-header,
  .nav-menu {
    overflow: visible !important; /* NIE może ukrywać hamburgera */
  }
}


 

 
 
.search-container {
  display: flex;
  align-items: center;
  height: 30px;
  gap: 6px;
  margin-left: auto;
  margin-right: 10px;
  white-space: nowrap;
  background: white;
  border-radius: 5px;
  padding: 2px 5px;
  width: 220px; /* 🎯 STAŁA SZEROKOŚĆ */
  overflow: hidden; /* Zapobiega wypychaniu przez zawartość */
}

 .search-input {
  flex: 1;
  min-width: 0; /* 👈 ważne przy `flex` wewnątrz kontenera */
}

 
.search-input {
  height: 18px !important;
  padding: 0px;
  font-size: 14px !important;
  border: none !important;
  outline: none  !important;
  border-radius: 6px;
  background: transparent;
  color: #000;
  width: 120px;
}




.search-input:focus {
  box-shadow: none;
}

#searchCounter {
  font-size: 12px;
  padding: 2px 6px;
  background-color: #444;
  color: white;
  border-radius: 6px;
  line-height: 1;
}

.clear-search {
  font-size: 14px;
  cursor: pointer;
  color: #ff3c63;
  line-height: 1;
}

.search-controls {
  display: flex;
  gap: 6px;
}

.search-controls span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffa733;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.search-controls span:hover {
  transform: scale(1.1);
}

.search-controls svg {
  width: 12px;
  height: 12px;
}

/* Highlighting tekstu */
.highlight {
  background-color: #ffa733;
  color: black;
  padding: 1px 3px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.highlight:hover {
  background-color: #ffbb55;
}

.active-highlight {
  outline: 2px dashed #ff8c00;
  background-color: #fff0c2 !important;
}





/* === Styl podświetlenia === */
.highlight {
  background-color: #ffa733;
  color: #000;
  padding: 0 2px;
  border-radius: 3px;
  transition: background-color 0.2s;
  font-weight: bold;
}

.highlight:hover {
  background-color: #ffd180;
}

.active-highlight {
  background-color: #ff5722 !important;
  color: white;
}


#custom-google-translate {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-left: 10px;
}

/* Flag images with alt text should be added in HTML for accessibility */
#custom-google-translate img {
  width: 22px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s;
}

#custom-google-translate img:hover {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  /* Ukrywamy elementy na urządzeniach mobilnych, aby poprawić czytelność i zachować minimalizm */
  .nav-links,
  .search-container,
  #custom-google-translate {
    display: none !important;
    visibility: hidden;
    opacity: 0;
  }
 
}




/* === SECTION: CONTAINER & BUTTON WRAPPER === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.botton {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  box-sizing: border-box;
}

/* === SECTION: CONTENT BLOCK === */
.section {
  margin-bottom: 40px;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  background-color: #1e1e1e;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.section:hover {
  border-color: #ff8c00;
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.6);
}

@media (max-width: 768px) {
  .section {
    padding: 30px 20px;
  }
}

/* === SECTION: FOOTER === */
.footer {
  text-align: center;
  padding: 20px 15px;
  background: linear-gradient(0deg, #1e1e1e, #333);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer p {
  margin: 4px 0;
  font-size: 15px;
  color: #ddd;
}

.footer a {
  color: #ff8c00;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer a:hover {
  color: #ffa733;
  text-shadow: 0px 0px 10px rgba(255, 140, 0, 0.8);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 10px 0;
}

.social-icons a {
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.social-icons img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(255, 140, 0, 0.5);
}


/* === SECTION: PARTNERZY === */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.partner-box {
  background: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 20px 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

.partner-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.6);
  z-index: 2;
}

.partner-box img {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin-bottom: 12px;
  border-radius: 8px;
  background: white;
}

.partner-name {
  color: #ffa733;
  font-weight: bold;
  font-size: 16px;
  margin: 5px 0;
}

.partner-subtitle {
  font-size: 13px;
  color: #ccc;
  margin-bottom: 10px;
}

.read-more-btn {
  margin-top: auto;
  display: inline-block;
  color: #ffa733;
  text-decoration: underline;
  font-size: 14px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.partner-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 🚀 magiczne */
  min-height: 320px; /* lub dostosuj */
}


.read-more-btn:hover {
  color: #ffcc80;
  text-shadow: 0px 0px 8px rgba(255, 140, 0, 0.5);
}

.modal {
  position: fixed;
  top: 5px;                  /* margines od góry */
  bottom: 5px;               /* margines od dołu */
  left: 50%;
  transform: translateX(-50%);
  background: #141414;
  color: white;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  display: none;
  text-align: center;
  overflow-y: auto;
  z-index: 2000;
    height: auto;
}

 

/* POLITYKA PRYWATNOŚCI */
.modal.privacy-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1e1e1e;
  color: white;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
  text-align: center;
  z-index: 3000;
  height: 80vh;
  max-width: 90vw;
  overflow-y: auto;
}

.modal.privacy-modal .modal-header {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  color: #ffb347;
}

.modal.privacy-modal .modal-body p,
.modal.privacy-modal .modal-body ul {
  color: #ddd;
}

.modal.privacy-modal .modal-body ul {
  padding-left: 20px;
}

.modal.privacy-modal .modal-body ul li {
  list-style: disc;
  margin: 5px 0;
}

.modal.privacy-modal .contact-info {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  color: #ccc;
}

.modal.privacy-modal .contact-info a {
  color: #ffb347;
  text-decoration: underline;
}
.modal.privacy-modal .contact-info a:hover {
  color: #ffd580;
}

.modal.privacy-modal .modal-footer {
  text-align: center;
  margin-top: 20px;
}

.modal.privacy-modal .modal-footer button {
  background: linear-gradient(135deg, #ff8c00, #ff6f00);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal.privacy-modal .modal-footer button:hover {
  background: #e65c00;
}



/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1e1e1e;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 140, 0, 0.3);
  text-align: center;
  backdrop-filter: blur(8px);
  max-width: 500px;

  /** 🧠 Najważniejsze zmiany **/
  max-height: 90vh;      /* górny limit */
  height: auto;          /* dopasowuje się do treści */
  overflow-y: auto;      /* scroll jeśli treść przekroczy wysokość */
  padding: 20px 30px;    /* wewnętrzny padding */
}



.cookie-modal p {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 20px;
}

.cookie-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.cookie-buttons button {
  background: linear-gradient(135deg, #ff6f00, #ff8c00);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-buttons button.reject {
  background: #444;
}
.cookie-buttons button:hover {
  background: #e65c00;
}
.cookie-buttons button.reject:hover {
  background: #666;
}

/* IKONA ZAMKNIĘCIA X */
.close-partner-modal {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 24px;
  color: #ffa733;
  cursor: pointer;
  z-index: 9999;
}
-partner-modal {
  position: absolute;
  top: 8px;         /* ✅ niżej, by nie przylegało */
  right: 10px;
  font-size: 24px;
  color: #ffa733;
  cursor: pointer;
  z-index: 9999;    /* 💡 zawsze na wierzchu */
}

#partner-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1e1e1e;
  color: white;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
  text-align: center;
  z-index: 3000;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  display: none; /* DOMyślnie ukryty */
}

#partner-modal.show {
  display: block;
}

#partner-modal .modal-partner-logo {
  width: 90px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.4);
  margin-bottom: 10px;
  background: white;
  padding: 4px;
}

#partner-modal h2#partner-modal-title {
  font-size: 22px;
  color: #ffa733;
  margin: 10px 0 15px;
}

#partner-modal p#partner-modal-subtitle {
  font-size: 15px;
  color: #ccc;
  margin-bottom: 10px;
}

#partner-modal p#partner-modal-description {
  font-size: 15px;
  line-height: 1.6;
  color: #ddd;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#partner-modal .partner-link {
  color: #ffa733;
  text-decoration: underline;
  font-weight: 500;
  font-size: 15px;
  display: inline-block;
  margin-top: 10px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

#partner-modal .partner-link:hover {
  color: #ffcc80;
  text-shadow: 0 0 8px rgba(255, 140, 0, 0.5);
}


#partner-modal .close-partner-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 26px;
  color: #ffa733;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#partner-modal .close-partner-modal:hover {
  transform: scale(1.2);
}

/* Podgląd strony (screenshot) */
.partner-screenshot {
  width: 90%;
  max-width: 500px;
  margin-top: 20px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.4);
}



/* Firefox */
#partner-modal {
  scrollbar-width: thin;
  scrollbar-color: #ff8c00 #333;
}

/* 📱 Responsywność */
@media (max-width: 480px) {
  #partner-modal {
    width: 95vw;
    padding: 20px 15px;
  }

  #partner-modal h2 {
    font-size: 18px;
  }

  #partner-modal .partner-link {
    font-size: 14px;
    padding: 8px 16px;
  }

  #partner-modal .partner-screenshot {
    width: 100%;
    max-width: 100%;
  }
}



 

.privacy-link,
.cookie-privacy-toggle {
  color: #ffa733;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}

.privacy-link:hover,
.cookie-privacy-toggle:hover {
  color: #ffcc80;
}


.spinner {
  display: none;
  margin: 20px auto;
  width: 28px;
  height: 28px;
  border: 4px solid rgba(255, 140, 0, 0.2);
  border-top: 4px solid #ff8c00;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 6px rgba(255, 140, 0, 0.4);
  background: transparent;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .modal,
  .modal.privacy-modal,
  .modal-partner,
  .cookie-modal {
    width: 95vw;
    max-height: 90vh;
    padding: 20px 15px;
    font-size: 14px;
    border-radius: 10px;
  }

  .modal .modal-footer button,
  .modal-partner button,
  .privacy-modal .modal-footer button {
    font-size: 13px;
    padding: 8px 16px;
  }

  .close-partner-modal,
  .close-modal {
    top: 8px;
    right: 10px;
    font-size: 22px;
  }

  .modal-partner-logo {
    max-width: 60px;
    margin-bottom: 10px;
  }

  .partner-iframe-wrapper {
    height: 250px;
  }
}


/* === Formularz kontaktowy === */
/* Kontener formularza */
#kontakt {
  max-width: 750px;
  margin: 0 auto;
  padding: 40px 30px;
  background: #1e1e1e;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.4);
}
 


/* Formularz */
form#contactForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Grupy formularza */
.form-group {
  width: 100%;
  margin-bottom: 25px;
  position: relative;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: #ff8c00;
  box-shadow: 0 0 5px rgba(255, 140, 0, 0.5);
}

/* Label nad polem */
.form-group label {
  position: absolute;
  top: 14px;
  left: 18px;
  background: white;
  padding: 2px 8px;
  color: #000000;
  border-radius: 12px;
  pointer-events: none;
  transition: 0.3s;
  font-size: 14px;
}

/* Unoszenie labelki */
input:focus + label,
textarea:focus + label,
input:not(:placeholder-shown) + label,
textarea:not(:placeholder-shown) + label {
  top: -12px;
  left: 10px;
  font-size: 12px;
  color: #ff8c00;
  border: 1px solid #ff8c00;
  box-shadow: 0 0 6px rgba(255, 140, 0, 0.4);
}

/* Checkbox i link */
.privacy-check {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 10px;
  font-size: 14px;
  color: #ccc;
  margin: 10px 0;
}

.privacy-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #ff8c00;
  margin: 0;
}

.privacy-check a {
  color: #ff8c00;
  text-decoration: underline;
}

.privacy-check a:hover {
  color: #ffa733;
}

/* Przycisk Wyślij + tooltip wrapper */
.form-submit-wrapper {
  margin-top: 20px;
  position: relative;
  display: flex;
  justify-content: center;
}

/* Przycisk */
#submitButton {
  background: linear-gradient(135deg, #ff8c00, #ff6f00);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

#submitButton:disabled {
  background: #888;
  cursor: not-allowed;
}

/* Tooltip */
.tooltip-wrapper {
  position: relative;
}

.tooltip-text {
  visibility: hidden;
  background: #2b2b2b;
  color: #FFA500;
  border: 1px solid #FFA500;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  z-index: 10;
  box-shadow: 0 0 10px rgba(255,165,0,0.5);
}

/* Tooltip widoczny tylko jeśli submit jest nieaktywny i hover */
#submitButton:disabled:hover + .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Spinner */
.spinner {
  display: none;
  margin: 15px auto;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 140, 0, 0.3);
  border-top-color: #ff8c00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#thankYouSection {
  background: #1e1e1e;
  padding: 50px 20px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.4);
  color: #fff;
  max-width: 600px;
  margin: 40px auto 20px;
  display: none; /* na wszelki wypadek */
}
.fade-out-up {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.fade-out-up.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.fade-in-down {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.6s ease;
  text-align: center;
}

.fade-in-down.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-section {
  margin-bottom: 20px; /* Zmniejsz dolny margines sekcji kontaktowej */
}

.partners-section {
  margin-top: 20px; /* Zmniejsz górny margines sekcji partnerów */
}

#partnerzy {
  margin-top: 10px !important;
}
.footer-wide {
  width: 100%; /* pełna szerokość widoku przeglądarki */
  background-color: #111; /* Twój kolor */
  color: white;
  padding: 40px 0;
  overflow-x: hidden;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Status info */
.status-message {
  font-size: 15px;
  color: #90ee90;
  text-align: center;
  margin-top: 20px;
  display: none;
}

/* Responsywność */
@media (max-width: 600px) {
  #kontakt {
    padding: 30px 15px;
  }
}


form#contactForm textarea {
  resize: none;
}
 
.section#kontakt {
  margin-top: 0 !important; /* Usuwamy nadmiarowy margines */
}

.partner-grid {
  margin-bottom: 30px; /* Zmniejsz z np. 60px jeśli było więcej */
}


.centered-footer {
  justify-content: center;
  text-align: center;
}

.footer-block {
  flex: none; /* żeby nie rozciągał się na szerokość */
}

.footer-block .social-icons {
  margin-top: 20px;
}

.footer-block .social-icons a {
  display: inline-block;
  margin: 0 6px;
  transition: transform 0.2s ease;
}

.footer-block .social-icons a:hover {
  transform: scale(1.2);
}
.footer-wide {
  background: linear-gradient(to bottom, #1a1a1a 0%, #181818 100%);
  padding: 30px 10px 20px;
  color: #f0f0f0;
  width: 100%;
  margin-top: 40px;
  box-shadow: inset 0 1px 0 rgba(255, 140, 0, 0.3);
}
.footer-wide p,
.footer-wide a {
  color: #ddd;
  font-size: 14px;
  margin: 4px 0;
}

 
/* Animacja fade-in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.social-icons img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 0 6px rgba(255, 140, 0, 0.5);
}

.social-icons img:hover {
  transform: scale(1.15);
}

 
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .footer-container > * {
    margin: 8px 0;
  }

  .social-icons {
    justify-content: center;
    flex-wrap: wrap;
  }
 

.footer-wide a {
  color: #ffa733;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-wide a:hover {
  color: #ff8c00;
  text-decoration: underline;
}


 

 

#omnie {
  max-width: 100%;
  overflow-x: hidden;
}

.about-text,
.icon-list {
  max-width: 100%;
  overflow-x: hidden;
}

#umiejetnosci .icon-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#umiejetnosci .icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

#umiejetnosci .icon-list img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.project-desc {
  display: none;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: #ccc;
}

.project-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.project-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.project-card ul li::before {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 0.2rem;
}
 

.project-thumb {
  width: 280px;
  max-width: 90vw;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-thumb:hover {
  transform: scale(1.05);
}
 
.project-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.project-images img.thumbnail {
  width: 160px;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255,140,0,0.3);
  transition: transform 0.3s ease;
}

.project-images img.thumbnail:hover {
  transform: scale(1.05);
}


/* Modal styl */
.modal.image-modal {
  display: none;
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1e1e1e;
  color: white;
  padding: 20px 30px 30px 30px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
  z-index: 4000;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  text-align: center;
  margin-bottom: 40px;
}

.modal-content {
  width: 100%;
  max-width: 700px;
  max-height: 70vh;
  border-radius: 10px;
  margin: 0 auto;
  display: block;
  box-shadow: 0 0 12px rgba(255,140,0,0.4);
}

#imageCaption {
  margin-top: 10px;
  font-size: 15px;
  color: #ffa733;
  margin-bottom: 20px;
}

.close-image-modal {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 24px;
  font-weight: bold;
  color: #ffa733;
  cursor: pointer;
}

.modal-close-button {
  background: linear-gradient(135deg, #ff8c00, #ff6f00);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.3s ease;
}

.modal-close-button:hover {
  background: #e65c00;
}
.modal-content-wrapper {
  position: relative;
  overflow: auto;         /* 👈 pozwala na scrollowanie */
  max-height: 70vh;
  max-width: 100%;
  margin: 0 auto;
  cursor: zoom-in;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255,140,0,0.4);
}

.modal-content.zoomed {
  transform: scale(2.5);
  cursor: move;
  transition: transform 0.3s ease;
}

.modal-content {
  max-width: 100%;
  max-height: 100%;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
  user-select: none;
  pointer-events: all;
}
.zoom-inner {
  width: fit-content;
  height: fit-content;
}

.zoom-inner.zoomed {
  transform: scale(2.5);
  transform-origin: top left;
}

.modal-content-wrapper {
  overflow: auto;
  max-height: 70vh;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255,140,0,0.4);
  cursor: zoom-in;
}

 
.toggle-desc {
  display: inline-block;
  text-align: center;
  width: 100%;
  color: #ffa733;
  text-decoration: underline;
  font-size: 13px;
  margin-top: 10px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}



.toggle-desc:hover {
  color: #ffcc80;
  text-shadow: 0px 0px 8px rgba(255, 140, 0, 0.5);
}
.section-separator {
  height: 4px;
  margin: 3rem auto;
  background: linear-gradient(to right, transparent, orange, transparent);
  border-radius: 2px;
  width: 80%;
}
.img-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  text-align: center;
  padding-top: 60px;
}

.img-modal.show {
  display: block;
}

.img-modal-content {
  max-width: 80%;
  max-height: 80vh;
  margin: auto;
  display: block;
  border-radius: 10px;
}

.close-img {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}


.icon-inline {
  width: 18px;
  height: 18px;
  max-width: 20px;
  max-height: 20px;
  vertical-align: middle;
  margin: 0 4px 0 2px;
  opacity: 0.9;
  transform: translateY(-1px);
  display: inline-block;
}
.project-desc img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .site-header {
    overflow: hidden;
  }

  .nav-menu {
    background: linear-gradient(135deg, #ff6f00, #ff8c00);
    backdrop-filter: blur(6px);
  }
}
 
/* === HAMBURGER — od zera === */
.hamburger-btn {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger-btn div {
  width: 22px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.hamburger-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 10001;
  position: fixed;
}

.hamburger-btn div {
  height: 3px;
  background: white;
}


@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  .mobile-overlay {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9998;
    transition: opacity 0.3s ease;
  }

  .mobile-overlay.show {
    display: flex;
  }

  .mobile-overlay a {
    color: white;
    font-size: 18px;
    margin: 12px 0;
    text-decoration: none;
    transition: color 0.3s;
  }

  .mobile-overlay a:hover {
    color: #ffa733;
  }
  .mobile-overlay {
    z-index: 10000;
  }
}
.mobile-overlay {
  display: none;
}

/* Domyślny ciemny motyw */
body {
  background-color: #1e1e1e;
  color: white;
}

/* Tryb jasny */
body.light-mode {
  background-color: #ffffff;
  color: #000000;
}

body.light-mode .card {
  background-color: #f5f5f5;
  color: #000000;
}

#toggle-theme {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 10px;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
}

body.light-mode #toggle-theme {
  background: rgba(0, 0, 0, 0.1);
}
body.light-mode .card,
body.light-mode .content,
body.light-mode section,
body.light-mode .section,
body.light-mode .box,
body.light-mode .container {
  background-color: #f5f5f5; /* jasnoszary */
  color: #1e1e1e; /* ciemna czcionka */
}

body.light-mode .card h2,
body.light-mode .card p,
body.light-mode .section h2,
body.light-mode .section p {
  color: #1e1e1e;
}
body.light-mode .card,
body.light-mode .section {
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border-radius: 16px;
}
body.light-mode .contact,
body.light-mode .kontakt-box,
body.light-mode .card-form {
  background-color: #f9f9f9;
  color: #1e1e1e;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}
/* === Jasny styl dla modala partnerów === */
body.light-mode .partner-modal,
body.light-mode .modal-content,
body.light-mode .partner-details {
  background-color: #fff;
  color: #1e1e1e;
  border: 1px solid #ccc;
}

body.light-mode .partner-modal a {
  color: #0057a3;
}

body.light-mode .partner-modal a:hover {
  color: #ff6f00;
}

body.light-mode section,
body.light-mode main {
  background-color: #f3f3f3;
}
body.light-mode body {
  background: linear-gradient(to bottom, #ffffff 0%, #f3f3f3 100%);
}
body.light-mode .card,
body.light-mode .kontakt-box {
  box-shadow: 0 0 10px rgba(0,0,0,0.06);
  border-radius: 12px;
  margin-bottom: 40px;
}
 
body.light-mode .modal-close,
body.light-mode .modal-button {
  background-color: #ff6f00;
  color: white;
}

body.light-mode .modal-close:hover,
body.light-mode .modal-button:hover {
  background-color: #e55d00;
}
.mobile-theme-btn {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: none;
  border: none;
  font-size: 22px;
  color: #ffa733;
  cursor: pointer;
}
#partner-modal::-webkit-scrollbar-thumb {
  background-color: #666;
}
#partner-modal::-webkit-scrollbar-track {
  background-color: #222;
}
body.light-mode .section,
body.light-mode #kontakt,
body.light-mode .partner-box,
body.light-mode .modal,
body.light-mode #partner-modal,
body.light-mode .cookie-modal,
body.light-mode .modal.privacy-modal,
body.light-mode #thankYouSection {
  background-color: #f9f9f9;
  color: #111;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.light-mode .partner-name {
  color: #cc5200;
}

body.light-mode .partner-subtitle,
body.light-mode .modal p,
body.light-mode .modal-partner p,
body.light-mode .modal.privacy-modal .modal-body p,
body.light-mode .footer p,
body.light-mode .form-group label {
  color: #444;
}

body.light-mode .partner-link,
body.light-mode .footer a,
body.light-mode .privacy-link {
  color: #cc5200;
}
.section {
  background: linear-gradient(to bottom, #1e1e1e, #2a2a2a);
}
body.light-mode .section {
  background: linear-gradient(to bottom, #ffffff, #f2f2f2);
}
body.light-mode .modal,
body.light-mode #partner-modal,
body.light-mode .partner-box,
body.light-mode .kontakt-box,
body.light-mode #kontakt,
body.light-mode .cookie-modal,
body.light-mode .modal.privacy-modal,
body.light-mode .card-form,
body.light-mode .footer {
  background-color: #ffffff;
  color: #111111;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .modal a,
body.light-mode .partner-link,
body.light-mode .footer a,
body.light-mode .privacy-link {
  color: #cc5200;
}

body.light-mode .modal a:hover,
body.light-mode .footer a:hover {
  color: #e66900;
}

body.light-mode label,
body.light-mode .form-group label {
  color: #444 !important;
}

body.light-mode .partner-name {
  color: #e76f00;
}

body.light-mode .partner-subtitle,
body.light-mode .modal p,
body.light-mode .modal-partner p,
body.light-mode .footer p {
  color: #333;
}
body.light-mode .mobile-overlay {
  background-color: #fff;
  color: #111;
}

body.light-mode .mobile-overlay a {
  color: #111;
}

body.light-mode .mobile-overlay a:hover {
  color: #e76f00;
}
body.light-mode .hamburger-btn div {
  background: #222 !important;
}
.mobile-theme-btn {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: none;
  border: none;
  font-size: 22px;
  color: #ff8c00;
  cursor: pointer;
}

body.light-mode .mobile-theme-btn {
  color: #222;
}
/* 1. Czcionki w modalach – czarne, nie szare */
body.light-mode .modal p,
body.light-mode .modal-partner p,
body.light-mode .modal .partner-subtitle,
body.light-mode .modal .partner-details {
  color: #111 !important;
}

/* 2. Przycisk jasny/ciemny tylko w mobilnym menu */
#toggle-theme {
  display: none;
}

@media (max-width: 768px) {
  .mobile-overlay #toggle-theme {
    display: block;
  }
}
@media (max-width: 768px) {
  .mobile-overlay #toggle-theme {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #f2f2f2;
    border: 2px solid #222;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s, color 0.3s;
  }

  body.light-mode .mobile-overlay #toggle-theme {
    background-color: #eaeaea;
    border-color: #888;
    color: #222;
  }

  body:not(.light-mode) .mobile-overlay #toggle-theme {
    background-color: #1e1e1e;
    border-color: #fff;
    color: #fff;
  }
}
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 26px;
  z-index: 9999;
  cursor: pointer;
  display: none;
  background: transparent;
  border: none;
}

@media (min-width: 1024px) {
  .theme-toggle {
    display: block;
  }
}

.footer-ai-note {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: #e6e6e6;
  padding: 12px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 1.4em;
  text-align: center;
  opacity: 0.95;
}

.footer-ai-note .gpt-prefix {
  font-size: 1.1rem;
  color: #00ffa2;
  filter: drop-shadow(0 0 2px #00ffa2);
}

.cursor {
  display: inline-block;
  animation: blink 0.7s infinite;
  color: #ffa500;
  font-weight: bold;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
body {
  background: linear-gradient(to right, #000000 0%, #202020 50%, #383838 100%);
}
.theme-toggle-and-top {
  position: fixed;
  right: 75px;
  bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 999;
}

/* Styl przycisków */
.round-icon-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 18px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.round-icon-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Domyślnie strzałka jest widoczna dopiero po scrollu */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 18px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}

/* --- MOBILE: przestawienie układu --- */
@media (max-width: 768px) {
  .theme-toggle-and-top {
    right: auto;
    left: 0;
    bottom: 20px;
    width: 100%;
    justify-content: space-between;
    padding: 0 10px;
  }

  /* Można dodać margines, żeby nie było przyklejone do krawędzi */
  .round-icon-button {
    margin: 0;
  }
}
