/* Страница модели: сводка над выдачей, «Узнать наличие», подписка и мессенджеры, квиз, окна предложения.
   Подключается в index.php на странице модели после design-2026.css и catalog-ui-2026.css. */

/* ---------- Сводка по модели ---------- */
.n26-root .n26-msum{display:grid;grid-template-columns:1fr minmax(240px,320px);gap:14px 32px;align-items:center;margin:0 0 20px;padding:16px 20px;border:1px solid var(--line);border-left:4px solid var(--brand);border-radius:8px;background:var(--wash)}
.n26-root .n26-msum-stats{display:flex;flex-wrap:wrap;gap:12px 32px;margin:0}
.n26-root .n26-msum-stats>div{min-width:0}
.n26-root .n26-msum-stats dt{margin:0 0 3px;font-size:12px;font-weight:500;color:var(--muted)}
.n26-root .n26-msum-stats dd{margin:0;font-size:17px;font-weight:600;line-height:1.3;color:var(--ink);font-variant-numeric:tabular-nums}
.n26-root .n26-msum-stats dd small{display:block;margin-top:2px;font-size:12px;font-weight:500;color:var(--teal-ink,#00627c)}
.n26-root .n26-msum-city{display:grid;gap:5px;min-width:0}
.n26-root .n26-msum-city label{font-size:12px;font-weight:500;color:var(--muted)}
.n26-root .n26-msum-city select{width:100%;height:44px;padding:0 12px;border:1px solid var(--line);border-radius:6px;background:#fff}
.n26-root .n26-msum-city .select2-container .select2-selection--single{height:44px;border-color:var(--line);border-radius:6px}
.n26-root .n26-msum-city .select2-container .select2-selection__rendered{line-height:42px;padding-left:12px;font-weight:600}
.n26-root .n26-msum-city .select2-container .select2-selection__arrow{height:42px}
.n26-root .n26-msum-city p{margin:0;font-size:12px;line-height:1.45;color:var(--muted)}

/* ---------- Кнопка «Узнать наличие» в карточке ---------- */
.n26-root .n26-car-actions .n26-car-quick{flex:1;min-width:0;padding-inline:10px;font-size:13px;white-space:nowrap}
.n26-root .n26-car-actions .n26-car-quick i{display:none}
.n26-root .n26-car-actions>a{flex:1;min-width:0;font-size:13px;padding-inline:10px;white-space:nowrap}

/* ---------- Подписка и мессенджеры ---------- */
.n26-root .n26-capture{display:grid;grid-template-columns:1.25fr 1fr;gap:24px;margin-top:28px;padding:24px;border-radius:10px;background:linear-gradient(98deg,#e8f5f8 0 60%,#f3f6f7 60%)}
.n26-root .n26-capture h3{margin:0 0 6px;font-size:19px;line-height:1.3}
.n26-root .n26-capture p{margin:0;font-size:14px;color:var(--muted)}
.n26-root .n26-capture-head{display:flex;gap:14px;margin-bottom:14px}
.n26-root .n26-capture-head>i{flex:none;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:var(--brand);color:#fff;font-size:18px}
.n26-root .n26-capture-form .personal-data-consents{margin-top:10px}
.n26-root .n26-capture-msg{display:flex;flex-direction:column;justify-content:center;padding-left:24px;border-left:1px solid var(--line)}
.n26-root .n26-capture-msg-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.n26-root .n26-msg-btn{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:10px 18px;border-radius:6px;background:#fff;border:1px solid var(--line);color:var(--ink)!important;font-weight:600;font-size:14px;text-decoration:none;transition:border-color .15s,transform .15s}
.n26-root .n26-msg-btn:hover{border-color:var(--brand);transform:translateY(-1px)}
.n26-root .n26-msg-btn img{width:24px;height:24px}
.n26-root .n26-capture.is-empty{margin-top:24px}

/* ---------- Квиз ---------- */
.n26-root .n26-quiz{display:grid;gap:12px}
.n26-root .n26-quiz-progress{height:4px;border-radius:2px;background:var(--line);overflow:hidden}
.n26-root .n26-quiz-progress span{display:block;width:25%;height:100%;background:var(--brand);transition:width .25s}
.n26-root .n26-quiz-count{margin:-4px 0 0;font-size:12px;color:var(--muted)}
.n26-root .n26-quiz-step{display:grid;gap:12px;margin:0;padding:0;border:0;min-width:0}
.n26-root .n26-quiz-step[hidden]{display:none}
.n26-root .n26-quiz-step legend{float:none;width:auto;margin:0 0 2px;padding:0;font-size:17px;font-weight:600;line-height:1.35;color:var(--ink)}
.n26-root .n26-quiz-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.n26-root .n26-quiz-options.is-chips{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}
.n26-root .n26-quiz-options label{position:relative;margin:0;cursor:pointer}
.n26-root .n26-quiz-options input{position:absolute;opacity:0;pointer-events:none}
.n26-root .n26-quiz-options span{display:flex;align-items:center;min-height:46px;padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:14px;font-weight:500;line-height:1.3;transition:border-color .15s,background .15s}
.n26-root .n26-quiz-options label:hover span{border-color:var(--brand)}
.n26-root .n26-quiz-options input:checked+span{border-color:var(--brand);background:#e8f5f8;color:var(--teal-ink,#00627c);font-weight:600}
.n26-root .n26-quiz-options input:focus-visible+span{outline:3px solid var(--brand);outline-offset:2px}
.n26-root .n26-quiz-nav{display:flex;align-items:center;justify-content:space-between;gap:12px}
.n26-root .n26-quiz-nav .n26-btn{margin-left:auto}
.n26-root .n26-quiz-back{display:inline-flex;align-items:center;gap:6px;padding:0;border:0;background:none;color:var(--muted);font-size:14px;font-weight:600;cursor:pointer}
.n26-root .n26-quiz-back:hover{color:var(--brand)}
.n26-root .n26-quiz-back[hidden],.n26-root .n26-quiz-nav .n26-btn[hidden]{display:none}

/* ---------- Окна ---------- */
.n26-root .n26-quick-car{margin:0 0 14px;padding:10px 12px;border-radius:6px;background:var(--wash);font-weight:600;font-size:14px;color:var(--ink)}
.n26-root .n26-quick-car:empty{display:none}
.n26-root .n26-quick-modal .n26-lead-form,.n26-root .n26-offer-modal .n26-lead-form{display:grid;gap:12px}
.n26-root .n26-quick-note{margin:14px 0 0;font-size:12px;color:var(--muted)}
.n26-root .n26-offer-channel{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;border:0}
.n26-root .n26-offer-channel legend{float:none;width:100%;margin:0 0 6px;font-size:12px;font-weight:500;color:var(--muted)}
.n26-root .n26-offer-channel label{position:relative;margin:0;cursor:pointer}
.n26-root .n26-offer-channel input{position:absolute;opacity:0;pointer-events:none}
.n26-root .n26-offer-channel span{display:inline-flex;align-items:center;min-height:40px;padding:8px 16px;border:1px solid var(--line);border-radius:20px;font-size:14px;font-weight:500}
.n26-root .n26-offer-channel input:checked+span{border-color:var(--brand);background:var(--brand);color:#fff}
.n26-root .n26-offer-channel input:focus-visible+span{outline:3px solid var(--brand);outline-offset:2px}
.n26-root .n26-offer-modal .modal-content{border-top:6px solid var(--orange)}

/* ---------- Адаптив ---------- */
@media(max-width:1100px){
 .n26-root .n26-msum{grid-template-columns:1fr}
 .n26-root .n26-capture{grid-template-columns:1fr;background:#e8f5f8}
 .n26-root .n26-capture-msg{padding:20px 0 0;border-left:0;border-top:1px solid var(--line)}
}
@media(max-width:767px){
 .n26-root .n26-msum{padding:14px;gap:14px}
 .n26-root .n26-msum-stats{gap:10px 20px}
 .n26-root .n26-msum-stats dd{font-size:15px}
 .n26-root .n26-car-actions .n26-car-quick{flex:0 0 38px;padding:0}
 .n26-root .n26-car-actions .n26-car-quick span{display:none}
 .n26-root .n26-car-actions .n26-car-quick i{display:inline}
 .n26-root .n26-car-actions>a{font-size:10px;padding-inline:7px}
 .n26-root .n26-capture{padding:18px;margin-top:22px}
 .n26-root .n26-capture h3{font-size:17px}
 .n26-root .n26-capture .n26-form-row{flex-direction:column;align-items:stretch}
 .n26-root .n26-quiz-step legend{font-size:16px}
 .n26-root .n26-msg-btn{flex:1;justify-content:center}
}
