/*
 * Зона niche-cars (seo-1125d, 25.11.2026): оплата покупки авто за рубежом через инвойс —
 * /japan-car-auction-usdt/, /dubai-car-usdt/, /germany-car-usdt/, /us-car-auction-usdt/, /china-ev-usdt/.
 * Разметка — tools/r26/pages/_cars-kit.mjs. Основа сетки — копия стилей зоны wallets-asia с приставкой nc-
 * (своя копия, чтобы правки соседней зоны не задевали эти страницы). Только токены r26 (assets/r26.css):
 * тёмная тема — без атрибута, светлая — html[data-theme="light"]. Телефон: 1199 / 899 / 719 / 379 / 359 px,
 * без боковой прокрутки на 320. RTL — логические свойства.
 */


.nc .r-wrap :is(h1, h2) { text-wrap: balance; }
.nc-top { padding-top: 12px; }
.nc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nc bdi { unicode-bidi: isolate; direction: ltr; white-space: nowrap; }
.nc .r-btn svg { flex: none; }

/* ══ Первый экран ═════════════════════════════════════════════════════════ */
.nc-hero { grid-template-columns: 1.15fr 0.85fr; }
.nc-answer { max-width: 680px; }
.nc-chips { padding-top: 4px; }
.nc-hero-art { min-width: 0; }
.nc-ph {
  width: 100%; max-width: 340px; box-sizing: border-box; padding: 20px; border-radius: 28px;
  background: var(--r-surface-3); border: 1px solid var(--r-line-2); box-shadow: var(--r-pop-shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.nc-ph-top { display: flex; align-items: center; gap: 12px; padding-bottom: 4px; }
.nc-ph-ico {
  flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--r-green-tint); color: var(--r-green);
}
.nc-ph-tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nc-ph-tt b { font-size: 15px; font-weight: 800; }
.nc-ph-tt > span { font-size: 12px; color: var(--r-muted); }
.nc-ph-f {
  display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 14px;
  background: var(--r-fill-2); border: 1px solid var(--r-line-3);
}
.nc-ph-f span { font-size: 11.5px; font-weight: 700; color: var(--r-muted); }
.nc-ph-f b { font-size: 15px; font-weight: 800; color: var(--r-text); }
.nc-ph-f bdi { text-align: start; }
.nc-ph-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--r-muted); }
.nc-ph-row b { color: var(--r-text); font-weight: 800; }
.nc-ph-total { padding-top: 12px; border-top: 1px dashed var(--r-line-3); color: var(--r-text); font-weight: 700; }
.nc-ph-total b { font-size: 18px; color: var(--r-green); }

/* ══ Факты: цифры + таблица «ключ — значение» ═════════════════════════════ */
.nc-stats { margin: 0 0 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.nc-stat {
  display: flex; flex-direction: column-reverse; gap: 6px; padding: 16px 18px; border-radius: 18px;
  background: var(--r-surface); border: 1px solid var(--r-line); min-width: 0;
}
.nc-stat dt { font-size: 12.5px; font-weight: 700; color: var(--r-muted); line-height: 1.35; overflow-wrap: break-word; hyphens: auto; }
.nc-stat dd { margin: 0; font-size: 24px; font-weight: 800; color: var(--r-accent); line-height: 1.1; }
.nc-stat bdi { white-space: normal; }

.nc-tbl-wrap {
  overflow-x: auto; border-radius: 24px; border: 1px solid var(--r-line); background: var(--r-surface);
  box-shadow: var(--r-block-shadow); -webkit-overflow-scrolling: touch;
}
.nc-tbl-wrap:focus-visible { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.nc-tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.nc-tbl :is(th, td) { padding: 15px 22px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--r-line); }
.nc-tbl tbody tr:last-child :is(th, td) { border-bottom: 0; }
.nc-tbl thead th { font-size: 14px; font-weight: 800; color: var(--r-muted); background: var(--r-fill-1); }
.nc-tbl tbody th { font-size: 14px; font-weight: 800; color: var(--r-muted); }
.nc-tbl td { color: var(--r-text-2); }
.nc-tbl--kv tbody th { width: 30%; }
.nc-tbl--kv td { color: var(--r-text); }
.nc-tbl--cmp { min-width: 680px; }
.nc-tbl--cmp tbody th { width: 20%; }
.nc-tbl--cmp thead .nc-th-on { color: var(--r-green); background: var(--r-green-tint); }
.nc-tbl--cmp .nc-td-on { color: var(--r-text); font-weight: 700; background: var(--r-green-tint); }
.nc-tbl--num { min-width: 560px; }
.nc-tbl--num :is(th, td) { white-space: nowrap; }
.nc-tbl--num tbody th { color: var(--r-text); }
.nc-tbl--num td:last-child { color: var(--r-green); font-weight: 800; }
.nc-foot { margin: 10px 0 0; font-size: 13.5px; color: var(--r-faint); line-height: 1.6; }
.nc-foot a { color: var(--r-link); font-weight: 700; text-decoration: none; }
.nc-foot a:hover { color: var(--r-link-hover); text-decoration: underline; }
.nc-tip {
  margin-top: 12px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 20px;
  background: var(--r-brand-tint); border: 1px solid var(--r-line-2); max-width: 900px;
}
.nc-tip-ico { flex: none; color: var(--r-accent); margin-top: 2px; }
.nc-tip-p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--r-text); }

/* ══ Поля формы ═══════════════════════════════════════════════════════════ */
.nc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nc-field { padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.nc-field-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nc-ico {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--r-brand-tint); color: var(--r-link);
}
.nc-field-k { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--r-accent); }
.nc-field-t { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--r-text); }
.nc-field-d { margin: 0; font-size: 15px; color: var(--r-text-2); line-height: 1.6; }
.nc-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nc-rules li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--r-muted); line-height: 1.5; }
.nc-rule-i {
  flex: none; width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center;
  background: var(--r-green-tint); color: var(--r-green);
}
.nc-ex {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: auto; padding: 14px 16px;
  border-radius: 14px; background: var(--r-fill-1); border: 1px dashed var(--r-line-3); font-size: 14px;
}
.nc-ex-l { font-size: 12px; font-weight: 800; color: var(--r-muted); }
.nc-ex-in { color: var(--r-text-2); font-weight: 700; }
.nc-ex-out { color: var(--r-green); font-weight: 800; }
.nc-ex .nc-arr { color: var(--r-faint); }
[dir="rtl"] .nc-arr { transform: scaleX(-1); }

/* ══ Проверка поля и калькулятор ══════════════════════════════════════════ */
.nc-chk, .nc-calc { display: grid; grid-template-columns: 1fr 1fr; padding: 0; overflow: hidden; }
.nc-chk-form, .nc-form { padding: 32px; display: flex; flex-direction: column; gap: 22px; justify-content: center; min-width: 0; }
.nc-f { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.nc-f-l { padding: 0; font-size: 13px; font-weight: 800; color: var(--r-text-2); line-height: 1.35; }
.nc-in {
  width: 100%; box-sizing: border-box; height: 56px; padding: 0 16px; border-radius: 14px;
  background: var(--r-fill-2); border: 1px solid var(--r-line-3); color: var(--r-text);
  font: inherit; font-size: 19px; font-weight: 800; text-align: start; direction: ltr;
}
[dir="rtl"] .nc-in { text-align: end; }
.nc-in--big { height: 58px; font-size: 22px; }
.nc-in::placeholder { color: var(--r-faint); font-weight: 600; font-size: 15px; }
.nc-in:focus { outline: 2px solid var(--r-accent); outline-offset: 1px; border-color: transparent; }
.nc-in[aria-invalid="true"] { border-color: var(--r-red); }
.nc-chk-out, .nc-out {
  padding: 32px; display: flex; flex-direction: column; gap: 14px; justify-content: center; min-width: 0;
  background: var(--r-fill-1); border-inline-start: 1px solid var(--r-line-2);
}
.nc-out-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--r-muted); }
.nc-out-row > span { min-width: 0; }
.nc-out-row b { color: var(--r-text); font-size: 17px; font-weight: 800; text-align: end; }
.nc-out-total { padding-top: 14px; border-top: 1px solid var(--r-line-3); color: var(--r-text); font-weight: 700; }
.nc-out-total b { font-size: clamp(20px, 2vw + 8px, 28px); color: var(--r-green); }
.nc-bar { height: 8px; border-radius: 99px; background: var(--r-fill-3); overflow: hidden; }
.nc-bar i { display: block; height: 100%; border-radius: inherit; background: var(--r-accent); transition: width .2s ease; }
.nc-msg { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--r-muted); min-height: 2.9em; }
.nc-msg.is-ok { color: var(--r-green); }
.nc-msg.is-warn { color: var(--r-red); }
.nc-out-btn { align-self: flex-start; margin-top: 4px; }

/* ══ Шаги ═════════════════════════════════════════════════════════════════ */
.nc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 24px; overflow: hidden; border: 1px solid var(--r-line); background: var(--r-surface); }
.nc-step { padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; border-inline-start: 1px solid var(--r-line); }
.nc-step:first-child { border-inline-start: 0; }
.nc-step-n { font-size: 34px; font-weight: 800; line-height: 1; color: var(--r-accent); }
.nc-step-t { font-size: 17px; font-weight: 800; color: var(--r-text); }
.nc-step-d { font-size: 14px; color: var(--r-muted); line-height: 1.55; }
.nc-steps:has(> :nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ══ Лента «после отправки» ═══════════════════════════════════════════════ */
.nc-tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nc-tl-i {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px;
  background: var(--r-surface); border: 1px solid var(--r-line); min-width: 0;
}
.nc-tl-dot { width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center; background: var(--r-brand-tint); color: var(--r-link); }
.nc-tl--ok .nc-tl-dot { background: var(--r-green-tint); color: var(--r-green); }
.nc-tl--no { border-color: var(--r-red-line); }
.nc-tl--no .nc-tl-dot { background: var(--r-red-line); color: var(--r-red); }
.nc-tl-b { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nc-tl-t { font-size: 18px; font-weight: 800; color: var(--r-text); }
.nc-tl-d { font-size: 14px; color: var(--r-muted); line-height: 1.55; }

/* ══ Карточки ═════════════════════════════════════════════════════════════ */
.nc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nc-cards-sec.nc-cards--2 .nc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nc-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nc-card-t { margin: 0; font-size: 19px; font-weight: 800; color: var(--r-text); line-height: 1.3; }
.nc-card-d { margin: 0; font-size: 15px; color: var(--r-text-2); line-height: 1.6; }

/* ══ Ограничения ══════════════════════════════════════════════════════════ */
.nc-risk { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nc-risk-i { display: flex; gap: 12px; align-items: flex-start; padding: 20px; border-radius: 20px; background: var(--r-surface); border: 1px solid var(--r-red-line); min-width: 0; }
.nc-risk-ic { flex: none; color: var(--r-red); margin-top: 2px; }
.nc-risk-i p { margin: 0; font-size: 14.5px; color: var(--r-muted); line-height: 1.55; }
.nc-risk-i b { color: var(--r-text); }
.nc-note { margin-top: 14px; }

/* ══ Вопросы ══════════════════════════════════════════════════════════════ */
.nc-qa { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.nc-qa-i { border-radius: 20px; background: var(--r-surface); border: 1px solid var(--r-line); }
.nc-qa-i summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-size: 16px; font-weight: 800; color: var(--r-text); line-height: 1.4;
}
.nc-qa-i summary::-webkit-details-marker { display: none; }
.nc-qa-i summary:focus-visible { outline: 2px solid var(--r-accent); outline-offset: -2px; border-radius: 20px; }
.nc-qa-ic { flex: none; width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; background: var(--r-fill-3); color: var(--r-text-2); transition: transform .2s ease; }
.nc-qa-i[open] .nc-qa-ic { transform: rotate(45deg); }
.nc-qa-i p { margin: 0; padding: 0 22px 20px; font-size: 15px; color: var(--r-text-2); line-height: 1.65; max-width: 75ch; }

/* ══ Ссылки ═══════════════════════════════════════════════════════════════ */
.nc-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nc-link { position: relative; padding: 22px; padding-inline-end: 52px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--r-text); min-width: 0; transition: border-color .16s ease; }
.nc-link:hover { border-color: var(--r-brand-2); }
.nc-link b { font-size: 16px; font-weight: 800; line-height: 1.35; }
.nc-link span { font-size: 14px; color: var(--r-muted); line-height: 1.5; }
.nc-link .nc-arr { position: absolute; inset-inline-end: 22px; top: 24px; color: var(--r-link); }
.sx-next.nc-rel { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }

/* ══ Финальный призыв ═════════════════════════════════════════════════════ */
.nc-final { padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nc-final-txt { position: relative; display: flex; flex-direction: column; gap: 12px; max-width: 640px; min-width: 0; }
.nc-final .r-btns { position: relative; flex: none; }

/* ══ Планшет и телефон ════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
  .nc-tl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nc-steps, .nc-steps:has(> :nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nc-step:nth-child(odd) { border-inline-start: 0; }
  .nc-step:nth-child(n+3) { border-top: 1px solid var(--r-line); }
  .nc-risk, .nc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .nc-hero { grid-template-columns: 1fr; }
  .nc-hero-art { justify-content: flex-start; }
  .nc-fields { grid-template-columns: 1fr; }
  .nc-chk, .nc-calc { grid-template-columns: 1fr; }
  .nc-chk-out, .nc-out { border-inline-start: 0; border-top: 1px solid var(--r-line-2); }
  .nc-links { grid-template-columns: 1fr; }
  .nc-final { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
  .nc-cards-sec.nc-cards--2 .nc-cards { grid-template-columns: 1fr; }
}
@media (max-width: 719px) {
  .nc-ph { max-width: none; }
  .nc-ph.r-float { animation: none; }
  .nc-stat { padding: 12px 14px; }
  .nc-stat dd { font-size: 20px; }
  .nc-field, .nc-card { padding: 22px 20px; }
  .nc-tl { grid-template-columns: 1fr; }
  .nc-tl-i { flex-direction: row; padding: 18px; }
  .nc-tl-dot { flex: none; }
  .nc-steps, .nc-steps:has(> :nth-child(5)) { grid-template-columns: 1fr; }
  .nc-step { border-inline-start: 0 !important; border-top: 1px solid var(--r-line); padding: 20px; }
  .nc-step:first-child { border-top: 0; }
  .nc-risk, .nc-cards { grid-template-columns: 1fr; }
  .nc-chk-form, .nc-form, .nc-chk-out, .nc-out { padding: 22px 20px; }
  .nc-out-btn, .nc-final .r-btns, .nc-final .r-btn { align-self: stretch; width: 100%; }
  .nc .r-hero-txt .r-btns .r-btn { flex: 1 1 100%; }
  .nc-tbl :is(th, td) { padding: 13px 15px; font-size: 14px; }
  .nc-tbl--kv tbody th { width: 38%; }
  /* Пример расчёта на телефоне — без боковой прокрутки: итоговая колонка должна быть видна сразу. */
  .nc-tbl--num { min-width: 0; }
  .nc-tbl--num :is(th, td) { padding: 12px 8px; font-size: 13px; }
  .nc-tbl--num :is(th, td):first-child { padding-inline-start: 14px; }
  .nc-tbl--num thead th { white-space: normal; font-size: 12px; }
  .nc-final { padding: 28px 20px; }
  .nc-qa-i summary { padding: 16px 18px; font-size: 15px; }
  .nc-qa-i p { padding: 0 18px 18px; }
}
@media (max-width: 379px) {
  main .nc .r-btn { white-space: normal; height: auto; min-height: 52px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; text-align: center; }
}
@media (max-width: 359px) {
  .nc-ph { padding: 16px; }
  .nc-ph-row { font-size: 13px; }
  .nc-stats { grid-template-columns: 1fr; }
  .nc-stat { flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 10px; }
  .nc-chk-form, .nc-form, .nc-chk-out, .nc-out { padding: 18px 16px; }
  .nc-in, .nc-in--big { font-size: 17px; }
  .nc-tbl--kv :is(th, td) { display: block; width: auto; }
  .nc-tbl--kv tbody th { padding-bottom: 2px; border-bottom: 0; }
  .nc .r-chip { white-space: normal; height: auto; min-height: 34px; padding: 6px 12px; }
}

/* ══ Свои блоки зоны: расписание платежей и источники ═════════════════════ */
.nc-plan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nc-plan-i { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 22px; background: var(--r-surface); border: 1px solid var(--r-line); min-width: 0; }
.nc-plan-k { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--r-accent); }
.nc-plan-t { margin: 0; font-size: 18px; font-weight: 800; color: var(--r-text); line-height: 1.3; }
.nc-plan-d { margin: 0; font-size: 14.5px; color: var(--r-text-2); line-height: 1.6; }
.nc-src { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nc-src li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--r-fill-1); border: 1px solid var(--r-line-2); min-width: 0; }
.nc-src a { color: var(--r-link); font-weight: 800; font-size: 14.5px; text-decoration: none; overflow-wrap: anywhere; }
.nc-src a:hover { color: var(--r-link-hover); text-decoration: underline; }
.nc-src span { font-size: 13.5px; color: var(--r-muted); line-height: 1.5; }
.nc-calc-note { margin: 0; font-size: 13px; color: var(--r-faint); line-height: 1.5; }
.nc-sel {
  width: 100%; box-sizing: border-box; height: 56px; padding: 0 14px; border-radius: 14px;
  background: var(--r-fill-2); border: 1px solid var(--r-line-3); color: var(--r-text); font: inherit; font-size: 17px; font-weight: 800;
}
.nc-sel:focus { outline: 2px solid var(--r-accent); outline-offset: 1px; border-color: transparent; }
@media (max-width: 1199px) { .nc-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px) {
  .nc-plan, .nc-src { grid-template-columns: 1fr; }
  .nc-plan-i { padding: 18px; }
}
/* Пример расчёта на телефоне: первая колонка переносится, чтобы итоговая колонка была видна без прокрутки. */
@media (max-width: 719px) {
  .nc-tbl--num tbody th, .nc-tbl--num tbody th bdi, .nc-tbl--num thead th:first-child { white-space: normal; min-width: 84px; }
  .nc-tbl--num td { font-size: 12.5px; }
}
/* Длинные названия компаний в макете счёта первого экрана — переносом, а не за край карточки. */
.nc-ph-f bdi { white-space: normal; overflow-wrap: anywhere; }

/* ══ Фото с открытой лицензией (подпись автора и лицензии обязательна) ═════ */
.nc-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nc-photo-sec--one .nc-photos { grid-template-columns: 1fr; max-width: 980px; }
.nc-photo { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nc-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; border: 1px solid var(--r-line); background: var(--r-fill-2); }
.nc-photo-sec--one .nc-photo img { aspect-ratio: 16 / 9; }
.nc-photo figcaption { font-size: 12.5px; color: var(--r-faint); line-height: 1.5; }
.nc-photo figcaption a { color: var(--r-link); text-decoration: none; }
.nc-photo figcaption a:hover { color: var(--r-link-hover); text-decoration: underline; }
@media (max-width: 719px) { .nc-photos { grid-template-columns: 1fr; } }
