* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    padding: 20px;
}

.wizard-header {
    max-width: 800px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wizard-header h1 {
    font-size: 24px;
    color: #333;
}

.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-switcher a {
    padding: 5px 10px;
    text-decoration: none;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.lang-switcher a.active {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

#ozonWizard {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wizard-two-col {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 768px) {
    .wizard-two-col {
        grid-template-columns: 1fr;
    }
}

.wizard-form {
    min-width: 0;
}

.pipeline-panel {
    position: sticky;
    top: 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 16px;
}

.pipeline-panel h3 {
    font-size: 14px;
    margin-bottom: 12px;
    color: #333;
}

.pipeline-logs pre {
    font-size: 11px;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
}

.field-textarea {
    min-height: 120px;
    resize: vertical;
}

.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    background: white;
    padding: 0 10px;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: bold;
}

.step.completed .step-circle {
    background: #28a745;
    color: white;
}

.step.current .step-circle {
    background: #0066cc;
    color: white;
}

.step-label {
    font-size: 12px;
    text-align: center;
    color: #666;
}

.step.current .step-label {
    color: #0066cc;
    font-weight: bold;
}

.field-row {
    margin-bottom: 20px;
}

.field-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.field-label .required {
    color: #dc3545;
    margin-left: 3px;
}

.field-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.field-input:focus {
    outline: none;
    border-color: #0066cc;
}

.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

.images-upload-area {
    border: 2px dashed #ddd;
    border-radius: 4px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.images-upload-area:hover {
    border-color: #0066cc;
}

.images-upload-area.dragover {
    border-color: #0066cc;
    background: #f0f7ff;
}

.images-url-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.images-url-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.image-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 1;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    text-align: center;
    padding: 10px;
}

.image-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
}

.image-delete:hover {
    background: #dc3545;
}

.buttons-row {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary {
    background: #0066cc;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #0052a3;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.status-area {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.status-saving {
    background: #fff3cd;
    color: #856404;
}

.status-saved {
    background: #d4edda;
    color: #155724;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

.status-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
}
