
/* ZMIENNE KOLORYSTYCZNE */
:root { 
    --bg-color: #F9F8F6; 
    --primary-color: #1A2436; 
    --secondary-color: #4A5D4E; 
    --text-color: #333333; 
    --accent-color: #D3D9DF; 
    --white: #FFFFFF; 
}

/* RESET & PODSTAWY */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-color); 
    background-color: var(--bg-color); 
    line-height: 1.6; 
    font-size: 18px; 
    overflow-x: hidden; /* Zapobiega pojawianiu się poziomego paska na mobile */
}
h1, h2, h3, h4, .logo { 
    font-family: 'Playfair Display', serif; 
    color: var(--primary-color); 
    line-height: 1.2; 
}
p { margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; transition: background 0.3s, color 0.3s; }
a:focus, button:focus, input:focus, textarea:focus, select:focus { outline: 3px solid var(--secondary-color); outline-offset: 3px; }
img, iframe { max-width: 100%; }

/* UKŁAD GLOBALNY */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 5rem 0; }
.bg-light { background-color: var(--white); border-top: 1px solid var(--accent-color); border-bottom: 1px solid var(--accent-color); }
.text-center { text-align: center; }

/* HEADER */
.site-header { 
    background: var(--white); 
    padding: 1rem 0; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}
.header-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo { font-size: 2.5rem; font-weight: 600; }
.logo span { color: var(--secondary-color); }
.main-nav a { margin: 0 1rem; font-weight: 600; font-size: 1.1rem; }
.main-nav a:hover { color: var(--secondary-color); text-decoration: underline; text-underline-offset: 5px; }
.emergency-phone { text-align: right; border-left: 2px solid var(--accent-color); padding-left: 1rem; }
.phone-label { font-size: 0.95rem; display: block; color: var(--secondary-color); font-weight: 600; }
.phone-number { font-size: 1.3rem; font-weight: 700; color: var(--primary-color); }

/* HERO */
.hero { 
    background: linear-gradient(rgba(26, 36, 54, 0.85), rgba(26, 36, 54, 0.85)), #4A5D4E; 
    color: var(--white); 
    padding: 8rem 0; 
    text-align: center; 
}
.hero h1 { color: var(--white); font-size: 3rem; margin-bottom: 1.5rem; }
.hero p { font-size: 1.3rem; max-width: 800px; margin: 0 auto 2.5rem; font-weight: 300; }

/* PRZYCISKI */
.btn { 
    display: inline-block; 
    padding: 16px 32px; 
    font-size: 1.1rem; 
    font-weight: 600; 
    border-radius: 4px; 
    cursor: pointer; 
    text-align: center; 
    border: 2px solid transparent; 
}
.btn-primary { background: var(--secondary-color); color: var(--white); border-color: var(--secondary-color); }
.btn-primary:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--primary-color); border-color: var(--primary-color); width: 100%; }
.btn-outline:hover { background: var(--primary-color); color: var(--white); }
.btn-outline.active { background: var(--primary-color); color: var(--white); }
.filter-btn.active { background: var(--primary-color); color: var(--white); }

/* SEKCJE Z GRIDEM */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text h2 { margin-bottom: 2rem; font-size: 2.2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 2rem; }
.card { 
    background: var(--bg-color); 
    padding: 2.5rem 2rem; 
    border: 1px solid var(--accent-color); 
    text-align: center; 
    transition: transform 0.3s, box-shadow 0.3s; 
    display: flex; 
    flex-direction: column; 
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.card h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.card p { margin-bottom: 1.5rem; }
.card .btn { margin-top: auto; }

/* SZCZEGÓŁY USŁUGI (AKORDEON) */
.service-details { display: none; margin-bottom: 1.5rem; text-align: left; font-size: 0.95rem; animation: fadeIn 0.4s ease-in-out; }
.service-details hr { margin: 1rem 0; border: 0; border-top: 1px solid var(--accent-color); }
.service-details .details-text { margin-bottom: 0; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* KROKI */
.steps { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.step { 
    flex: 1; 
    min-width: 0; /* Zmiana naprawiająca błędy responsywności */
    flex-basis: 300px;
    max-width: 100%;
    text-align: left; 
    position: relative; 
    padding: 2rem; 
    background: var(--white); 
    border: 1px solid var(--accent-color); 
    border-top: 4px solid var(--secondary-color); 
}
.step-num { font-size: 3rem; color: var(--accent-color); font-family: 'Playfair Display', serif; font-weight: bold; position: absolute; top: -1.5rem; right: 1.5rem; opacity: 0.5; }

/* FORMULARZ I KONTAKT */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.secure-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-weight: 600; margin-bottom: 0.5rem; color: var(--primary-color); }
.form-group input, .form-group textarea, .form-group select { padding: 15px; font-size: 1rem; border: 1px solid var(--accent-color); border-radius: 4px; font-family: 'Inter', sans-serif; width: 100%; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--secondary-color); }

/* STOPKA */
.site-footer { background: var(--primary-color); color: var(--white); padding: 4rem 0 1rem; }
.site-footer h3, .site-footer h4, .site-footer .logo { margin-bottom: 1.5rem; }
.site-footer h4 { color: var(--accent-color); font-size: 1.2rem; }
.site-footer a { color: var(--accent-color); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 2rem; margin-bottom: 3rem; }
.parking-info { margin-top: 1rem; padding: 15px; background: rgba(255,255,255,0.05); border-left: 4px solid var(--secondary-color); font-size: 0.95rem; line-height: 1.4; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; font-size: 0.9rem; color: var(--accent-color); }


/* ==================================================
   RESPONSYWNOŚĆ (MEDIA QUERIES) DLA KAŻDEGO URZĄDZENIA 
   ================================================== */

/* TABLETY I MNIEJSZE LAPTOPY (do 1024px) */
@media(max-width: 1024px) {
    .hero { padding: 6rem 0; }
    .hero h1 { font-size: 2.5rem; }
    .section-padding { padding: 4rem 0; }
    .about-grid, .form-grid { gap: 2.5rem; }
}

/* TABLETY PIONOWO I DUŻE SMARTFONY (do 768px) */
@media(max-width: 768px) {
    .header-flex { flex-direction: column; gap: 1rem; text-align: center; }
    
    .main-nav { 
        margin: 1rem 0; 
        display: flex; 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 15px; 
    }
    .main-nav a { margin: 0; }
    
    .emergency-phone { border-left: none; padding-left: 0; text-align: center; }
    
    /* Zmiana układów kolumnowych na pionowe */
    .about-grid, .form-grid { grid-template-columns: 1fr; }
    
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; padding: 0 15px; }
    .section-padding { padding: 3rem 0; }
    
    .steps { flex-direction: column; align-items: center; }
    .step { max-width: 100%; width: 100%; }
    
    .map-wrapper { height: 250px; } /* Zmniejszenie wysokości mapy na telefonach */
}

/* MAŁE SMARTFONY (do 480px) */
@media(max-width: 480px) {
    body { font-size: 16px; }
    
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .logo { font-size: 2.2rem; }
    
    .card { padding: 1.5rem 1.2rem; }
    .card h3 { font-size: 1.4rem; }
    
    /* Przyciski na 100% szerokości żeby było łatwiej w nie trafić palcem */
    .btn { padding: 14px 20px; font-size: 1rem; width: 100%; display: block; }
    
    .main-nav { flex-direction: column; gap: 12px; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-contact h4, .footer-legal h4 { margin-top: 1rem; }
    .parking-info { text-align: left; }
    
    /* Zmniejszenie marginesów na filterkach galerii */
    .filter-controls .btn { width: 100%; margin-bottom: 5px; }
}
