html, body { width: 100%; height: 100%; overflow: hidden; } #app-container { width: 100%; height: 100%; position: relative; } #canvas-container { width: 100%; height: 100%; position: absolute; top: 0; left: 0; } body { margin: 0; font-family: sans-serif; } canvas { display: block; } #ui-panel { position: absolute; top: 20px; right: 20px; padding: 20px; background-color: rgba(255, 255, 255, 0.9); border-radius: 10px; width: 320px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); z-index: 10; /* Ставим панель поверх 3D сцены */ } .control-group { margin-bottom: 20px; border-bottom: 1px solid #e0e0e0; padding-bottom: 20px; } .control-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; } .control-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .control-row label { font-weight: bold; } .control-row input[type="range"] { width: 160px; } .control-row input[type="number"] { width: 60px; text-align: center; } .control-row span { min-width: 40px; text-align: right; } h3, h4 { margin-top: 0; margin-bottom: 15px; text-align: center; color: #333; } #material-selector { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; } .material-swatch { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #ccc; cursor: pointer; transition: transform 0.2s, border-color 0.2s; background-size: cover; } .material-swatch:hover { transform: scale(1.1); } .material-swatch.selected { border-color: #007bff; border-width: 3px; } #price-container { text-align: center; padding-top: 15px; } #price-container .price-label { font-size: 16px; color: #555; margin-bottom: 5px; } #price-container .price-value { font-size: 28px; font-weight: bold; color: #d9534f; }