:root {
    --primary-color: #0056b3;
    --primary-hover: #004494;
    --bg-color: #f4f6f9;
    --text-color: #333;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    color: var(--text-color);
    min-height: 100vh;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    background: #fff;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Progress Bar */
.progress-container {
    background-color: #e9ecef;
    height: 6px;
    width: 100%;
}

.progress-bar {
    background-color: var(--primary-color);
    height: 100%;
    width: 0%;
    transition: width var(--transition-speed) ease;
}

.step-indicator {
    padding: 15px 20px 0;
    font-size: 0.9rem;
    color: #666;
    text-align: right;
}

.step-indicator.hidden {
    display: none;
}

/* Steps */
.step {
    display: none;
    padding: clamp(20px, 4vw, 32px) clamp(20px, 4vw, 36px) clamp(24px, 5vw, 40px);
    flex-grow: 1;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.step.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #1a1a1a;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

p.subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.5;
}

p.hint-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

/* Form Elements */
.options-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.option-label:hover {
    border-color: #b8daff;
    background-color: #f8f9fa;
}

.option-label.selected {
    border-color: var(--primary-color);
    background-color: #e7f1ff;
}

.option-label input[type="radio"],
.option-label input[type="checkbox"] {
    margin-right: 15px;
    transform: scale(1.2);
    accent-color: var(--primary-color);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 0.85rem;
}

/* Buttons */
.buttons {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-primary:disabled {
    background-color: #a0c4e8;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #e9ecef;
    color: #333;
}

.btn-secondary:hover {
    background-color: #dde2e6;
}

/* Results */
.result-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #555;
}

.result-summary p {
    margin-bottom: 8px;
}

.result-summary strong {
    color: #333;
}

.result-summary hr {
    margin: 10px 0;
    border: 0;
    border-top: 1px solid #ddd;
}

.recommendation-box {
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    background-color: #fff;
}

.recommendation-box.not-found {
    border-color: #777;
}

.recommendation-title {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.system-list {
    list-style: none;
}

.system-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 1.05rem;
    font-weight: 500;
}

.system-list li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.warning-text {
    color: #d9534f;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 12px;
    }
    .container {
        border-radius: 10px;
    }
    .step {
        padding: 14px 14px 20px;
    }
    h1 { font-size: 1.3rem; line-height: 1.25; }
    h2 { font-size: 1.1rem; line-height: 1.25; }
    p.subtitle { font-size: 0.98rem; }
    .buttons {
        flex-direction: column;
        gap: 10px;
        padding-top: 16px;
    }
    .btn { width: 100%; }
}

@media (max-width: 768px) and (min-width: 481px) {
    body {
        padding: 14px;
    }
    .container {
        max-width: 640px;
    }
    .step {
        padding: 18px 20px 26px;
    }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    .buttons { gap: 12px; }
}
