:root {
    --bg: #0e0f12;
    --card: #1c1f26;
    --accent: #ffffff;
    --accent2: #ffea00;
    --text: #e8e8e8;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* NAWIGACJA */
nav {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding: 1.5rem;
    background: #0a0a0c;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.5rem; /* Zmniejszone z 2rem dla lepszej czytelności */
    transition: 0.3s;
}

nav a:hover { color: var(--accent2); }

header {
    text-align: center;
    padding: 40px 20px;
}

h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    text-transform: uppercase;
    margin: 0;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* STRONA GŁÓWNA - KAFELKI OFERTY */
.banner-center {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.banner-center img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.offer-card {
    position: relative;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    display: block;
}

.offer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.offer-card:hover img { transform: scale(1.1); }

.offer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 70%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.offer-overlay span {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* GALERIA NA PODSTRONACH - NAPRAWIONA */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.gallery figure {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    height: 320px;
    background: var(--card);
    border: 1px solid rgba(255,255,255,0.1);
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Kluczowe: trzyma zdjęcie w ryzach kafelka */
    cursor: pointer;
    transition: 0.6s;
    display: block;
}

.gallery img:hover { transform: scale(1.1); }

/* KONTAKT + MAPA */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.company-info {
    text-align: center;
    padding: 40px;
    background: var(--card);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-info a {
    color: var(--accent2);
    text-decoration: none;
    font-weight: bold;
}

.map-box { height: 100%; min-height: 400px; }

#map {
    height: 100%;
    width: 100%;
    border-radius: 20px;
    z-index: 1;
}

/* MODAL / LIGHTBOX */
dialog#v {
    border: none;
    background: transparent;
    padding: 0;
}

dialog#v::backdrop { background: rgba(0,0,0,0.9); backdrop-filter: blur(10px); }

#vImg { max-width: 90vw; max-height: 85vh; border-radius: 10px; }

.nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    padding: 20px;
    cursor: pointer;
    border-radius: 50%;
}

#prev { left: 20px; }
#next { right: 20px; }

.phone-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent2);
    color: #000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    z-index: 1000;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 900px) {
    .contact-container { grid-template-columns: 1fr; }
    .map-box { min-height: 300px; }
    nav { gap: 1rem; flex-wrap: wrap; }
    nav a { font-size: 1.2rem; }
}

/* STOPKA - WYŚRODKOWANA */
footer {
    width: 100%;
    background: #0a0a0c;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    margin: 10px 0;
    font-size: 0.9rem;
    color: #888;
}

.footer-content a {
    color: var(--text);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: 0.3s;
}

.footer-content a:hover {
    color: var(--accent2);
    border-color: var(--accent2);
}