* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 28px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 16px;
}

.calculator-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.section-title {
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title svg {
    width: 24px;
    height: 24px;
    fill: #3498db;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.results-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.result-box {
    text-align: center;
    padding: 15px;
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.result-label {
    color: #7f8c8d;
    font-size: 14px;
}

.green-text {
    color: #27ae60;
}

.blue-text {
    color: #2980b9;
}

.orange-text {
    color: #e67e22;
}

.purple-text {
    color: #8e44ad;
}

.red-text {
    color: #e74c3c;
}

.comparison-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.btn {
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-hybrid {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.btn-electric {
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: white;
}

.btn-copy {
    background: #95a5a6;
    color: white;
    margin-top: 20px;
    width: 100%;
}

.comparison-result {
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
}

.comparison-hybrid {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #27ae60;
}

.comparison-electric {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #2980b9;
}

.instructions {
    background: #e8f4fc;
    border-left: 4px solid #3498db;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 25px 0;
}

.instructions h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 10px;
}

.chart-container {
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.chart-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.faq-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 30px;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.faq-answer {
    color: #7f8c8d;
    line-height: 1.7;
}

footer {
    text-align: center;
    padding: 30px 0;
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 20px;
}

.tooltip-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    line-height: 18px;
    margin-left: 8px;
    cursor: help;
    position: relative;
}

.tooltip-icon:hover::after {
    content: "Zwiększenie liczby osób zwiększa spalanie: 1 osoba - 0 l, 2 osoby - +0.6 l, 3 osoby - +1.1 l, 4 osoby - +1.7 l, 5 osób - +2.2 l";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 10px;
    border-radius: 4px;
    width: 250px;
    font-size: 14px;
    z-index: 1000;
    white-space: normal;
    text-align: center;
}

.tooltip-icon:hover::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #2c3e50;
    margin-bottom: -5px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .results-container {
        grid-template-columns: 1fr;
    }
    
    .comparison-buttons {
        grid-template-columns: 1fr;
    }
}