/* === Прижатие футера к низу === */
html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.site-main, main {
    flex: 1; /* растягивается на всё свободное место */
}

/* === Стилизация футера === */
.site-footer, footer {
    background: #0f172a;   /* тот же цвет, что и у шапки */
    color: #cbd5e1;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
}

.site-footer p, footer p {
    margin: 0;
}
/* Общие стили для конфигуратора */
.configurator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Блок выбора марки/модели — в стиле таблицы */
.filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background: #1e293b;  /* тот же фон, что у thead */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.filter-select {
    flex: 1;
    padding: 12px 16px;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.2s;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.filter-select:disabled {
    background: #e2e8f0;
    cursor: not-allowed;
}

/* Таблица оборудования (уже была) */
.equipment-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.equipment-table thead tr {
    background: #1e293b;
    color: white;
    text-align: left;
}

.equipment-table th,
.equipment-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.equipment-table tbody tr:hover {
    background: #f8fafc;
}

.equipment-table th:first-child,
.equipment-table td:first-child {
    padding-left: 20px;
}

.equipment-table th:last-child,
.equipment-table td:last-child {
    padding-right: 20px;
}

/* Стили для загрузки и ошибок */
.loading, .error {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.error {
    color: #dc2626;
    background: #fee2e2;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        gap: 12px;
    }

    .equipment-table,
    .equipment-table tbody,
    .equipment-table tr,
    .equipment-table td {
        display: block;
    }

    .equipment-table thead {
        display: none;
    }

    .equipment-table tr {
        margin-bottom: 16px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        overflow: hidden;
    }

    .equipment-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
        border-bottom: 1px solid #e2e8f0;
    }

    .equipment-table td:before {
        content: attr(data-label);
        font-weight: 600;
        width: 40%;
    }
}