﻿:root {
    --primary-color: #2c7be5;
    --error-color: #ff7a00;
    --success-color: #00d97e;
    --warning-color: #f6c343;
    --text-color: #12263f;
    --border-color: #d5ddec;
}


h1 {
    color: #2a5c91;
    margin-bottom: 20px;
    text-align: center;
}

.calculator-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    padding: 30px;
    margin: 70px auto;
    max-width: 480px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    color: #2a5c91;
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

    input:focus, select:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.1);
    }

    input.error {
        border-color: var(--error-color);
    }

        input.error:focus {
            box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
        }

.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.btn-calc {
    background-color: #2a5c91;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

    .btn-calc:hover {
        opacity: 0.9;
    }

.result-section {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.result-description {
    font-size: 16px;
}

.normal {
    background-color: rgba(0, 217, 126, 0.1);
    border-left: 4px solid var(--success-color);
}

.warning {
    background-color: rgba(246, 195, 67, 0.1);
    border-left: 4px solid var(--warning-color);
}

.danger {
    background-color: rgba(255, 71, 87, 0.1);
    border-left: 4px solid #ff4757;
}

.sources {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

    .sources h3 {
        margin-bottom: 15px;
        color: #2a5c91;
    }

    .sources ul {
        list-style-position: inside;
    }

    .sources li {
        margin-bottom: 8px;
    }

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .calculator-container {
        width: 90%;
        margin-top: 100px;
    }

    input, select, button {
        padding: 10px 12px;
    }
}
