:root {
    --primary-bg: rgba(229, 227, 226, 1);
    --gradient-end: rgba(207, 194, 190, 1);
    --text-color: #2D2C31;
    --separator-color: #C0B0A9;
    --transition-time: 0.4s;
    --transition-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Figtree', sans-serif;
    color: var(--text-color);
    background-color: var(--primary-bg);
    background-image: linear-gradient(90deg, var(--primary-bg) 0%, var(--gradient-end) 100%);
	padding-bottom: 132px; /* Tylko wysokość stopki */
}

html {
  scroll-behavior: smooth; /* Włącza płynne przewijanie dla przeglądarek które to obsługują */
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}


::selection {
    background-color: rgba(243, 149, 92, 1); /* Pomarańczowy kolor */
    color: white; /* Kolor tekstu na zaznaczeniu */
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.header {
    padding: 90px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: auto;
    max-height: 60px; /* Dostosuj wysokość logo */
    width: auto;
    transition: transform 0.3s var(--transition-ease);
}

.logo img:hover {
    transform: scale(1.05); /* Delikatne powiększenie */
}


.nav-menu {
    display: flex;
    list-style: none;
    font-size: 16px;
    flex-wrap: wrap; /* Umożliwia zawijanie */
    justify-content: space-between; /* Równy odstęp pomiędzy elementami */
	row-gap: 10px; /* Zwiększenie odstępu między wierszami po zawinięciu */
}

.nav-item {
    position: relative;
    padding: 0 34px; /* Równe odstępy z obu stron */
}

.nav-item:last-child {
    padding-right: 0; /* Usunięcie odstępu po prawej stronie ostatniego elementu */
}


.nav-item:not(:last-child)::after {
    content: '_';
    position: absolute;
    right: -6px; /* Połowa wartości padding-right */
    color: var(--separator-color);
    pointer-events: none;
    font-weight: normal; /* Separator nie jest pogrubiony */
}

.nav-link {
    text-decoration: none;
    color: inherit;
    font-weight: 400;
    font-size: 1.1rem;
    transition: color 0.2s var(--transition-ease), letter-spacing 0.2s var(--transition-ease);
}

.nav-link:hover {
    font-weight: 600;
    letter-spacing: 0.5px; /* Subtelne rozsunięcie liter */
}


/* Hero Section */
.hero {
    padding-top: 60px;
    padding-bottom: 130px;
    position: relative; /* Pozycjonowanie dla dziecka */
}

.hero-content {
    display: flex;
    align-items: flex-start; /* Zmienione na flex-start dla indywidualnych odstępów */
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1.2;
    max-width: 800px;
    padding-top: 0px; /* Indywidualny odstęp od góry dla tekstu */
}

.hero-title {
    font-weight: 300;
    font-size: 40px;
    line-height: 1.2;
    background-color: rgba(45, 44, 49, 1);
    background-image: linear-gradient(90deg, rgba(45, 44, 49, 1) 0%, rgba(139, 136, 151, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 40px;
}

.hero-description {
    font-weight: 300;
    font-size: 20px;
    line-height: 1.5;
    color: #2D2C31;
    margin-bottom: 60px;
}

.hero-description strong {
    font-weight: 600;
}

.hero-button {
    display: inline-block;
    width: 266px;
    height: 64px;
    line-height: 64px;
    text-align: center;
    color: white;
    font-size: 16px;
    font-weight: 600; /* Dodane pogrubienie */
    text-decoration: none;
    background-color: rgba(243, 149, 92, 1);
    background-image: linear-gradient(90deg, rgba(243, 149, 92, 1) 0%, rgba(212, 84, 42, 1) 100%);
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 84, 42, 0.2);
}

.hero-image {
    flex: 2.5;
    max-width: 1200px; /* Maksymalna szerokość obrazu */
    min-width: 300px; /* Minimalna szerokość obrazu, aby nie zmniejszał się poniżej tej wartości */
    width: 100%; /* Obraz dostosowuje się do dostępnej szerokości */
    position: relative; /* Umożliwia precyzyjne pozycjonowanie */
    left: 20px; /* Przesunięcie w prawo */
	top: -30px;
    overflow: hidden; /* Zapobiega wychodzeniu poza kontener */
}


.floating-image {
  width: auto;
  height: auto;
  max-width: 103%;
  max-height: 90vh; /* Zmniejszamy trochę dla bezpiecznego marginesu */
  object-fit: contain;
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 1;
  margin: 20px 0; /* Dodajemy margines dla bezpieczeństwa */
}


@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}



/* Sekcja Oferta - zachowujemy oryginalne ustawienia */
.offer-section {
    padding: 0 0 80px;
    margin-top: calc(-260px + 100px); /* Zmniejszenie margin-top o wartość padding-top z .hero */
    position: relative;
    z-index: 1;
    height: auto; /* Automatyczna wysokość, dopasowana do zawartości */
}

.offer-title {
    font-weight: 300;
    font-size: 40px;
    line-height: 1.2;
    background-image: linear-gradient(90deg, rgba(45, 44, 49, 1) 0%, rgba(139, 136, 151, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 110px;
    display: inline-block;
}

.offer-grid {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.offer-card {
    width: 448px;
    border-radius: 15px 15px 0 0; /* Tylko górne rogi mają promień 15px, dolne są proste */
	padding: 40px 40px;
    color: white;
    position: relative;
    overflow: visible;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.offer-card h3 {
    font-size: 40px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 40px;
    line-height: 1.3;
}

.offer-card p {
    font-size: 14px;
    line-height: 1.8;
    font-weight: 300;
}

.offer-icon {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    max-width: 100%;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Płynna zmiana gradientu */
.vehicle-batteries {
    background: linear-gradient(90deg, 
        rgba(212, 84, 42, 1) 0%, 
        rgba(243, 149, 92, 1) 100%);
    background-size: 200% 100%;
    background-position: left;
}

.power-tools,
.special-batteries {
    background: linear-gradient(180deg, 
        rgba(57, 64, 71, 1) 0%, 
        rgba(115, 115, 115, 1) 100%);
    background-size: 100% 200%;
    background-position: top;
}

/* Efekty hover */
.offer-card:hover {
    transform: translateY(-8px);
}

.offer-card:hover .offer-icon {
    transform: translateX(-50%) scale(1.15);
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2));
}

.offer-card:hover.vehicle-batteries {
    background-position: right;
}

.offer-card:hover.power-tools,
.offer-card:hover.special-batteries {
    background-position: bottom;
}



/* Główna sekcja */
.about-portfolio-section {
  padding: 120px 0 100px;
  background-color: #F4F2F2;
  position: relative;
  margin-top: -50px; /* Dokładne przykrycie poprzedniej sekcji */
}

/* Falisty kształt - wbudowane SVG */
.section-wave {
  position: absolute;
  top: -64px;
  left: 0;
  width: 100%;
  height: 65px;
  z-index: 1;
}

.section-wave svg {
  width: 100%;
  height: 100%;
}


/* Wspólne style dla obu sekcji */
.about-section, 
.portfolio-section {
  margin-bottom: 80px;
}

.about-section:last-child,
.portfolio-section:last-child {
  margin-bottom: 0;
}

/* Style dla "Kim jesteśmy?" */
.about-title {
  font-weight: 300;
  font-size: 40px;
  color: #2D2C31;
  margin-bottom: 80px;
  margin-top: -80px;
}

.about-content {
  display: flex;
  gap: 60px;
  align-items: flex-start; /* Możemy zmienić na 'flex-start', aby kontenery zaczynały się od góry */
}

.about-text {
  flex: 1;
  margin-top: 0; /* Usuń margin-top z .about-text, aby nie wpływał na obrazek */
}

.about-lead {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
  color: #2D2C31;
  margin-bottom: 30px;
}

.about-description {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: #2D2C31;
}

.about-image {
  flex: 1;
  max-width: 100%;
  animation: float 6s ease-in-out infinite;
  margin-top: 0px; /* Teraz to nie wpłynie na tekst, bo jest tylko w .about-image */
}

.about-image img {
  width: 135%;
  height: auto;
  max-height: auto;
  object-fit: contain;
}



/* Style dla "Nasze realizacje" */
.portfolio-title {
  font-weight: 300;
  font-size: 40px;
  color: #2D2C31;
  margin-top: -140px;
  margin-bottom: 80px;
}

.portfolio-grid {
  display: flex;
  gap: 15px;
  justify-content: space-between;
}

.portfolio-item {
  width: 448px;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  display: block;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(243, 149, 92, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.zoom-icon {
  font-size: 40px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

/* Efekty hover */
.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
  background: rgba(243, 149, 92, 0.3);
}

.portfolio-item:hover .zoom-icon {
  opacity: 1;
  transform: scale(1);
}



/* Lightbox - podstawowe style */
.lb-outerContainer,
.lb-container {
  border-radius: 15px !important;
  overflow: hidden;
}

.lb-image {
  border: none !important;
  border-radius: 15px !important;
}

/* Nawigacja z ikonami SVG */
.lb-nav {
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
}

.lb-nav a {
  width: 40%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s;
  background-size: 40px;
  background-position: center;
}

.lb-nav a.lb-prev {
  left: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff80"><path d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"/></svg>') no-repeat 20px center/30px;
}

.lb-nav a.lb-next {
  right: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff80"><path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"/></svg>') no-repeat calc(100% - 20px) center/30px;
}

.lb-container:hover .lb-nav a {
  opacity: 1;
}

/* Przycisk zamknięcia */
.lb-close {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff80"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>') no-repeat center/20px !important;
  right: 20px !important;
  top: 20px !important;
  transition: all 0.3s;
}

.lb-close:hover {
  transform: rotate(90deg);
}

/* Ukrycie niepotrzebnych elementów */
.lb-number,
.lb-caption {
  display: none !important;
}

/* Tło */
.lb-overlay {
  background: rgba(45, 44, 49, 0.95) !important;
}



/* Style dla kafelków galerii */
.portfolio-item {
  border-radius: 15px;
  overflow: hidden;
}

.portfolio-overlay {
  background: rgba(243, 149, 92, 0) !important;
  transition: background 0.3s !important;
}

.portfolio-item:hover .portfolio-overlay {
  background: rgba(243, 149, 92, 0.2) !important;
}

.portfolio-image {
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.05);
}


.kontakt-footer {
  position: fixed;
  bottom: 0;

  left: 0;
  right: 0;
  height: 136px;
  background-color: #0D0E14;
  display: flex;
  align-items: center;
  z-index: 100;
}

.kontakt-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-icons {
  display: flex;
  gap: 24px;
}

.social-icon img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s;
}

.social-icon:hover img {
  transform: scale(1.2);
}


.kontakt-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.kontakt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px; /* Zapewnia równą szerokość */
  padding: 22px 32px; /* Wyrównane paddingi */
  border-radius: 5px; /* Zaokrąglenie */
  text-decoration: none;
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: regular;
  transition: all 0.3s ease;
}

.kontakt-button:hover {
  transform: scale(1.05);
}

.email-button {
  background: transparent;
  color: white;
  border: 2px solid transparent;
  position: relative;
}

.email-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 5px;
  padding: 2px;
  background: linear-gradient(90deg, rgba(243, 149, 92, 1) 0%, rgba(212, 84, 42, 1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.phone-button {
  background: linear-gradient(90deg, rgba(243, 149, 92, 1) 0%, rgba(212, 84, 42, 1) 100%);
  color: white;
  border: none;
}

.button-icon {
  width: auto;
  height: auto;
  margin-right: 32px;
}


.stopka {
  height: 348px;
  background-color: rgba(16, 18, 25, 1);
  background-image: linear-gradient(180deg, rgba(16, 18, 25, 1) 0%, rgba(32, 33, 38, 1) 100%);
  color: white;
  font-family: 'Figtree', sans-serif;
  padding: 40px 0 120px;
}

.stopka-content {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
    padding: 0 5%;

  display: flex;
  flex-direction: column;
}

.stopka-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-grow: 1;
  margin-top: 40px; /* Przykładowy margines od góry */
}

.stopka-logo {
  height: 60px;
  transition: transform 0.3s var(--transition-ease);
}

.stopka-logo:hover {
  transform: scale(1.05); /* Delikatne powiększenie */
}

.stopka-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  flex-wrap: wrap; /* Umożliwia zawijanie */
  row-gap: 20px; /* Zwiększenie odstępu między wierszami po zawinięciu */
  padding-left: 40px; /* Dodanie odstępu od lewej strony */
}


.separator {
  color: #3B3C45;
  color: #3B3C45;
  position: relative;
  padding: 0 18px; /* Równe odstępy z obu stron */
}

.separator:last-child {
  padding-right: 0; /* Usunięcie odstępu po prawej stronie ostatniego elementu */
}

.stopka-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 0;
  position: relative; /* Dodane dla pozycjonowania strzałki */
}

.copyright {
  font-size: 14px;
  flex: 0.7; /* Zmienione z flex-grow na flex dla lepszej kontroli */
  text-align: left; /* Wyrównanie do lewej */
}

.back-to-top {
  cursor: pointer;
  position: absolute; /* Absolutne pozycjonowanie */
  left: 50%; /* Wyśrodkowanie */
  transform: translateX(-50%); /* Dokładne centrowanie */
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-icon {
  width: auto;
  height: auto;
  transition: transform 0.3s ease;
}

.arrow-icon:hover {
  transform: scale(1.1);
}


.credits {
  font-size: 14px;
  flex: 1; /* Zmienione z flex-grow na flex */
  text-align: right; /* Wyrównanie do prawej */
}

.credit-name {
  font-weight: bold;
  background-color: rgba(212, 84, 42, 1);
  background-image: linear-gradient(90deg, rgba(212, 84, 42, 1) 0%, rgba(243, 149, 92, 1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 5px;
  display: inline-block;
  position: relative; /* Nowe - dla lepszego pozycjonowania */
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Płynniejsza krzywa animacji */
  transform-origin: center center;
  line-height: 1.2; /* Zapobiega ucinkom przy transformacji */
  margin: 0 2px; /* Dodatkowy margines bezpieczeństwa */
}

.credit-name::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.credit-name a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  padding: 2px 0; /* Dodatkowy padding dla bezpieczeństwa */
}

.credit-name:hover {
  transform: scale(1.15); /* Mniejsze powiększenie dla płynności */
  padding: 0 8px; /* Kompensacja dla powiększenia */
}

.credit-name:hover::before {
  opacity: 0.2; /* Subtelne podświetlenie tła */
}












/* Responsywność */
@media (max-width: 768px) {
	.header {
    padding: 40px 0;
    }
    .navbar {
        flex-direction: column;
        gap: 30px;
		padding: 20px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;

    }
    
    .nav-item {
        padding: 10px 13px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column; /* Stawia obraz pod tekstem */
        align-items: center; /* Wyśrodkowanie wszystkich elementów */
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
        padding-top: 0;
    }
    
    .hero-button {
        margin: 0 auto;
    }
    
    .hero-image {
        margin-top: 40px;
    }
	
    .hero-title {
        font-size: 42px;
		margin-top: -32px;
    }
    
    .hero-description {
        font-size: 18px;
		padding: 20px;
		margin-bottom: 20px;
    }
    
    .hero-button {
        width: 220px;
        height: 56px;
        line-height: 56px;
    }
    
    .hero-image {
		transform: scale(1.4); /* Powiększa obrazek o 20% */
        max-width: 80%; /* Dopasowanie do szerokości ekranu */
        top: 0; /* Reset przesunięć */
        left: 0;
        display: flex;
		margin-top: 50px;
		margin-bottom: 120px;
		margin-left: -66px;
        justify-content: center; /* Środkowanie wewnątrz kontenera */
    }
}

/* Responsywność */
@media (max-width: 1400px) {
    .offer-grid {
		gap: 70px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .offer-card {
        width: calc(33.333% - 10px);
    }

    .offer-card {
        width: 100%;
        max-width: 448px;
		border-radius: 15px;
        margin-bottom: -5px;
    }
	
    .portfolio-title {
        font-weight: 300;
        font-size: 40px;
        color: #2D2C31;
        margin-top: 0px;
        margin-bottom: 80px;
    }
	
.offer-title {
    font-weight: 300;
    font-size: 42px;
    line-height: 1.2;
    background-image: linear-gradient(90deg, rgba(45, 44, 49, 1) 0%, rgba(139, 136, 151, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
	margin-top: 90px;
    margin-bottom: 90px;
	text-align: center;
	display: block;

}
	
}

@media (max-width: 768px) {	
  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
	padding: 20px;
  }
  
  .about-title {
    font-size: 42px;
	margin-top: -120px;
    text-align: center;
  }

  .about-text {
	margin-top: -120px;
    order: 2;
  }

  .about-image {
    order: 1;
    margin-top: -50px;
  }

  .portfolio-section {
	font-size: 42px;
	margin-top: 180px;
    margin-bottom: 60px;
	text-align: center;
  }
  
  .offer-title {
	margin-top: 0px;
  }
  
}

@media (max-width: 768px) {
  .lb-container {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
	background: transparent !important;
  }
  
    .lb-outerContainer {
    background: transparent !important;
  }
  
.lb-close {
  position: fixed !important;
  top: 30% !important;
  left: 80% !important;
  transform: translate(-50%, -50%) !important;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff80"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>') no-repeat center/contain !important;
  width: 64px !important;
  height: 64px !important;
  z-index: 9999 !important;
}

  
}


@media (max-width: 768px) {
  .stopka {
    height: auto;
    min-height: 400px;
    background-color: rgba(16, 18, 25, 1);
    background-image: linear-gradient(180deg, rgba(16, 18, 25, 1) 0%, rgba(32, 33, 38, 1) 100%);
    color: white;
    font-family: 'Figtree', sans-serif;
    padding: 40px 20px 120px; /* Zmniejszony padding na dole */
    position: relative;
  }

  .stopka-content {
    max-width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .stopka-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    margin-top: 0;
    gap: 30px;
  }

  .stopka-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s var(--transition-ease);
  }

  .stopka-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    text-align: center;
  }

  .separator {
    display: none;
  }

  .stopka-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0 0;
    gap: 30px; /* Większy odstęp między elementami */
  }

  .copyright {
    font-size: 16px;
    text-align: center;
    order: 2;
  }

  .back-to-top {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -40px; /* Odstęp od credits */
    order: 3; /* Umieszczenie na samym dole */
    position: relative; /* Zmiana z absolute na relative */
    width: 100%;
  }

  .arrow-icon {
    width: auto; /* Przywrócenie oryginalnych wymiarów */
    height: auto;
    transition: transform 0.3s ease;
  }

  .arrow-icon:hover {
    transform: scale(1.1);
  }

  .credits {
    font-size: 16px;
    text-align: center;
    order: 1;
  }

  .credit-name {
    font-weight: bold;
    background-color: rgba(212, 84, 42, 1);
    background-image: linear-gradient(90deg, rgba(212, 84, 42, 1) 0%, rgba(243, 149, 92, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 0 5px;
    display: inline-block;
    position: relative;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
    line-height: 1.2;
    margin: 0 2px;
  }

  .credit-name:active {
    transform: scale(1.1);
    padding: 0 8px;
  }
}

@media (max-width: 768px) {
  /* Reset i podstawowe style */
  body {
    padding-bottom: 180px; /* Przestrzeń na stopkę i kontakt */
    overflow-x: hidden;
  }

  /* Galeria - poprawiony układ */
  .portfolio-section {
    padding: 20px 0;
  }

  .portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    margin: 0 auto;
    max-width: 100%;
  }

  .portfolio-item {
    width: 100%;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .portfolio-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
  }
  
}

@media (max-width: 768px) {
  /* Kontakt - przyklejony i wyśrodkowany */
  .kontakt-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw; /* Dodane, aby zapobiec przekraczaniu szerokości viewport */
    height: auto;
    background-color: #0D0E14;
    padding: 10px;
    z-index: 100;
    box-sizing: border-box;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .kontakt-content {
    width: 100%;
    max-width: 100vw; /* Dodane, aby zapobiec przekraczaniu szerokości viewport */
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Dodane, aby ikony zawijały się jeśli brak miejsca */
    gap: 20px; /* Zmniejszony odstęp */
    width: 100%;
    padding: 0 5px; /* Zmniejszony padding */
    margin-top: 10px;
	margin-bottom: 10px;
    box-sizing: border-box;
  }
  
  .social-icon img {
  width: 42px;
  height: 42px;
  transition: transform 0.3s;
}

  .kontakt-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 5px; /* Zmniejszony padding */
    box-sizing: border-box;
    margin-bottom: 10px;
  }

  .kontakt-button {
    width: 100%;
    max-width: 100%; /* Dodane, aby przycisk nie przekraczał szerokości kontenera */
    min-width: 0;
    padding: 20px 12px; /* Zmniejszony padding */
    font-size: 16px; /* Zmniejszony rozmiar czcionki */
    justify-content: center;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .button-icon {
    width: 16px; /* Zmniejszony rozmiar ikon */
    height: 16px;
    margin-right: 8px; /* Zmniejszony margines */
  }
  
  .portfolio-title {
  font-weight: 300;
  font-size: 40px;
  color: #2D2C31;
  margin-top: -160px;
  margin-bottom: 80px;
}
}


/* ===== STYLE SEKCJI OPINII ===== */
.reviews-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.reviews-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.reviews-title {
    text-align: left;
    margin-bottom: 60px;
    font-size: 36px;
    color: #333;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.review-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.review-author {
    font-weight: bold;
    color: #333;
}

.review-date {
    color: #777;
    font-size: 0.9rem;
}

.review-stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-text {
    color: #555;
    line-height: 1.5;
}


.show-all-button {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: -30px;
}

.btn {
    display: inline-block;
    width: 266px;
    height: 64px;
    line-height: 64px;
    text-align: center;
	margin-top: 40px;
    color: white;
    font-size: 16px;
    font-weight: 600; /* Dodane pogrubienie */
    text-decoration: none;
    background-color: rgba(243, 149, 92, 1);
    background-image: linear-gradient(90deg, rgba(243, 149, 92, 1) 0%, rgba(212, 84, 42, 1) 100%);
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 84, 42, 0.2);
}