/* style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;

    /* --- Базовые настройки фона (для мобильных устройств или как запасной вариант) --- */
    background-image: url('https://i.pinimg.com/736x/6f/cc/0a/6fcc0a054a540f8a62c3eb2ab1f8b62a.jpg'); /* Начинаем с маленького изображения */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Фиксирует фон, чтобы он не смещался при скролле */
}

/* --- Медиазапрос для средних экранов (планшеты) --- */
@media (min-width: 768px) {
    body {
        background-image: url('https://pic.rtbcdn.ru/video/2026-03-16/37/81/3781e5197e7fa103fcd79bea0c0eb68e.jpg'); /* Среднее изображение */
        /* background-size: cover; */ /* Можно оставить cover, или настроить иначе */
        /* background-position: center; */
        /* background-repeat: no-repeat; */
        /* background-attachment: fixed; */
    }
}

/* --- Медиазапрос для больших экранов (десктопы) --- */
@media (min-width: 1200px) {
    body {
        background-image: url('https://pic.rtbcdn.ru/video/2026-03-16/37/81/3781e5197e7fa103fcd79bea0c0eb68e.jpg'); /* Большое изображение */
        /* background-size: cover; */
        /* background-position: center; */
        /* background-repeat: no-repeat; */
        /* background-attachment: fixed; */
    }
}

.container {
    background-color: rgba(255, 255, 255, 0.85); /* Полупрозрачный фон для лучшей читаемости */
    width: 100%;
    max-width: 600px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 25px;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 5px;
}

header p {
    color: #7f8c8d;
    margin-top: 0;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #34495e;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

input:focus, select:focus {
    border-color: #27ae60;
    outline: none;
    box-shadow: 0 0 5px rgba(39, 174, 96, 0.3);
}

.btn-calculate {
    width: 100%;
    padding: 12px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-calculate:hover {
    background-color: #219150;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    border-left: 5px solid #c62828;
}

.result-section {
    margin-top: 30px;
    animation: fadeIn 0.5s ease-in-out;
}

.input-summary p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.result-table th, .result-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.result-table th {
    background-color: #f2f2f2;
    color: #333;
}

.highlight-row {
    background-color: #e8f5e9;
    font-weight: bold;
}

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