.calc-hero {
  background: linear-gradient(135deg, #0a1628 0%, #162d50 100%);
  padding: 60px 40px 40px;
  color: #fff;
  border-radius: 0 0 30px 30px;
  margin-bottom: 30px;
}
.calc-hero h1 { font-size: 2rem; margin: 0 0 8px; }
.calc-hero p { opacity: 0.8; margin: 0; font-size: 1rem; }

.calc-body {
  display: flex;
  gap: 24px;
  padding: 0 24px 40px;
  align-items: flex-start;
}
.calc-main { flex: 1; min-width: 0; }

.calc-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e6ed;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.calc-card-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a1a2e;
}
.step-badge {
  background: #f39c12;
  color: #fff;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}
.calc-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.calc-field { display: flex; flex-direction: column; gap: 5px; }
.calc-label { font-weight: 600; font-size: 0.85rem; color: #444; text-transform: uppercase; letter-spacing: 0.3px; }
.calc-select, .calc-input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d0d7e2;
  background: #fafbfc;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.calc-select:focus, .calc-input:focus { border-color: #f39c12; outline: none; box-shadow: 0 0 0 3px rgba(243,156,18,0.1); }
.calc-select:disabled { opacity: 0.5; cursor: not-allowed; }

.calc-checks { display: flex; flex-direction: column; gap: 10px; }
.calc-check {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: #f8f9fa; border-radius: 8px;
  font-size: 0.9rem; cursor: pointer; transition: background 0.2s;
}
.calc-check:hover { background: #edf0f4; }
.calc-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: #f39c12; }

.calc-materials { display: flex; flex-direction: column; gap: 0; }
.mat-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid #f0f0f0;
}
.mat-row:last-child { border-bottom: none; }
.mat-info { display: flex; flex-direction: column; }
.mat-name { font-weight: 600; font-size: 0.88rem; }
.mat-info small { font-size: 0.72rem; color: #8a8a8a; }

.qty-wrap {
  display: flex; align-items: center; background: #f1f3f5;
  border-radius: 6px; padding: 2px 4px; gap: 0;
}
.qty-btn {
  width: 28px; height: 28px; border: none; background: #fff;
  border-radius: 4px; font-weight: bold; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #333; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.qty-input {
  width: 50px; text-align: center; border: none; background: transparent;
  font-weight: 700; font-size: 0.9rem; outline: none;
}
.unit-badge {
  font-size: 0.72rem; color: #7f8c8d; margin-left: 4px; font-weight: 600;
  text-transform: uppercase; min-width: 24px;
}

.calc-summary {
  width: 340px; flex-shrink: 0; position: sticky; top: 20px;
  background: #fff; border-radius: 12px; border: 1px solid #e0e6ed;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06); overflow: hidden;
}
.calc-summary-head {
  background: #0a1628; color: #fff; padding: 16px 20px;
}
.calc-summary-head h3 { margin: 0 0 10px; font-size: 1.05rem; }
.calc-summary-meta {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.meta-item {
  background: rgba(255,255,255,0.12); border-radius: 6px;
  padding: 4px 10px; display: flex; flex-direction: column; gap: 1px;
}
.meta-item small { font-size: 0.6rem; text-transform: uppercase; opacity: 0.7; }
.meta-item b { font-size: 0.78rem; }

.calc-summary-lines {
  padding: 16px 20px; max-height: 400px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px;
}
.calc-empty-offer {
  text-align: center; color: #aab; padding: 30px 0; font-size: 0.9rem;
}

.offer-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 0.85rem;
}
.offer-item:last-child { border-bottom: none; }
.offer-item .offer-name { font-weight: 500; }
.offer-item .offer-qty { color: #7f8c8d; font-size: 0.75rem; }
.offer-item .offer-price { font-weight: 700; white-space: nowrap; color: #1a1a2e; }

.calc-summary-foot { padding: 16px 20px; border-top: 2px solid #f0f0f0; }
.calc-total-row {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.calc-total-row span { font-weight: 700; color: #555; }
.calc-total-row strong { font-size: 1.4rem; color: #0a1628; }
.calc-cta {
  width: 100%; padding: 12px; font-size: 0.95rem; text-align: center;
}

.calc-form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.calc-form .calc-row { grid-template-columns: repeat(2, 1fr); }
.calc-submit { width: 100%; padding: 13px; font-size: 0.95rem; }

@media (max-width: 1024px) {
  .calc-body { flex-direction: column; }
  .calc-summary { width: 100%; position: static; }
}
@media (max-width: 600px) {
  .calc-row { grid-template-columns: 1fr; }
  .calc-hero { padding: 40px 20px 30px; }
  .calc-body { padding: 0 12px 30px; }
  .mat-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}
