/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* Фильтр техники */
.vehicle-selector {
    background: #ffffff;
    border-radius: 6px;
    margin: 20px 0;
}

.trigger-button {
    background: #000000;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-family: 'als-hauss', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    height: 48px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Desktop стили для кнопки */
@media (min-width: 991px) {
    .trigger-button {
        width: auto;
        min-width: 300px;
        max-width: 400px;
    }
}

.trigger-button:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.trigger-button:active {
    transform: translateY(0);
}

.filter-content {
    margin-top: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.filter-content.show {
    opacity: 1;
    transform: translateY(0);
}

/* Desktop анимация справа */
@media (min-width: 1080px) {
    .filter-content {
        margin-top: 0;
        margin-left: auto;
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: end;
    }
    
    .filter-content.show {
        opacity: 1;
        transform: translateX(0);
    }
}

.selector-container {
	margin-top: 20px;
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.selector-group {
    flex: 1;
    min-width: 180px;
}

.selector {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'gotham-medium', sans-serif !important;
    font-size: 14px;
    font-weight: 500;
    background-color: #ffffff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.selector:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.selector:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.selector:not(:disabled):hover {
    border-color: #999;
}

.go-button {
    background: #ED5C00;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-family: 'als-hauss', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    height: 48px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-link-message {
    font-family: 'gotham-medium', sans-serif !important;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    text-align: center;
    width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.go-button:hover:not(:disabled) {
    background: #555;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.go-button:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.go-button:active:not(:disabled) {
    transform: translateY(0);
}

/* Стили для кнопки менеджера */
.go-button.manager-button {
    background: #dc3545;
}

.go-button.manager-button:hover:not(:disabled) {
    background: #c82333;
}

/* Адаптивность */
@media (max-width: 1080px) {
    .selector-container {
		margin-top: 20px;
        flex-direction: column;
        gap: 16px;
    }
    
    .selector-group {
        min-width: 100%;
    }
    
    .go-button {
        min-width: 100%;
    }
}

/* Desktop стили */
@media (min-width: 1080px) {
    .vehicle-selector {
        max-width: 1404px;
        margin: 20px auto;
        display: flex;
        align-items: end;
        gap: 20px;
        width: 100%;
    }
    
    .selector-container {
		margin-top: 0;
        justify-content: space-between;
        gap: 15px;
        flex-wrap: nowrap;
        flex: 1;
        width: 100%;
    }
    
    .selector-group {
        flex: 0 0 auto;
    }
    
    .selector-group:nth-child(1) {
        width: 250px;
    }
    
    .selector-group:nth-child(2) {
        width: 220px;
    }
    
    .selector-group:nth-child(3) {
        width: 180px;
    }
    
    .selector-group:last-child {
        width: fit-content;
        min-height: 48px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        position: relative;
    }
    
    .selector {
        font-size: 14px;
        padding: 10px 12px;
        height: 48px;
    }
    
    .go-button {
        font-size: 14px;
        padding: 10px 16px;
        min-width: auto;
        width: 100%;
        height: 48px;
    }
    
    .no-link-message {
        position: absolute;
        top: -25px;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 12px;
        margin-bottom: 0;
        width: 100%;
    }
}

/* Перенос на вторую строку с 1440px */
@media (max-width: 1440px) and (min-width: 769px) {
    .vehicle-selector {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-content {
        margin-left: 0;
        margin-top: 0px;
    }
}