.paint-calculator-wrapper {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  max-width: 800px;
  margin: 20px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.calc-title {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #111827;
}
.calc-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr 1fr;
  }
  .calc-section.full-width {
    grid-column: span 2;
  }
}
.calc-section {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  padding: 16px;
}
.calc-section h4 {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}
.input-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.input-group label {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #4b5563;
}
.input-group input, .input-group select {
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  outline: none !important;
  height: 38px !important;
  box-sizing: border-box !important;
}
.input-group input:focus, .input-group select:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}
.calc-btn {
  display: block;
  width: 100%;
  background: #2563eb !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 12px 24px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  text-align: center;
}
.calc-btn:hover {
  background: #1d4ed8 !important;
}
.calc-results {
  margin-top: 24px;
  border-top: 1px dashed #e5e7eb;
  padding-top: 24px;
}
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (min-width: 480px) {
  .results-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.result-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.result-card.highlight {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.result-label {
  font-size: 13px;
  color: #4b5563;
  font-weight: 500;
  margin-bottom: 4px;
}
.result-value {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}
.result-card.highlight .result-value {
  color: #16a34a;
}
.result-subtext {
  font-size: 11px;
  color: #6b7280;
  margin-top: 4px;
}

/* Чек-лист материалов */
.checklist-box {
  margin-top: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px;
}
.checklist-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1e293b;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  display: flex;
  align-items: center;
  gap: 6px;
}
.checklist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 14px;
  color: #334155;
}
.checklist-item:last-child {
  border-bottom: none;
}
.checklist-item-name {
  font-weight: 500;
}
.checklist-item-qty {
  background: #e2e8f0;
  color: #1e293b;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
}
.calc-note {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  background: #f9fafb;
  padding: 12px 16px;
  border-left: 3px solid #d1d5db;
  border-radius: 0 4px 4px 0;
  margin-top: 16px;
}

/* Блок захвата заявки для тех, кто сомневается */
.lead-box {
  margin-top: 24px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 20px;
}
.lead-box-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1e3a8a;
  margin-top: 0 !important;
  margin-bottom: 6px !important;
}
.lead-box-desc {
  font-size: 13px;
  color: #1e40af;
  margin-bottom: 16px;
  line-height: 1.5;
}
.lead-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (min-width: 560px) {
  .lead-row {
    grid-template-columns: 1fr 1fr;
  }
}
.lead-input {
  border: 1px solid #93c5fd !important;
  border-radius: 6px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  outline: none !important;
  height: 40px !important;
  box-sizing: border-box !important;
  width: 100%;
}
.lead-input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}
.lead-submit-btn {
  display: block;
  width: 100%;
  background: #16a34a !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 12px 24px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  text-align: center;
}
.lead-submit-btn:hover { background: #15803d !important; }
.lead-submit-btn:disabled { opacity: 0.7; cursor: default; }
.lead-note {
  font-size: 11px;
  color: #6b7280;
  text-align: center;
  margin-top: 10px;
}
