/* Smart Finder — первый экран главной — предварительная вёрстка.
   Цвета только из палитры сайта (--color-primary, --color-pink, --color-success,
   --color-warning, --color-dark, --color-gray). */

.smart-finder {
    --sf-border: #e6e3f5;
    --sf-soft: #f7f5ff;
    --sf-radius: 12px;
    padding: 40px 0;
    font-family: var(--font-family), sans-serif;
    color: var(--color-dark);
    line-height: 1.4;
}

.smart-finder__container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-offset);
    box-sizing: border-box;
}

.smart-finder *,
.smart-finder *::before,
.smart-finder *::after {
    box-sizing: border-box;
}

.smart-finder b { font-weight: 600; }

.smart-finder__icon {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--color-primary);
}

/* Верх: интро + мастер */
.smart-finder__top {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.smart-finder__title {
    margin: 0 0 14px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.smart-finder__title strong { color: var(--color-primary); font-weight: 700; }

.smart-finder__lead {
    margin: 0 0 28px;
    color: var(--color-gray);
    font-size: 16px;
}

.smart-finder__perks,
.smart-finder__why ul,
.smart-finder__plates-list,
.smart-finder__models,
.smart-finder__steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.smart-finder__perks li {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
}

.smart-finder__perks .smart-finder__icon { width: 28px; height: 28px; }

.smart-finder__perks b,
.smart-finder__why b {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.smart-finder__perks b { color: var(--color-primary); }

.smart-finder__perks span,
.smart-finder__why span {
    color: var(--color-gray);
    font-size: 13px;
}

.smart-finder__wizard {
    padding: 20px;
    border: 1px solid var(--sf-border);
    border-radius: 16px;
    background: var(--color-white);
    box-shadow: 0 10px 30px rgba(44, 41, 72, .06);
}

.smart-finder__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
    text-align: center;
}

.smart-finder__steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.smart-finder__steps li + li::before {
    content: "";
    position: absolute;
    top: 16px;
    right: calc(50% + 28px);
    width: calc(100% - 56px);
    border-top: 1px solid var(--sf-border);
}

.smart-finder__steps i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
    border: 1px solid var(--sf-border);
    border-radius: 50%;
    color: var(--color-gray);
    font-style: normal;
    font-weight: 600;
}

.smart-finder__steps li.is-active i,
.smart-finder__steps li.is-done i {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
}

.smart-finder__steps span {
    color: var(--color-gray);
    font-size: 12px;
}

.smart-finder__panels {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr .85fr;
    gap: 14px;
}

.smart-finder__panel,
.smart-finder__result {
    display: flex;
    flex-direction: column;
    padding: 14px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
}

/* Шаг 1 */
.smart-finder__kinds {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.smart-finder__kind {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-height: 96px;
    padding: 8px 4px;
    border: 1px solid var(--sf-border);
    border-radius: 10px;
    background: var(--color-white);
    color: var(--color-dark);
    font: inherit;
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.smart-finder__kind img {
    width: 100%;
    height: 48px;
    object-fit: contain;
}

.smart-finder__kind:hover,
.smart-finder__kind.is-active {
    border-color: var(--color-primary);
    background: var(--sf-soft);
}

.smart-finder__kind--other { justify-content: center; }
.smart-finder__kind--other .smart-finder__icon { width: 36px; height: 36px; color: var(--color-gray); }

.smart-finder__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
    color: var(--color-primary);
    font-size: 13px;
    text-decoration: none;
}

.smart-finder__more .smart-finder__icon { width: 16px; height: 16px; }

/* Поля */
.smart-finder__field {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--sf-border);
    border-radius: 8px;
}

.smart-finder__field:focus-within { border-color: var(--color-primary); }
.smart-finder__field .smart-finder__icon { width: 16px; height: 16px; color: var(--color-gray2); }

.smart-finder input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 13px;
    color: var(--color-dark);
}

.smart-finder__caption {
    margin: 16px 0 10px;
    font-size: 13px;
    font-weight: 600;
}

/* Шаг 2 */
.smart-finder__brands {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 8px;
}

.smart-finder__brand {
    height: 44px;
    border: 1px solid var(--sf-border);
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-dark);
    font: inherit;
    min-width: 0;
    padding: 0 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.smart-finder__brand:hover,
.smart-finder__brand.is-active {
    border-color: var(--color-primary);
    background: var(--sf-soft);
    color: var(--color-primary);
}

.smart-finder__outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    margin-top: auto;
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease;
}

.smart-finder__brands + .smart-finder__outline { margin-top: 16px; }
.smart-finder__outline .smart-finder__icon { width: 16px; height: 16px; color: currentColor; }
.smart-finder__outline:hover { background: var(--color-primary); color: var(--color-white); }

/* Шаг 3 */
.smart-finder__models {
    border: 1px solid var(--sf-border);
    border-radius: 8px;
    overflow: hidden;
}

.smart-finder__models li + li { border-top: 1px solid var(--sf-border); }

.smart-finder__models button,
.smart-finder__models a {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 6px 10px;
    border: 0;
    background: var(--color-white);
    color: var(--color-dark);
    font: inherit;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.smart-finder__models small { color: var(--color-gray2); }

.smart-finder__models button:hover,
.smart-finder__models a:hover,
.smart-finder__models .is-active {
    background: var(--sf-soft);
    color: var(--color-primary);
}

.smart-finder__models-empty {
    padding: 10px;
    color: var(--color-gray);
    font-size: 13px;
}

.smart-finder__hint {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--sf-border);
    font-size: 13px;
}

.smart-finder__models + .smart-finder__hint { margin-top: 14px; }

.smart-finder__hint b { display: block; margin-bottom: 6px; }

.smart-finder__hint a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    text-decoration: none;
}

.smart-finder__hint .smart-finder__icon { width: 16px; height: 16px; }

/* Итог */
.smart-finder__result {
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: var(--sf-soft);
    text-align: center;
}

.smart-finder__result img {
    width: 100px;
    height: auto;
}

.smart-finder__result p { margin: 0; font-size: 13px; }
.smart-finder__result p b { display: block; margin-bottom: 4px; font-size: 15px; }

.smart-finder__guarantee {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gray);
    font-size: 12px !important;
    text-align: left;
}

/* Кнопка — как .btn--primary сайта */
.smart-finder__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 45px;
    padding: 0 22px;
    border: 0;
    border-radius: 5px;
    background: var(--color-primary);
    color: var(--color-white);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow .25s ease, transform .25s ease;
}

.smart-finder__btn:hover {
    box-shadow: 0 6px 16px rgba(102, 77, 254, .35);
    transform: translateY(-1px);
}

.smart-finder__btn .smart-finder__icon { width: 18px; height: 18px; color: currentColor; }
.smart-finder__result .smart-finder__btn { width: 100%; }

/* Другие способы */
.smart-finder__divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0 20px;
    color: var(--color-dark);
    font-size: 15px;
    font-weight: 600;
}

.smart-finder__divider::before,
.smart-finder__divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--sf-border);
}

.smart-finder__ways {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.smart-finder__way {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    background: var(--color-white);
}

.smart-finder__way-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.smart-finder__tag {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.smart-finder__tag--success { background: rgba(46, 204, 113, .14); color: #1e9e55; }
.smart-finder__tag--warning { background: rgba(253, 207, 0, .18); color: #9a7d00; }
.smart-finder__tag--primary { background: var(--color-pink); color: var(--color-primary); }

.smart-finder__way-text {
    margin: 6px 0 14px 32px;
    color: var(--color-gray);
    font-size: 13px;
}

/* Фото и описание проблемы ещё не доделаны — честно говорим об этом. */
.smart-finder__way-note {
    margin: 8px 0 0 32px;
    color: #9a7d00;
    font-size: 12px;
    line-height: 1.4;
}

.smart-finder__way-note + .smart-finder__way-text { margin-top: 4px; }

.smart-finder__inline {
    display: flex;
    gap: 8px;
}

.smart-finder__inline input {
    flex: 1;
    height: 45px;
    padding: 0 14px;
    border: 1px solid var(--sf-border);
    border-radius: 5px;
}

.smart-finder__inline input:focus { border-color: var(--color-primary); }

.smart-finder__examples {
    margin: 10px 0 0;
    color: var(--color-gray);
    font-size: 12px;
}

.smart-finder__drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px;
    border: 1px dashed var(--color-primary);
    border-radius: 8px;
    background: var(--sf-soft);
    color: var(--color-dark);
    text-decoration: none;
}

.smart-finder__drop span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.smart-finder__drop small { color: var(--color-gray); font-size: 12px; }

/* Где найти модель */
.smart-finder__plates {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin-top: 28px;
    padding: 24px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    background: linear-gradient(90deg, var(--sf-soft), var(--color-pink));
}

.smart-finder__plates h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.smart-finder__plates-text p { margin: 0 0 20px; font-size: 14px; }

.smart-finder__plates-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    text-align: center;
}

.smart-finder__plates-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.smart-finder__plates-list img {
    width: 100%;
    height: 96px;
    margin-bottom: 8px;
    object-fit: contain;
}

.smart-finder__plates-list b { font-size: 13px; }
.smart-finder__plates-list span { color: var(--color-gray); font-size: 12px; }

/* Почему SP-HUB */
.smart-finder__why {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin-top: 20px;
    padding: 22px 24px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
}

.smart-finder__why h3 { margin: 0; font-size: 18px; font-weight: 700; }

.smart-finder__why ul {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.smart-finder__why li {
    display: flex;
    gap: 10px;
    padding: 0 14px;
}

.smart-finder__why li + li { border-left: 1px solid var(--sf-border); }
.smart-finder__why .smart-finder__icon { width: 30px; height: 30px; }
.smart-finder__why b { font-size: 13px; }
.smart-finder__why span { font-size: 12px; }

/* Заголовки пунктов — ссылки на страницы каталога, доставки, гарантии. */
.smart-finder__why b a { color: inherit; text-decoration: none; transition: color .2s ease; }
.smart-finder__why b a:hover,
.smart-finder__why b a:focus-visible { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }

.smart-finder__why .smart-finder__why-carriers { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
/* Размеры — из width/height в разметке: у логотипов разные пропорции. */
.smart-finder__why-carriers img { display: block; max-width: none; }

.smart-finder__why-request {
    display: block;
    margin-top: 8px;
    padding: 5px 12px;
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    background: var(--color-white);
    color: var(--color-primary);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.smart-finder__why-request:hover,
.smart-finder__why-request:focus-visible { background: var(--color-primary); color: var(--color-white); }

/* Адаптив */
@media (max-width: 1280px) {
    .smart-finder__top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .smart-finder__perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .smart-finder__perks li { margin: 0; }
    .smart-finder__why ul { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
    .smart-finder__why li:nth-child(3n + 1) { border-left: 0; }
}

@media (max-width: 1024px) {
    .smart-finder__panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .smart-finder__ways { grid-template-columns: minmax(0, 1fr); }
    .smart-finder__plates,
    .smart-finder__why { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
    .smart-finder { padding: 28px 0; }
    .smart-finder__title { font-size: 24px; }
    .smart-finder__perks { grid-template-columns: minmax(0, 1fr); }
    .smart-finder__wizard { padding: 14px; }
    .smart-finder__steps span { display: none; }
    .smart-finder__panels { grid-template-columns: minmax(0, 1fr); }
    .smart-finder__plates-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .smart-finder__why ul { grid-template-columns: minmax(0, 1fr); }
    .smart-finder__why li { padding: 0; }
    .smart-finder__why li + li { border-left: 0; }
}

@media (max-width: 480px) {
    .smart-finder__inline { flex-direction: column; }
    .smart-finder__way-text,
    .smart-finder__way-note { margin-left: 0; }
}

/* ---------- Подключение к API (этап 3) ---------- */

/* Атрибут hidden должен побеждать display у плиток и кнопок. */
.smart-finder [hidden] { display: none !important; }

button.smart-finder__more,
button.smart-finder__outline {
    width: 100%;
    border-style: solid;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

button.smart-finder__more {
    width: auto;
    align-self: center;
    border: 0;
    font-size: 13px;
}

button.smart-finder__outline {
    font-size: 14px;
    font-weight: 600;
}

.smart-finder__kinds.is-open .smart-finder__kind--other .smart-finder__icon { transform: rotate(90deg); }

.smart-finder__brand img {
    display: block;
    max-width: 100%;
    max-height: 22px;
    margin: 0 auto;
    object-fit: contain;
}

.smart-finder__brands.is-scroll {
    max-height: 208px;
    overflow-y: auto;
    padding-right: 2px;
}

.smart-finder__brands .smart-finder__models-empty { grid-column: 1 / -1; padding: 4px 0; }

.smart-finder__skip {
    align-self: flex-start;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-primary);
    font: inherit;
    font-size: 13px;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
    cursor: pointer;
}

.smart-finder__skip.is-active { font-weight: 600; text-decoration: none; }

.smart-finder__brands.is-loading,
.smart-finder__models.is-loading {
    opacity: .55;
    transition: opacity .2s ease;
}

.smart-finder__models span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smart-finder__models small { flex: none; margin-left: 8px; }
.smart-finder__models-empty a { color: var(--color-primary); }

.smart-finder__probable {
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-warning);
    color: var(--color-white);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    vertical-align: 1px;
}

.smart-finder__btn.is-disabled {
    opacity: .5;
    cursor: default;
}

.smart-finder__guarantee span { display: block; }

/* Подсказки поиска по артикулу */
.smart-finder__way { position: relative; }

.smart-finder__suggest {
    position: absolute;
    z-index: 20;
    left: 16px;
    right: 16px;
    margin: -8px 0 0;
    padding: 4px 0;
    list-style: none;
    border: 1px solid var(--sf-border);
    border-radius: 8px;
    background: var(--color-white);
    box-shadow: 0 12px 30px rgba(44, 41, 72, .12);
}

.smart-finder__suggest a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    color: var(--color-dark);
    font-size: 13px;
    text-decoration: none;
}

.smart-finder__suggest a:hover { background: var(--sf-soft); color: var(--color-primary); }
.smart-finder__suggest span { min-width: 0; }
.smart-finder__suggest small { display: block; margin-top: 2px; color: var(--color-gray2); font-size: 12px; }
.smart-finder__suggest b { flex: none; white-space: nowrap; }

.smart-finder__suggest-empty {
    padding: 8px 12px;
    color: var(--color-gray);
    font-size: 13px;
}

/* Все виды техники — внутри панели с прокруткой, чтобы мастер не вытягивался. */
.smart-finder__kinds.is-open {
    max-height: 432px;
    overflow-y: auto;
    padding-right: 2px;
}

.smart-finder__skip + .smart-finder__outline { margin-top: 14px; }

.smart-finder__models .smart-finder__models-empty a {
    display: inline;
    width: auto;
    padding: 0;
    background: none;
    color: var(--color-primary);
}

.smart-finder__examples button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
    cursor: pointer;
}

.smart-finder__examples button:hover { color: var(--color-primary); }

/* Выбор с клавиатуры: стрелки в полях бренда и модели. */
.smart-finder__brand.is-focus,
.smart-finder__models a.is-focus {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}

.smart-finder input:disabled { cursor: not-allowed; opacity: .5; }
.smart-finder__field:has(input:disabled) { background: var(--sf-soft); }

/* Пока список обновляется, по старым пунктам не кликнуть. */
.smart-finder__brands.is-loading,
.smart-finder__models.is-loading { pointer-events: none; }

.smart-finder__suggest a.is-focus { background: var(--sf-soft); color: var(--color-primary); }

.smart-finder__drop.is-over { border-color: var(--color-primary); background: var(--sf-soft); }

/* ---------- ТЗ Smart Finder: состояния, телефон, подсказка (17.09.2026) ---------- */

/* Заголовки шагов — кнопки (на телефоне по ним возвращаются к шагу). */
.smart-finder__steps button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: default;
}

.smart-finder__steps button:disabled { opacity: 1; }

/* Видимый фокус (ТЗ §21). */
.smart-finder button:focus-visible,
.smart-finder a:focus-visible,
.smart-finder input:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Контраст метки «?» у вероятной совместимости — тёмный текст на жёлтом. */
.smart-finder__probable { color: var(--color-dark); }

/* Скелетоны загрузки. */
.smart-finder__skeleton {
    display: block;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0eef8 25%, #e4e0f5 50%, #f0eef8 75%);
    background-size: 200% 100%;
    animation: smart-finder-shimmer 1.2s linear infinite;
}

.smart-finder__skeleton--brand { height: 44px; }
.smart-finder__skeleton--model { height: 18px; margin: 9px 10px; }
.smart-finder__models .smart-finder__skeleton--model + .smart-finder__skeleton--model { border-top: 0; }

@keyframes smart-finder-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .smart-finder__skeleton { animation: none; }
}

/* Ошибка с «Повторить» и альтернативы при пустом результате. */
.smart-finder__retry,
.smart-finder__alternatives button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-primary);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.smart-finder__alternatives {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
}

.smart-finder__models .smart-finder__alternatives a {
    display: inline;
    width: auto;
    padding: 0;
    background: none;
    color: var(--color-primary);
    text-decoration: underline;
}

/* «Где найти модель?» — модальное окно. */
.smart-finder__dialog {
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: 16px;
    color: var(--color-dark);
    box-shadow: 0 20px 60px rgba(44, 41, 72, .25);
}

.smart-finder__dialog::backdrop { background: rgba(44, 41, 72, .45); }

.smart-finder__dialog-body {
    position: relative;
    padding: 28px 24px 24px;
}

.smart-finder__dialog h3 { margin: 0 44px 8px 0; font-size: 20px; }
.smart-finder__dialog p { margin: 0 0 16px; color: var(--color-gray); font-size: 14px; }
.smart-finder__dialog .smart-finder__plates-list { margin-bottom: 16px; }
.smart-finder__dialog .is-current { border-radius: 12px; outline: 2px solid var(--color-primary); background: var(--sf-soft); }
.smart-finder__dialog-more a { color: var(--color-primary); }

.smart-finder__dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--sf-soft);
    color: var(--color-dark);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

/* Телефон (ТЗ §19): один шаг на экране, крупные цели нажатия, кнопка
   «Показать запчасти» прилипает к низу после выбора модели. */
@media (max-width: 767px) {
    .smart-finder__steps button { cursor: pointer; }
    .smart-finder__steps button:disabled { cursor: default; }
    .smart-finder__steps li[data-sf-step] b { font-size: 13px; }

    .smart-finder__panels > .smart-finder__panel { display: none; }
    .smart-finder__panels[data-sf-view="1"] > [data-sf-panel="1"],
    .smart-finder__panels[data-sf-view="2"] > [data-sf-panel="2"],
    .smart-finder__panels[data-sf-view="3"] > [data-sf-panel="3"] { display: flex; }

    .smart-finder__kind { min-height: 104px; }
    .smart-finder__brand { min-height: 44px; }
    .smart-finder__models button,
    .smart-finder__models a { min-height: 44px; align-items: center; }
    .smart-finder__skip,
    .smart-finder__more,
    .smart-finder__hint a { min-height: 44px; display: inline-flex; align-items: center; }
    .smart-finder__field { height: 44px; }
    .smart-finder input { font-size: 16px; } /* iOS не увеличивает страницу при фокусе */

    .smart-finder__result { padding: 12px; }
    .smart-finder__result img,
    .smart-finder__result p { display: none; }
    .smart-finder.is-ready .smart-finder__result {
        position: sticky;
        bottom: 72px; /* над мобильной панелью навигации сайта */
        z-index: 30;
        box-shadow: 0 -6px 20px rgba(44, 41, 72, .12);
    }
    .smart-finder.is-ready .smart-finder__result p[data-sf-result-text] { display: block; }
    .smart-finder__result .smart-finder__btn { width: 100%; min-height: 48px; }

    .smart-finder__dialog .smart-finder__plates-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
