/* spot_credit.css — K-48 / K-49 «Автокредит» (/credit). Цвета и размеры — токены spot_ui.css, каркас — spot_pages.css.
   Телефон первичен: один столбец (расчёт → платёж → заявка); на компьютере платёж закреплён справа. Без hover-зависимостей,
   цели нажатия не меньше 44 px, тёмная тема — через токены. */

.spot-cr {
    max-width: 1120px;
    padding-bottom: 48px;
}

.spot-cr-head {
    padding: 4px 0 8px;
}

.spot-cr-lead {
    margin: 0;
    max-width: 720px;
    font-size: 17px;
    line-height: 26px;
    color: var(--spot-ink-2);
}

.spot-cr-car {
    margin: 12px 0 0;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    background: var(--spot-raise);
    border-radius: var(--spot-radius);
    font-size: 15px;
    line-height: 22px;
}

.spot-cr-car-k {
    flex-basis: 100%;
    font-size: 13px;
    color: var(--spot-mut);
}

.spot-cr-car-v {
    font-weight: 700;
    color: var(--spot-ink);
}

.spot-cr-car a,
.spot-cr-table a,
.spot-cr-fine a {
    color: var(--spot-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.spot-cr-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.spot-cr-sec {
    padding: 20px 16px;
    background: var(--spot-surface);
    border: 1px solid var(--spot-line);
    border-radius: var(--spot-radius-l);
    min-width: 0;
}

.spot-cr-wide {
    margin-top: 12px;
}

.spot-cr-h2 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 26px;
    font-weight: 800;
    color: var(--spot-ink);
}

.spot-cr-p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 22px;
    color: var(--spot-ink-2);
}

.spot-cr-l,
.spot-cr-q legend {
    display: block;
    width: auto;
    margin: 14px 0 6px;
    padding: 0;
    border: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--spot-ink);
}

.spot-cr-form-calc > .spot-cr-l:first-of-type,
.spot-cr-two .spot-cr-l {
    margin-top: 0;
}

.spot-cr-in {
    width: 100%;
    height: var(--spot-control-h-l, 52px);
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid var(--spot-field-border);
    border-radius: 14px;
    background: var(--spot-field);
    color: var(--spot-ink);
    font-family: var(--spot-font);
    font-size: 17px; /* не меньше 16 px: iOS не приближает страницу при вводе */
    font-variant-numeric: tabular-nums;
}

.spot-cr-in:focus-visible {
    outline: 2px solid var(--spot-focus);
    outline-offset: 1px;
}

.spot-cr-money {
    position: relative;
}

.spot-cr-money .spot-cr-in {
    padding-right: 40px;
}

.spot-cr-money span {
    position: absolute;
    top: 0;
    right: 14px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 17px;
    color: var(--spot-mut);
    pointer-events: none;
}

[dir="rtl"] .spot-cr-money .spot-cr-in { padding-right: 14px; padding-left: 40px; }
[dir="rtl"] .spot-cr-money span { right: auto; left: 14px; }

.spot-cr-range {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ползунок рисуем сами: общий сброс сайта убирает дорожку; высота зоны нажатия 44 px */
.spot-cr-range input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.spot-cr-range input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: var(--spot-field-border);
}

.spot-cr-range input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: var(--spot-field-border);
}

.spot-cr-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    margin-top: -11px;
    border: 3px solid var(--spot-surface);
    border-radius: 50%;
    background: var(--spot-red);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.spot-cr-range input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border: 3px solid var(--spot-surface);
    border-radius: 50%;
    background: var(--spot-red);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.spot-cr-range input[type="range"]:focus-visible {
    outline: 2px solid var(--spot-focus);
    outline-offset: 2px;
    border-radius: 8px;
}

.spot-cr-range output {
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--spot-ink);
}

.spot-cr-terms,
.spot-cr-q {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.spot-cr-terms { margin-top: 6px; }

.spot-cr-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.spot-cr-chip {
    position: relative;
    margin: 0;
    display: block;
}

.spot-cr-chip input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.spot-cr-chip span {
    min-height: 44px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--spot-field-border);
    border-radius: 12px;
    background: var(--spot-field);
    font-size: 15px;
    font-weight: 600;
    color: var(--spot-ink);
    white-space: nowrap;
}

.spot-cr-chip input:checked + span {
    border-color: var(--spot-ink);
    background: var(--spot-inv);
    color: var(--spot-on-inv);
}

.spot-cr-chip input:focus-visible + span {
    outline: 2px solid var(--spot-focus);
    outline-offset: 2px;
}

.spot-cr-go {
    width: 100%;
    margin-top: 16px;
}

/* платёж */
.spot-cr-result {
    border-color: var(--spot-ink);
}

.spot-cr-pay-k {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--spot-mut);
}

.spot-cr-pay-v {
    margin: 2px 0 6px;
    font-size: 34px;
    line-height: 40px;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
    color: var(--spot-ink);
}

.spot-cr-sum {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 22px;
    color: var(--spot-ink-2);
}

.spot-cr-sum b {
    font-variant-numeric: tabular-nums;
    color: var(--spot-ink);
}

/* подпись про ставку — тем же размером, что и остальной текст блока (правило о заметности условий) */
.spot-cr-note {
    margin: 0;
    font-size: 15px;
    line-height: 22px;
    color: var(--spot-ink-2);
}

/* заявка */
.spot-cr-two {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.spot-cr-q-h {
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--spot-mut);
}

.spot-cr-qs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 16px;
}

.spot-cr-q legend {
    margin-top: 12px;
    font-weight: 500;
}

.spot-cr-q .spot-cr-chip {
    display: inline-block;
    min-width: 88px;
    margin-right: 6px;
}

[dir="rtl"] .spot-cr-q .spot-cr-chip { margin-right: 0; margin-left: 6px; }

.spot-cr-send {
    width: 100%;
    margin-top: 16px;
}

.spot-cr-err {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--spot-red-soft);
    color: var(--spot-red-fg);
    font-size: 15px;
    line-height: 22px;
}

.spot-cr-fine {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 19px;
    color: var(--spot-mut);
}

.spot-cr-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* подтверждение */
.spot-cr-done:focus { outline: none; }

.spot-cr-req { scroll-margin-top: calc(var(--spot-header-h, 64px) + 12px); }

.spot-cr-done-h {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 26px;
    font-weight: 800;
    color: var(--spot-ink);
}

.spot-cr-done-p {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    color: var(--spot-ink);
}

.spot-cr-done-b {
    margin: 18px 0 10px;
    font-size: 15px;
    line-height: 22px;
    color: var(--spot-ink-2);
}

.spot-cr-banks-btns {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.spot-cr-bank {
    min-height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--spot-field-border);
    border-radius: 14px;
    background: var(--spot-surface);
    color: var(--spot-ink);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.spot-cr-bank::after {
    content: "\2197";
    font-weight: 400;
    color: var(--spot-mut);
}

.spot-cr-bank:active { opacity: .6; }

/* таблица банков */
.spot-cr-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
}

.spot-cr-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 22px;
    font-variant-numeric: tabular-nums;
}

.spot-cr-table th,
.spot-cr-table td {
    padding: 10px 12px 10px 0;
    text-align: left;
    vertical-align: top;
    border-top: 1px solid var(--spot-line);
    white-space: nowrap;
    color: var(--spot-ink);
}

[dir="rtl"] .spot-cr-table th, [dir="rtl"] .spot-cr-table td { text-align: right; padding: 10px 0 10px 12px; }

.spot-cr-table thead th {
    border-top: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--spot-mut);
    white-space: normal;
}

.spot-cr-table tbody th {
    font-weight: 700;
}

/* примеры платежа */
.spot-cr-ex {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.spot-cr-ex li {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--spot-line);
    font-size: 16px;
    line-height: 24px;
    color: var(--spot-ink);
}

.spot-cr-ex li:first-child { border-top: 0; }

.spot-cr-ex b {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.spot-cr-all {
    width: 100%;
    text-decoration: none;
}

/* вопросы и ответы */
.spot-cr-faq {
    border-top: 1px solid var(--spot-line);
}

.spot-cr-faq:first-of-type { border-top: 0; }

.spot-cr-faq summary {
    min-height: 48px;
    padding: 12px 28px 12px 0;
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    list-style: none;
    font-size: 16px;
    line-height: 22px;
    font-weight: 700;
    color: var(--spot-ink);
}

.spot-cr-faq summary::-webkit-details-marker { display: none; }

.spot-cr-faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: var(--spot-mut);
}

.spot-cr-faq[open] summary::after { content: "\2212"; }

[dir="rtl"] .spot-cr-faq summary { padding: 12px 0 12px 28px; }
[dir="rtl"] .spot-cr-faq summary::after { right: auto; left: 4px; }

.spot-cr-faq p {
    margin: 0 0 14px;
    max-width: 760px;
    font-size: 15px;
    line-height: 23px;
    color: var(--spot-ink-2);
}

@media (min-width: 600px) {
    .spot-cr-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spot-cr-chips { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .spot-cr-qs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .spot-cr-banks-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spot-cr-send, .spot-cr-all { width: auto; min-width: 240px; }
}

@media (min-width: 992px) {
    .spot-cr-grid {
        grid-template-columns: minmax(0, 1fr) 360px;
        grid-template-areas: "calc result" "req result";
        align-items: start;
        gap: 16px;
        margin-top: 20px;
    }
    .spot-cr-calc { grid-area: calc; }
    .spot-cr-req { grid-area: req; }
    .spot-cr-result {
        grid-area: result;
        position: sticky;
        top: calc(var(--spot-header-h, 64px) + 16px);
    }
    .spot-cr-sec { padding: 24px; }
    .spot-cr-wide { margin-top: 16px; }
    .spot-cr-scroll { margin: 0; padding: 0; }
    .spot-cr-pay-v { font-size: 40px; line-height: 46px; }
}

@media (prefers-reduced-motion: no-preference) {
    .spot-cr-chip span { transition: background-color .12s ease, color .12s ease, border-color .12s ease; }
}
