/* Калькулятор A1: цвета берёт из переменных сайта (--blue, --line, --surface-soft…) */
#a1calc { margin-top: 24px; }
.a1c-title { margin: 40px 0 0; scroll-margin-top: 110px; }
.a1c-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.a1c-inputs, .a1c-result, .a1c-form { background: var(--surface, #fff); border: 1px solid var(--line, #e3e8f0); border-radius: var(--radius, 18px); padding: 22px; box-shadow: var(--shadow, none); }
.a1c-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 12px; font-weight: 700; color: var(--navy, #0f172a); }
.a1c-row input { width: 110px; flex: none; }
#a1calc input[type=number], .a1c-fields input, .a1c-form textarea { font: inherit; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: var(--radius-sm, 12px); background: #fff; color: var(--text, #1f2937); box-sizing: border-box; }
#a1calc input:focus, .a1c-form textarea:focus { outline: 2px solid var(--blue, #2563eb); outline-offset: 1px; border-color: transparent; }
#a1c-pc-r { width: 100%; margin: 0 0 18px; accent-color: var(--blue, #2563eb); }
.a1c-hint { margin: 0; font-size: 0.92em; color: var(--muted, #5b6678); }
.a1c-line { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line, #e3e8f0); }
.a1c-line span { color: var(--text, #1f2937); }
.a1c-line b { white-space: nowrap; color: var(--navy, #0f172a); }
.a1c-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 14px; }
.a1c-total span { font-weight: 700; }
.a1c-total strong { font-size: 1.9em; line-height: 1.1; color: var(--blue-dark, #1d4ed8); white-space: nowrap; }
.a1c-note { margin: 10px 0 0; font-size: 0.88em; color: var(--muted, #5b6678); }
.a1c-form { margin-top: 24px; }
.a1c-form h3 { margin: 0 0 14px; }
.a1c-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.a1c-form textarea { width: 100%; resize: vertical; margin-bottom: 12px; }
.a1c-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92em; margin-bottom: 16px; color: var(--muted, #5b6678); }
.a1c-consent input { margin-top: 3px; }
.a1c-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.a1c-msg { margin: 12px 0 0; min-height: 1.2em; }
.a1c-ok { color: var(--success, #15803d); font-weight: 700; }
.a1c-bad, .a1c-err { color: var(--blue-dark, #b40808); font-weight: 700; }
.a1c-form .btn[disabled] { opacity: 0.6; cursor: wait; }
@media (max-width: 820px) {
  .a1c-grid, .a1c-fields { grid-template-columns: 1fr; }
  .a1c-row { flex-wrap: wrap; }
  .a1c-row input { width: 100%; }
  .a1c-total strong { font-size: 1.55em; }
}
