/* ===========================================
   RESET & BASE STYLES
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Brand colors extracted from the logo */
:root {
    --brand-pink: #e84b8a;
    --brand-orange: #ff7a3d;
    --brand-yellow: #ffb84a;
    --brand-cyan: #19b6c6;
    --brand-purple: #6f3fa0;
    --bg-gradient-start: var(--brand-cyan);
    --bg-gradient-end: var(--brand-pink);
}

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

/* ===========================================
   HEADER
   =========================================== */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-pink) 0%, var(--brand-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

/* ===========================================
   BUTTONS
   =========================================== */
.cta-button {
    background: linear-gradient(135deg, var(--brand-pink) 0%, var(--brand-orange) 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.cta-button.large {
    padding: 18px 40px;
    font-size: 18px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.secondary-button {
    background: white;
    color: var(--brand-pink);
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.secondary-button.large {
    padding: 18px 40px;
    font-size: 18px;
}

.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    color: white;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s linear infinite;
    opacity: 0.6;
}

@keyframes float {
    from { transform: translateY(0); }
    to { transform: translateY(-100px); }
}

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero .subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-image-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.hero-image {
    max-width: 1200px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(16,24,40,0.06);
}

/* ===========================================
   MAIN CONTENT
   =========================================== */
.main-content {
    background: white;
    border-radius: 40px 40px 0 0;
    padding: 80px 0;
    margin-top: -20px;
    position: relative;
}

/* ===========================================
   BENEFITS SECTION
   =========================================== */
.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.benefit-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    transition: all 0.5s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.benefit-card:hover::before {
    top: -25%;
    right: -25%;
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    position: relative;
    z-index: 1;
}

.benefit-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    z-index: 1;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ===========================================
   CALCULATOR SECTION
   =========================================== */
.calculator-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 40px;
    border-radius: 30px;
    color: white;
    margin-bottom: 80px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.calculator-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 800;
}
.calculator {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 40px;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calc-input {
    margin-bottom: 30px;
}

.calc-input label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 16px;
}

.calc-input input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.calc-input input:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    background: white;
}

.calc-result {
    background: rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.calc-result h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.result-value {
    font-size: 48px;
    font-weight: 900;
    margin: 20px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.result-description {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 15px;
}

/* ===========================================
   PROCESS SECTION
   =========================================== */
.process-section {
    margin-bottom: 80px;
}

.process-section h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 800;
    color: #333;
}

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

.step {
    text-align: center;
    padding: 30px;
    position: relative;
}

.step-number {
    font-size: 72px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    opacity: 0.3;
}

.step h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.step p {
    color: #666;
    line-height: 1.6;
}

/* ===========================================
   FINAL CTA SECTION
   =========================================== */
.final-cta {
    margin-bottom: 80px;
}

.cta-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 40px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.cta-box h2 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 800;
    color: #333;
}

.cta-box p {
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================================
   FOOTER
   =========================================== */
footer {
    background: #1a1a2e;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content .logo {
    font-size: 32px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--brand-pink) 0%, var(--brand-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-content p {
    opacity: 0.7;
    font-size: 14px;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero .subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .calculator-section {
        padding: 40px 20px;
    }

    .calculator {
        padding: 30px 20px;
    }

    .result-value {
        font-size: 36px;
    }

    .process-section h2,
    .cta-box h2 {
        font-size: 32px;
    }

    .calculator-section h2 {
        font-size: 28px;
    }

    .cta-box {
        padding: 40px 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }

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

    .hero .subtitle {
        font-size: 16px;
    }

    .benefit-card,
    .calculator,
    .step {
        padding: 25px;
    }

    .cta-button,
    .secondary-button {
        width: 100%;
        text-align: center;
    }

    .project-card {
        overflow: hidden; /* zapobiega "wyciekaniu" obrazu z karty */
    }

    .project-image {
        width: 100%;
        aspect-ratio: 1 / 1;    /* wymusza kwadrat */
        object-fit: cover;      /* przycinanie i dopasowanie obrazu */
        display: block;
        border-radius: 8px;
        height: auto;           /* pozwala aspect-ratio działać poprawnie */
    }
}

/* Projekty - równa szerokość kart i obrazów */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
}

/* Stała szerokość kart (wszystkie takie same) */
.project-card {
    width: 320px;         /* <- dostosuj szerokość tutaj */
    flex: 0 0 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Kwadratowy obraz w karcie, dopasowany do szerokości karty */
.project-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    height: auto;
}

/* Responsywność: zmniejsz szerokość kart na mniejszych ekranach */
@media (max-width: 1024px) {
    .project-card { width: 280px; flex: 0 0 280px; }
}
@media (max-width: 768px) {
    .project-card { width: 48%; flex: 0 0 48%; }
}
@media (max-width: 480px) {
    .project-card { width: 100%; flex: 0 0 100%; }
}

/* Jednolite, kwadratowe logotypy usług */
.service-logo {
    width: 96px;            /* stała szerokość dla wszystkich logotypów */
    aspect-ratio: 1 / 1;    /* wymusza kwadrat */
    height: auto;           /* pozwala aspect-ratio działać poprawnie */
    object-fit: contain;    /* zachowuje całe logo bez przycinania */
    display: block;
    margin: 0 auto 12px;    /* centruje nad nagłówkiem karty */
    border-radius: 8px;     /* opcjonalne zaokrąglenie tła */
    background: rgba(255,255,255,0.04); /* lekki kontrast na gradientowym tle */
    padding: 8px;           /* odstęp wokół logo */
}

/* Mniejsze logotypy na małych ekranach */
@media (max-width: 768px) {
    .service-logo { width: 76px; padding: 6px; }
}
@media (max-width: 480px) {
    .service-logo { width: 64px; padding: 4px; }
}

/* Site logo image (used in header/footer when present) */
.site-logo {
    height: 40px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

/* Cookie banner styles */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: rgba(255,255,255,0.98);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 2000;
    display: none;
}
.cookie-content {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 16px;
    flex-wrap: wrap;
}
.cookie-content p {
    margin: 0;
    color: #222;
    flex: 1 1 400px;
}
.cookie-actions {
    display: flex;
    gap: 10px;
}
.cookie-btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 700;
}
.cookie-btn.accept {
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-orange));
    color: white;
}
.cookie-btn.decline {
    background: #f1f3f5;
    color: #333;
}
.cookie-content a { color: var(--brand-pink); text-decoration: underline; }