/* ========================
   RESET I OGÓLNE USTAWIENIA
   ======================== */
:root {
  /* Kolory - Czyste odcienie szarości z subtelnym niebieskim akcentem */
  --color-bg-dark: #2c3e50e1; /* Główny kolor tła (ciemna, chłodna szarość) */
  --color-bg-medium: #34495E; /* Nieco jaśniejsza ciemna szarość (np. dla przewiniętej nawigacji, tła kart) */
  --color-accent: #3498DB; /* Profesjonalny, żywy niebieski - kolor akcentu */
  --color-text-light: #ECF0F1; /* Bardzo jasna szarość - główny kolor tekstu */
  --color-text-dark: #2C3E50; /* Ciemny tekst na jasnych elementach (jeśli takie będą) */

  --color-glass-bg: rgba(44, 62, 80, 0.5); /* Tło dla efektu szkła, bardziej transparentne z ciemnej szarości */
  --color-glass-border: rgba(236, 240, 241, 0.15); /* Jasna, subtelna ramka dla efektu szkła */
  --color-overlay-bg: rgba(0, 0, 0, 0.4); /* Jaśniejsze, mniej inwazyjne tło overlay dla menu mobilnego */
  --color-scrolled-nav-bg: rgba(236, 240, 241, 0.1); /* Bardzo jasne, przezroczyste tło nawigacji po scrollu */
  --color-nav-bg:rgba(248, 250, 251, 0.552);

  /* Czcionki */
  --font-main: 'Poppins', sans-serif;

  /* Odstępy */
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 3rem; /* Standardowy duży odstęp */
  --spacing-xxl: 5rem; /* Nowy, bardzo duży odstęp */

  /* Zaokrąglenia */
  --border-radius-sm: 0.5rem;
  --border-radius-md: 1rem;
  --border-radius-lg: 1.5rem;
  --border-radius-full: 50%;

  /* Cienie */
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.2);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.3);
  --shadow-glass: 0 8px 40px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: var(--font-main);
}

body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Zapobiega scrollowaniu tła, gdy menu mobilne jest aktywne */
body.scroll-lock, html.scroll-lock {
  overflow: hidden !important;
}

/* Właściwe font-family i font-weight dla ikon Font Awesome */
.fas, .fab {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif;
  font-weight: 900; /* Kluczowe dla wyświetlania ikon solid i brand */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-light);
  text-align: center;
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-text-light); /* Linki stają się jasne na hover */
}

/* Przyciski ogólne */
.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 2px solid var(--color-accent);
  border-radius: 50px;
  color: var(--color-text-light);
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  background-color: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--color-accent);
  color: var(--color-text-light);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary i {
  margin-right: 8px;
  color: inherit;
}

.lightbox-nav {
      position: absolute;
      top: 50%;
      width: 100%;
      display: flex;
      justify-content: space-between;
      transform: translateY(-50%);
      pointer-events: none;
    }

    .lightbox-nav button {
      background: rgba(0, 0, 0, 0.6);
      border: none;
      color: white;
      font-size: 2rem;
      padding: 0.5rem 1rem;
      cursor: pointer;
      pointer-events: all;
    }

/* ========================
   GLOBAL LIGHTBOX STYLES (nowe)
   ======================== */
#lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Ciemne tło, 80% krycia */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000; /* Upewnij się, że jest nad wszystkim */
  visibility: hidden; /* Domyślnie ukryty */
  opacity: 0; /* Domyślna przezroczystość */
  transition: opacity 0.3s ease, visibility 0.3s ease; /* Płynne przejście */
}

#lightbox-overlay.active {
  visibility: visible;
  opacity: 1;
}

#lightbox-image {
  max-width: 90%; /* Maksymalna szerokość zdjęcia */
  max-height: 90%; /* Maksymalna wysokość zdjęcia */
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); /* Mocniejszy cień dla powiększonego zdjęcia */
  object-fit: contain; /* Zapewnia, że całe zdjęcie jest widoczne, bez przycinania */
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--color-text-light); /* Jasny kolor */
  font-size: 3rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
  transition: color 0.3s ease, transform 0.2s ease;
}

#lightbox-close:hover {
  color: var(--color-accent); /* Kolor akcentu na hover */
  transform: rotate(90deg); /* Delikatna animacja obrotu */
}

/* ========================
   NAGŁÓWEK PODSTRONY (SUBPAGE HERO)
   ======================== */
.subpage-hero {
  height: 50vh; /* Krótszy nagłówek dla podstron */
  width: 100%;
  background-color: var(--color-bg-dark); /* Domyślne tło */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: 100px; /* Odstęp na nawigację */
}

/* Unikalne tła dla każdej podstrony */
.subpage-hero-portfolio {
  height: 51vh; /* Krótszy nagłówek dla podstron */
  width: 100%;
  background-image: url('/img/wisniewskiego_droga.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: 100px; /* Odstęp na nawigację */
}
.subpage-hero-wodkan {
  height: 51vh; /* Krótszy nagłówek dla podstron */
  width: 100%;
  background-image: url('../img/armatura2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: 100px; /* Odstęp na nawigację */
}
.subpage-hero-gaz {
  height: 50vh; /* Krótszy nagłówek dla podstron */
  width: 100%;
  background-image: url('../img/gaz4.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: 100px; /* Odstęp na nawigację */
}

.subpage-hero-kostka {
  height: 50vh; /* Krótszy nagłówek dla podstron */
  width: 100%;
  background-image: url('../img/kostka-droga.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: 100px; /* Odstęp na nawigację */
}
.subpage-hero-portfolio { /* NOWA KLASA DLA PORTFOLIO */
  background-image: url('img/portfolio-header.jpg'); /* Zakładam, że obrazek będzie w img/ w katalogu głównym */
}

/* Overlay dla nagłówka podstrony, aby tekst był czytelny */
.subpage-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Ciemniejszy overlay */
  z-index: 0; /* Pod tekstem, ale nad tłem */
}



/* Overlay dla nagłówka podstrony, aby tekst był czytelny */
.subpage-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Ciemniejszy overlay */
  z-index: 0; /* Pod tekstem, ale nad tłem */
}



/* ========================
   GALERIA
   ======================== */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Odstęp między zdjęciami */
    justify-content: center;
}

.gallery-item-wrapper {
    position: relative;
    flex: 1 1 calc(33% - 20px); /* 3 zdjęcia w rzędzie z odstępem */
    

    /* --- ZMIANY TUTAJ --- */

    /* 1. Aby zdjęcia były większe (ustaw stałą wysokość): */
    height: 250px; /* <-- Dostosuj tę wartość! 250px to dobry punkt wyjścia. */
    padding-bottom: 0; /* <-- Usuwamy to, bo teraz mamy stałą wysokość */

    /* 2. Aby ramka była okrągła: */
    border-radius: 10%; /* <-- Zaokrągla rogi. Dla idealnego okręgu, szerokość i wysokość elementu muszą być równe. */
    overflow: hidden;    /* <-- WAŻNE: Ukrywa części zdjęcia, które wykraczają poza okrągły kształt */

    /* Opcjonalnie: Dodaj cień lub ramkę dla lepszego efektu */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    /* border: 2px solid #ddd; */ /* Jeśli chcesz widoczną ramkę */

    /* --- KONIEC ZMIAN --- */

    background-color: #f0f0f0; /* Kolor tła, zanim zdjęcia się załadują */
}

/* Upewnij się, że zdjęcia wewnątrz wypełniają cały wrapper */
.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* <-- WAŻNE: Sprawia, że img wypełnia nową wysokość wrappera */
    object-fit: cover; /* <-- Niezbędne, aby zdjęcia wypełniały ramkę bez zniekształceń */
    transition: opacity 0.7s ease-in-out;
}
.gallery-item:hover { /* Poprzednio .gallery img:hover */
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* ========================
   SEKCJE OGÓLNE I TŁO "SZKŁA"
   ======================== */
.section-padded {
  padding: var(--spacing-xl) 0; /* Standardowy padding pionowy dla sekcji */
  position: relative;
  z-index: 1;
}

.content-panel {
  max-width: 1200px;
  margin: 0 auto; /* Centrowanie na stronie */
  padding: var(--spacing-lg) var(--spacing-md); /* Mniejsze paddingi poziome od boków */

  background: var(--color-glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-glass);
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-light);
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

/* ========================
   EKRAN ŁADOWANIA
   ======================== */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--color-bg-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out;
}

.loader {
  border: 6px solid var(--color-bg-medium);
  border-top: 6px solid var(--color-accent);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================
   HERO SECTION (Header) - STRONA GŁÓWNA
   ======================== */
.hero-bg {
  height: 100vh;
  width: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)); /* Domyślny gradient */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ========================
   HERO CONTENT
   ======================== */

@media (max-width: 768px) {
  .content h1 {
    font-size: 60px;
  }
}

.back-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* ========================
   NAGŁÓWEK PODSTRONY (SUBPAGE HERO)
   ======================== */
.subpage-hero {
  height: 50vh; /* Krótszy nagłówek dla podstron */
  width: 100%;
  background-color: var(--color-bg-dark); /* Domyślne tło */
  background-image: url('../img/.jpg'); /* Przykładowy obrazek - dostosuj ścieżkę */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: 100px; /* Odstęp na nawigację */
}

/* Overlay dla nagłówka podstrony, aby tekst był czytelny */
.subpage-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Ciemniejszy overlay */
  z-index: 0; /* Pod tekstem, ale nad tłem */
}

.subpage-hero .hero-content {
  z-index: 1; /* Tekst nad overlayem */
  padding: var(--spacing-md);
}

.subpage-hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.subpage-hero p {
  font-size: 1.2rem;
  margin-top: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}


.hero-content {
  text-align: center;
  color: var(--color-text-light);
  z-index: 10;
  padding: var(--spacing-md);
}

.hero-content h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--color-text-light);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: 0.5s;
}
.hero-content h1:hover {
  -webkit-text-stroke: 2px #fff;
  color: transparent;
}

.hero-content .btn-primary {
  font-size: 1.25rem;
}

/* ========================
   NAWIGACJA
   ======================== */
#navbar {
  background-color: var(--color-nav-bg);
  width: 100%;
  padding: 15px 8%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background-color: var(--color-scrolled-nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 8%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo-link {
  display: flex;
  align-items: center;
}

#navbar .logo {
  width: 150px;
  height: auto;
  transition: width 0.3s ease;
}

#navbar.scrolled .logo {
  width: 120px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links li a {
  text-decoration: none;
  color: var(--color-text-light);
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

.nav-links li a:hover {
  color: var(--color-accent);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s ease-out;
}

.nav-links li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
}

/* ========================
   RESPONSYWNA NAWIGACJA MOBILNA
   ======================== */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 998;
  transition: background-color 0.3s ease;
}

#navbar.active .mobile-menu-overlay {
  display: block;
  background-color: var(--color-overlay-bg);
}

@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  #navbar.active {
    background-color: var(--color-bg-dark);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -280px;
    width: 250px;
    height: 100%;
    background-color: var(--color-bg-dark);
    padding-top: 80px;
    padding-left: 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease-in-out;
    align-items: flex-start;
    gap: 15px;
    z-index: 999;
  }

  #navbar.active .nav-links {
    right: 0;
  }
}

/* ========================
   SEKCJA DOŚWIADCZENIA (z index.html)
   ======================== */
.experience-showcase {
  position: relative;
  padding-top: 120px; /* Przesunięcie w górę, by najechać na hero */
  padding-bottom: var(--spacing-xl); /* Odstęp poniżej boxa */
   /* Upewnij się, że jest nad tłem hero, ale pod navbar */
  display: flex;
  justify-content: center;
  width: 100%;
}

.experience-box {
  background: rgba(var(--color-bg-dark-rgb), 0.7); /* Bardziej widoczne tło "szkła" */
  backdrop-filter: blur(20px); /* Mocniejsze rozmycie */
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--color-text-light-rgb), 0.2); /* Wyraźniejsza ramka */
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium); /* Mocniejszy cień */
  padding: var(--spacing-lg) var(--spacing-xl); /* Większe paddingi */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-lg); /* Większa przerwa między elementami */
  color: var(--color-text-light);
  max-width: 90%;
  width: fit-content;
  text-align: center;
}

:root {
  --color-bg-dark-rgb: 44, 62, 80;
  --color-text-light-rgb: 236, 240, 241;
  /* ... reszta zmiennych ... */
}

.experience-icon {
  font-size: 5rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

.experience-text h2 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

.experience-text p {
  font-size: 1.2rem;
  color: var(--color-text-light);
}

/* ========================
   SEKCJA O NAS
   ======================== */
#about-us {
  padding-top: var(--spacing-xl);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  align-items: center;
  margin-top: var(--spacing-lg);
}

.about-left {
  flex: 1 1 500px;
}

.about-right {
  flex: 1 1 300px;
  text-align: center;
}

.about-right img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-light);
}

.intro {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
  color: var(--color-text-light);
  text-align: left;
}

.intro i {
  color: var(--color-accent);
  margin-right: 0.5rem;
}

.about-columns {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-md);
}

.about-columns > div {
  flex: 1 1 45%;
  min-width: 280px;
  text-align: left;
}

.about-columns h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-light);
  font-size: 1.3rem;
  text-align: left;
}

.about-columns ul {
  list-style: none;
  padding-left: 0;
}

.about-columns li {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: var(--color-text-light);
}

.about-columns i {
  margin-right: 8px;
  color: var(--color-accent);
}

/* ========================
   SEKCJA USŁUG (karty)
   ======================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.service-card {
  background-color: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  color: var(--color-text-light);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.service-card:hover {
  transform: translateY(-8px);
  background-color: var(--color-accent);
  color: var(--color-text-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.service-card i {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

.service-card:hover i {
  color: var(--color-text-light);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--color-text-light);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  flex-grow: 1;
  transition: color 0.3s ease;
}
.service-card:hover p {
  color: var(--color-text-light);
}

/* ========================
   SEKCJA SZCZEGÓŁOWYCH SPECJALIZACJI (dla podstron)
   ======================== */
.specialization-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.spec-item {
  background-color: var(--color-bg-medium); /* Nieco jaśniejsze tło dla lepszego kontrastu z glass-panel */
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.spec-item:hover {
  transform: translateY(-5px);
  background-color: var(--color-accent);
}

.spec-item i {
  font-size: 3.5rem;
  color: var(--color-text-light); /* Ikona jasna na domyślnym tle */
  margin-bottom: var(--spacing-sm);
  transition: color 0.3s ease;
}

.spec-item:hover i {
  color: var(--color-text-light); /* Ikona pozostaje jasna na niebieskim hoverze */
}

.spec-item h3 {
  font-size: 1.6rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}
.spec-item:hover h3 {
  color: var(--color-text-light);
}

.spec-item p {
  font-size: 1rem;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}
.spec-item:hover p {
  color: var(--color-text-light);
}

/* ========================
   GALERIA
   ======================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: var(--spacing-lg);
}

.gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-light);
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.gallery-cta {
  text-align: center;
  margin-top: var(--spacing-lg);
}

/* ========================
   KONTAKT
   ======================== */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.contact-form {
  flex: 1 1 450px;
}

.contact-info {
  background-color: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
}

.contact-info h3, .contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-accent);
  text-align: left;
}

.contact-info p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
}

.contact-info p i {
  margin-right: 10px;
  color: var(--color-accent);
  font-size: 1.2rem;
}

.contact-info a {
  font-weight: 500;
  color: var(--color-text-light);
}

.contact-info a:hover {
  color: var(--color-accent);
}

.social-icons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
}

.social-icons a {
  color: var(--color-text-light);
  font-size: 1.8rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
  color: var(--color-accent);
  transform: translateY(-3px) scale(1.1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  background-color: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-light);
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: none;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-light);
  resize: vertical;
  font-size: 1rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.contact-form ::placeholder {
  color: rgba(236, 240, 241, 0.7);
  opacity: 1;
}

.contact-form button {
  width: auto;
  align-self: flex-start;
}

.form-status {
  margin-top: 1rem;
  text-align: center;
  font-weight: bold;
  color: var(--color-accent);
  opacity: 0; /* Dodaj to, aby kontrolować widoczność przez JS */
  transition: opacity 0.3s ease; /* Płynne pojawianie/znikanie */
}

/* ========================
   SEKCJA ZACHĘTY DO KONTAKTU (dla podstron)
   ======================== */
.contact-prompt {
  text-align: center;
}

.contact-prompt h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.contact-prompt p {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}


/* ========================
   STOPKA
   ======================== */
footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  text-align: center;
  padding: var(--spacing-md) 0;
  font-size: 0.9rem;
  border-top: 1px solid rgba(236, 240, 241, 0.05);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  color: var(--color-text-light);
  margin: 0 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-links a i {
  margin-right: 5px;
  color: var(--color-accent);
}

/* ========================
   RESPONSYWNOŚĆ OGÓLNA
   ======================== */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
  .section-title {
    font-size: 2.2rem;
  }
  .hero-content .btn-primary {
    font-size: 1.1rem;
    padding: 0.7rem 2rem;
  }
  .content-panel {
    padding: var(--spacing-md) var(--spacing-sm);
    margin: 0 var(--spacing-sm);
  }

  /* Dostosowanie nagłówka podstrony na mobilnych */
  .subpage-hero {
    height: 35vh; /* Krótszy na mobilnych */
    padding-top: 80px;
  }
  .subpage-hero h1 {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }
  .subpage-hero p {
    font-size: 1rem;
  }

  .experience-showcase {
    margin-top: -80px;
    padding-bottom: var(--spacing-lg);
  }

  .experience-box {
    flex-direction: column;
    padding: var(--spacing-md);
    gap: var(--spacing-md);
    max-width: 95%;
  }

  .experience-icon {
    font-size: 4rem;
  }

  .experience-text h2 {
    font-size: 2rem;
    white-space: normal;
  }

  .experience-text p {
    font-size: 1rem;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
  }

  .about-left, .about-right {
    flex: 1 1 90%;
  }

  .about-columns {
    flex-direction: column;
    align-items: center;
  }
  .about-columns > div {
    text-align: center;
  }

  .intro {
    text-align: center;
  }

  .about-columns h3 {
    text-align: center;
  }

  .about-columns ul {
    text-align: left;
    display: inline-block;
  }

  .contact-grid {
    flex-direction: column;
  }

  .contact-info, .contact-form {
    flex: 1 1 100%;
    text-align: center;
  }

  .contact-info h3, .contact-form h3 {
    text-align: center;
  }

  .contact-info p {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }

  .contact-form button {
    align-self: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: clamp(2rem, 12vw, 3.5rem);
  }
  .section-title {
    font-size: 1.8rem;
  }
  .content-panel {
    padding: var(--spacing-md) 1rem;
    margin: 0 1rem;
  }

  .experience-box {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .subpage-hero {
    height: 30vh;
  }
}
  @media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .contact-info, .contact-form {
    flex: 1 1 100%;
    text-align: center;
    padding: var(--spacing-md);
  }

  .contact-info h3,
  .contact-form h3 {
    text-align: center;
  }

  .contact-info p {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }

  .contact-info p i {
    margin-bottom: 0.3rem;
  }

  .social-icons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-form button {
    align-self: center;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }

  .contact-info p {
    font-size: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .contact-info, .contact-form {
    width: 100%;
    max-width: 100%;
  }
}
img {
  max-width: 100%;
  height: auto;
}
