/* Car loan calculator on the car page (src/credit.js). Native range and checkbox in graphite; no motion. */
.credit { padding-bottom: 28px; }
.credit__box {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 4vw, 56px);
  padding: clamp(22px, 4vw, 48px); border-radius: var(--r-lg); background: var(--mist);
}
.credit__inputs { display: grid; gap: 24px; }
.credit__title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.credit__lead { margin-top: -14px; color: var(--muted); }
.credit__field { display: grid; gap: 8px; }
.credit__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.credit__name { color: var(--muted); font-size: 13px; font-weight: 500; }
.credit__value { font-size: 18px; font-weight: 700; white-space: nowrap; }
.credit input[type="range"] { width: 100%; height: 32px; margin: 0; background: transparent; accent-color: var(--graphite); cursor: pointer; }
.credit .select select { width: 100%; }
.credit__check { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; cursor: pointer; }
.credit__check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--graphite); cursor: inherit; }
.credit__check small { display: block; color: var(--muted); font-size: 12px; }
.credit__check:has(input:disabled) { color: var(--muted); cursor: not-allowed; }
html:not(.js) .credit__field, html:not(.js) .credit__check { display: none; } /* without JS: the estimate for the defaults */

.credit__result { display: grid; gap: 14px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow); }
.credit__key { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.credit__big { display: flex; align-items: baseline; gap: 4px; font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.credit__big small { color: var(--muted); font-size: 16px; font-weight: 600; letter-spacing: 0; }
.credit__uah { margin-top: -8px; color: var(--muted); font-size: 14px; }
.credit__why { max-width: 38ch; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; } /* why the real rate is higher: in the text, for phones and screen readers too */
/* ст. 7 Закону 1734-VIII: the standard information — every item in one and the same font, in the main text */
.credit__std { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--mist); }
.credit__std dt { color: var(--muted); font-size: 13px; }
.credit__std dd { font-size: 15px; font-weight: 600; }
@media (max-width: 480px) {
  .credit__std { grid-template-columns: 1fr; gap: 8px; }
  .credit__std div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .credit__std dd { flex: none; max-width: 55%; text-align: right; }
}
.credit__program { color: var(--muted); font-size: 14px; }
.credit__program b { color: var(--graphite); font-weight: 600; }
.credit__bank { font-size: 14px; font-weight: 600; text-underline-offset: 3px; }
.credit__bank::after { content: " ↗"; }
.credit__facts { border-top: 1px solid var(--line); }
.credit__facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.credit__facts dt { color: var(--muted); }
.credit__facts dd { font-weight: 600; text-align: right; }
.credit__note { max-width: 900px; margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
@media (max-width: 860px) { .credit__box { grid-template-columns: 1fr; } }

/* «Електромобіль у кредит» (/kredyt/, src/kredyt.js): the car picker above the sliders, the cars, how it goes */
.credit__own { display: grid; gap: 14px; }
.kr-cars, .kr-how { padding-top: clamp(40px, 6vw, 72px); }
.kr-cars .grid { padding-bottom: 0; }
.kr-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.kr-title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.kr-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; counter-reset: step; }
.kr-steps li { padding: 24px; border-radius: var(--r-lg); background: var(--mist); color: var(--muted); counter-increment: step; }
.kr-steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 50%; background: var(--graphite); color: #fff; font-weight: 700; }
.kr-steps b { display: block; margin-bottom: 4px; color: var(--graphite); font-size: 17px; }
.kr-how { padding-bottom: 96px; }
.kr-how__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 860px) { .kr-steps { grid-template-columns: 1fr; } }

/* the lead dialog lists the chosen loan terms under the car */
.lead__item { white-space: pre-line; }
