body {
    background-color: #0d0d0d;
    color: #e0e0e0;
    font-family: 'Poppins', sans-serif;
}
.hero {
    position: relative;
    height: 100vh;
    min-height: 420px;
    background: #0a0a0a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

/* Animacja światła */
.hero-light {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,215,0,0.25), transparent 70%);
    top: -100px;
    left: -100px;
    animation: moveLight 12s infinite linear;
    filter: blur(40px);
}

@keyframes moveLight {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(60vw, 10vh); }
    50%  { transform: translate(30vw, 40vh); }
    75%  { transform: translate(-20vw, 30vh); }
    100% { transform: translate(0, 0); }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero h1 {
    font-size: 3rem;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255,215,0,0.4);
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 30px;
}

/* Responsywność */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
 
}



.kafle-container {
    display: flex;
    gap: 30px;
    margin: 60px auto;
    max-width: 1200px;
}

.kafel {
    position: relative;
    flex: 1;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.kafel:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.35);
}

.kafel .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
    z-index: 1;
}

.kafel h2,
.kafel p,
.kafel .btn {
    position: relative;
    z-index: 2;
}

.kafel h2 {
    font-size: 2.2rem;
    margin: 0 0 10px;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.kafel p {
    margin: 0 0 20px;
    color: #ccc;
}

.kafel .btn {
    display: inline-block;
    padding: 12px 24px;
    background: #ffd700;
    color: #000;
    border-radius: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.kafel .btn:hover {
    background: #fff;
    color: #000;
}

/* Tła kafli */
.kafel.sauna {
    background-image: url('img/sauna_kafel.webp');
}

.kafel.diagnostyka {
    background-image: url('img/diagnostyka_komputerowa_samochodu_elesam-min-1536x1025.webp');
}

/* Responsywność */
@media (max-width: 768px) {
    .kafle-container {
        flex-direction: column;
    }
}
/* --- RESPONSYWNOŚĆ SMARTFONY --- */
@media (max-width: 768px) {

    /* HERO */
    .hero {
        padding: 20px;
        height: auto;
        min-height: 520px;
    }

    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* KAFLE — NA TELEFONACH JEDEN POD DRUGIM */
    .kafle-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: 30px auto;
        width: 100%;
    }

    .kafel {
        width: 90%;
        height: 240px; /* zamiast 400px */
        padding: 20px; /* zamiast 40px */
        text-align: center;
        border-radius: 16px;
    }

    .kafel h2 {
        font-size: 1.4rem; /* zamiast 2.2rem */
        margin-bottom: 8px;
    }

    .kafel p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .kafel .btn {
        padding: 10px 18px;
        font-size: 0.95rem;
    }

    /* Overlay — delikatniejszy na telefonach */
    .kafel .overlay {
        background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.25));
    }
}
