/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.page-roi-calc {
    background: var(--bg-light, #f8fafc) !important;
    padding: 0 !important;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.calc-hero {
    background: linear-gradient(135deg, var(--primary-color, #1a3a52) 0%, var(--dark-color, #0f1e2e) 100%);
    color: white;
    padding: 130px 0 60px 0;
    text-align: center;
}
 
.calc-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}
 
.calc-hero-content p {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}
 
 
/* === NOWE: Sekcja kalkulatora (jasne tło, padding) === */
.calc-section {
    padding: 3rem 0 5rem 0;
    background: var(--bg-light, #f8fafc);
}
 
.container-calc {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}
 


/* Calculator container */
.calculator {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(26, 58, 82, 0.08);
}

/* TWO COLUMN LAYOUT */
.layout-two-column {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
}

/* LEFT COLUMN - INPUTS */
.input-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* RIGHT COLUMN - RESULTS */
.results-column {
    display: flex;
    flex-direction: column;
}

/* Compact sections */
.section.compact {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.section.compact h2 i {
    color: #2dd4a3;
    margin-right: 8px;
}

/* Input groups - COMPACT */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.85rem;
}

.input-group label small {
    display: block;
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.78rem;
    margin-top: 2px;
}

.input-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #2dd4a3;
    box-shadow: 0 0 0 3px rgba(45, 212, 163, 0.15);
}

/* RESULTS SECTION */
.section.results-main {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.section.results-main h2 i {
    color: #2dd4a3;
    margin-right: 8px;
}

/* HERO METRICS - Big numbers! */
.hero-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.hero-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.roi-card {
    background: linear-gradient(135deg, #2dd4a3 0%, #1dd19f 100%);
    color: white;
}
 
.payback-card {
    background: linear-gradient(135deg, #1a3a52 0%, #0f1e2e 100%);
    color: white;
}

.hero-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 10px;
    font-weight: 600;
}

.hero-value {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.hero-sublabel {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* SECONDARY METRICS */
.secondary-metrics {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-label {
    color: #4a5568;
    font-size: 0.95rem;
}

.metric-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
}

.metric-value.positive {
    color: #2dd4a3;
}

/* BREAKDOWN COMPACT */
.breakdown-compact {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.breakdown-compact h3 i {
    color: #2dd4a3;
    margin-right: 6px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.breakdown-item.total {
    border-top: 2px solid #2d3748;
    border-bottom: none;
    font-weight: 700;
    padding-top: 15px;
    margin-top: 10px;
}

.breakdown-label {
    color: #4a5568;
}

.breakdown-value {
    color: #2d3748;
    font-weight: 600;
}

/* CTA BUTTONS */
.cta-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: auto;
}

.btn-primary, .btn-secondary {
    padding: 14px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #2dd4a3 0%, #1dd19f 100%);
    color: white;  /* było: black - poprawione */
    padding: 14px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
 
.btn-primary:hover {
    background: linear-gradient(135deg, #1dd19f 0%, #14a87f 100%);  /* ciemniejszy gradient na hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 212, 163, 0.4);
    color: white;
}

.btn-secondary {
    background: white;
    color: #1a3a52;
    border: 2px solid #1a3a52;
    padding: 14px 25px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
 
.btn-secondary:hover {
    background: #1a3a52;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 58, 82, 0.3);
}

.calc-assumptions {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: #f8fafb;
    border-left: 4px solid #2dd4a3;
    border-radius: 8px;
}
 
.calc-assumptions p {
    margin: 0;
    font-size: 0.92rem;
    color: #4a5568;
    line-height: 1.7;
}
 
.calc-assumptions i {
    color: #2dd4a3;
    margin-right: 0.4rem;
}
 
.calc-assumptions a {
    color: #1a3a52;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(45, 212, 163, 0.4);
    transition: all 0.2s ease;
}
 
.calc-assumptions a:hover {
    color: #2dd4a3;
    border-bottom-color: #2dd4a3;
}


/* RESPONSIVE */
@media (max-width: 1200px) {
    .layout-two-column {
        grid-template-columns: 350px 1fr;
        gap: 30px;
    }
    
    .hero-value {
        font-size: 3rem;
    }
}

@media (max-width: 968px) {
    .layout-two-column {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .input-column {
        order: 1;
    }
    
    .results-column {
        order: 2;
    }
    
    .hero-metrics {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    .calc-hero {
        padding: 110px 0 40px 0;
    }
    
    .calc-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .calc-hero-content p {
        font-size: 1rem;
    }
    
    .calc-section {
        padding: 2rem 0 3rem 0;
    }
    
    .container-calc {
        padding: 0 1rem;
    }
    
    .calculator {
        padding: 1.5rem;
    }
    
    .calc-assumptions {
        padding: 1rem;
        font-size: 0.88rem;
    }
}


@media (max-width: 640px) {
    .calculator {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .hero-value {
        font-size: 2.5rem;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .header {
        color: #2d3748;
    }
    
    .cta-buttons {
        display: none;
    }
    
    .calculator {
        box-shadow: none;
    }
}

.calculator .btn-secondary,
.calculator a.btn-secondary {
    background: white !important;
    color: #1a3a52 !important;
    border: 2px solid #1a3a52 !important;
    text-decoration: none !important;
}

.calculator .btn-secondary:hover,
.calculator a.btn-secondary:hover {
    background: #1a3a52 !important;
    color: white !important;
    border-color: #1a3a52 !important;
}

.calculator .btn-secondary i,
.calculator a.btn-secondary i {
    color: inherit !important;
}

.calculator .btn-primary {
    color: white !important;
    text-decoration: none !important;
}

.calculator .btn-primary:hover {
    color: white !important;
}