:root {
--niebieski: #0078d4;
--pomarancz: #ff7a00;
--tlo: #f4f7fa;
--gradient: linear-gradient(135deg, #0078d4 0%, #ff7a00 100%);
--card-shadow: rgba(0,0,0,0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }

body {
font-family: 'Segoe UI', sans-serif;
background: var(--tlo);
color: #222;
line-height: 1.6;
}

/* NAV */
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 50px;
background: white;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
position: sticky;
top: 0;
z-index: 100;
}

nav .logo img { max-height: 60px; }
nav ul { display: flex; gap: 20px; list-style: none; }

nav ul li a {
text-decoration: none;
color: var(--niebieski);
font-weight: bold;
transition: 0.3s;
}
nav ul li a:hover { color: var(--pomarancz); }

/* ======================= */
/*      HERO SLIDER        */
/* ======================= */
.hero-slider {
position: relative;
background: var(--gradient);
color: white;
padding: 120px 20px;
overflow: hidden;
text-align: center;
}

.hero-track {
display: flex;
transition: transform 0.6s ease;
}

.slide {
width: 100%;
flex-shrink: 0;
padding: 0 40px;
}

.slide h1 {
font-size: 2.4rem;
margin-bottom: 20px;
}

.slide p {
font-size: 1.15rem;
max-width: 800px;
margin: auto;
line-height: 1.6;
}

/* Strzałki slidera */
.arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(255,255,255,0.7);
color: black;
border: none;
font-size: 2rem;
padding: 10px 15px;
border-radius: 50%;
cursor: pointer;
transition: 0.3s;
z-index: 10;
}

.arrow:hover {
background: var(--pomarancz);
color: white;
}

.arrow.left { left: 20px; }
.arrow.right { right: 20px; }

/* Kropki */
.dots {
position: absolute;
bottom: 20px;
width: 100%;
display: flex;
justify-content: center;
gap: 8px;
}

.dots button {
width: 12px;
height: 12px;
background: white;
border: none;
border-radius: 50%;
opacity: 0.6;
cursor: pointer;
transition: 0.3s;
}

.dots button.active {
opacity: 1;
background: var(--pomarancz);
}

/* USŁUGI */
.uslugi {
padding: 80px 20px;
text-align: center;
background: #f4f7fa;
}

.uslugi h2 {
font-size: 2.5rem;
margin-bottom: 50px;
color: var(--niebieski);
position: relative;
display: inline-block;
}

.uslugi h2::after {
content: '';
width: 60%;
height: 4px;
background: var(--pomarancz);
display: block;
margin: 10px auto 0;
border-radius: 2px;
}

.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
max-width: 1200px;
margin: auto;
}

.card {
background: white;
border-radius: 20px;
padding: 30px 20px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
transition: all 0.4s ease;
cursor: pointer;
position: relative;
overflow: hidden;
}

.card::before {
content: '';
position: absolute;
width: 100%;
height: 0;
left: 0;
bottom: 0;
background: var(--gradient);
opacity: 0.2;
transition: height 0.4s ease;
z-index: 0;
}

.card:hover::before { height: 100%; }

.card h3 {
font-size: 1.5rem;
margin-bottom: 15px;
color: var(--niebieski);
position: relative;
z-index: 1;
}

.card p {
font-size: 1rem;
color: #555;
line-height: 1.5;
position: relative;
z-index: 1;
}

.card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Box kontaktowy */
.kontakt-box {
display: flex;
flex-direction: column;
text-align: center;
background: white;
padding: 40px 30px;
border-radius: 20px;
box-shadow: 0 15px 35px rgba(0,0,0,0.12);
max-width: 500px;
width: 100%;
margin-top: 20px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kontakt-box p {
margin-bottom: 20px;
font-size: 1.1rem;
color: #333;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}

.kontakt-box p:hover {
color: var(--niebieski);
transform: translateY(-2px);
}

.kontakt-box .icon { font-size: 1.3rem; }

/* LOKALIZACJA */
.lokalizacja { padding: 80px 20px; text-align: center; background: white; }
.lokalizacja h2 { font-size: 2rem; margin-bottom: 30px; color: var(--niebieski); }
.mapa { max-width: 900px; margin: auto; border-radius: 15px; overflow: hidden; }

/* GALERIA */
.galeria { padding: 80px 20px; text-align: center; background: #f9f9f9; }
.galeria h2 { font-size: 2rem; margin-bottom: 30px; color: var(--niebieski); }

.filtry { margin-bottom: 30px; }

.filtry button {
padding: 10px 20px;
margin: 5px;
border: none;
border-radius: 25px;
cursor: pointer;
background: var(--niebieski);
color: white;
font-weight: bold;
transition: 0.3s;
}

.filtry button:hover,
.filtry button.active {
background: var(--pomarancz);
}

.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
max-width: 1200px;
margin: auto;
grid-auto-flow: dense;
transition: all 0.4s ease;
}

.grid .item {
position: relative;
overflow: hidden;
border-radius: 15px;
height: 200px;
transition: all 0.4s ease;
}

.grid .item img {
width: 100%;
height: 100%;
object-fit: cover;
cursor: pointer;
transition: transform 0.4s;
}

.grid .item:hover img { transform: scale(1.1); }

.grid .item.hide { display: none; }

/* KONTAKT */
.kontakt { padding: 60px 20px; text-align: center; }
.kontakt h2 { font-size: 2rem; margin-bottom: 30px; color: var(--niebieski); }

.kontakt-box {
display: inline-block;
text-align: left;
background: white;
padding: 30px;
border-radius: 15px;
box-shadow: 0 8px 20px var(--card-shadow);
}

.kontakt-box p { margin-bottom: 15px; }

/* FOOTER */
footer {
text-align: center;
padding: 20px;
background: var(--niebieski);
color: white;
}

/* RESPONSYWNOŚĆ */
@media(max-width:768px){
nav { flex-direction: column; gap: 15px; }
.slide h1 { font-size: 1.8rem; }
.slide p { font-size: 1rem; }
}
/* ================= Smooth Transitions ================= */

/* Slider track - płynne przesuwanie */
.hero-track {
display: flex;
transition: transform 0.7s ease-in-out; /* wolniejsze i płynne przesuwanie */
}

/* Slajdy */
.slide {
width: 100%;
flex-shrink: 0;
padding: 0 40px;
transition: transform 0.7s ease-in-out, opacity 0.7s ease-in-out;
}

/* Strzałki - płynna zmiana koloru */
.arrow {
transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* Kropki */
.dots button {
transition: background 0.3s ease, opacity 0.3s ease;
}

/* Cards */
.card {
transition: all 0.5s ease;
}

/* Cards hover */
.card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Gallery images hover */
.grid .item img {
transition: transform 0.5s ease;
}

/* Kontakt box hover */
.kontakt-box p {
transition: color 0.3s ease, transform 0.3s ease;
}

/* Smooth scroll for anchor links */
html {
scroll-behavior: smooth;
}
