.elementor-56916 .elementor-element.elementor-element-346afa0 > .elementor-widget-container{margin:0px 0px -10px 0px;padding:0px 0px 0px 0px;}.elementor-56916 .elementor-element.elementor-element-ee48bbc:not(.elementor-motion-effects-element-type-background), .elementor-56916 .elementor-element.elementor-element-ee48bbc > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FFFFFF;}.elementor-56916 .elementor-element.elementor-element-ee48bbc{transition:background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;padding:0px 0px 0px 0px;}.elementor-56916 .elementor-element.elementor-element-ee48bbc > .elementor-background-overlay{transition:background 0.3s, border-radius 0.3s, opacity 0.3s;}/* Start custom CSS for html, class: .elementor-element-346afa0 *//* === ЛОАДЕР === */
.cfg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  pointer-events: auto;
}

.cfg-loader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  text-align: center;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* === Фон конфигуратора === */
.site-content {
  background-color: #fbfbfc;
}

.tahion-cfg {
  background-color: #fbfbfc;
  margin: 0px;
  padding: 0px;
}

.elementor-column-gap-default>.elementor-row>.elementor-column>.elementor-element-populated {
  padding: 0px;
}

/* === Двухколоночная сетка === */
.cfg-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.cfg-main {
  min-width: 0;
}

/* === Плавающий блок справа === */
.cfg-summary {
  position: sticky;
  top: 135px;
  background: #fff;
  border-radius: 14px;
  padding: 20px 15px 10px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-size: 14px;
  border: 1px solid #ebebeb;
}

.cfg-summary h4 {
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 600;
}

#cfg-summary-content {
  line-height: 1.6;
  margin-bottom: 16px;
}

.cfg-summary-empty {
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 0;
}

/* === Группировка в сводке === */
.cfg-summary-group {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cfg-summary-label {
  font-size: 14px;
  font-weight: 500;
}

.cfg-summary-value {
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

/* Если в строке есть «× N шт.», то эта часть будет прижата вправо */
.cfg-summary-value span.qty-part {
  margin-left: auto;
  font-weight: 600;
  color: #333;
}


/* Скрытие на мобильных */
@media (max-width: 768px) {
  .cfg-layout {
    grid-template-columns: 1fr;
  }
  .cfg-summary {
    display: none;
  }
}

/* === Сброс Elementor отступов === */
.elementor-column-gap-default {
  padding: 0px;
}
.elementor-row {
  padding: 0px;
}
.elementor-column {
  padding: 0px;
}
.elementor-element-populated {
  padding: 0px;
}
.entry-content h3 {
  margin-bottom: 0px;
}

/* === Общий стиль для всех шагов === */
[id^="cfg-step-"] {
  background: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #ebebeb;
}

[id^="cfg-step-"] h3,
[id^="cfg-step-"] .cfg-step-title {
  margin-top: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.tahion-cfg .cfg-step-content .cfg-note,
.tahion-cfg .cfg-step-content .cfg-spec-title-mini,
.tahion-cfg .cfg-step-content label,
.tahion-cfg .cfg-step-content span.cfg-option-name,
.tahion-cfg .cfg-step-content select,
.tahion-cfg .cfg-step-content input,
.tahion-cfg .cfg-step-content .cfg-checkbox,
.tahion-cfg .cfg-step-content .cfg-radio {
  font-size: 16px;
}

.tahion-cfg .cfg-step-content .cfg-label {
  font-size: 14px;   
}

/* === Шаг: иконка слева, тело справа === */
.cfg-step {
  margin-bottom: 16px;
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 16px;
  overflow: visible;
}

.cfg-step-icon {
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  min-width: 150px;
  flex-shrink: 0;
}

.cfg-step-icon img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 8px;
}

.cfg-step-body {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

@media (max-width: 600px) {
  .cfg-step {
    flex-direction: column;
    gap: 8px;
  }
  .cfg-step-icon {
    flex: 0 0 auto;
  }
}

/* === Заголовок шага === */
.cfg-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  z-index: 2;
  position: relative;
  cursor: default;
  user-select: none;
  pointer-events: none;
}

.step-title {
  flex: 1;
}

.step-status {
  display: none;
}

/* === Содержимое шага === */
.cfg-step-content {
  overflow: visible;
  transition: max-height 0.3s ease, opacity 0.3s;
  padding-bottom: 8px;
}
.cfg-step-content.closed {
  max-height: 0;
  opacity: 0;
  padding: 0;
}
.cfg-step-content.open {
  max-height: none;
  opacity: 1;
  padding: 8px 0 0 0;
}

/* === Поля форм === */
.cfg-select,
.cfg-input {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  box-sizing: border-box;
}

#cfg-case {
  width: 100%;
  max-width: 500px;
}

input[type=number],
input[type="radio"],
input[type="radio"]:checked,
select {
  color: #111;
  background: #fff;
  border-color: rgb(128, 130, 133);
  padding: 8px;
  border-radius: 4px;
  box-sizing: border-box;
}

/* === Чекбоксы === */
.cfg-checkbox-label {
  display: block;
  margin: 6px 0;
  cursor: pointer;
}

.cfg-options-grid {
    display: flex;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4%;
    align-items: flex-start;
    flex-wrap: wrap;
}

@media (max-width: 520px) {
  .cfg-options-grid {
    grid-template-columns: 1fr;
  }
}

.cfg-options-grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

/* === Блок с количеством === */
.cfg-field-block {
  margin-top: 12px;
}
.cfg-field-block.hidden {
  display: none;
}
.cfg-label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: #555;
  font-style: italic;
}

/* === Футер === */
.tahion-cfg-footer {
  position: sticky;
  bottom: 0px;
  z-index: 1000;
  background: #ffffff;
}

.cfg-result-area {
  position: sticky;
  bottom: 0;
  z-index: 100;
  background: #fff;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px solid #eee;
  box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.08);
}

.tahion-cfg-footer::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
}

.cfg-total-line {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0px 20px;
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 12px;
}

.cfg-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 20px 30px;
  align-items: flex-end;
  margin: 0;
}

.cfg-form-row .cfg-input {
  flex: 1 1 120px;
  min-width: 80px;
  max-width: 80px;
  height: 50px;
  border-color: rgb(128, 130, 133);
  padding: 0 12px;
}

.cfg-actions {
  height: 50px;
  white-space: nowrap;
}

/* === ШАГ 2 (АВТОМАТЫ) === */
.cfg-module-block {
  border: 1px solid #f0f0f0;
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  padding-left: 20px;
}

.cfg-module-block:last-child {
  margin-bottom: 8px;
  padding-bottom: 4px;
}

.cfg-toggle-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.cfg-toggle-row input[type="checkbox"] {
  margin: 0 8px 0 10px;
  transform: scale(1.1);
}

.cfg-fields-wrapper {
  margin-top: 8px;
}

.cfg-compact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3%;
  align-items: flex-start;
  margin-top: 10px;
}

.cfg-qty-wrapper {
  flex: 0 0 auto;
  min-width: 70px;
}

.cfg-qty-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: #444;
  white-space: nowrap;
}

.cfg-input-qty {
  max-width: 70px;
  min-width: 50px;
  width: 60px;
}

.cfg-specs-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  flex: 1;
}

.cfg-spec-item {
  flex: 0.1 1 161px;
}

.cfg-spec-title-mini {
  font-weight: 600;
  margin-bottom: 6px;
  color: #444;
}

.cfg-radio-mini {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  cursor: pointer;
}

.cfg-radio-mini input[type="radio"] {
  margin-right: 4px;
}

.cfg-divider {
  border: none;
  height: 1px;
  background: #eee;
  margin: 16px 0;
}

@media (max-width: 520px) {
  .cfg-specs-compact {
    flex-direction: column;
    gap: 10px;
  }
  .cfg-spec-item {
    flex: none;
    width: 100%;
  }
  .cfg-input-qty {
    width: 40px;
  }
}

/* === ШАГ 7 (БУК) === */
.cfg-buk-lists {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cfg-buk-list {
  width: 48%;
}

@media (max-width: 600px) {
  .cfg-buk-lists {
    flex-direction: column;
  }
  .cfg-buk-list {
    width: 100%;
  }
}

/* === ШАГ 8 (КАБЕЛЬНЫЕ ВВОДЫ) === */
.cfg-gland-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
}

.cfg-gland-row select {
  flex: 1 1 0;
  min-width: 110px; /* чтобы не сжимались слишком сильно */
}

.cfg-gland-row input[type="number"] {
  flex: 0 0 60px;
  max-width: 60px;
  text-align: center;
}

@media (max-width: 600px) {
  .cfg-gland-row {
    flex-direction: column;
  }
  .cfg-gland-row select,
  .cfg-gland-row input {
    width: 100%;
    max-width: none;
  }
}

/* === КНОПКИ === */
.btn-send {
  background: #4caf50 !important;
  border-radius: 6px !important;
  padding: 0 24px !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}
.btn-send:hover {
  background: #43a047 !important;
}

.btn-download,
.btn-print {
  background: #555 !important;
  border-radius: 6px !important;
  padding: 0 20px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.btn-download:hover,
.btn-print:hover {
  background: #333 !important;
}
.btn-download svg,
.btn-print svg {
  flex-shrink: 0;
}

.btn-reset {
  border-radius: 6px !important;
  padding: 0 24px !important;
  transition: background 0.2s;
}

/* === МОДАЛЬНОЕ ОКНО === */
.cfg-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cfg-modal {
  background: #fff;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.cfg-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.cfg-modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.cfg-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  line-height: 1;
}
.cfg-modal-close:hover {
  color: #333;
}

.cfg-modal-body {
  padding: 20px;
}

.cfg-modal-summary {
  background: #f9f9f9;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
}

.cfg-modal-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}

.cfg-modal-summary-row strong {
  font-weight: 600;
}

#cfg-request-form input,
#cfg-request-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
  font-family: inherit;
}

#cfg-request-form textarea {
  resize: vertical;
  min-height: 60px;
}

#cfg-request-form .btn-send {
  width: 100%;
  height: 44px;
}

.cfg-modal-success {
  text-align: center;
  padding: 20px;
}

.cfg-modal-success h3 {
  color: #4caf50;
  margin-bottom: 8px;
}

select:focus,
input[type="number"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: #2b7fff;
}/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-346afa0 *//* === ЛОАДЕР === */
.cfg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  pointer-events: auto;
}

.cfg-loader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  text-align: center;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* === Фон конфигуратора === */
.site-content {
  background-color: #fbfbfc;
}

.tahion-cfg {
  background-color: #fbfbfc;
  margin: 0px;
  padding: 0px;
}

.elementor-column-gap-default>.elementor-row>.elementor-column>.elementor-element-populated {
  padding: 0px;
}

/* === Двухколоночная сетка === */
.cfg-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.cfg-main {
  min-width: 0;
}

/* === Плавающий блок справа === */
.cfg-summary {
  position: sticky;
  top: 135px;
  background: #fff;
  border-radius: 14px;
  padding: 20px 15px 10px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-size: 14px;
  border: 1px solid #ebebeb;
}

.cfg-summary h4 {
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 600;
}

#cfg-summary-content {
  line-height: 1.6;
  margin-bottom: 16px;
}

.cfg-summary-empty {
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 0;
}

/* === Группировка в сводке === */
.cfg-summary-group {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cfg-summary-label {
  font-size: 14px;
  font-weight: 500;
}

.cfg-summary-value {
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

/* Если в строке есть «× N шт.», то эта часть будет прижата вправо */
.cfg-summary-value span.qty-part {
  margin-left: auto;
  font-weight: 600;
  color: #333;
}


/* Скрытие на мобильных */
@media (max-width: 768px) {
  .cfg-layout {
    grid-template-columns: 1fr;
  }
  .cfg-summary {
    display: none;
  }
}

/* === Сброс Elementor отступов === */
.elementor-column-gap-default {
  padding: 0px;
}
.elementor-row {
  padding: 0px;
}
.elementor-column {
  padding: 0px;
}
.elementor-element-populated {
  padding: 0px;
}
.entry-content h3 {
  margin-bottom: 0px;
}

/* === Общий стиль для всех шагов === */
[id^="cfg-step-"] {
  background: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #ebebeb;
}

[id^="cfg-step-"] h3,
[id^="cfg-step-"] .cfg-step-title {
  margin-top: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.tahion-cfg .cfg-step-content .cfg-note,
.tahion-cfg .cfg-step-content .cfg-spec-title-mini,
.tahion-cfg .cfg-step-content label,
.tahion-cfg .cfg-step-content span.cfg-option-name,
.tahion-cfg .cfg-step-content select,
.tahion-cfg .cfg-step-content input,
.tahion-cfg .cfg-step-content .cfg-checkbox,
.tahion-cfg .cfg-step-content .cfg-radio {
  font-size: 16px;
}

.tahion-cfg .cfg-step-content .cfg-label {
  font-size: 14px;   
}

/* === Шаг: иконка слева, тело справа === */
.cfg-step {
  margin-bottom: 16px;
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 16px;
  overflow: visible;
}

.cfg-step-icon {
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  min-width: 150px;
  flex-shrink: 0;
}

.cfg-step-icon img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 8px;
}

.cfg-step-body {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

@media (max-width: 600px) {
  .cfg-step {
    flex-direction: column;
    gap: 8px;
  }
  .cfg-step-icon {
    flex: 0 0 auto;
  }
}

/* === Заголовок шага === */
.cfg-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  z-index: 2;
  position: relative;
  cursor: default;
  user-select: none;
  pointer-events: none;
}

.step-title {
  flex: 1;
}

.step-status {
  display: none;
}

/* === Содержимое шага === */
.cfg-step-content {
  overflow: visible;
  transition: max-height 0.3s ease, opacity 0.3s;
  padding-bottom: 8px;
}
.cfg-step-content.closed {
  max-height: 0;
  opacity: 0;
  padding: 0;
}
.cfg-step-content.open {
  max-height: none;
  opacity: 1;
  padding: 8px 0 0 0;
}

/* === Поля форм === */
.cfg-select,
.cfg-input {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  box-sizing: border-box;
}

#cfg-case {
  width: 100%;
  max-width: 500px;
}

input[type=number],
input[type="radio"],
input[type="radio"]:checked,
select {
  color: #111;
  background: #fff;
  border-color: rgb(128, 130, 133);
  padding: 8px;
  border-radius: 4px;
  box-sizing: border-box;
}

/* === Чекбоксы === */
.cfg-checkbox-label {
  display: block;
  margin: 6px 0;
  cursor: pointer;
}

.cfg-options-grid {
    display: flex;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4%;
    align-items: flex-start;
    flex-wrap: wrap;
}

@media (max-width: 520px) {
  .cfg-options-grid {
    grid-template-columns: 1fr;
  }
}

.cfg-options-grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

/* === Блок с количеством === */
.cfg-field-block {
  margin-top: 12px;
}
.cfg-field-block.hidden {
  display: none;
}
.cfg-label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: #555;
  font-style: italic;
}

/* === Футер === */
.tahion-cfg-footer {
  position: sticky;
  bottom: 0px;
  z-index: 1000;
  background: #ffffff;
}

.cfg-result-area {
  position: sticky;
  bottom: 0;
  z-index: 100;
  background: #fff;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px solid #eee;
  box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.08);
}

.tahion-cfg-footer::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
}

.cfg-total-line {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0px 20px;
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 12px;
}

.cfg-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 20px 30px;
  align-items: flex-end;
  margin: 0;
}

.cfg-form-row .cfg-input {
  flex: 1 1 120px;
  min-width: 80px;
  max-width: 80px;
  height: 50px;
  border-color: rgb(128, 130, 133);
  padding: 0 12px;
}

.cfg-actions {
  height: 50px;
  white-space: nowrap;
}

/* === ШАГ 2 (АВТОМАТЫ) === */
.cfg-module-block {
  border: 1px solid #f0f0f0;
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  padding-left: 20px;
}

.cfg-module-block:last-child {
  margin-bottom: 8px;
  padding-bottom: 4px;
}

.cfg-toggle-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.cfg-toggle-row input[type="checkbox"] {
  margin: 0 8px 0 10px;
  transform: scale(1.1);
}

.cfg-fields-wrapper {
  margin-top: 8px;
}

.cfg-compact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3%;
  align-items: flex-start;
  margin-top: 10px;
}

.cfg-qty-wrapper {
  flex: 0 0 auto;
  min-width: 70px;
}

.cfg-qty-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: #444;
  white-space: nowrap;
}

.cfg-input-qty {
  max-width: 70px;
  min-width: 50px;
  width: 60px;
}

.cfg-specs-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  flex: 1;
}

.cfg-spec-item {
  flex: 0.1 1 161px;
}

.cfg-spec-title-mini {
  font-weight: 600;
  margin-bottom: 6px;
  color: #444;
}

.cfg-radio-mini {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  cursor: pointer;
}

.cfg-radio-mini input[type="radio"] {
  margin-right: 4px;
}

.cfg-divider {
  border: none;
  height: 1px;
  background: #eee;
  margin: 16px 0;
}

@media (max-width: 520px) {
  .cfg-specs-compact {
    flex-direction: column;
    gap: 10px;
  }
  .cfg-spec-item {
    flex: none;
    width: 100%;
  }
  .cfg-input-qty {
    width: 40px;
  }
}

/* === ШАГ 7 (БУК) === */
.cfg-buk-lists {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cfg-buk-list {
  width: 48%;
}

@media (max-width: 600px) {
  .cfg-buk-lists {
    flex-direction: column;
  }
  .cfg-buk-list {
    width: 100%;
  }
}

/* === ШАГ 8 (КАБЕЛЬНЫЕ ВВОДЫ) === */
.cfg-gland-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
}

.cfg-gland-row select {
  flex: 1 1 0;
  min-width: 110px; /* чтобы не сжимались слишком сильно */
}

.cfg-gland-row input[type="number"] {
  flex: 0 0 60px;
  max-width: 60px;
  text-align: center;
}

@media (max-width: 600px) {
  .cfg-gland-row {
    flex-direction: column;
  }
  .cfg-gland-row select,
  .cfg-gland-row input {
    width: 100%;
    max-width: none;
  }
}

/* === КНОПКИ === */
.btn-send {
  background: #4caf50 !important;
  border-radius: 6px !important;
  padding: 0 24px !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}
.btn-send:hover {
  background: #43a047 !important;
}

.btn-download,
.btn-print {
  background: #555 !important;
  border-radius: 6px !important;
  padding: 0 20px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.btn-download:hover,
.btn-print:hover {
  background: #333 !important;
}
.btn-download svg,
.btn-print svg {
  flex-shrink: 0;
}

.btn-reset {
  border-radius: 6px !important;
  padding: 0 24px !important;
  transition: background 0.2s;
}

/* === МОДАЛЬНОЕ ОКНО === */
.cfg-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cfg-modal {
  background: #fff;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.cfg-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.cfg-modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.cfg-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  line-height: 1;
}
.cfg-modal-close:hover {
  color: #333;
}

.cfg-modal-body {
  padding: 20px;
}

.cfg-modal-summary {
  background: #f9f9f9;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
}

.cfg-modal-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}

.cfg-modal-summary-row strong {
  font-weight: 600;
}

#cfg-request-form input,
#cfg-request-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
  font-family: inherit;
}

#cfg-request-form textarea {
  resize: vertical;
  min-height: 60px;
}

#cfg-request-form .btn-send {
  width: 100%;
  height: 44px;
}

.cfg-modal-success {
  text-align: center;
  padding: 20px;
}

.cfg-modal-success h3 {
  color: #4caf50;
  margin-bottom: 8px;
}

select:focus,
input[type="number"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: #2b7fff;
}/* End custom CSS */