:root {
    --primary-color: #0A2540;
    --accent-color: #635BFF;
    --text-color: #333;
    --bg-color: #f6f9fc;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 10px 0; position: sticky; top: 0; z-index: 100; }
.header-container { display: flex; justify-content: space-between; align-items: center; }

.logo a { 
    display: flex;
    align-items: center;
    text-decoration: none; 
}

.logo-img {
    height: 110px;  /* Optymalna wielkość loga, bez wychodzenia poza pasek */
    width: auto;
    display: block;
    max-width: 100%;
    mix-blend-mode: multiply; /* Dodatkowe zabezpieczenie tła */
}

nav a { margin: 0 15px; color: var(--text-color); text-decoration: none; font-weight: 500; transition: color 0.3s; }
nav a:hover { color: var(--accent-color); }
.lang-switcher a { text-decoration: none; color: #888; }
.lang-switcher a.active { color: var(--primary-color); font-weight: bold; }

/* Hero Section */
.hero { background: var(--primary-color); color: #fff; padding: 100px 20px; text-align: center; }
.hero h1 { font-size: 48px; margin-bottom: 20px; }
.hero p { font-size: 20px; max-width: 800px; margin: 0 auto; opacity: 0.9; }

/* General Page Layout */
.page-section { padding: 60px 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); text-align: center; }

/* Form & Calculator */
.calc-box { max-width: 500px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
input[type="number"] { width: 100%; padding: 12px; margin: 10px 0 20px; border: 1px solid #ddd; border-radius: 4px; }
button { background: var(--accent-color); color: #fff; border: none; padding: 12px 24px; border-radius: 4px; cursor: pointer; font-size: 16px; width: 100%; }
button:hover { background: #5046e5; }
.result { margin-top: 20px; padding: 15px; background: #e8f5e9; border-left: 5px solid #4caf50; font-size: 18px; font-weight: bold; }

footer { text-align: center; padding: 30px 0; background: var(--primary-color); color: #fff; margin-top: 60px; }

/* --- About Section (Dlaczego My) --- */
.bg-light { background-color: #eef2f6; border-radius: 12px; padding: 60px 40px; margin-top: 40px; }
.about-section { display: flex; flex-wrap: wrap; gap: 50px; align-items: center; }
.about-text { flex: 1; min-width: 300px; }
.about-text h2 { color: var(--primary-color); margin-bottom: 20px; font-size: 36px; }
.about-text p { font-size: 18px; color: #555; line-height: 1.8; }
.about-features { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 20px; }
.feature { background: #fff; padding: 25px; border-radius: 8px; border-left: 5px solid var(--accent-color); box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.feature h4 { color: var(--primary-color); margin-bottom: 8px; font-size: 18px; }
.feature p { color: #666; font-size: 15px; }

/* --- Strona Usług (Services) --- */
.detailed-services { display: flex; flex-direction: column; gap: 40px; margin-top: 20px; }
.service-row { display: flex; align-items: center; gap: 40px; background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.service-row.reverse { flex-direction: row-reverse; }
.service-icon { font-size: 60px; flex-shrink: 0; background: #eef2f6; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.service-content h2 { color: var(--primary-color); font-size: 28px; margin-bottom: 15px; }
.service-content p { font-size: 16px; color: #555; line-height: 1.8; }
.ai-highlight { border: 2px solid var(--accent-color); position: relative; overflow: hidden; }

/* Poprawka ułożenia usług dla telefonów */
@media (max-width: 768px) {
    .service-row, .service-row.reverse { flex-direction: column; text-align: center; gap: 20px; padding: 25px; }
}

/* --- Strona Kontakt --- */
.contact-card {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.contact-item {
    background: #fff;
    padding: 50px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    transition: transform 0.3s;
}
.contact-item:hover {
    transform: translateY(-5px);
}
.contact-icon {
    font-size: 48px;
    margin-bottom: 20px;
}
.contact-item h3 {
    color: #888;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.contact-item p a {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}
.contact-item p a:hover {
    color: var(--accent-color);
}

/* W sekcji na telefony (@media max-width: 768px) możesz ewentualnie upewnić się, że kontakt ładnie układa się jedno pod drugim, ale flex-wrap to już w dużej mierze załatwia */

/* --- Poprawki dla urządzeń mobilnych (telefony i małe tablety) --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav a {
        margin: 0 5px;
        font-size: 14px;
    }

    .hero h1 {
        font-size: 32px; 
    }

    .hero {
        padding: 60px 20px;
    }

    .logo-img {
        height: 80px; /* Optymalna wysokość na telefony, usunięto ujemne marginesy */
    }
}