/* GŁÓWNE ZMIENNE I BAZA */
:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --success: #28a745;
    --text: #2c3e50;
    --light: #f8f9fa;
    --gray: #95a5a6;
}

body { 
    font-family: 'Inter', sans-serif; 
    margin: 0; 
    color: var(--text); 
    line-height: 1.6; 
    background: #fdfdfd;
}

/* OGÓLNA NAPRAWA OBRAZKÓW I IKON */
img, .section-icon {
    max-width: 100%;
    height: auto;
}
/* Naprawa wielkich ikon ze screena */
img[src*="png"], .emoji-icon {
    max-width: 50px !important;
    margin-bottom: 15px;
}

/* NAWIGACJA (Wspólna dla index i welcome) */
nav, .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid #eee;
}

.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav-links a { margin-left: 20px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.9rem; }
.nav-btn { background: var(--primary); color: white !important; padding: 10px 20px; border-radius: 8px; }

/* HERO SECTION */
.hero { 
    padding: 60px 5% 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}
.hero-content { flex: 1; min-width: 320px; }
.hero-content h1 { font-size: 3.2rem; line-height: 1.1; margin-bottom: 25px; color: #1a1a1a; letter-spacing: -1.5px; }
.hero-content p { font-size: 1.15rem; color: #555; margin-bottom: 35px; max-width: 600px; }

.auth-card { 
    flex: 0 1 420px;
    background: white; 
    padding: 40px; 
    border-radius: 24px; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.12);
    border: 1px solid #f0f0f0;
}

/* SEKCJE FUNKCJI (To co było "brzydkie" na screenie) */
.section { padding: 60px 5%; max-width: 1000px; margin: 0 auto; }
.feature-item {
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 15px;
}
.feature-item h3 { margin: 10px 0; color: #1a1a1a; }

/* FORMULARZE */
input, select { 
    width: 100%; padding: 14px; margin-bottom: 15px; border-radius: 10px; 
    border: 1px solid #ddd; box-sizing: border-box; font-size: 1rem;
}
input:focus { border-color: var(--primary); outline: none; }

.btn-main { 
    width: 100%; padding: 16px; border-radius: 12px; border: none; 
    font-weight: 800; cursor: pointer; font-size: 1.1rem; transition: 0.3s;
}
.btn-register { background: var(--success); color: white; }
.btn-register:hover { opacity: 0.9; transform: translateY(-2px); }

/* STOPKA */
footer {
    margin-top: 60px;
    padding: 40px 5%;
    text-align: center;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    color: var(--gray);
}
footer a { color: var(--primary); text-decoration: none; margin: 0 10px; }

/* RESPONSYWNOŚĆ MOBILNA */
@media (max-width: 768px) {
    .nav, nav { padding: 10px 15px; flex-direction: column; gap: 10px; text-align: center; }
    .nav-links { display: none; } /* Chowamy linki menu na mobile dla czytelności */
    
    .hero { padding: 40px 20px; text-align: center; }
    .hero-content h1 { font-size: 2.2rem; }
    
    .auth-card { padding: 25px; width: 100%; }
    
    .example-wrapper { grid-template-columns: 1fr; }
}

/* STYLIZACJA BENTO GRID */
.bento-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.bento-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Efekt najechania - delikatne uniesienie */
.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.08);
    border-color: #bfdbfe;
}

/* Wyróżniony duży kafel (Jakość Premium) - zajmuje 2 kolumny! */
.bento-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, #ffffff 0%, #f4f9ff 100%);
    border: 1px solid #bee3f8;
}

.bento-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.bento-card h3 {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    color: #1e293b;
}

.bento-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* EFEKT KLOWKA 3D DLA PRZYCISKÓW */
.btn-3d {
    display: inline-block;
    background: #007bff;
    color: white !important;
    border: none;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 6px 0 #0056b3; /* Grubość klocka */
    transition: all 0.1s ease;
    cursor: pointer;
}

.btn-3d:hover {
    background: #0069d9;
}

.btn-3d:active {
    transform: translateY(4px); /* Wciśnięcie klocka */
    box-shadow: 0 2px 0 #0056b3; /* Zmniejszenie grubości */
}

/* Responsywność dla Bento */
@media (max-width: 900px) {
    .bento-container {
        grid-template-columns: 1fr;
    }
    .bento-card.featured {
        grid-column: span 1;
    }
}
