/* ==========================================
   CONFIGURATOR — plastika-okon.ru style
   ========================================== */
.okna-configurator {
  font-family: Geometria, Arial, sans-serif;
  max-width: 1280px;
  margin: 0 auto;
  color: #444444;
}

/* Steps */
.cfg-step {
  margin-bottom: 20px;
  padding: 30px 35px;
  background: #fff;
  border: 1px solid #ecf4f6;
  border-radius: 20px;
}
.cfg-step-num {
  font-size: 14px;
  font-weight: 800;
  color: #ec9d10;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.cfg-step-title {
  font-size: 24px;
  font-weight: 800;
  color: #444444;
  letter-spacing: -1px;
  margin-bottom: 25px;
}

/* Type selection */
.cfg-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.cfg-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 15px;
  background: #f8fbfc;
  border: 2px solid #ecf4f6;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #6b767a;
}
.cfg-type:hover {
  border-color: #ec9d10;
  background: #f0faff;
}
.cfg-type.active {
  border-color: #ec9d10;
  background: #f0faff;
  color: #444444;
  box-shadow: 0 4px 20px rgba(51,197,243,0.15);
}
.cfg-type-svg {
  height: 60px;
  width: auto;
  color: #b0c4cc;
  transition: color 0.2s;
}
.cfg-type.active .cfg-type-svg {
  color: #ec9d10;
}

/* Dimensions */
.cfg-dimensions {
  display: flex;
  align-items: stretch;
  gap: 20px;
  min-height: 300px;
}

/* Height slider */
.cfg-dim-height {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 80px;
  flex-shrink: 0;
}
.cfg-dim-label {
  font-size: 11px;
  font-weight: 700;
  color: #6b767a;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.cfg-vslider-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.cfg-range-v {
  -webkit-appearance: none;
  appearance: none;
  width: 180px;
  height: 6px;
  background: #ecf4f6;
  border-radius: 3px;
  outline: none;
  transform: rotate(-90deg);
  transform-origin: center center;
}
.cfg-range-v::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #ec9d10;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(51,197,243,0.4);
}

/* Dimension badge */
.cfg-dim-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 2px solid #ec9d10;
  border-radius: 8px;
  padding: 4px 10px;
  background: #fff;
}
.cfg-dim-input {
  width: 80px !important;
  min-width: 80px !important;
  border: none;
  outline: none;
  font-family: Geometria, sans-serif;
  font-size: 16px !important;
  font-weight: 700;
  color: #444444 !important;
  text-align: center;
  -moz-appearance: textfield;
  overflow: visible !important;
}
.cfg-dim-input::-webkit-outer-spin-button,
.cfg-dim-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.cfg-dim-unit {
  font-size: 13px;
  color: #6b767a;
  font-weight: 500;
}

/* Window preview */
.cfg-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cfg-win-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}
.cfg-width-annotation {
  width: 100%;
  max-width: 320px;
  margin-top: 10px;
}
.cfg-w-arrow {
  width: 100%;
  height: 12px;
}
.cfg-w-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #6b767a;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Horizontal slider */
.cfg-hslider-wrap {
  margin-top: 25px;
}
.cfg-slider-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #6b767a;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.cfg-range-h {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #ecf4f6;
  border-radius: 3px;
  outline: none;
}
.cfg-range-h::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #ec9d10;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(51,197,243,0.4);
}

/* Profile selection */
.cfg-profiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.cfg-profile {
  cursor: pointer;
}
.cfg-profile input { display: none; }
.cfg-profile-card {
  padding: 20px;
  background: #f8fbfc;
  border: 2px solid #ecf4f6;
  border-radius: 15px;
  transition: all 0.2s;
  text-align: center;
}
.cfg-profile input:checked + .cfg-profile-card {
  border-color: #ec9d10;
  background: #f0faff;
  box-shadow: 0 4px 20px rgba(51,197,243,0.15);
}
.cfg-profile-card:hover {
  border-color: #ec9d10;
}
.cfg-profile-name {
  font-size: 18px;
  font-weight: 800;
  color: #444444;
  margin-bottom: 5px;
  letter-spacing: -0.5px;
}
.cfg-profile-desc {
  font-size: 13px;
  color: #6b767a;
  margin-bottom: 10px;
}
.cfg-profile-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: #ecf4f6;
  color: #6b767a;
}
.cfg-tag-hit {
  background: #ec9d10;
  color: #fff;
}
.cfg-tag-premium {
  background: #00171f;
  color: #c3ff00;
}

/* Glass options */
.cfg-glass-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.cfg-glass { cursor: pointer; }
.cfg-glass input { display: none; }
.cfg-glass-card {
  padding: 20px;
  background: #f8fbfc;
  border: 2px solid #ecf4f6;
  border-radius: 15px;
  transition: all 0.2s;
  text-align: center;
}
.cfg-glass input:checked + .cfg-glass-card {
  border-color: #ec9d10;
  background: #f0faff;
  box-shadow: 0 4px 20px rgba(51,197,243,0.15);
}
.cfg-glass-card:hover { border-color: #ec9d10; }
.cfg-glass-name {
  font-size: 16px;
  font-weight: 700;
  color: #444444;
  margin-bottom: 5px;
}
.cfg-glass-desc {
  font-size: 13px;
  color: #6b767a;
}

/* Extras */
.cfg-extras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.cfg-extra {
  cursor: pointer;
  display: block;
}
.cfg-extra input { display: none; }
.cfg-extra-box {
  display: block;
  padding: 14px 18px;
  background: #f8fbfc;
  border: 2px solid #ecf4f6;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #6b767a;
  text-align: center;
  transition: all 0.2s;
}
.cfg-extra input:checked + .cfg-extra-box {
  border-color: #ec9d10;
  background: #f0faff;
  color: #444444;
}
.cfg-extra-box:hover { border-color: #ec9d10; }

/* Result */
.cfg-result {
  background: #00171f;
  border-radius: 20px;
  padding: 35px;
  margin-top: 20px;
}
.cfg-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.cfg-result-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}
.cfg-result-price {
  font-size: 36px;
  font-weight: 800;
  color: #ec9d10;
  letter-spacing: -1.5px;
}
.cfg-result-details {
  margin-bottom: 25px;
  font-size: 14px;
  color: #99a2a5;
  line-height: 1.8;
}
.cfg-result-actions {
  display: flex;
  gap: 12px;
}
.cfg-btn-order {
  flex: 1;
  padding: 16px;
  background: #cc0000;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: Geometria, sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.cfg-btn-order:hover { background: #d9004e; }
.cfg-btn-call {
  flex: 1;
  padding: 16px;
  background: transparent;
  color: #ec9d10;
  border: 2px solid #ec9d10;
  border-radius: 10px;
  font-family: Geometria, sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.cfg-btn-call:hover { background: #ec9d10; color: #fff; }
.cfg-result-note {
  margin-top: 15px;
  font-size: 12px;
  color: #6b767a;
}

/* Responsive */
@media (max-width: 768px) {
  .cfg-types { grid-template-columns: repeat(2, 1fr); }
  .cfg-profiles { grid-template-columns: 1fr; }
  .cfg-glass-options { grid-template-columns: 1fr; }
  .cfg-extras { grid-template-columns: repeat(2, 1fr); }
  .cfg-dimensions { flex-direction: column; }
  .cfg-dim-height { flex-direction: row; width: 100%; }
  .cfg-vslider-wrap { min-height: auto; }
  .cfg-range-v {
  -webkit-appearance: none;
  appearance: none;
  width: 180px;
  height: 6px;
  background: #ecf4f6;
  border-radius: 3px;
  outline: none;
  transform: rotate(-90deg);
  transform-origin: center center;
}
  .cfg-result-actions { flex-direction: column; }
  .cfg-result-price { font-size: 28px; }
}
