#calc-app { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #1a1a2e; line-height: 1.5; }
#calc-app h1 { text-align: center; margin-bottom: 24px; font-size: 1.6rem; color: #16213e; }
#calc-app .card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
#calc-app .card h2 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #0f3460;
  border-bottom: 2px solid #e94560;
  padding-bottom: 8px;
}
#calc-app .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
#calc-app .form-group { display: flex; flex-direction: column; }
#calc-app .form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #555;
}
#calc-app .form-group select, #calc-app .form-group input {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: #fafafa;
  color: #1a1a2e;
}
#calc-app .form-group select:focus, #calc-app .form-group input:focus {
  outline: none;
  border-color: #e94560;
  background: #fff;
}
#calc-app .result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
#calc-app .result-item {
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#calc-app .result-item.total {
  background: linear-gradient(135deg, #16213e, #0f3460);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  grid-column: 1 / -1;
}
#calc-app .result-item .label { font-size: 0.85rem; color: #666; }
#calc-app .result-item.total .label { color: rgba(255,255,255,0.7); }
#calc-app .result-item .value { font-weight: 600; font-size: 1rem; }
#calc-app .result-item.total .value { font-size: 1.3rem; }
#calc-app .price-tables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
#calc-app .price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  border: none;
  margin-bottom: 0;
}
#calc-app .price-table th, #calc-app .price-table td {
  padding: 4px 8px;
  text-align: center;
  border: none;
  border-bottom: 1px solid #eee;
}
#calc-app .price-table th { background: #f0f2f5; font-weight: 600; color: #0f3460; }
#calc-app .price-table .highlight { background: #fff3cd; }
#calc-app .note { font-size: 0.78rem; color: #999; margin-top: 8px; }
#calc-app .params-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}
#calc-app .param-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 0.82rem;
}
#calc-app .param-label { color: #666; }
#calc-app .param-value { font-weight: 600; color: #0f3460; }
#calc-app .formulas-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}
#calc-app .formula-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.8rem;
  border-bottom: 1px dotted #eee;
}
#calc-app .formula-row span:first-child { color: #666; min-width: 180px; }
#calc-app .formula-row span:last-child { color: #333; font-family: 'Courier New', monospace; font-size: 0.78rem; }

@media (max-width: 600px) {
  #calc-app .result-grid { grid-template-columns: 1fr; }
  #calc-app .price-tables { grid-template-columns: 1fr; }
  #calc-app .form-grid { grid-template-columns: 1fr; }
  #calc-app h1 { font-size: 1.3rem; }
}
