.calculator-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.calc-block {
  flex: 1;
  min-width: 300px;
  max-width: 520px;
  background: #fff;
  border: 1px solid #ccdde8;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.calc-block h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  color: #0f766e;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2ece9;
}

.calc-block label {
  display: block;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #134e4a;
}

.calc-block input[type="text"],
.calc-block input[type="number"],
.calc-block select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  box-sizing: border-box;
  font-size: 15px;
  color: #1f2937;
  background: #f9fcfb;
  border: 2px solid #cce5e0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.calc-block input:focus,
.calc-block select:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}

.calc-block select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230d9488' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.field-hint {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #7a9e97;
}

/* Общие блоки опций */
#vehicleOptions,
#realtyOptions,
#egrulOptions {
  margin-top: 18px;
  padding: 16px 18px;
  background: #f0fdfa;
  border: 1px dashed #0d9488;
  border-radius: 10px;
}

.options-title {
  margin: 0 0 10px !important;
  font-weight: 700;
  font-size: 15px;
  color: #0f766e;
}

.option-label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
  font-size: 13px;
  color: #1e3a8a;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 14px;
  color: #1f2937;
  cursor: pointer;
  font-weight: 400;
}

.option-row strong {
  color: #0f766e;
}

.option-row input[type="radio"],
.option-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #0d9488;
  cursor: pointer;
  flex-shrink: 0;
}

.calc-block button {
  width: 100%;
  margin-top: 22px;
  padding: 13px 24px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.calc-block button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.calc-block button:active {
  transform: translateY(0);
}

/* Блок результатов */
.result-block {
  background: #fff;
  padding: 26px 24px;
  border: 1px solid #ccdde8;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  flex: 1;
  min-width: 280px;
  position: sticky;
  top: 20px;
}

.result-block h2 {
  margin: 0 0 16px;
  color: #0f766e;
  font-size: 1.2rem;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2ece9;
}

.result-placeholder {
  color: #8aaa9a;
  font-style: italic;
}

.error-msg {
  color: #d32f2f;
  font-weight: 600;
  padding: 12px;
  background: #fef0f0;
  border-radius: 8px;
}

.reg-total {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f766e;
  text-align: center;
  padding: 16px;
  background: #f0fdfa;
  border-radius: 10px;
  margin-bottom: 14px;
}

.reg-breakdown {
  margin: 12px 0;
}

.reg-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #e8f0ed;
  font-size: 14px;
}

.reg-row:last-child {
  border-bottom: none;
}

.reg-label {
  color: #475569;
  flex: 1;
}

.reg-amount {
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
}

.reg-discount {
  color: #059669;
}

.reg-summary {
  margin-top: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 13px;
  color: #475569;
}

.reg-summary p {
  margin: 4px 0;
}

.reg-summary strong {
  color: #1f2937;
}

.reg-note {
  margin-top: 14px;
  padding: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  font-size: 13px;
  color: #065f46;
  line-height: 1.5;
}

.calculator-description {
  max-width: 800px;
  margin: 40px auto;
  padding: 28px;
  background: #f0fdfa;
  border: 1px solid #ccf0e8;
  border-radius: 14px;
  line-height: 1.65;
  color: #333;
}

.calculator-description h2,
.calculator-description h3 {
  color: #0f766e;
  margin-top: 18px;
}

.calculator-description ul {
  margin: 10px 0 10px 20px;
  color: #1f2937;
}

@media (max-width: 800px) {
  .calculator-layout {
    flex-direction: column;
    padding: 12px;
    gap: 20px;
  }
  .calc-block { max-width: 100%; }
  .result-block { position: static; }
}
