/* Основные стили конструктора шкафов */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ebebeb;
    overflow-x: auto;
}

/* Основной контейнер */
.constructor-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Убираем min-height для мобильных устройств */
@media screen and (max-width: 768px) {
    .constructor-container {
        min-height: auto;
    }
}

/* Главное окно конструктора */
.main-window {
    width: min(100vw, 3200px);
    height: calc(min(100vw, 3200px) * 1919 / 3200);
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto;
    overflow: hidden;
}

/* Комплексные адаптивные стили */
/* Очень большие экраны (> 1400px) */
@media screen and (min-width: 1401px) {
    .control-panel {
        font-size: clamp(16px, 1.2vw, 18px);
    }
    
    .price-amount {
        font-size: clamp(28px, 2.2vw, 32px);
    }
    
    .price-currency {
        font-size: clamp(22px, 1.8vw, 26px);
    }
    
    .color-button {
        height: clamp(40px, 3vw, 50px);
    }
    
    .door-color-button {
        height: clamp(40px, 3vw, 50px);
    }
}

/* Большие экраны (1200px - 1400px) */
@media screen and (max-width: 1400px) {
    .control-panel {
        font-size: clamp(14px, 1.5vw, 16px);
        padding: clamp(15px, 1.5vw, 18px);
        gap: clamp(8px, 1vw, 12px);
    }
    
    .price-amount {
        font-size: clamp(24px, 2.5vw, 28px);
    }
    
    .price-currency {
        font-size: clamp(18px, 2vw, 22px);
    }
    
    .color-button {
        height: clamp(35px, 3.5vw, 42px);
    }
    
    .door-color-button {
        height: clamp(35px, 3.5vw, 42px);
    }
    
    .layout-selector select,
    .variants-dropdown select,
    .doors-handle-selector select {
        padding: clamp(6px, 0.8vw, 8px) clamp(8px, 1vw, 12px);
        font-size: clamp(12px, 1.2vw, 14px);
    }
    
    .width-control label,
    .height-control label,
    .doors-control label,
    .doors-handle-selector label,
    .doors-mirror-control label,
    .custom-depth-checkbox label,
    .lighting-control label,
    .door-sensor-control label,
    .assembly-control label {
        font-size: clamp(12px, 1.3vw, 14px);
    }
    
    .dimensions-display {
        font-size: clamp(12px, 1.2vw, 14px);
    }
    
    .width-slider,
    .height-slider,
    .depth-slider {
        height: clamp(6px, 0.8vw, 8px);
    }
    
    .width-display,
    .height-display,
    .depth-display {
        width: clamp(50px, 6vw, 70px);
        height: clamp(28px, 3vw, 35px);
        font-size: clamp(12px, 1.2vw, 14px);
    }
    
    .help-icon {
        width: clamp(16px, 1.5vw, 18px);
        height: clamp(16px, 1.5vw, 18px);
        font-size: clamp(10px, 1vw, 12px);
    }
    
    .help-tooltip {
        font-size: clamp(11px, 1.1vw, 13px);
        padding: clamp(6px, 0.8vw, 8px) clamp(8px, 1vw, 10px);
        max-width: clamp(200px, 25vw, 280px);
    }
    
    input[type="checkbox"] {
        width: clamp(16px, 1.5vw, 18px);
        height: clamp(16px, 1.5vw, 18px);
    }
    
    .additional-params-title {
        font-size: clamp(12px, 1.3vw, 14px);
    }
    
    .additional-params-toggle {
        font-size: clamp(16px, 1.5vw, 18px);
    }
}

/* Средние экраны (1024px - 1199px) */
@media screen and (max-width: 1199px) {
    .control-panel {
        font-size: clamp(13px, 1.8vw, 15px);
        padding: clamp(12px, 1.8vw, 16px);
        gap: clamp(6px, 1.2vw, 10px);
    }
    
    .price-amount {
        font-size: clamp(20px, 3vw, 24px);
    }
    
    .price-currency {
        font-size: clamp(16px, 2.5vw, 20px);
    }
    
    .price-info {
        margin-bottom: clamp(6px, 1.2vw, 8px);
        padding-bottom: clamp(6px, 1.2vw, 8px);
    }
    
    .color-button {
        height: clamp(30px, 4vw, 38px);
    }
    
    .door-color-button {
        height: clamp(30px, 4vw, 38px);
    }
    
    .color-buttons,
    .doors-color-buttons {
        gap: clamp(4px, 1vw, 6px);
    }
    
    .layout-selector,
    .variants-dropdown,
    .color-selector,
    .doors-control,
    .doors-color-selector,
    .doors-handle-selector,
    .doors-mirror-control,
    .custom-depth-checkbox,
    .lighting-control,
    .door-sensor-control,
    .assembly-control {
        margin-bottom: clamp(6px, 1.2vw, 8px);
    }
    
    .section-controls {
        margin-bottom: clamp(6px, 1.2vw, 8px);
        padding-bottom: clamp(6px, 1.2vw, 8px);
    }
}

/* Адаптивные стили для планшетов */
@media screen and (max-width: 1024px) {
    .control-panel {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90vw;
        max-width: 620px;
        height: 80vh;
        max-height: 700px;
        z-index: 100;
        font-size: clamp(14px, 2vw, 16px);
        gap: clamp(8px, 1.5vw, 12px);
        padding: clamp(15px, 2vw, 20px);
        overflow-y: auto;
    }
    
    .price-amount {
        font-size: clamp(18px, 3.5vw, 22px);
    }
    
    .price-currency {
        font-size: clamp(14px, 3vw, 18px);
    }
    
    .color-button {
        height: clamp(32px, 4.5vw, 40px);
    }
    
    .door-color-button {
        height: clamp(32px, 4.5vw, 40px);
    }
    
    .layout-selector select,
    .variants-dropdown select,
    .doors-handle-selector select {
        padding: clamp(6px, 1vw, 8px) clamp(8px, 1.5vw, 10px);
        font-size: clamp(12px, 1.8vw, 14px);
    }
    
    .width-control label,
    .height-control label,
    .doors-control label,
    .doors-handle-selector label,
    .doors-mirror-control label,
    .custom-depth-checkbox label,
    .lighting-control label,
    .door-sensor-control label,
    .assembly-control label {
        font-size: clamp(12px, 1.8vw, 14px);
    }
    
    .dimensions-display {
        font-size: clamp(11px, 1.5vw, 13px);
    }
    
    .width-slider,
    .height-slider,
    .depth-slider {
        height: clamp(5px, 1vw, 7px);
    }
    
    .width-display,
    .height-display,
    .depth-display {
        width: clamp(45px, 7vw, 60px);
        height: clamp(25px, 3.5vw, 32px);
        font-size: clamp(11px, 1.5vw, 13px);
    }
    
    .help-icon {
        width: clamp(14px, 2vw, 16px);
        height: clamp(14px, 2vw, 16px);
        font-size: clamp(9px, 1.2vw, 11px);
    }
    
    .help-tooltip {
        font-size: clamp(10px, 1.5vw, 12px);
        padding: clamp(5px, 1vw, 7px) clamp(6px, 1.2vw, 8px);
        max-width: clamp(180px, 30vw, 250px);
    }
    
    input[type="checkbox"] {
        width: clamp(14px, 2vw, 16px);
        height: clamp(14px, 2vw, 16px);
    }
    
    .additional-params-title {
        font-size: clamp(11px, 1.8vw, 13px);
    }
    
    .additional-params-toggle {
        font-size: clamp(14px, 2vw, 16px);
    }
}

/* Для мобильных устройств */
@media screen and (max-width: 768px) {
    .main-window {
        height: calc(100vw * 1919 / 3200);
    }
    
    .control-panel {
        width: 95vw;
        max-width: 560px;
        height: 85vh;
        font-size: clamp(13px, 2.5vw, 15px);
        gap: clamp(6px, 2vw, 10px);
        padding: clamp(12px, 2.5vw, 15px);
    }
    
    .price-amount {
        font-size: clamp(16px, 4vw, 20px);
    }
    
    .price-currency {
        font-size: clamp(12px, 3.5vw, 16px);
    }
    
    .color-button {
        height: clamp(28px, 5vw, 35px);
    }
    
    .door-color-button {
        height: clamp(28px, 5vw, 35px);
    }
    
    .layout-selector select,
    .variants-dropdown select,
    .doors-handle-selector select {
        padding: clamp(5px, 1.2vw, 6px) clamp(6px, 1.5vw, 8px);
        font-size: clamp(11px, 2vw, 13px);
    }
    
    .width-control label,
    .height-control label,
    .doors-control label,
    .doors-handle-selector label,
    .doors-mirror-control label,
    .custom-depth-checkbox label,
    .lighting-control label,
    .door-sensor-control label,
    .assembly-control label {
        font-size: clamp(11px, 2vw, 13px);
    }
    
    .dimensions-display {
        font-size: clamp(10px, 1.8vw, 12px);
    }
    
    .width-slider,
    .height-slider,
    .depth-slider {
        height: clamp(4px, 1.2vw, 6px);
    }
    
    .width-display,
    .height-display,
    .depth-display {
        width: clamp(40px, 8vw, 55px);
        height: clamp(22px, 4vw, 28px);
        font-size: clamp(10px, 1.8vw, 12px);
    }
    
    .help-icon {
        width: clamp(12px, 2.5vw, 14px);
        height: clamp(12px, 2.5vw, 14px);
        font-size: clamp(8px, 1.5vw, 10px);
    }
    
    .help-tooltip {
        font-size: clamp(9px, 1.8vw, 11px);
        padding: clamp(4px, 1.2vw, 6px) clamp(5px, 1.5vw, 7px);
        max-width: clamp(160px, 35vw, 220px);
    }
    
    input[type="checkbox"] {
        width: clamp(12px, 2.5vw, 14px);
        height: clamp(12px, 2.5vw, 14px);
    }
    
    .additional-params-title {
        font-size: clamp(10px, 2vw, 12px);
    }
    
    .additional-params-toggle {
        font-size: clamp(12px, 2.5vw, 14px);
    }
    
    .color-buttons,
    .doors-color-buttons {
        gap: clamp(3px, 1.2vw, 5px);
    }
    
    .layout-selector,
    .variants-dropdown,
    .color-selector,
    .doors-control,
    .doors-color-selector,
    .doors-handle-selector,
    .doors-mirror-control,
    .custom-depth-checkbox,
    .lighting-control,
    .door-sensor-control,
    .assembly-control {
        margin-bottom: clamp(4px, 1.5vw, 6px);
    }
    
    .section-controls {
        margin-bottom: clamp(4px, 1.5vw, 6px);
        padding-bottom: clamp(4px, 1.5vw, 6px);
    }
    
    .price-info {
        margin-bottom: clamp(4px, 1.5vw, 6px);
        padding-bottom: clamp(4px, 1.5vw, 6px);
    }
}

/* Очень маленькие экраны (< 480px) */
@media screen and (max-width: 480px) {
    .control-panel {
        width: 98vw;
        height: 90vh;
        font-size: clamp(12px, 3vw, 14px);
        gap: clamp(4px, 2.5vw, 8px);
        padding: clamp(10px, 3vw, 12px);
    }
    
    .price-amount {
        font-size: clamp(14px, 4.5vw, 18px);
    }
    
    .price-currency {
        font-size: clamp(11px, 4vw, 14px);
    }
    
    .color-button {
        height: clamp(24px, 6vw, 30px);
    }
    
    .door-color-button {
        height: clamp(24px, 6vw, 30px);
    }
    
    .layout-selector select,
    .variants-dropdown select,
    .doors-handle-selector select {
        padding: clamp(4px, 1.5vw, 5px) clamp(5px, 2vw, 6px);
        font-size: clamp(10px, 2.5vw, 12px);
    }
    
    .width-control label,
    .height-control label,
    .doors-control label,
    .doors-handle-selector label,
    .doors-mirror-control label,
    .custom-depth-checkbox label,
    .lighting-control label,
    .door-sensor-control label,
    .assembly-control label {
        font-size: clamp(10px, 2.5vw, 12px);
    }
    
    .dimensions-display {
        font-size: clamp(9px, 2.2vw, 11px);
    }
    
    .width-slider,
    .height-slider,
    .depth-slider {
        height: clamp(3px, 1.5vw, 5px);
    }
    
    .width-display,
    .height-display,
    .depth-display {
        width: clamp(35px, 9vw, 45px);
        height: clamp(20px, 5vw, 25px);
        font-size: clamp(9px, 2.2vw, 11px);
    }
    
    .help-icon {
        width: clamp(10px, 3vw, 12px);
        height: clamp(10px, 3vw, 12px);
        font-size: clamp(7px, 2vw, 9px);
    }
    
    .help-tooltip {
        font-size: clamp(8px, 2.2vw, 10px);
        padding: clamp(3px, 1.5vw, 5px) clamp(4px, 2vw, 6px);
        max-width: clamp(140px, 40vw, 200px);
    }
    
    input[type="checkbox"] {
        width: clamp(10px, 3vw, 12px);
        height: clamp(10px, 3vw, 12px);
    }
    
    .additional-params-title {
        font-size: clamp(9px, 2.5vw, 11px);
    }
    
    .additional-params-toggle {
        font-size: clamp(11px, 3vw, 13px);
    }
    
    .color-buttons,
    .doors-color-buttons {
        gap: clamp(2px, 1.5vw, 4px);
    }
    
    .layout-selector,
    .variants-dropdown,
    .color-selector,
    .doors-control,
    .doors-color-selector,
    .doors-handle-selector,
    .doors-mirror-control,
    .custom-depth-checkbox,
    .lighting-control,
    .door-sensor-control,
    .assembly-control {
        margin-bottom: clamp(3px, 2vw, 5px);
    }
    
    .section-controls {
        margin-bottom: clamp(3px, 2vw, 5px);
        padding-bottom: clamp(3px, 2vw, 5px);
    }
    
    .price-info {
        margin-bottom: clamp(3px, 2vw, 5px);
        padding-bottom: clamp(3px, 2vw, 5px);
    }
}

/* Трехслойная фоновая система */
.background-layers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.background-left,
.background-center,
.background-right {
    position: absolute;
    top: 0;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

/* Левая часть фона: 428px из 3200px = 13.375% */
.background-left {
    left: 0;
    width: 13.375%;
    background-size: 100% 100%; /* Растягиваем только по размеру контейнера */
}

/* Центральная часть фона: 1576px из 3200px = 49.25% */
.background-center {
    left: 13.375%;
    width: 49.25%;
    background-size: 100% 100%; /* Растягиваем на всю ширину и высоту контейнера */
}

/* Правая часть фона: 1196px из 3200px = 37.375% */
.background-right {
    left: 62.625%;
    width: 37.375%;
    background-size: 100% 100%; /* Растягиваем только по размеру контейнера */
}

/* Контейнеры секций и дверей */
.sections-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.doors-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Поверх секций */
    pointer-events: none; /* Не блокируем взаимодействие с секциями */
}

/* Базовые стили для секций */
.section {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    border: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Базовые стили для фасадов */
.door {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    pointer-events: none; /* Не блокируем клики на секциях */
}

/* Старый hover эффект убран, теперь используется отдельный контейнер */

/* Индикатор для активной секции (теперь отдельный элемент) */
.section-indicator {
    position: absolute;
    background: #333;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    z-index: 20;
    pointer-events: none;
    transition: all 0.3s ease;
    display: none;
}

.section-indicator.active {
    display: block;
}

/* Контейнер для hover эффектов поверх всего */
.hover-effects-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: none;
}

/* Hover эффект для секции в отдельном контейнере */
.section-hover-effect {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Панель управления */
.control-panel {
    position: absolute;
    top: calc((305 / 1919) * 100%);
    right: calc((137 / 3200) * 100%);
    width: calc((668 / 3200) * 100%);
    min-height: calc((400 / 1919) * 100%);
    background: white;
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: #333;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    z-index: 10;
    font-size: calc(min(100vw, 3200px) * 16 / 3200); /* Увеличенный размер шрифта */
}

/* Блок стоимости и размера */
.price-info {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.price-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    flex-wrap: nowrap;
}

.price-group {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.price-currency {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.dimensions-display {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

#cabinet-dimensions {
    font-weight: 600;
    color: #495057;
}

.price-detail {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 8px;
    margin-top: 8px;
    font-size: 11px;
    color: #495057;
}

.price-detail div {
    margin-bottom: 2px;
}

.price-detail div:last-child {
    margin-bottom: 0;
    border-top: 1px solid #dee2e6;
    padding-top: 4px;
    margin-top: 4px;
}

/* Селектор компоновки */
.layout-selector {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.layout-selector-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.layout-selector select {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8f9fa;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
    max-width: calc(100% - 32px); /* Ограничиваем ширину чтобы оставить место для знака вопроса */
}

.layout-selector select:focus {
    border-color: #333;
}

/* Селектор цвета */
.color-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-buttons {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
}

.color-button {
    flex: 1;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.2s ease;
    position: relative;
}

.color-button:hover {
    border-color: #333;
    transform: scale(1.1);
}

.color-button.active {
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.25);
}

/* Стили для help-icon в ряду с цветными кнопками */
.color-buttons .help-icon {
    flex-shrink: 0;
    margin-left: 4px;
}

/* Миниатюры для кнопок цвета */
.color-button[data-color="c1"] {
    background-image: url('../images/color-thumbnails/c1-thumbnail.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.color-button[data-color="c2"] {
    background-image: url('../images/color-thumbnails/c2-thumbnail.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.color-button[data-color="c3"] {
    background-image: url('../images/color-thumbnails/c3-thumbnail.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.color-button[data-color="c4"] {
    background-image: url('../images/color-thumbnails/c4-thumbnail.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.color-button[data-color="c5"] {
    background-image: url('../images/color-thumbnails/c5-thumbnail.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Табы секций - скрыты в минималистичном дизайне */
.sections-tabs {
    display: none;
}

.section-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.section-tab:hover {
    background: rgba(255, 255, 255, 0.2);
}

.section-tab.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Контролы секции */
.section-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    min-height: 44px; /* Минимальная высота чтобы зарезервировать место */
}

/* Выпадающий список вариантов */
.variants-dropdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.variants-dropdown-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.variants-dropdown select {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8f9fa;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
    max-width: calc(100% - 32px); /* Ограничиваем ширину чтобы оставить место для знака вопроса */
}

.variants-dropdown select:focus {
    border-color: #333;
}

/* Контрол ширины */
.width-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.width-control label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.width-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.width-slider {
    width: 192px;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
    -webkit-appearance: none;
}

.width-slider:hover {
    background: #dee2e6;
}

.width-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6c757d;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease;
}

.width-slider::-webkit-slider-thumb:hover {
    background: #333;
}

.width-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6c757d;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.width-display {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
    min-width: 50px;
    width: 60px;
    text-align: center;
    color: #495057;
    cursor: text;
    transition: border-color 0.2s ease;
    outline: none;
}

.width-display:hover {
    border-color: #333;
}

.width-display:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.25);
}

/* Контрол высоты */
.height-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.height-control label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.height-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.height-slider {
    width: 192px;
    height: 6px;
    border-radius: 3px;
    background: #dee2e6;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
    -webkit-appearance: none;
}

.height-slider.active {
    background: #e9ecef;
    opacity: 1;
}

.height-slider.active:hover {
    background: #dee2e6;
}

.height-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #868e96;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease;
}

.height-slider:not(.active)::-webkit-slider-thumb {
    background: #868e96 !important;
}

.height-slider.active::-webkit-slider-thumb {
    background: #6c757d;
}

.height-slider.active::-webkit-slider-thumb:hover {
    background: #333;
}

.height-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #868e96;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.height-slider:not(.active)::-moz-range-thumb {
    background: #868e96 !important;
}

.height-slider.active::-moz-range-thumb {
    background: #6c757d;
}

.height-display {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
    min-width: 50px;
    width: 60px;
    text-align: center;
    color: #495057;
    cursor: text;
    transition: border-color 0.2s ease;
    outline: none;
}

.height-display:hover {
    border-color: #333;
}

.height-display:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.25);
}

/* Контрол глубины */
.depth-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.custom-depth-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Общий стиль для всех чекбоксов в меню */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: #333;
    cursor: pointer;
}

.custom-depth-checkbox label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    cursor: pointer;
}

.price-note {
    display: none;
}

.depth-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.depth-slider {
    width: 192px;
    height: 6px;
    border-radius: 3px;
    background: #dee2e6;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
    -webkit-appearance: none;
}

.depth-slider.active {
    background: #e9ecef;
    opacity: 1;
}

.depth-slider.active:hover {
    background: #dee2e6;
}

.depth-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #868e96;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease;
}

.depth-slider:not(.active)::-webkit-slider-thumb {
    background: #868e96 !important;
}

.depth-slider.active::-webkit-slider-thumb {
    background: #6c757d;
}

.depth-slider.active::-webkit-slider-thumb:hover {
    background: #333;
}

.depth-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #868e96;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.depth-slider:not(.active)::-moz-range-thumb {
    background: #868e96 !important;
}

.depth-slider.active::-moz-range-thumb {
    background: #6c757d;
}

.depth-display {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
    min-width: 50px;
    width: 60px;
    text-align: center;
    color: #495057;
    cursor: text;
    transition: border-color 0.2s ease;
    outline: none;
}

.depth-display:hover {
    border-color: #333;
}

.depth-display:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.25);
}

/* Tooltip для подсказок */
.input-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc3545;
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.input-tooltip.show {
    opacity: 1;
}

.input-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #dc3545;
}

/* Контейнеры для input полей с относительным позиционированием */
.width-slider-container,
.height-slider-container,
.depth-slider-container {
    position: relative;
}

/* Скрытие контролов по умолчанию */
.section-controls[style*="display: none"] {
    display: none !important;
}

/* Простая стилизация чекбокса дверей */
.doors-control {
    margin-bottom: 10px;
    padding: 0;
    background-color: transparent;
    border: none;
}

.doors-control label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Панель управления дверьми */
.doors-panel {
    margin-top: 10px;
    padding: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

/* Селектор цвета дверей */
.doors-color-selector {
    margin-bottom: 10px;
}

.doors-color-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Стили для help-icon в ряду с цветными кнопками дверей */
.doors-color-buttons .help-icon {
    flex-shrink: 0;
    margin-left: 4px;
}

.door-color-button {
    flex: 1;
    height: 40px;
    border-radius: 6px;
    border: 2px solid #ddd;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.door-color-button:hover {
    border-color: #333;
    transform: scale(1.05);
}

.door-color-button.active {
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.25);
}

/* Селектор типа ручки */
.doors-handle-selector {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.doors-handle-selector label {
    display: block;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.doors-handle-selector select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.doors-handle-selector select:focus {
    outline: none;
    border-color: #333;
}

/* Контрол зеркальности */
.doors-mirror-control {
    margin-bottom: 0;
}

.doors-mirror-control label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Система подсказок */
.help-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #adb5bd;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
    cursor: help;
    position: relative;
    vertical-align: middle;
    transition: all 0.2s ease;
    flex-shrink: 0; /* Не сжимаем знак вопроса */
    min-width: 16px; /* Минимальная ширина */
}

.help-icon:hover {
    background-color: #868e96;
    transform: scale(1.1);
}

.help-tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    max-width: 250px;
    white-space: normal;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 200px;
}

.help-tooltip.show {
    opacity: 1;
    visibility: visible;
}

/* Стили для дополнительных параметров */
.additional-params {
    margin-top: 8px;
    margin-bottom: 8px;
}

.additional-params-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.additional-params-header:hover {
    background-color: #e9ecef;
}

.additional-params-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.additional-params-toggle {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.additional-params-toggle.expanded {
    transform: rotate(180deg);
}

.additional-params-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f8f9fa;
    border-radius: 0 0 4px 4px;
    margin-top: -1px;
}

.additional-params-content.expanded {
    max-height: 400px;
    padding: 10px;
}

.additional-params-content > div {
    margin-bottom: 8px;
}

.additional-params-content > div:last-child {
    margin-bottom: 0;
}

.depth-control {
    margin-bottom: 8px;
}

.lighting-control,
.door-sensor-control,
.assembly-control {
    margin-bottom: 8px;
}

.lighting-control label,
.door-sensor-control label,
.assembly-control label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

/* Кнопки действий */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    align-items: center;
}

.order-button {
    flex: 1;
    background: linear-gradient(135deg, #333 0%, #000 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.order-button:hover {
    background: linear-gradient(135deg, #555 0%, #333 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.order-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.save-button {
    width: 44px;
    height: 44px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
}

.save-button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
    transform: translateY(-1px);
}

.save-button:active {
    transform: translateY(0);
    background: #dee2e6;
}

.save-button svg {
    transition: transform 0.2s ease;
}

.save-button:hover svg {
    transform: scale(1.1);
}

/* Адаптивность для кнопок действий */
@media screen and (max-width: 768px) {
    .action-buttons {
        gap: clamp(6px, 1.5vw, 8px);
        margin-top: clamp(12px, 2.5vw, 14px);
    }
    
    .order-button {
        padding: clamp(10px, 2vw, 12px) clamp(16px, 3vw, 18px);
        font-size: clamp(14px, 2.5vw, 15px);
    }
    
    .save-button {
        width: clamp(38px, 7vw, 42px);
        height: clamp(38px, 7vw, 42px);
    }
    
    .save-button svg {
        width: clamp(14px, 2.5vw, 16px);
        height: clamp(14px, 2.5vw, 16px);
    }
}

@media screen and (max-width: 480px) {
    .action-buttons {
        gap: clamp(4px, 1vw, 6px);
        margin-top: clamp(10px, 2vw, 12px);
    }
    
    .order-button {
        padding: clamp(8px, 1.5vw, 10px) clamp(12px, 2.5vw, 14px);
        font-size: clamp(12px, 2vw, 14px);
    }
    
    .save-button {
        width: clamp(34px, 6vw, 38px);
        height: clamp(34px, 6vw, 38px);
    }
    
    .save-button svg {
        width: clamp(12px, 2vw, 14px);
        height: clamp(12px, 2vw, 14px);
    }
}

/* ========================================
   МОБИЛЬНАЯ ПАНЕЛЬ УПРАВЛЕНИЯ
   ======================================== */

/* Скрываем мобильную панель на десктопе */
.mobile-control-panel {
    display: none;
}

/* Мобильная панель цены поверх основного окна */
.mobile-price-overlay {
    display: none;
}

/* Медиазапрос для мобильных устройств */
@media screen and (max-width: 768px) {
    /* Скрываем десктопную панель управления */
    .control-panel {
        display: none !important;
    }
    
    /* Показываем мобильную панель */
    .mobile-control-panel {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    /* Показываем мобильную панель цены поверх основного окна */
    .mobile-price-overlay {
        display: block;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 100; /* Поверх основного окна, но под мобильным меню */
        background: transparent; /* Прозрачный фон */
        border: none; /* Убираем границу */
        border-radius: 0;
        box-shadow: none; /* Убираем тень */
        padding: 0;
    }
    
    /* Стили цены в оверлее - делаем стоимость почти черной */
    .mobile-price-overlay .mobile-price-amount {
        color: #333333; /* Почти черный цвет */
        font-size: 18px;
        font-weight: bold;
        text-align: left; /* Выравниваем по левому краю */
        display: block;
    }
    
    .mobile-price-overlay .mobile-dimensions {
        color: #6c757d;
        font-size: 11px;
        text-align: left; /* Выравниваем по левому краю */
        display: block;
    }
    
    /* Настраиваем внутренний блок цены в оверлее */
    .mobile-price-overlay .mobile-price-info {
        background: transparent; /* Прозрачный фон */
        padding: 8px 12px;
        border-radius: 0;
        margin: 0;
    }
    
    .mobile-price-overlay .mobile-price-display {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Выравниваем содержимое по левому краю */
        gap: 2px;
    }
    
    /* Адаптируем основное окно под мобильную панель */
    .main-window {
        position: fixed;
        left: 0; /* Оставляем у левого края */
        top: 80px; /* Уменьшаем отступ сверху чтобы окно было ближе к блоку цены */
        margin: 0; /* Убираем центрирование */
        width: 130vw; /* Увеличиваем ширину на 30%, чтобы правая часть ушла за экран */
        max-width: none; /* Убираем ограничение max-width */
        
        /* Сохраняем пропорции, но ограничиваем высоту доступной областью */
        height: calc(130vw * 1919 / 3200); /* Пропорциональная высота для новой ширины */
        max-height: calc(100vh - 330px); /* Не больше доступной высоты (250px меню + 80px отступ) */
        
        z-index: 1; /* Размещаем под мобильным меню */
        
        /* Убираем bottom позиционирование */
        bottom: auto;
    }
    
    /* Убираем отступы в главном контейнере на мобильных */
    .constructor-container {
        min-height: 100vh;
        padding: 0; /* Убираем все отступы */
        position: relative;
    }
}

/* Стили табов */
.mobile-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.mobile-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.mobile-tab {
    flex: 0 0 auto;
    padding: 12px 16px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.mobile-tab:hover {
    color: #495057;
    background: rgba(108, 117, 125, 0.1);
}

.mobile-tab.active {
    color: #333;
    border-bottom-color: #333;
    background: #ffffff;
}

/* Содержимое табов */
.mobile-tab-content {
    position: relative;
    min-height: 150px;
    max-height: 250px;
    overflow-y: auto;
}

.mobile-tab-panel {
    display: none;
    padding: 20px 15px 15px 15px;
    animation: fadeIn 0.3s ease-in-out;
}

.mobile-tab-panel.active {
    display: block;
}

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

/* Стили для элементов в табах */
.mobile-tab-panel label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

/* Исключение для чекбоксов - размещаем в одну строку */
.mobile-tab-panel input[type="checkbox"] + label {
    display: inline !important;
    margin-left: 8px;
    margin-bottom: 0;
}

/* Специальные стили для чекбокса нестандартной глубины убраны - используются общие стили */

.mobile-tab-panel select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: #ffffff;
    margin-bottom: 15px;
    outline: none;
    transition: border-color 0.2s ease;
    /* Специальные стили для iPhone */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: #333 !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 30px;
}

.mobile-tab-panel select:focus {
    border-color: #6c757d;
    color: #333 !important;
}

/* Специальные стили для option элементов на iPhone */
.mobile-tab-panel select option {
    color: #333 !important;
    background: #ffffff !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
}

/* Стили для селектора типов секции - делаем как основной селектор */
.mobile-variants-dropdown select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: #ffffff;
    margin-bottom: 15px;
    outline: none;
    transition: border-color 0.2s ease;
    /* Специальные стили для iPhone */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: #333 !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 30px;
}

.mobile-variants-dropdown select:focus {
    border-color: #6c757d;
    color: #333 !important;
}

/* Специальные стили для option элементов на iPhone */
.mobile-variants-dropdown select option {
    color: #333 !important;
    background: #ffffff !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
}

/* Стили цены */
.mobile-price-info {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
}

.mobile-price-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-price-amount {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.mobile-dimensions {
    font-size: 12px;
    color: #6c757d;
}

/* Стили бегунков */
.mobile-slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.mobile-width-slider,
.mobile-height-slider,
.mobile-depth-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
}

.mobile-width-slider::-webkit-slider-thumb,
.mobile-height-slider::-webkit-slider-thumb,
.mobile-depth-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6c757d;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-width-display,
.mobile-height-display,
.mobile-depth-display {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
}

/* Стили кнопок цветов */
.mobile-color-buttons,
.mobile-doors-color-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.mobile-color-button,
.mobile-door-color-button {
    width: 45px;
    height: 45px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-color-button:hover,
.mobile-door-color-button:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mobile-color-button.active,
.mobile-door-color-button.active {
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.25);
}

/* Стили чекбоксов */
.mobile-tab-panel input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

/* Общие стили для всех мобильных чекбоксов и их контейнеров */
.mobile-lighting-control,
.mobile-door-sensor-control,
.mobile-assembly-control,
.mobile-custom-depth-checkbox {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

/* Особый стиль для контроля дверей */
.mobile-doors-control {
    margin-bottom: 10px;
}

.mobile-doors-control > label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.mobile-lighting-control label,
.mobile-door-sensor-control label,
.mobile-assembly-control label,
.mobile-custom-depth-checkbox label,
.mobile-doors-control > label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin: 0;
}

.mobile-lighting-control input[type="checkbox"],
.mobile-door-sensor-control input[type="checkbox"],
.mobile-assembly-control input[type="checkbox"],
.mobile-custom-depth-checkbox input[type="checkbox"],
.mobile-doors-control > label > input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    flex-shrink: 0;
    accent-color: #333;
}

/* Дополнительная поддержка для старых браузеров */
.mobile-lighting-control input[type="checkbox"]:checked,
.mobile-door-sensor-control input[type="checkbox"]:checked,
.mobile-assembly-control input[type="checkbox"]:checked,
.mobile-custom-depth-checkbox input[type="checkbox"]:checked,
.mobile-doors-control > label > input[type="checkbox"]:checked {
    background-color: #333;
    border-color: #333;
}

.mobile-doors-panel {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.mobile-depth-slider-container {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

/* Стили кнопок действий */
.mobile-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
}

.mobile-order-button {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #333 0%, #000 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mobile-order-button:hover {
    background: linear-gradient(135deg, #555 0%, #333 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.mobile-save-button {
    padding: 12px;
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-save-button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
    transform: translateY(-1px);
}

.mobile-save-button:active {
    transform: translateY(0);
    background: #dee2e6;
}

.mobile-save-button svg {
    width: 16px;
    height: 16px;
}

/* Адаптация для очень маленьких экранов */
@media screen and (max-width: 480px) {
    .mobile-tab {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .mobile-tab-panel {
        padding: 12px;
    }
    
    .mobile-price-amount {
        font-size: 18px;
    }
    
    .mobile-color-button,
    .mobile-door-color-button {
        width: 40px;
        height: 40px;
    }
}