/* ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ БЛОКОВ */
.dymohod-container,
.shetchik-container,
.kotel-plita-container,
.obvyzkaKotla {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 25px 0;

}

/* БАЗОВЫЕ СТИЛИ ДЛЯ ВСЕХ БЛОКОВ-КАРТОЧЕК */
.block_koaksialny,
.block_obychny,
.block_shetchik,
.block_kotel_plita,
.obvzka1,
.obvzka2 {
    flex: 1;
    min-width: 300px;
    border: 2px solid;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;

}

/* Эффект при наведении для всех блоков */
.block_koaksialny:hover,
.block_obychny:hover,
.block_shetchik:hover,
.block_kotel_plita:hover,
.obvzka1:hover,
.obvzka2:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);

}

/* РАЗНЫЕ ЦВЕТА ДЛЯ КАЖДОГО ТИПА БЛОКОВ */

/* 1. Дымоходы - синяя тема */
.block_koaksialny {
    border-color: #3498db;
    background: linear-gradient(145deg, #e8f4fd, #d6eaf8);
}

.block_obychny {
    border-color: #2980b9;
    background: linear-gradient(145deg, #eaf2f8, #d4e6f1);
}

/* 2. Счетчики - фиолетовая тема */
.block_shetchik {
    border-color: #9b59b6;
    background: linear-gradient(145deg, #f4ecf7, #e8daef);
}

/* 3. Котел + плита - оранжевая тема */
.block_kotel_plita {
    border-color: #e67e22;
    background: linear-gradient(145deg, #fff5e6, #ffe4cc);
}

/* 4. Обвязки - красная тема */
.obvzka1 {
    border-color: #e74c3c;
    background: linear-gradient(145deg, #fdedec, #fadbd8);
}

.obvzka2 {
    border-color: #c0392b;
    background: linear-gradient(145deg, #f9ebea, #f5b7b1);
}

/* СТИЛИ ДЛЯ ВЫБРАННОГО СОСТОЯНИЯ */
.block_koaksialny.selected,
.block_obychny.selected,
.block_shetchik.selected,
.block_kotel_plita.selected,
.obvzka1.selected,
.obvzka2.selected {
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.3), 0 8px 25px rgba(0, 0, 0, 0.2);
}

.block_koaksialny.selected { border-color: #27ae60; background: linear-gradient(145deg, #d4edda, #c3e6cb); }
.block_obychny.selected { border-color: #27ae60; background: linear-gradient(145deg, #d4edda, #c3e6cb); }
.block_shetchik.selected { border-color: #8e44ad; background: linear-gradient(145deg, #e8d0f1, #d7bde2); }
.block_kotel_plita.selected { border-color: #d35400; background: linear-gradient(145deg, #ffeaa7, #fab1a0); }
.obvzka1.selected { border-color: #27ae60; background: linear-gradient(145deg, #d4edda, #c3e6cb); }
.obvzka2.selected { border-color: #27ae60; background: linear-gradient(145deg, #d4edda, #c3e6cb); }

/* СТИЛИ ДЛЯ РАДИО-КНОПОК */
.radio-block-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid;
    border-radius: 50%;
    background: white;
    margin-right: 12px;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.3s ease;
}

/* Цвета радио-кнопок по блокам */
.block_koaksialny .radio-block-input { border-color: #3498db; }
.block_obychny .radio-block-input { border-color: #2980b9; }
.block_shetchik .radio-block-input { border-color: #9b59b6; }
.block_kotel_plita .radio-block-input { border-color: #e67e22; }
.obvzka1 .radio-block-input { border-color: #e74c3c; }
.obvzka2 .radio-block-input { border-color: #c0392b; }

.radio-block-input:checked {
    border-color: #27ae60;
    background: #27ae60;
}

.radio-block-input:checked::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* СТИЛИ ДЛЯ СОДЕРЖИМОГО БЛОКОВ */
.radio-block-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.block-title {
    display: flex;
    align-items: center;
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    justify-content: center;
    border-bottom: none !important; /* Убираем подчеркивание */
    padding-bottom: 0 !important; /* Убираем отступ снизу */
}

/* Стили для описаний */
.shetchik-description,
.kotel-plita-description,
.coaxial-option,
.obvyzka-description {
    margin-top: 15px;
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

/* СТИЛИ ДЛЯ ОПЦИЙ ВНУТРИ БЛОКОВ */
.coaxial-option {
    margin: 12px 0;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.coaxial-option:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateX(5px);
}

.coaxial-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.coaxial-price {
    margin-left: auto;
    font-weight: bold;
    color: #2c3e50;
    font-size: 15px;
}

/* СТИЛИ ДЛЯ ТАБЛИЦ */
.regular-components-container {
    max-height: 250px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.regular-components-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.regular-components-table th {
    background: linear-gradient(135deg, #4a6fa5, #2c3e50);
    color: white;
    padding: 10px;
    text-align: left;
    font-weight: 500;
    position: sticky;
    top: 0;
}

.regular-components-table td {
    padding: 10px;
    border-bottom: 1px solid #ecf0f1;
    background: white;
}

.regular-components-table tr:hover td {
    background-color: #f8f9fa;
}

.quantity-input {
    width: 60px;
    padding: 6px;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    text-align: center;
    font-size: 13px;
}

/* СТИЛИ ДЛЯ ЧЕКБОКСОВ И РАДИО-ГРУПП ОБВЯЗКИ */
.checkbox-option {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-option input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.radio-option:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.radio-option input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"]:disabled + span {
    color: #bdc3c7;
    cursor: not-allowed;
}

/* ОБЩАЯ СТИЛЬНАЯ РАМКА ДЛЯ ВСЕХ КОНТЕЙНЕРОВ */
.dymohod-container,
.shetchik-container,
.kotel-plita-container,
.obvyzkaKotla {
    border: 2px dashed #ecf0f1;
    border-radius: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 30px 0;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .dymohod-container,
    .shetchik-container,
    .kotel-plita-container,
    .obvyzkaKotla {
        flex-direction: column;
        gap: 15px;
    }
    
    .block_koaksialny,
    .block_obychny,
    .block_shetchik,
    .block_kotel_plita,
    .obvzka1,
    .obvzka2 {
        min-width: auto;
    }
    
    .radio-group {
        justify-content: center;
    }
}










/*метал и прочее*/
/* Стили для блока "Металл" */
/* Стили для блока "Металл" - ЯРКАЯ ВЕРСИЯ */
/* Стили для блока "Металл" - КОМПАКТНАЯ ВЕРСИЯ */
/* Стили для блока "Металл" - УЛУЧШЕННАЯ ВЕРСИЯ */
/* Стили для блока "Металл" - УЛУЧШЕННАЯ ЧИТАЕМОСТЬ */
.metall-container {
    border: 3px solid #2c3e50;
    border-radius: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    margin: 25px 0;
    box-shadow: 0 5px 20px rgba(44, 62, 80, 0.15);
}

.section-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 26px; /* Увеличили */
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.metall-rows {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.metall-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.metall-item {
    display: flex;
    align-items: center;
    /*отступ вокруг текста*/
    padding: 5px 5px;  
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer; /* Курсор pointer на всем элементе */
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    font-weight: 700;
}

.metall-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.metall-item.selected {
    box-shadow: 0 0 0 3px #27ae60, 0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: 800; /* Еще жирнее при выборе */
}

.metall-checkbox {
    width: 20px; /* Увеличили */
    height: 20px; /* Увеличили */
    margin-right: 12px; /* Увеличили отступ */
    cursor: pointer; /* Для чекбокса тоже pointer */
    accent-color: #27ae60;
}

.metall-name {
    font-weight: 700;
    font-size: 20px;
    margin-right: 12px;
    white-space: nowrap;
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.4),
        /* Более толстая черная обводка */
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
    letter-spacing: 0.5px;
    -webkit-text-stroke: 2px #000;
    text-stroke: 2px #000;
    paint-order: stroke fill;
}

.metall-quantity {
    width: 60px; /* Увеличили */
    padding: 8px; /* Увеличили */
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    text-align: center;
    font-size: 15px; /* Увеличили */
    font-weight: 800; /* Очень жирный */
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: text; /* Для поля ввода оставляем text курсор */
}

.metall-quantity:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9); /* Более контрастный */
}

.metall-quantity:focus {
    outline: none;
    border-color: #27ae60;
    background: rgba(255, 255, 255, 0.3);
}

/* ЕЩЕ БОЛЕЕ КОНТРАСТНЫЕ ЦВЕТА */

/* Трубы - яркий синий */
.metall-row:nth-child(1) .metall-item { 
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: #ffffff !important;
}

/* Угол и профиль - яркий зеленый */
.metall-row:nth-child(2) .metall-item { 
    background: linear-gradient(145deg, #27ae60, #229954);
    color: #ffffff !important;
}

/* Хомуты - яркий оранжевый */
.metall-row:nth-child(3) .metall-item { 
    background: linear-gradient(145deg, #e67e22, #d35400);
    color: #ffffff !important;
}

/* Шпильки - яркий красный */
.metall-row:nth-child(4) .metall-item { 
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    color: #ffffff !important;
}

/* Резьба - яркий фиолетовый */
.metall-row:nth-child(5) .metall-item { 
    background: linear-gradient(145deg, #9b59b6, #8e44ad);
    color: #ffffff !important;
}

/* Сгоны - яркий розовый */
.metall-row:nth-child(6) .metall-item { 
    background: linear-gradient(145deg, #e84393, #fd79a8);
    color: #ffffff !important;
}

/* Контргайки - яркий бирюзовый */
.metall-row:nth-child(7) .metall-item { 
    background: linear-gradient(145deg, #00cec9, #00b894);
    color: #ffffff !important;
}

/* Муфты - яркий голубой */
.metall-row:nth-child(8) .metall-item { 
    background: linear-gradient(145deg, #00a8ff, #0097e6);
    color: #ffffff !important;
}

/* Расходники - темно-серый */
.metall-row:nth-child(9) .metall-item { 
    background: linear-gradient(145deg, #2d3436, #636e72);
    color: #ffffff !important;
}

/* Кнопка сброса */
.metall-reset {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    padding: 14px 28px; /* Увеличили */
    font-size: 17px; /* Увеличили */
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 700; /* Жирнее */
}

.metall-reset:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    transform: translateY(-2px);
}

/* ТАБЛИЦА С УВЕЛИЧЕННЫМ ШРИФТОМ */
.metall-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
    font-size: 16px; /* Увеличили */
}

.metall-table th {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 16px; /* Увеличили */
    text-align: left;
    font-weight: 700; /* Жирнее */
    font-size: 17px; /* Увеличили */
}

.metall-table td {
    padding: 14px; /* Увеличили */
    border-bottom: 1px solid #ecf0f1;
    background: white;
    font-size: 15px; /* Увеличили */
}

.metall-table tr:hover td {
    background: #f8f9fa;
}

.metall-price {
    font-weight: 800; /* Очень жирный */
    color: #27ae60;
    font-size: 16px; /* Увеличили */
}

.metall-table tfoot tr {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

.metall-table tfoot td {
    color: white;
    font-weight: 800; /* Очень жирный */
    font-size: 18px; /* Увеличили */
}

/* Стройматериалы - золотой цвет */
.metall-row:nth-child(10) .metall-item { 
    background: linear-gradient(145deg, #f39c12, #e67e22);
    color: #ffffff !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .metall-row {
        justify-content: center;
        gap: 6px;
        padding: 10px;
    }
    
    .metall-item {
        flex: 1;
        min-width: 160px; /* Увеличили */
        max-width: 200px; /* Увеличили */
        padding: 10px 12px; /* Увеличили */
    }
    
    .metall-name {
        font-size: 15px; /* Увеличили */
    }
    
    .metall-quantity {
        width: 50px; /* Увеличили */
        font-size: 14px; /* Увеличили */
    }
    
    .metall-table {
        font-size: 14px;
    }
    
    .metall-table th,
    .metall-table td {
        padding: 12px;
        font-size: 14px;
    }
}






/* Стили для блока радиаторов */
.radiators-container {
    border: 3px solid #e74c3c;
    border-radius: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #fedbd0, #fee0d0);
    margin: 30px 0;
}

.radiators-types {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radiator-type {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.radiator-type-checkbox {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    margin-bottom: 15px;
}

.radiator-type-checkbox input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: #e74c3c;
}

.radiator-options {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.height-options, .sections-options {
    margin-bottom: 15px;
}

.height-options h4, .sections-options h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
}

.height-options label {
    display: inline-block;
    margin-right: 20px;
    padding: 8px 15px;
    background: white;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.height-options label:hover {
    border-color: #e74c3c;
}

.height-options input:checked + span {
    font-weight: bold;
    color: #e74c3c;
}

.section-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #ecf0f1;
}

.section-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.section-item input {
    width: 70px;
    padding: 8px;
    border: 2px solid #bdc3c7;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

.section-item input:focus {
    border-color: #e74c3c;
    outline: none;
}

/* Стили для галочек высоты */
.height-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.height-checkbox {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.height-checkbox:hover {
    border-color: #e74c3c;
}

.height-checkbox input:checked + span {
    font-weight: bold;
    color: #e74c3c;
}

/* Строчное расположение секций */
.sections-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.section-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #ecf0f1;
    min-width: 140px;
}

.section-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    white-space: nowrap;
}

.section-item input {
    width: 60px;
    padding: 6px;
    border: 2px solid #bdc3c7;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

.section-item input:focus {
    border-color: #e74c3c;
    outline: none;
}

/* Кнопка сброса для радиаторов */
.radiators-reset {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    padding: 14px 28px;
    font-size: 17px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 700;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radiators-reset:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Стили для таблицы радиаторов */
.radiators-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
    font-size: 14px;
}

.radiators-table th {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
}

.radiators-table td {
    padding: 12px;
    border-bottom: 1px solid #ecf0f1;
    background: white;
}

.radiators-table tr:hover td {
    background: #f8f9fa;
}

.radiators-price {
    font-weight: bold;
    color: #27ae60;
    font-size: 15px;
}

.radiators-table tfoot tr {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

.radiators-table tfoot td {
    color: white;
    font-weight: 700;
    font-size: 16px;
}





/*стили по списку отопления */
/* Стили для блока отопления */
/* Дополнительные стили для категорий отопления */
/* Стили для блока отопления - КАК В МЕТАЛЛЕ */
/* Стили для блока отопления - ТОЧНО КАК В МЕТАЛЛЕ */
.otoplenie-container {
    border: 3px solid #2c3e50;
    border-radius: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    margin: 25px 0;
    box-shadow: 0 5px 20px rgba(44, 62, 80, 0.15);
}

.otoplenie-rows {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.otoplenie-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.otoplenie-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    font-weight: 700;
    min-width: auto;
}

.otoplenie-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.otoplenie-item.selected {
    box-shadow: 0 0 0 3px #27ae60, 0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

.otoplenie-checkbox {
    width: 22px;
    height: 22px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: #27ae60;
}

.otoplenie-name {
    font-weight: 700;
    font-size: 18px;
    margin-right: 15px;
    white-space: nowrap;
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.4),
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
    letter-spacing: 0.5px;
    -webkit-text-stroke: 2px #000;
    text-stroke: 2px #000;
    paint-order: stroke fill;
}

.otoplenie-quantity {
    width: 70px;
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.otoplenie-quantity:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.otoplenie-quantity:focus {
    outline: none;
    border-color: #27ae60;
    background: rgba(255, 255, 255, 0.3);
}

/* Кнопка сброса */
.otoplenie-reset {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 700;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.otoplenie-reset:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .otoplenie-row {
        justify-content: center;
        gap: 8px;
        padding: 12px;
    }
    
    .otoplenie-item {
        flex: 1;
        min-width: 170px;
        max-width: 220px;
        padding: 12px 14px;
    }
    
    .otoplenie-name {
        font-size: 16px;
    }
    
    .otoplenie-quantity {
        width: 60px;
        font-size: 15px;
        padding: 8px;
    }
    
    .otoplenie-reset {
        padding: 14px 28px;
        font-size: 16px;
    }
}





/*вентиляция*/
/* Стили для блока вентиляции */
/* Стили для блока вентиляции с батонами */
/* Стили для блока вентиляции с батонами */
/* Стили для блока вентиляции с батонами */
.ventilyaciya-container {
    border: 3px solid #16a085;
    border-radius: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #e8f8f5, #d1f2eb);
    margin: 30px 0;
}

.batony-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0;
}

/* Базовые стили для батонов */
.block_baton,
.block_material {
    flex: 1;
    min-width: 300px;
    border: 2px solid;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

/* Эффект при наведении для батонов */
.block_baton:hover,
.block_material:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

/* Цвета для батонов */
.block_baton_left {
    border-color: #3498db;
    background: linear-gradient(145deg, #e8f4fd, #d6eaf8);
}

.block_baton_right {
    border-color: #2980b9;
    background: linear-gradient(145deg, #eaf2f8, #d4e6f1);
}

.block_material_left {
    border-color: #e67e22;
    background: linear-gradient(145deg, #fff5e6, #ffe4cc);
}

.block_material_right {
    border-color: #d35400;
    background: linear-gradient(145deg, #fbeee6, #fdebd0);
}

/* Стили для выбранного состояния */
.block_baton.selected,
.block_material.selected {
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.3), 0 8px 25px rgba(0, 0, 0, 0.2);
}

.block_baton_left.selected { 
    border-color: #27ae60; 
    background: linear-gradient(145deg, #d4edda, #c3e6cb); 
}

.block_baton_right.selected { 
    border-color: #27ae60; 
    background: linear-gradient(145deg, #d4edda, #c3e6cb); 
}

.block_material_left.selected { 
    border-color: #27ae60; 
    background: linear-gradient(145deg, #d4edda, #c3e6cb); 
}

.block_material_right.selected { 
    border-color: #27ae60; 
    background: linear-gradient(145deg, #d4edda, #c3e6cb); 
}

/* Стили для описаний */
.baton-description,
.material-description {
    margin-top: 15px;
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

/* Стили для радио-кнопок */
.radio-block-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid;
    border-radius: 50%;
    background: white;
    margin-right: 12px;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.3s ease;
}

/* Цвета радио-кнопок */
.block_baton_left .radio-block-input { border-color: #3498db; }
.block_baton_right .radio-block-input { border-color: #2980b9; }
.block_material_left .radio-block-input { border-color: #e67e22; }
.block_material_right .radio-block-input { border-color: #d35400; }

.radio-block-input:checked {
    border-color: #27ae60;
    background: #27ae60;
}

.radio-block-input:checked::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Стили для содержимого блоков */
.radio-block-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.block-title {
    display: flex;
    align-items: center;
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

/* Блоки управления трубами и креплениями */
.pipe-controls-block,
.mounting-controls-block {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid #16a085;
    margin: 20px 0;
}

.pipe-controls-block h3,
.mounting-controls-block h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.control-group {
    margin-bottom: 20px;
}

.control-group h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 14px;
}

.radio-group-full,
.radio-group-half,
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.radio-group-full label,
.radio-group-half label,
.radio-group label {
    padding: 8px 12px;
    background: #ecf0f1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.radio-group-full label:hover, 
.radio-group-half label:hover, 
.radio-group label:hover {
    background: #d6eaf8;
}

.radio-group-full input:checked + span,
.radio-group-half input:checked + span,
.radio-group input:checked + span {
    font-weight: bold;
    color: #16a085;
}

/* Блок комплектующих */
.components-block {
    margin-top: 30px;
}

.components-block h2 {
    color: #2c3e50;
    border-bottom: 2px solid #16a085;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Таблица компонентов */
.ventilyaciya-table-container {
    margin-top: 15px;
    font-size: 27px;
    color: black;
}

.ventilyaciya-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    background: white;
}

.ventilyaciya-table th {
    background: linear-gradient(135deg, #16a085, #1abc9c);
    color: black;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.ventilyaciya-table td {
    padding: 10px;
    border-bottom: 1px solid #ecf0f1;
    background: white;
}

.ventilyaciya-table tr:hover td {
    background: #f8f9fa;
}

.ventilyaciya-table tfoot {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

.ventilyaciya-table tfoot td {
    color: black;
    font-weight: 700;
    font-size: 26px;
}

/* Кнопка сброса */
.reset-button {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    padding: 14px 28px;
    font-size: 17px;
    border-radius: 8px;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-button:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .batony-container {
        flex-direction: column;
    }
    
    .block_baton,
    .block_material {
        min-width: auto;
    }
    
    .radio-group-full,
    .radio-group-half {
        justify-content: center;
    }
    
    .pipe-controls-block,
    .mounting-controls-block {
        padding: 15px;
    }
}
/* Стили для блоков управления трубами и креплениями */
.controls-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.pipe-controls-block {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid #3498db;
}

.mounting-controls-block {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid #e67e22;
}

.pipe-controls-block h3,
.mounting-controls-block h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .controls-container {
        flex-direction: column;
    }
}

/* Контейнер для блоков управления трубами и креплениями */
.controls-row {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.pipe-controls-block {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid #3498db;
}

.mounting-controls-block {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid #e67e22;
}

.pipe-controls-block h3,
.mounting-controls-block h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .controls-row {
        flex-direction: column;
    }
}

/* Цвет для строк нержавейки в таблице */
.ventilyaciya-table tr.nerzhaveyka-row td {
    background-color: #e8f4fd !important;
}

.ventilyaciya-table tr.nerzhaveyka-row:hover td {
    background-color: #d6eaf8 !important;
}

/* Цвет для строк оцинковки в таблице */
.ventilyaciya-table tr.otsinkovka-row td {
    background-color: #fff5e6 !important;
}

.ventilyaciya-table tr.otsinkovka-row:hover td {
    background-color: #ffe4cc !important;
}

/* Цвет для блока креплений */
.mounting-controls-block {
    background: #fbeee6 !important; /* Светло-оранжевый фон */
    border: 2px solid #e67e22 !important;
}

/* Цвет для строк креплений в таблице */
.ventilyaciya-table tr.mounting-row td {
    background-color: #fbeee6 !important;
}

.ventilyaciya-table tr.mounting-row:hover td {
    background-color: #fdebd0 !important;
}
/* Цвет для строк нержавейки и оцинковки в таблице - одинаковый голубой */
.ventilyaciya-table tr.nerzhaveyka-row td,
.ventilyaciya-table tr.otsinkovka-row td {
    background-color: #e8f4fd !important; /* Голубой фон */
}

.ventilyaciya-table tr.nerzhaveyka-row:hover td,
.ventilyaciya-table tr.otsinkovka-row:hover td {
    background-color: #d6eaf8 !important; /* Более темный голубой при наведении */
}




/* Стили для итоговой сводной таблицы */
/* СТИЛИ ТОЛЬКО ДЛЯ СВОДНОЙ ТАБЛИЦЫ */
.final-summary-container {
    margin: 30px 0;
    padding: 20px;
    border: 3px solid #9b59b6;
    border-radius: 15px;
    background: linear-gradient(135deg, #f4ecf7, #e8daef);
}

.final-summary-table-container {
    margin-top: 15px;
    overflow-x: auto;
}

.final-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed; /* Фиксированная ширина колонок */
}

.final-summary-table th {
    background: #3498db;
    color: white;
    padding: 12px;
    text-align: left;
}

.final-summary-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word; /* Перенос длинных слов */
     font-size: 26px;
}

/* Адаптивные ширины колонок */
.final-summary-table td:first-child {
    width: 60%; /* Широкая колонка для наименования */
}

final-summary-table td:nth-child(2) {
    width: 15%; /* Узкая колонка для количества */
    text-align: center;
}

.final-summary-table td:nth-child(3),
.final-summary-table td:nth-child(4) {
    width: 12.5%; /* Узкие колонки для цен */
    text-align: right;

}

.final-summary-table tr:hover td {
    background: #f8f9fa; 

}

.final-summary-table tfoot {
    background: #f8f9fa;
    font-weight: bold;
}

.final-summary-table tfoot td {
    color: red;
    font-weight: 700;
    font-size: 26px;
}

/* Цвета для разных блоков в итоговой таблице */
.final-summary-table tr.kotly-row td { background-color: #d4edda !important; }
.final-summary-table tr.obvyzka-row td { background-color: #d4edda !important; }
.final-summary-table tr.dymohod-row td { background-color: #d4edda !important; }
.final-summary-table tr.shetchik-row td { background-color: #e8d0f1 !important; }
.final-summary-table tr.kotel-plita-row td { background-color: #ffeaa7 !important; }
.final-summary-table tr.metall-row td { background-color: #e8f4fd !important; }
.final-summary-table tr.ventilyaciya-row td { background-color: #e8f4fd !important; }
.final-summary-table tr.radiators-row td { background-color: #fedbd0 !important; }
.final-summary-table tr.otoplenie-row td { background-color: #e8f4fd !important; }

.final-summary-table tr.kotly-row:hover td { background-color: #c3e6cb !important; }
.final-summary-table tr.obvyzka-row:hover td { background-color: #c3e6cb !important; }
.final-summary-table tr.dymohod-row:hover td { background-color: #c3e6cb !important; }
.final-summary-table tr.shetchik-row:hover td { background-color: #d7bde2 !important; }
.final-summary-table tr.kotel-plita-row:hover td { background-color: #fab1a0 !important; }
.final-summary-table tr.metall-row:hover td { background-color: #d6eaf8 !important; }
.final-summary-table tr.ventilyaciya-row:hover td { background-color: #d6eaf8 !important; }
.final-summary-table tr.radiators-row:hover td { background-color: #fee0d0 !important; }
.final-summary-table tr.otoplenie-row:hover td { background-color: #d6eaf8 !important; }


.metall-item, .otoplenie-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.final-summary-table a {
    color: #3498db;
    text-decoration: none;
}

.final-summary-table a:hover {
    text-decoration: underline;
}

.metall-item:hover, .otoplenie-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.metall-item.selected, .otoplenie-item.selected {
    border: 2px solid #3498db;
    background-color: #5aa0e6;
}

.metall-checkbox, .otoplenie-checkbox {
    cursor: pointer;
}

.metall-quantity, .otoplenie-quantity {
    cursor: text;
}


/* Стили для мобильных устройств */
@media (max-width: 768px) {
    .final-summary-table {
        font-size: 14px;
    }
    
    .final-summary-table td:first-child {
        width: 50%;
    }
    
    .final-summary-table td:nth-child(2) {
        width: 20%;
    }
    
    .final-summary-table td:nth-child(3),
    .final-summary-table td:nth-child(4) {
        width: 15%;
    }
}




/* Стили для блока обновления цен */
.price-update-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: white;
}

.update-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.update-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.update-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.update-button:active {
    transform: translateY(0);
}

.update-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.update-status {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    min-width: 200px;
    border-left: 4px solid #4CAF50;
}

.status-updating {
    border-left-color: #FF9800;
    animation: pulse 1.5s infinite;
}

.status-error {
    border-left-color: #F44336;
}

.status-success {
    border-left-color: #4CAF50;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .update-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .update-button {
        width: 100%;
        justify-content: center;
    }
    
    .update-status {
        text-align: center;
    }
}