* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: transparent;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    margin: 0;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 1100px;
    width: 100%;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.step-indicator {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 0.9em;
}

.step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-title {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.option-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.option-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.option-card.checkbox-option.selected::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* Стили для подсказок к полям */
.field-hint {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f7ff 100%);
    border: 1px solid #e0e7ff;
    border-left: 3px solid #667eea;
    padding: 10px 12px;
    margin-top: 6px;
    margin-bottom: 12px;
    border-radius: 8px;
    font-size: 0.85em;
    color: #555;
    line-height: 1.5;
    position: relative;
    transition: all 0.3s ease;
}

.field-hint:hover {
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    border-color: #c7d2fe;
}

.field-hint strong {
    color: #667eea;
    display: inline-block;
    margin-right: 6px;
    font-size: 0.9em;
    font-weight: 600;
}

.field-hint-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 1em;
    vertical-align: middle;
}

.field-hint-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    color: #667eea;
    font-size: 0.9em;
    font-weight: 500;
    margin-top: 4px;
}

.field-hint-toggle:hover {
    color: #5568d3;
}

.field-hint-toggle::before {
    content: '▶';
    font-size: 0.7em;
    transition: transform 0.3s ease;
    display: inline-block;
}

.field-hint-toggle.expanded::before {
    transform: rotate(90deg);
}

.field-hint-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
}

.field-hint-content.expanded {
    max-height: 500px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e0e7ff;
}

.field-hint-compact {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f7ff 100%);
    border: 1px solid #e0e7ff;
    border-left: 3px solid #667eea;
    padding: 8px 12px;
    margin-top: 6px;
    margin-bottom: 12px;
    border-radius: 8px;
    font-size: 0.85em;
    color: #555;
    line-height: 1.4;
}

.field-hint-compact strong {
    color: #667eea;
    font-weight: 600;
    margin-right: 4px;
}

/* Компактные подсказки в карточках опций */
.option-card .field-hint-compact {
    margin: 8px 0 0 0;
    padding: 8px 10px;
    font-size: 0.8em;
    background: rgba(240, 247, 255, 0.6);
    border-left-width: 2px;
}

.option-card input[type="checkbox"],
.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.option-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.option-price {
    color: #667eea;
    font-weight: 600;
    font-size: 1.2em;
    margin-top: 10px;
}

.option-description {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.input-group input[type="number"],
.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="tel"],
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.input-group textarea {
    min-height: 120px;
    resize: vertical;
}

.input-group input[type="number"]:focus,
.input-group input[type="text"]:focus,
.input-group input[type="email"]:focus,
.input-group input[type="tel"]:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    width: 100%;
    margin-top: 20px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
    margin-right: 10px;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

.button-group .btn {
    min-width: 150px;
    flex: 0 1 auto;
}

.result-container {
    text-align: center;
    padding: 40px 20px;
}

.result-title {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

.final-price {
    font-size: 4em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 30px 0;
}

.price-breakdown {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    text-align: left;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item-label {
    color: #666;
}

.price-item-value {
    font-weight: 600;
    color: #333;
}

.total-item {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #667eea;
    font-size: 1.2em;
}

.total-item .price-item-label,
.total-item .price-item-value {
    color: #667eea;
    font-weight: 700;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 25px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.technical-spec {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
    border: 2px solid #e0e0e0;
}

.technical-spec h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.technical-spec h3 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.technical-spec p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.technical-spec ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.technical-spec li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.spec-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.spec-section:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: #333;
    display: inline-block;
    min-width: 200px;
}

.spec-value {
    color: #666;
}

.btn-download {
    background: #28a745;
    margin-top: 20px;
}

.btn-download:hover {
    background: #218838;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.4);
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .final-price {
        font-size: 3em;
    }
}