﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 0px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eaeaea;
}

.header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.header h1 i {
    color: #3498db;
    margin-right: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Прогресс-бар */
.progress-container {
    margin: 30px 0;
}

.progress-bar {
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    margin-bottom: 20px;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step {
    width: 40px;
    height: 40px;
    background: #ecf0f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #7f8c8d;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step.active {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

/* Контейнер вопросов */
.question-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    min-height: 300px;
    transition: all 0.3s ease;
}

.question-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.question-title i {
    margin-right: 10px;
    color: #3498db;
}

.options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.option {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.option.selected {
    background: #e3f2fd;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.option-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #3498db;
}

.option-content h4 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.option-content p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Поля ввода */
.input-group {
    margin: 20px 0;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: #3498db;
}

.range-container {
    margin-top: 10px;
}

.range-value {
    text-align: center;
    font-weight: bold;
    color: #3498db;
    margin-top: 10px;
    font-size: 1.2rem;
}

/* Навигация */
.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eaeaea;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1c5a7a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #ecf0f1;
    color: #7f8c8d;
}

.btn-secondary:hover {
    background: #d5dbdb;
    color: #2c3e50;
}

.btn-restart {
    background: #e74c3c;
    color: white;
}

.btn-restart:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Результат */
.result-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    animation: fadeIn 0.5s ease;
}

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

.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2rem;
}

.result-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.credit-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #3498db;
}

.credit-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.credit-card h3 i {
    color: #2ecc71;
}

.credit-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.feature {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature i {
    color: #3498db;
    font-size: 1.2rem;
}

.recommendation {
    background: #e8f5e9;
    border-left: 5px solid #2ecc71;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.recommendation h4 {
    color: #27ae60;
    margin-bottom: 10px;
}

.alternatives {
    margin-top: 30px;
}

.alternative {
    background: #fff3cd;
    border-left: 5px solid #f39c12;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

/* Информационный блок */
.info-box {
    background: #e3f2fd;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    border-left: 5px solid #3498db;
}

.info-box h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .options-container {
        grid-template-columns: 1fr;
    }
    
    .navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
}

