/* style.css */
body {
    font-family: Arial, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.calc-container {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

h1 {
    color: #0066cc;
    border-bottom: 2px solid #FF7E00;
    padding-bottom: 15px;
    margin-top: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

td {
    padding: 12px;
    vertical-align: top;
    border-bottom: 1px solid #eee;
}

.searchbox {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.searchbox:focus {
    border-color: #FF7E00;
    outline: none;
}

.searchbutton {
    background: #FF7E00;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
    display: block;
    margin: 20px auto;
    width: 200px;
}

.searchbutton:hover {
    background: #e66d00;
}

.vehicle-types {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vehicle-type {
    padding: 8px 15px;
    background: #e9e9e9;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.vehicle-type:hover {
    background: #d9d9d9;
}

.vehicle-type.active {
    background: #FF7E00;
    color: white;
    font-weight: bold;
}

.auto_res {
    margin-top: 30px;
    padding: 20px;
    background: #e9f7ff;
    border-left: 4px solid #2196F3;
    border-radius: 5px;
    display: none;
}

.result-title {
    color: #0066cc;
    margin-top: 0;
}

.result-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

.result-total {
    font-weight: bold;
    font-size: 18px;
    color: #d35400;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
}

.note {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

input[type="radio"], input[type="checkbox"] {
    margin-right: 8px;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .calc-container {
        padding: 15px;
    }
    
    table, tr, td {
        display: block;
        width: 100%;
    }
    
    td {
        padding: 8px 0;
        border-bottom: none;
    }
    
    .vehicle-types {
        flex-direction: column;
    }
}

/* Стили для кнопки "На главную" */
.back-button {
    display: inline-block;
    background: #2e80ec;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.1em;
    transition: background-color 0.3s;
    margin: 40px auto 20px;
    text-align: center;
}

.back-button:hover {
    background-color: #1e60c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}