/* Заявка менеджеру (/podbor/): подбор, проверка совместимости, запрос цены, установка. Токены — в storefront.css. */

.lead-page main { padding-top: 28px; }
.lead-page main h1 { margin: 0; }
.lf-head__lead { margin: 14px 0 0 calc(.95em + 14px); max-width: 52ch; font-size: 18px; line-height: 1.45; color: var(--ink-2); }

.lf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 28px; align-items: start; margin-top: 36px; }
.lf-form { display: grid; gap: 18px; min-width: 0; }

/* ---------- что нужно ---------- */
.lf-kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.lf-kind { position: relative; display: grid; align-content: start; gap: 4px; margin: 0; padding: 16px 16px 18px; border-radius: 18px; background: #fff;
  box-shadow: 0 0 0 1px var(--line-soft), var(--shadow); cursor: pointer; transition: box-shadow .25s, transform .3s var(--ease-out), background .25s; }
.lf-kind:hover { transform: translateY(-2px); }
.lf-kind input { position: absolute; opacity: 0; pointer-events: none; }
.lf-kind__ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2);
  transition: background .25s, color .25s, box-shadow .25s; }
.lf-kind__ico svg { width: 22px; height: 22px; }
.lf-kind b { font-size: 15px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.lf-kind small { font-size: 13px; line-height: 1.35; color: var(--ink-3); }
.lf-kind:has(input:checked) { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--lime-2), var(--shadow); }
.lf-kind:has(input:checked) .lf-kind__ico { background: var(--lime-grad); color: var(--lime-ink); box-shadow: var(--lime-glow); }
.lf-kind:has(input:focus-visible) { outline: 3px solid rgba(108, 196, 23, .55); outline-offset: 3px; }

/* ---------- товар ---------- */
.lf-product { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 12px 20px 12px 12px; border-radius: 20px;
  background: #fff; box-shadow: var(--shadow); }
.lf-product__img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: var(--surface-2); }
.lf-product__img img { width: 100%; height: 100%; object-fit: cover; }
.lf-product__text { display: grid; gap: 3px; min-width: 0; }
.lf-product__text small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.lf-product__text a { color: var(--ink); }
.lf-product__text b { font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.lf-product__price { margin-top: 2px; font-size: 16px; font-weight: 600; }
.lf-product__fits { max-width: 240px; padding-left: 18px; border-left: 1px solid var(--line-soft); }
.lf-product__fits small { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--accent); }
.lf-product__fits ul { margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.45; color: var(--ink-2); }

/* ---------- секции формы ---------- */
.lf-sec { padding: 26px 28px 28px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.lead-page main .lf-sec h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font: italic 800 22px/1.15 var(--font-accent); letter-spacing: -.005em; }
.lf-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--lime-grad); color: var(--lime-ink);
  font: italic 800 16px/1 var(--font-accent); box-shadow: var(--lime-glow); }
.lf-field { display: grid; gap: 0; min-width: 0; }
.lf-field + .lf-field { margin-top: 16px; }
.lf-field[hidden] { display: none; }
.lead-page .lf-field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.lead-page .lf-form input:not([type=radio]):not([type=file]), .lead-page .lf-form select, .lead-page .lf-form textarea { font-size: 16px; border-radius: 12px; }
.lead-page .lf-form textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.lead-page .lf-form :is(input, select, textarea):focus { border-color: var(--lime-2); box-shadow: 0 0 0 4px rgba(108, 196, 23, .18); }
.lf-field--alt { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.lead-page .lf-field--alt label { font-weight: 500; color: var(--ink-2); }
.lf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lf-grid .lf-field + .lf-field { margin-top: 0; }
.lf-sec .errorlist { margin: 6px 0 0; }
.lf-field:has(.errorlist) :is(input, select, textarea) { border-color: var(--bad); background-color: var(--bad-soft); }

/* совместимость товара с выбранной машиной */
.lf-compat { display: grid; gap: 2px; margin: -4px 0 18px; padding: 12px 16px 12px 46px; border-radius: 14px; background: var(--surface-2) no-repeat 14px 14px / 20px;
  font-size: 14px; color: var(--ink-2); }
.lf-compat b { font-size: 15px; color: var(--ink); }
.lf-compat.is-confirmed, .lf-compat.is-universal { background-color: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f9212' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.7 2.7L16 9.8'/%3E%3C/svg%3E"); }
.lf-compat.is-needs_check, .lf-compat.is-unknown { background-color: #fff6e5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b26a00' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E"); }
.lf-compat.is-not_fit { background-color: var(--bad-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4001a' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9 9l6 6M15 9l-6 6'/%3E%3C/svg%3E"); }

/* фото */
.lf-drop { position: relative; display: flex; align-items: center; gap: 16px; margin: 0; padding: 18px 20px; border: 1.5px dashed var(--line); border-radius: 16px;
  background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; }
.lf-drop:hover, .lf-drop:focus-within, .lf-drop.is-filled { border-color: var(--lime-2); background: var(--accent-soft); }
.lf-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.lf-drop svg { flex: none; width: 34px; height: 34px; color: var(--lime-2); }
.lf-drop span { display: grid; gap: 2px; }
.lf-drop b { font-size: 15px; font-weight: 600; }
.lf-drop small { font-size: 13px; font-weight: 400; color: var(--ink-3); }

.lf-submit { display: grid; gap: 12px; }
.lf-submit .btn { width: 100%; height: 58px; font-size: 18px; font-weight: 700; border-radius: 16px; gap: 14px; }
.lf-submit .btn::after { content: ""; width: 22px; height: 22px; background: currentColor; transition: transform .3s var(--ease-out);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.lf-submit .btn:hover::after { transform: translateX(4px); }
.lf-submit p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }

/* ---------- справа ---------- */
.lf-aside { position: sticky; top: 100px; display: grid; gap: 14px; }
.lf-how { padding: 26px 26px 22px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.lead-page main .lf-how h2 { margin: 0 0 18px; font: italic 800 22px/1.15 var(--font-accent); }
.lf-how ol { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: how; }
.lf-how li { position: relative; display: grid; gap: 2px; padding-left: 46px; counter-increment: how; }
.lf-how li::before { content: counter(how); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--surface-2); font: italic 800 15px/1 var(--font-accent); color: var(--ink); }
.lf-how li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 38px; bottom: -12px; width: 2px; border-radius: 2px; background: var(--surface-3); }
.lf-how b { font-size: 15px; font-weight: 700; }
.lf-how span { font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.lf-promise { display: flex; gap: 10px; margin: 20px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); font-size: 14px; line-height: 1.4; color: var(--ink); }
.lf-promise svg { flex: none; width: 20px; height: 20px; color: var(--accent); }
.lf-call { display: grid; gap: 2px; padding: 20px 26px; border-radius: 22px; background: var(--ink); color: #fff; }
.lf-call span { font-size: 13px; color: rgba(255, 255, 255, .65); }
.lf-call a { font: italic 800 24px/1.2 var(--font-accent); color: #fff; letter-spacing: .005em; }
.lf-call a:hover { color: var(--lime); text-decoration: none; }
.lf-call small { font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ---------- заявка принята ---------- */
.lf-done { max-width: 640px; margin: 24px auto 0; padding: 44px 40px 40px; border-radius: 28px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.lf-done__ico { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 22px; background: var(--lime-grad); color: var(--lime-ink);
  box-shadow: var(--lime-glow); }
.lf-done__ico svg { width: 36px; height: 36px; }
.lead-page main .lf-done h1 { display: block; margin: 0 0 12px; font-size: clamp(28px, 3vw, 40px); }
.lf-done p { margin: 0 auto; max-width: 44ch; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.lf-done__meta { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.lf-done__meta li { padding: 7px 14px; border-radius: 999px; background: var(--surface-2); font-size: 14px; color: var(--ink-2); }
.lf-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .lf-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .lf { grid-template-columns: minmax(0, 1fr); }
  .lf-aside { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lf-product { grid-template-columns: 96px minmax(0, 1fr); }
  .lf-product__fits { grid-column: 1 / -1; max-width: none; padding: 12px 0 2px; border-left: 0; border-top: 1px solid var(--line-soft); }
}
@media (max-width: 600px) {
  .lead-page main { padding-top: 16px; }
  .lf-head__lead { margin-left: 0; font-size: 16px; }
  .lf { margin-top: 24px; }
  .lf-kinds { gap: 8px; }
  .lf-kind { padding: 12px 12px 14px; border-radius: 16px; }
  .lf-kind__ico { width: 34px; height: 34px; margin-bottom: 4px; border-radius: 10px; }
  .lf-kind__ico svg { width: 19px; height: 19px; }
  .lf-kind b { font-size: 14px; }
  .lf-kind small { font-size: 12px; }
  .lf-product { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 10px 14px 10px 10px; }
  .lf-product__text b { font-size: 15px; }
  .lf-sec { padding: 20px 16px 22px; border-radius: 20px; }
  .lead-page main .lf-sec h2 { font-size: 20px; margin-bottom: 16px; }
  .lf-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lf-drop { padding: 14px 16px; }
  .lf-aside { grid-template-columns: minmax(0, 1fr); }
  .lf-done { padding: 32px 20px 28px; }
  .lf-done__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .lf-kind, .lf-submit .btn::after { transition: none; } }
.lf-compat[hidden] { display: none; }
