.calc-intro { padding: 48px 0 28px; }
.calc-intro h1 { margin: 10px 0 8px; font-size: clamp(29px, 3vw, 38px); line-height: 1.25; letter-spacing: -.025em; }
.calc-intro p { margin: 0; color: var(--muted); font-size: 14px; }
.calc-layout { display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); align-items: start; gap: 18px; padding-bottom: 72px; }
.calc-panel { min-width: 0; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 5px 22px rgba(31, 53, 75, .045); }
.calc-form, .calc-output { padding: 28px; }
.calc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid #e5ebef; }
.calc-panel-head h2 { margin: 0; font-size: 18px; line-height: 1.3; }
.calc-panel-head small { color: #92a0aa; font-size: 11px; letter-spacing: .08em; }
.calc-fields { display: grid; gap: 21px; padding-top: 23px; }
.calc-field { display: grid; gap: 8px; min-width: 0; }
.calc-field[hidden] { display: none; }
.calc-field label, .calc-field legend { color: #34445f; font-size: 13px; font-weight: 680; }
.calc-field legend { padding: 0; margin-bottom: 8px; }
.calc-field fieldset { margin: 0; padding: 0; border: 0; }
.calc-field input[type="text"], .calc-field input[type="date"] { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; outline: none; transition: border-color .17s, box-shadow .17s; }
.calc-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(88, 116, 142, .14); }
.calc-field input::placeholder { color: #a0acb6; }
.calc-field input[aria-invalid="true"] { border-color: #c86868; }
.calc-money { position: relative; }
.calc-money input { padding-right: 40px !important; font-variant-numeric: tabular-nums; }
.calc-money span { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #8d9ba6; font-size: 13px; pointer-events: none; }
.calc-help { margin: 0; color: #8393a1; font-size: 11px; line-height: 1.55; }
.calc-segments { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; padding: 4px; border: 1px solid #dce5ec; border-radius: 11px; background: #f2f5f7; }
.calc-segments label { display: grid; place-items: center; min-height: 40px; padding: 6px 3px; border-radius: 8px; color: #687c8e; font-size: 12px; text-align: center; cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s; }
.calc-segments input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.calc-segments label:has(input:checked) { background: #fff; color: var(--brand-deep); box-shadow: 0 2px 7px rgba(39, 65, 88, .1); }
.calc-segments label:has(input:focus-visible) { outline: 3px solid #819eb7; outline-offset: 2px; }
.calc-check { display: flex; align-items: center; gap: 9px; min-height: 36px; color: #43566a; font-size: 13px; cursor: pointer; }
.calc-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.calc-output { min-height: 505px; }
.calc-result-actions { display: flex; gap: 8px; }
.calc-action { min-height: 33px; padding: 6px 11px; border: 1px solid #d4dfe7; border-radius: 8px; background: #fff; color: #4d6275; font-family: inherit; font-size: 12px; font-weight: 650; line-height: 1.2; cursor: pointer; }
.calc-action:hover:not(:disabled) { border-color: #9ab0c1; background: #f3f7fa; }
.calc-action:disabled { color: #a5b1b9; cursor: not-allowed; }
.calc-empty { min-height: 385px; display: grid; place-content: center; justify-items: center; gap: 12px; color: #8c9ca9; font-size: 13px; text-align: center; }
.calc-empty-symbol { width: 55px; height: 55px; display: grid; place-items: center; border: 1px solid #dce5ec; border-radius: 16px; background: #f7f9fb; color: #7f99ad; font: 400 26px/1 Georgia,serif; }
.calc-empty p { margin: 0; }
.calc-error { margin: 23px 0 0; padding: 12px 14px; border: 1px solid #edd2d0; border-radius: 9px; background: #fff7f6; color: #a34542; font-size: 13px; }
.calc-result[hidden], .calc-empty[hidden], .calc-error[hidden] { display: none; }
.calc-result { padding-top: 24px; }
.calc-total { display: flex; justify-content: space-between; align-items: end; gap: 15px; padding: 22px 23px; border-radius: 14px; background: linear-gradient(130deg,#3c5870,#597992); color: #fff; }
.calc-total > div > span { display: block; color: #d7e2e9; font-size: 12px; }
.calc-total strong { display: block; margin-top: 7px; font-size: clamp(28px,3.5vw,39px); line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-total small { color: #d7e2e9; font-size: 11px; white-space: nowrap; }
.calc-section-label { margin: 25px 0 12px; color: #899aa7; font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.calc-rows { width: 100%; border-collapse: collapse; font-size: 12px; }
.calc-rows tr { border-bottom: 1px solid #e8edf1; }
.calc-rows td { padding: 11px 5px; vertical-align: top; }
.calc-rows td:first-child { color: #415467; }
.calc-rows td:nth-child(2) { color: #8192a0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-rows td:last-child { width: 98px; color: #172233; font-weight: 680; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-result-note { margin: 17px 0 0; color: #7d8e9b; font-size: 11px; line-height: 1.65; }
.calc-result-note a { color: #52728c; text-underline-offset: 3px; }
.calc-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.calc-metric { min-width: 0; padding: 20px; border: 1px solid #dbe5eb; border-radius: 12px; background: #f6f9fb; }
.calc-metric:nth-child(2) { border-color: #eadfc9; background: #fbf9f5; }
.calc-metric > span { display: block; color: #5f7385; font-size: 12px; }
.calc-metric strong { display: block; margin-top: 9px; color: #243c51; font-size: clamp(21px,2.2vw,30px); line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-metric:nth-child(2) strong { color: #806b45; }
.calc-line-list { margin: 18px 0 0; }
.calc-line { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid #e8edf1; font-size: 12px; }
.calc-line dt { color: #718596; }
.calc-line dd { margin: 0; color: #30465b; font-weight: 680; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .calc-layout { grid-template-columns: 1fr; } .calc-output { min-height: 360px; } .calc-empty { min-height: 250px; } }
@media (max-width: 620px) { .calc-intro { padding: 37px 0 24px; } .calc-form, .calc-output { padding: 22px; } .calc-layout { gap: 13px; padding-bottom: 48px; } .calc-result-actions { gap: 5px; } .calc-action { padding-inline: 8px; font-size: 11px; } .calc-metric { padding: 15px; } .calc-metric strong { font-size: 21px; } .calc-rows td:nth-child(2) { white-space: normal; } }
@media (max-width: 420px) { .calc-segments label { font-size: 11px; } .calc-panel-head { align-items: flex-start; } .calc-total { align-items: start; flex-direction: column; } .calc-metrics { grid-template-columns: 1fr; } }
@media print { .site-header, .site-footer, .calc-form, .calc-result-actions, .calc-intro .eyebrow { display: none !important; } body { background: #fff; } .wrap { width: 100%; } .calc-intro { padding: 0 0 14px; } .calc-layout { display: block; padding: 0; } .calc-output { min-height: 0; border: 0; box-shadow: none; padding: 0; } .calc-result { padding-top: 16px; } .calc-empty, .calc-error { display: none !important; } }
