/* =====================
   ROOT VARIABLES
===================== */
:root {
  --secondary-color: #0056b3;
  --primary-color-2: #1f2937;
  --hover-color-2: #4b5563;
  --bg-color: #f9fafb;
  --primary-hover-color: #0056b3;
  --background-color-light: #f9f9f9;
  --text-color-dark: #555;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --hover-background-color: rgba(0, 123, 255, 0.1);
  --hover-color: #ff4d4d;
  --border-color: #ddd;

  --primary-color: white;
  --dropdown-bg: white;
  --dropdown-hover-bg: #ddd;
  --text-color: #333;

  --color-background: #1f2937;
  --color-highlight: #f97316;
  --color-text: #fff;
  --color-btn: #f97316;
  --color-btn-hover: #e85d0e;
  --color-link: #ff7a29;
  --color-link-hover: #f97b16;

  --font-size-heading: 26px;
  --font-size-subheading: 20px;
  --font-size-text: 16px;

  --padding-main: 40px;
  --padding-card: 20px;
  --border-radius: 10px;
}

/* =====================
   GLOBAL
===================== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  font-size: var(--font-size-text);
}

button:focus {
  outline: none;
}

.hidden {
  display: none;
}

/* =====================
   NAVIGATION
===================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px 10px;
  background: linear-gradient(180deg,#0f1724 0%, #111827 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  z-index: 1100;
}

nav button {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 15px 25px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

nav button:hover {
  background: var(--primary-hover-color);
}

.nav-btn.active,
.footer-link.active,
.footer-btn.active {
  background: var(--color-highlight);
  color: white;
  box-shadow: 0 6px 18px rgba(249,115,22,0.12);
}

/* =====================
   MAIN CONTAINER
===================== */
.main-container {
  margin: 120px auto 40px;
  width: 80%;
  background: white;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0px 2px 10px rgba(0,0,0,0.1);
}

section[id] {
  scroll-margin-top: 96px; 
}

/* =====================
   DESCRIPTION SECTION
===================== */
.description-header {
  text-align: center;
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 30px 0;
}

.description-carousel-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 40px;
}

.description-text p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.image-container {
  position: relative;
  z-index: 1;
}

.image-container img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* =====================
   INSTALLATION & REPAIR
===================== */
.big-header {
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
}

.installation-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.button-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  z-index: 2;
}

.service-button {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(2,6,23,0.06);
  box-shadow: 0 6px 18px rgba(16,24,40,0.04);
  padding: 25px 35px;
  border-radius: 15px;
  font-weight: 600;
  font-size: 20px;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  
  /* NOWE: Równa szerokość na komputerze */
  width: 100%;
  max-width: 550px; 
}

.service-button:hover {
  transform: translateX(6px) translateY(-2px);
  box-shadow: 0 12px 30px rgba(16,24,40,0.08);
  border-color: var(--secondary-color);
  background: rgba(0, 123, 255, 0.08);
}

.service-button.active {
  background: rgba(0,86,179,0.06);
  border-color: var(--secondary-color);
  transform: translateX(4px);
}

.service-details {
  display: none;
  margin-top: 8px;
  padding: 12px;
  background: var(--background-color-light);
  border-left: 3px solid var(--secondary-color);
  border-radius: 8px;
  color: var(--text-color-dark);
}

.service-details.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.installation-content .image-container {
  width: 100%;
  max-width: 720px;
  height: auto !important; /* Zmiana z 420px na auto */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(31,41,55,0.06);
}

#installationImage {
  width: 100%;
  height: auto !important; /* Gwarantuje brak ucinania */
  object-fit: contain;
  display: block;
  background: #f7f8fa;
}

/* =====================
   UDT SECTION
===================== */
.udt-page {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.udt-header {
  font-size: 2.8rem;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.udt-header::after {
  content: "";
  display: block;
  width: 50%;
  height: 4px;
  background: var(--secondary-color);
  margin: 10px auto 0;
}

.udt-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.udt-item {
  flex: 1;
  min-width: 300px;
  background: #ffffff;
  padding: 40px 30px;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.udt-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.udt-item p {
  margin: 0;
  line-height: 1.7;
  color: #333;
  font-size: 1.1rem;
}

/* =====================
   FOOTER
===================== */
.footer {
  background: linear-gradient(180deg,#0f1724 0%, #111827 100%);
  color: #fff;
  padding: 60px 20px;
  margin-top: 60px;
}

.footer-container {
  width: 80%;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  justify-content: space-between;
}

.footer-accent {
  width: 44px;
  height: 6px;
  background: var(--color-highlight);
  margin-bottom: 12px;
  border-radius: 4px;
}

.footer h2 { font-size: 1.2rem; margin: 12px 0; }
.footer p { margin: 10px 0; color: rgba(255,255,255,0.85); }
.footer a { color: #fff; text-decoration: underline; }

.footer-btn {
  display: inline-block;
  background: var(--color-btn);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  margin: 10px 0 18px 0;
  font-weight: bold;
}

.footer-btn:hover { background: var(--color-btn-hover); }

.footer-link {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.95);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: 1.1rem;
}

/* =====================
   MOBILE & TABLET (Responsive)
===================== */
@media (max-width: 1024px) {
  :root {
    --font-size-text: 19px;
  }

  body {
    font-size: 19px;
  }

  .main-container {
    width: 95%;
    margin: 100px auto 20px;
    padding: 15px;
  }

  /* Description: Image on TOP */
  .description-carousel-container {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 30px;
  }

  .image-container {
    order: -1;
    width: 90%;
    margin: 0 auto;
  }

  .description-text {
    width: 100%;
    text-align: left;
  }

  .description-text p {
    font-size: 1.25rem;
  }

  .description-header {
    font-size: 3rem;
  }

  /* Installation & Repair */
  .installation-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .installation-content .image-container {
    height: 300px;
  }

  /* UDT */
  .udt-header {
    font-size: 3.2rem;
  }

  .udt-item p {
    font-size: 1.3rem !important;
  }

  .udt-item {
    padding: 35px 25px;
  }

  /* Footer */
.service-button {
    max-width: none !important; 
    width: 100% !important;
    font-size: 22px !important;
    padding: 25px !important;
    justify-content: center; /* Tekst na środku przycisku */
    box-sizing: border-box;
  }

  /* STOPKA: Naprawa rozjazdu danych firmy */
.footer-container {
    width: 95% !important;
    flex-direction: column !important; /* Układa lewą i prawą stronę jedna pod drugą */
    gap: 40px !important;            /* Odstęp między sekcjami */
    align-items: flex-start !important; /* Wyrównanie do lewej strony */
  }

.footer-left, 
  .footer-right {
    width: 100% !important;
    text-align: left !important;      /* Tekst od lewej, nie na środku */
  }
  /* Żeby dane firmy nie uciekały pod spód */
  .footer-right p, .footer-right a {
    display: block;
    width: 100%;
    word-wrap: break-word;
  }

.footer h2, .footer h3 {
    font-size: 1.8rem !important;    /* Większe nagłówki */
    margin-bottom: 20px !important;
  }

.footer p, 
  .footer a, 
  .footer-link {
    font-size: 1.4rem !important;    /* Wyraźna treść i maile */
    line-height: 1.6 !important;
    margin: 12px 0 !important;
  }

.footer-btn {
    width: 100% !important;
    font-size: 1.4rem !important;
    padding: 20px !important;
    text-align: center !important;   /* Napis na przycisku zostaje na środku */
    box-sizing: border-box;
  }
}

/* =====================
   LIGHTBOX & ANIMATIONS
===================== */
.image-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.image-overlay img {
  max-width: 95%;
  max-height: 90%;
  border-radius: 10px;
  cursor: zoom-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}