/* -------------MAIN PAGE----------------- */

@font-face {
  font-family: 'MojaCzcionka';
  src: url('../font/uni-sans.heavy-caps.otf') format('opentype');
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'MojaCzcionka';
  background: linear-gradient(to right, 
    #830000 -80%,      
    #0d0d0d 30%,     
    #0d0d0d 70%,     
    #1f6ab1 150%     
  );
}


main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ------------- NAVBAR----------------- */

.custom-navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease;
  background-color: transparent;
}
.custom-navbar.scrolled {
  background-color: rgba(3, 3, 3, 0.562);
}
.custom-navbar .navbar-nav {
  text-align: center;
}
.custom-navbar .nav-link {
  padding: 0 15px;
  font-weight: 500;
  color: white !important;
}
.custom-navbar .navbar-brand {
  color: white !important;
}
.custom-navbar h2 {
  color: white;
  font-size: 24px;
  text-align: center;
  flex-grow: 1;
  padding-left: 155px;
}
.custom-navbar .d-flex {
  margin-right: 15px;
}
.custom-navbar .d-flex img {
  width: 25px;
  height: 25px;
  transition: transform 0.3s ease;
}
.custom-navbar .d-flex img:hover {
  transform: scale(1.2);
}
.clickable {
  cursor: pointer;
}

@media (max-width: 576px) {
  .custom-navbar h2 {
    font-size: 18px;
    text-align: left;
    padding-left: 15px;
    flex-grow: 0;
  }
  .custom-navbar .d-flex img {
    width: 22px;
    height: 22px;
  }
}

/* -------------SEKCJA (IMAGES)----------------- */

:root {
  --pin-width: 200px;
  --row-height: 10px;
  --pin-radius: 12px;
}

.pinterest-gallery {
  margin-top: 100px;
}

.pin-container {
  column-count: 5;
  column-gap: 14px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px;
}

@media (max-width: 1200px) {
  .pin-container {
    column-count: 4;
  }
}

@media (max-width: 992px) {
  .pin-container {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .pin-container {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .pin-container {
    column-count: 1;
  }
}

.pin {
  display: inline-block;
  width: 100%;
  margin-bottom: 14px;
  border-radius: var(--pin-radius);
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.pin img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--pin-radius);
}

.pin:hover {
  transform: scale(1.02);
}

.modal-image {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.4s ease-in-out;
}

/* -------------SEKCJA (LOGO SLIDER)----------------- */

.logo-slider {
  position: relative;
  overflow: hidden;
  background-color: rgb(13, 13, 13);
  padding: 40px 0 20px;
  max-width: 70%;
  margin: 0 auto;
  z-index: 1;
}

.logo-slider::before,
.logo-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-slider::before {
  left: 0;
  background: linear-gradient(to right, rgb(13, 13, 13) 0%, transparent 100%);
}

.logo-slider::after {
  right: 0;
  background: linear-gradient(to left, rgb(13, 13, 13) 0%, transparent 100%);
}

.logo-slider h2 {
  text-align: center;
  color: white;
  margin-top: 80px;
  margin-bottom: 80px;
  font-size: 36px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.logo-track {
  display: flex;
  width: max-content;
  animation: scrollLeft 40s linear infinite;
  align-items: center;
}

.logo-track img {
  height: 80px;
  margin: 0 40px;
  opacity: 1.0;
  transition: opacity 1.3s ease-in-out;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ------------- SEKCJA (FOOTER) ----------------- */

footer {
  text-align: center;
  color: white;
  position: relative;
  width: 100%;
  padding-top: 240px;
  padding-bottom: 1px;
  font-size: 10px;
}

.apex-button {
  display: inline-block;
  border: none;
  background: none;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  cursor: pointer;
}

.apex-button:hover {
  color: royalblue;
}

/* ------------- (DYMEK) ----------------- */
.chat-bubble-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'MojaCzcionka', sans-serif;
}

.chat-toggle {
  background-color: #3d5afe;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.chat-toggle:hover {
  transform: scale(1.1);
}
.chat-form {
  position: relative; 
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.5s ease;
  flex-direction: column;
  background-color: #1e1e1e;
  padding: 30px;
  width: 400px;
  max-height: 90vh;           
  overflow-y: auto; 
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  position: fixed;              
  bottom: 90px;
  right: 20px;
  max-width: 90vw;               
  box-sizing: border-box;      
  overflow: hidden; 
  z-index: 1000;
}


.chat-form.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  display: flex;
}
.chat-form input,
.chat-form textarea {
  background-color: #2a2a2a;
  border: none;
  border-radius: 2px;
  padding: 10px;
  margin-bottom: 10px;
  color: #fff;
  font-size: 14px;
  width: 100%;
}
.chat-form textarea {
  background-color: #2a2a2a;
  border: none;
  border-radius: 2px;
  padding: 10px;
  margin-bottom: 10px;
  color: #fff;
  font-size: 14px;
  width: 100%;
  height: 140px; 
  resize: vertical; 
}
.chat-form form button {
  background-color: #3d5afe;
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  width: 80%;
  margin: 20px auto 0 auto;
  display: block;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: white;
}

.chat-header button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}
.chat-phone {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background-color: #3d5afe;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  cursor: pointer;
  z-index: 9999;
  flex-direction: column;
  overflow: visible;
}

.phone-number {
  opacity: 0; 
  transform: translateY(20px); 
  pointer-events: none; 
  transition: opacity 0.3s ease, transform 0.3s ease; 
  position: absolute;
  bottom: 70px;
  right: 0;
  background-color: #1e1e1e;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 30px;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.phone-number a {
  color: white;
  text-decoration: none;
}

.phone-number a:hover {
  text-decoration: none;
}
.chat-phone:hover {
  transform: scale(1.1);
}
.phone-number.open {
  opacity: 1; 
  transform: translateY(0); 
  pointer-events: auto; 
}

.popup {
  display: none; 
  position: absolute;
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  width: 80%;
  max-width: 300px;
  background-color: rgba(0, 0, 0, 0.8); 
  color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  text-align: center;
  z-index: 1001; 
  animation: fadeIn 0.5s ease-out; 
}


.popup-content {
  padding: 20px;
  border-radius: 10px;
  position: relative;
}

.popup-content .close {
  font-size: 30px;
  position: absolute;
  top: -20px;
  right: -10px;
  cursor: pointer;
  color: white;
  transition: transform 0.3s ease;
}

.popup-content .close:hover {
  transform: scale(1.2); 
}

#popup-message {
  font-size: 18px;
  font-weight: bold;
}


@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.grecaptcha-badge { 
  left: 20px !important; 
  bottom: 20px !important; 
  right: auto !important; 
}