* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2C5282;
    --light-blue: #EBF8FF;
    --primary-green: #38A169;
    --light-green: #F0FFF4;
    --dark-gray: #2D3748;
    --gray: #718096;
    --light-gray: #F7FAFC;
    --white: #FFFFFF;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.nav-cta {
    background: var(--primary-green);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: #2F855A;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-green) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 161, 105, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 50px) scale(1.1); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

h1 {
    font-size: 48px;
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.subtitle {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    padding: 18px 36px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease 0.4s both;
    box-shadow: 0 4px 6px rgba(56, 161, 105, 0.3);
}

.cta-button:hover {
    background: #2F855A;
    transform: translateY(-3px);
    box-shadow: 0 8px 12px rgba(56, 161, 105, 0.4);
}

.hero-image {
    position: relative;
    animation: fadeIn 1s ease 0.6s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.house-visual {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #E6FFFA 0%, #C6F6D5 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.house-visual::before {
    content: '🏠';
    position: absolute;
    font-size: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

.solar-panel {
    position: absolute;
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, #2B6CB0 0%, #1A365D 100%);
    border: 2px solid #E6FFFA;
    border-radius: 4px;
    top: 30%;
    left: 60%;
    transform: rotate(-30deg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Process Section */
.process {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step {
    text-align: center;
    padding: 40px 30px;
    background: var(--light-gray);
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.step p {
    color: var(--gray);
    line-height: 1.8;
}

/* Guarantee Section */
.guarantee {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--light-gray), var(--white));
}

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.guarantee-item {
    display: flex;
    align-items: start;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.guarantee-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.guarantee-icon {
    width: 60px;
    height: 60px;
    background: var(--light-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    margin-right: 20px;
}

.guarantee-content h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.guarantee-content p {
    color: var(--gray);
    line-height: 1.6;
}

/* Knowledge Section */
.knowledge {
    padding: 80px 0;
    background: var(--white);
}

.knowledge-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.knowledge-card {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.knowledge-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.knowledge-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.knowledge-card p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 10px;
}

/* Form Section */
.form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-green) 100%);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 32px;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--gray);
    font-size: 18px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-gray);
    font-weight: 600;
}

input {
    width: 100%;
    padding: 15px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.checkbox-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
    /* Resetowanie styli globalnych */
    width: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    /* Style specyficzne dla checkboxa */
    height: 20px;
    width: 20px;
    accent-color: var(--primary-green);
}

.checkbox-wrapper label {
    font-weight: 500;
    margin-bottom: 0;
    color: var(--dark-gray);
    cursor: pointer;
}

.submit-button {
    width: 100%;
    padding: 18px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #2F855A;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    padding: 40px 0;
    background: var(--dark-gray);
    color: white;
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    border-radius: 20px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--dark-gray);
}

.article-content {
    line-height: 1.8;
    color: var(--dark-gray);
}

.article-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.article-content h4 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: var(--dark-gray);
}

.article-content p {
    margin-bottom: 15px;
}

.article-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    h1 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 18px;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .guarantee-grid {
        grid-template-columns: 1fr;
    }

    .knowledge-cards {
        grid-template-columns: 1fr;
    }
    
    .checkbox-container {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 30px;
    }

    .nav-content {
        flex-direction: column;
        gap: 20px;
    }

    .hero {
        padding: 100px 0 60px;
    }
}

/* Trust badges */
.trust-badges {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    font-size: 14px;
}

.badge-icon {
    width: 30px;
    height: 30px;
    background: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%; /* Obrazek zajmie 100% szerokości swojego kontenera */
    height: auto; /* Wysokość dopasuje się automatycznie, by zachować proporcje */
    border-radius: 20px; /* Zaokrągli rogi obrazka, tak jak było przy domku */
    box-shadow: var(--shadow-lg); /* Doda ładny, spójny cień */
    object-fit: cover; /* Zapewni, że obrazek ładnie wypełni przestrzeń */
    max-height: 480px; /* Ograniczy wysokość, by nie był za duży */
}

/* Style dla przycisków w nawigacji */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 15px; /* Odstęp między przyciskami */
}

.nav-button-secondary {
    background: transparent;
    color: var(--primary-blue);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-button-secondary:hover {
    background: var(--light-blue);
    border-color: var(--light-blue);
}