/* «Ціна під ключ»: the calculator page /rozmytnennia/ and the car-page teaser (src/turnkey.js). Reuses .card, .seg, .field, .select. */
.tk-kicker { margin-bottom: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.tk { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: start; gap: 24px; padding-bottom: 64px; }
.tk__form { display: grid; gap: 20px; }
.tk__lbl { color: var(--muted); font-size: 13px; font-weight: 500; }
.tk__form .select select { width: 100%; height: 52px; border-radius: var(--r-sm); font-size: 16px; }
.tk__form input[type="number"] { font-variant-numeric: tabular-nums; }
.tk__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tk__peek { display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--graphite); color: #fff; font-size: 14px; text-decoration: none; }
.tk__peek b { font-size: 18px; font-variant-numeric: tabular-nums; }
.tk.is-error .tk__peek { opacity: 0.3; }
.tk__note { padding: 12px 14px; border-radius: var(--r-sm); background: var(--warn-bg); color: var(--warn); font-size: 13px; line-height: 1.5; }
html:not(.js) .tk__form { display: none; } /* without JS the page shows the example below */
html:not(.js) .tk { grid-template-columns: minmax(0, 860px); }

.tk__out { display: grid; gap: 18px; }
.tk__label { color: var(--muted); font-size: 14px; font-weight: 600; }
.tk__sum { margin-top: 2px; font-size: clamp(40px, 5vw, 60px); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tk__uah { margin-top: 6px; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tk__rate { color: var(--muted); font-size: 13px; }
.tk__error { color: var(--danger); font-weight: 600; }
.tk__error:empty { display: none; }
.tk.is-error .tk__out > :not(.tk__head), .tk.is-error .tk__sum, .tk.is-error .tk__uah { opacity: 0.3; }
.tk__time { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; padding: 8px 14px; border-radius: var(--r-sm); background: var(--mist); font-size: 13px; font-weight: 600; }

/* shares of the total: car · delivery · taxes · paperwork */
.tk__bar { display: flex; gap: 3px; height: 12px; }
.tk__bar i { flex: var(--s) 1 0; min-width: 3px; border-radius: 4px; background: var(--graphite); transition: flex-grow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tk__bar i:nth-child(2) { background: #8a909a; }
.tk__bar i:nth-child(3) { background: #c98a12; }
.tk__bar i:nth-child(4) { background: #2f9e6b; }
.tk__shares { margin-top: -10px; color: var(--muted); font-size: 13px; }

.tk__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tk__table tr { border-bottom: 1px solid var(--line); }
.tk__table th { padding: 10px 12px 10px 0; font-weight: 500; text-align: left; vertical-align: top; }
.tk__table th small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.45; }
.tk__table td { padding: 10px 0; font-weight: 600; text-align: right; white-space: nowrap; vertical-align: top; font-variant-numeric: tabular-nums; }
.tk__table tfoot tr { border-bottom: 0; }
.tk__table tfoot th, .tk__table tfoot td { padding-top: 14px; font-size: 17px; font-weight: 700; }

.tk__instock { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-md); background: var(--ok-bg); }
.tk__instock-title { color: var(--ok); font-weight: 700; }
.tk__instock li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.tk__instock li + li { border-top: 1px solid rgba(24, 121, 78, 0.18); }
.tk__instock a { min-width: 0; font-weight: 600; text-underline-offset: 3px; }
.tk__instock b { flex: none; font-variant-numeric: tabular-nums; }
.tk__more { color: var(--muted); font-size: 14px; }
.tk__more a { color: var(--graphite); font-weight: 600; text-underline-offset: 3px; }
.tk__fine { color: var(--muted); font-size: 12px; line-height: 1.55; }
.tk__fine b { font-weight: 600; }
.tk__fine a { text-underline-offset: 2px; }

.tk-faq { padding-bottom: 96px; }
.tk-faq > * { max-width: 860px; }
.tk-faq h2 { margin-bottom: 8px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
.tk-faq h3 { margin-top: 24px; font-size: 18px; line-height: 1.35; }
.tk-faq p { margin-top: 6px; color: #3c3f44; }

@media (min-width: 961px) and (min-height: 760px) { .tk__form { position: sticky; top: 100px; } } /* inputs stay in view next to a long breakdown */
@media (max-width: 960px) {
  .tk { grid-template-columns: minmax(0, 1fr); }
  .tk__peek { display: flex; } /* phones: the total right under the inputs, the breakdown is a screen below */
}
@media (max-width: 420px) {
  .tk__form, .tk__out { padding: 20px 16px; }
  .tk__pair { gap: 10px; }
  .tk__table th { padding-right: 8px; }
}

/* the lead dialog: the car on one line, the estimate under it (same rule as credit.css) */
.lead__item { white-space: pre-line; }

/* ---------- car page (src/turnkey.js turnkeyTeaser) ---------- */
.tk-link { margin-top: 12px; font-size: 14px; }
.tk-link a { display: inline-flex; align-items: center; gap: 6px; color: var(--graphite); font-weight: 600; text-underline-offset: 3px; }
.tk-link .i { width: 16px; height: 16px; }
.tk-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 16px; padding: 18px 20px; border-radius: var(--r-md); background: var(--mist); }
.tk-teaser__text { flex: 1 1 260px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.tk-teaser__text b { display: block; margin-bottom: 2px; color: var(--graphite); font-size: 16px; }
@media (max-width: 480px) { .tk-teaser .btn { flex: 1 1 100%; } }
