/* spot_create.css — волна 6a: мастер подачи объявления (route ad_create; доски Create, CreateCategory, CreateSubcat, CreateModel,
   CreateSpecs, CreateDetails, CreatePublish*, CreateStates, CreateTires, CreateServices, CityPick, DesktopCreate).
   Корень страницы — .spot-edit.spot-create: поля, фото, переключатели и характеристики оформлены общими правилами spot_edit.css
   (та же разметка Filters::load_filters_ad и те же поля), здесь — только мастер: шаги, строка «Изменить», категории, строки-итоги,
   экраны шагов и панели кнопок. Узлы формы не переставляются (create.js ищет их по индексу), видимость шагов по-прежнему задаёт
   create.js через style. Цвета и размеры — токены spot_ui.css; мобильная вёрстка первична, цели касания от 44px. */

.spot-create-page {
    background: var(--spot-bg);
}

/* ---------- телефон: своя верхняя полоса вместо общей шапки ---------- */
@media (max-width: 991.98px) {
    .spot-create-page .header-wow-mobile {
        display: none !important;
    }
}

.spot-create .spot-create-mh {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    height: calc(56px + env(safe-area-inset-top, 0px));
    box-sizing: border-box;
    margin: 0;
    padding: env(safe-area-inset-top, 0px) 8px 0;
    border-bottom: 1px solid var(--spot-line);
    background: var(--spot-surface);
}

.spot-create .spot-create-mh-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--spot-ink);
}

.spot-create .spot-create-mh-back:active {
    background: var(--spot-field);
}

.spot-create .spot-create-mh-title {
    overflow: hidden;
    font-size: 17px;
    line-height: 22px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.spot-create .spot-create-h1 {
    display: none;
}

/* ---------- шаги ---------- */
.spot-create .spot-create-progress {
    padding: var(--spot-space-2) var(--spot-gutter) var(--spot-space-3);
    background: var(--spot-surface);
}

.spot-create .spot-create-steps {
    display: grid;
    grid-template-columns: repeat(var(--spot-steps, 5), minmax(0, 1fr));
    gap: var(--spot-space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.spot-create .spot-create-steps li {
    height: 4px;
    border-radius: 2px;
    background: var(--spot-line);
}

.spot-create .spot-create-steps li.is-done,
.spot-create .spot-create-steps li.is-cur {
    background: var(--spot-red);
}

.spot-create .spot-create-steps li > span {
    display: none;
}

.spot-create .spot-create-stepnote {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 18px;
    color: var(--spot-ink-2);
}

.spot-create .spot-create-stepnote:empty {
    display: none;
}

/* ---------- выбранное + «Изменить» ---------- */
.spot-create .spot-create-ctx {
    margin: 0 0 8px;
    padding: 0 var(--spot-gutter);
    border-top: 1px solid var(--spot-line);
    background: var(--spot-surface);
}

.spot-create .spot-create-ctx[hidden] {
    display: none;
}

.spot-create .spot-create-ctx-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
}

.spot-create .spot-create-ctx-row + .spot-create-ctx-row {
    border-top: 1px solid var(--spot-line);
}

.spot-create .spot-create-ctx-img {
    flex: 0 0 auto;
    width: 36px;
    height: 28px;
    object-fit: contain;
}

.spot-create .spot-create-ctx-label {
    flex: 0 0 auto;
    width: 120px;
    font-size: 14px;
    line-height: 18px;
    color: var(--spot-mut);
}

.spot-create .spot-create-ctx-value {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.spot-create--rows .spot-create-ctx-value {
    font-size: 14px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.spot-create .spot-create-ctx-edit {
    flex: 0 0 auto;
    min-height: 44px;
    margin: 0 0 0 -4px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--spot-red-fg);
    font-family: var(--spot-font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.spot-create .spot-create-ctx-edit:focus-visible {
    outline: 2px solid var(--spot-focus);
    outline-offset: 2px;
}

/* гость на шаге входа: карточка объявления (доска CreatePublish) */
.spot-create .spot-create-ctx-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.spot-create .spot-create-ctx-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 54px;
    border-radius: var(--spot-radius-s);
    object-fit: cover;
    background: var(--spot-field);
}

.spot-create .spot-create-ctx-card-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    font-size: 13px;
    line-height: 18px;
    color: var(--spot-mut);
}

.spot-create .spot-create-ctx-card-text b {
    overflow: hidden;
    font-size: 15px;
    line-height: 20px;
    color: var(--spot-ink);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.spot-create .spot-create-ctx-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--spot-ink);
}

/* ---------- нет сети (доска CreateStates) ---------- */
.spot-create .spot-create-offline {
    position: sticky;
    top: calc(56px + env(safe-area-inset-top, 0px));
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: var(--spot-space-3) var(--spot-gutter);
    background: var(--spot-amber-soft);
    color: var(--spot-ink);
}

.spot-create .spot-create-offline[hidden] {
    display: none;
}

.spot-create .spot-create-offline-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    font-size: 13px;
    line-height: 18px;
}

.spot-create .spot-create-offline-text b {
    font-size: 15px;
}

.spot-create .spot-create-offline-retry {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 var(--spot-gutter);
    border: 1px solid var(--spot-field-border);
    border-radius: var(--spot-radius);
    background: var(--spot-surface);
    color: var(--spot-ink);
    font-family: var(--spot-font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.spot-create .spot-create-shake {
    animation: spot-create-shake .3s;
}

@keyframes spot-create-shake {
    25% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
}

/* ---------- форма: общие правки легаси-стилей ---------- */
.spot-create .spot-create-form {
    margin: 0;
}

.spot-create .filter_box {
    padding: 0;
    box-shadow: none;
    background: none;
}

.spot-create .spot-create-sec-title,
.spot-create .ads-create-subcategory > .ads-create-subtitle {
    display: flex;
    align-items: center;
    gap: var(--spot-space-2);
    margin: 0 0 var(--spot-space-4) !important;
    font-size: 24px;
    line-height: 30px;
    font-weight: 800;
    color: var(--spot-ink);
}

/* ---------- шаг 1: категории (доска CreateCategory) ---------- */
.spot-create .ads-create-main-category {
    padding: var(--spot-space-5) var(--spot-gutter);
    background: var(--spot-surface);
}

.spot-create .spot-create-cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.spot-create .spot-create-cats > [class*="col"] {
    width: auto;
    max-width: none;
    padding: 0;
}

.spot-create .ads-create-main-category-list-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spot-space-3);
    height: 100%;
    min-height: 136px;
    margin: 0;
    padding: var(--spot-space-4) var(--spot-space-2);
    border: 1px solid var(--spot-line);
    border-radius: var(--spot-radius-l);
    background: var(--spot-surface);
    box-shadow: none;
    cursor: pointer;
}

.spot-create .ads-create-main-category-list-item:active {
    background: var(--spot-field);
}

.spot-create .ads-create-main-category-list-item:focus-visible {
    outline: 2px solid var(--spot-focus);
    outline-offset: 2px;
}

.spot-create .ads-create-main-category-list-item.ads-create-main-category-change {
    border-color: var(--spot-ink);
}

.spot-create .ads-create-main-category-icon,
.spot-create .ads-create-main-category-name {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

.spot-create .ads-create-main-category-icon img {
    display: block;
    width: auto;
    max-width: 112px;
    height: 72px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    object-fit: contain;
}

.spot-create .ads-create-main-category-name {
    font-size: 15px;
    line-height: 19px;
    font-weight: 700;
    color: var(--spot-ink);
    text-align: center;
}

/* ---------- подкатегории (доски CreateSubcat, CreateServices): список строк ---------- */
.spot-create .ads-create-subcategory {
    padding: var(--spot-space-5) var(--spot-gutter) var(--spot-space-2);
    background: var(--spot-surface);
}

/* подкатегория выбрана — список прячется, выбор виден в строке «Изменить» (доски CreateTires, CreateServices) */
.spot-create[data-phase]:not([data-phase="cat"]) .ads-create-subcategory {
    display: none !important;
}

.spot-create .ads-create-subcategory:empty {
    display: none !important;
}

.spot-create .ads-create-subcategory-prev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -12px;
    border-radius: 50%;
    background: none;
    color: var(--spot-ink);
    font-size: 22px;
}

.spot-create .ads-create-subcategory-list .row {
    display: block;
    margin: 0;
}

.spot-create .ads-create-subcategory-list .row > div {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none !important;
    box-shadow: none !important;
}

.spot-create .ads-create-subcategory-list span {
    display: flex;
    align-items: center;
    min-height: 52px;
    margin: 0;
    padding: var(--spot-space-2) 0 var(--spot-space-2) 32px;
    border: 0;
    border-bottom: 1px solid var(--spot-line);
    border-radius: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 6l6 6-6 6' stroke='%235B616B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left 4px center !important;
    box-shadow: none !important;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    color: var(--spot-ink);
    cursor: pointer;
}

.spot-create .ads-create-subcategory-list span:active {
    background-color: var(--spot-field) !important;
}

.spot-create .ads-create-subcategory-list span.ads-create-subcategory-change {
    font-weight: 700;
}

/* ---------- шаги характеристик ---------- */
.spot-create .ads-create-main-data-filters {
    padding: 16px var(--spot-gutter) 8px;
    background: var(--spot-surface);
}

/* заголовок экрана шага (Марка / Модель и год / Характеристики) — из data-title, ставит spot_create.js */
.spot-create .ads-create-main-data-filters[data-title]::before {
    content: attr(data-title);
    display: block;
    margin: 4px 0 8px;
    font-size: 24px;
    line-height: 30px;
    font-weight: 800;
    color: var(--spot-ink);
}

.spot-create .ads-create-main-data-filters > .ads-create-main-data-box-item {
    margin: 0;
}

.spot-create .ads-create-main-data-filters .mb25:empty {
    display: none;
}

.spot-create .ads-create-main-data-filters .filter_item {
    padding: 12px 0 16px;
    border-top: 0;
}

/* на экране фото/описания/цены пройденные характеристики свёрнуты в строку «Характеристики · Изменить» (доска DesktopCreate) */
.spot-create[data-phase="details"]:not(.spot-create--show-specs) .ads-create-main-data-filters {
    display: none !important;
}

/* марка и модель видны в строке «Изменить» над шагом — строки-итоги марки и модели не дублируем */
.spot-create .filter_item_main_results {
    display: none !important;
}

/* строки-итоги пройденных характеристик (доска CreateSpecs): «Объём  2.5 ›», нажатие открывает шаг снова */
.spot-create .filter_item_secondary_results {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    margin: 0 !important;
    padding: 8px 0;
    border-top: 0;
    border-bottom: 1px solid var(--spot-line);
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
    color: var(--spot-ink-2);
    cursor: pointer;
}

.spot-create .filter_item_secondary_results > div:first-child {
    min-width: 0;
}

.spot-create .filter_item_secondary_results > .msg-error {
    flex: 1 0 100%;
    order: 3;
    margin: 0;
}

.spot-create .filter_item_secondary_results {
    flex-wrap: wrap;
}

.spot-create .filter_item_secondary_results-inf {
    gap: 8px;
    margin-right: auto;
}

.spot-create .filter_item_secondary_results-data {
    font-size: 15px;
    line-height: 20px;
    font-weight: 700;
    color: var(--spot-ink);
    text-align: left;
}

.spot-create .filter_item_secondary_results-inf svg {
    flex: 0 0 auto;
    transform: rotate(90deg);
}

.spot-create .filter_item_secondary_results-inf svg path {
    stroke: var(--spot-mut);
    stroke-width: 1.4;
}

/* подпись поля внутри шага */
.spot-create .filter_item > .ads-create-subtitle,
.spot-create .filter-items .ads-create-subtitle,
.spot-create .filter-items .row > .col-lg-4 > label {
    display: block;
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 22px;
    font-weight: 800;
    color: var(--spot-ink);
}

/* «пилюли» значений (доска CreateTires): серые, выбранная — тёмная с галочкой */
.spot-create .filter_item > .row[style*="display: flex"] {
    gap: 8px !important;
}

.spot-create .filter_item > .row[style*="display: flex"] .btn.css-dsew533,
.spot-create .filter_item > .row[style*="display: flex"] .styled-checkbox .btn {
    width: auto;
    min-height: 44px;
    padding: 0 16px;
    border: 0 !important;
    border-radius: 22px;
    background: var(--spot-field);
    color: var(--spot-ink);
    font-size: 15px !important;
    font-weight: 600 !important;
}

.spot-create .filter_item > .row[style*="display: flex"] .btn-check:checked + .btn.css-dsew533,
.spot-create .filter_item > .row[style*="display: flex"] .styled-checkbox .btn-check:checked + .btn {
    background: var(--spot-inv);
    color: #fff;
}

.spot-create .filter_item > .row[style*="display: flex"] .btn-check:checked + .btn.css-dsew533::before,
.spot-create .filter_item > .row[style*="display: flex"] .styled-checkbox .btn-check:checked + .btn::before {
    content: "";
    width: 12px;
    height: 7px;
    margin: -3px 0 0 2px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.spot-create .styled-checkbox {
    padding: 0 !important;
}

.spot-create .styled-checkbox .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* марки (доска Create): поиск с лупой, сетка 3×, «Все марки» */
.spot-create .filter_item-inpt_box {
    position: relative;
    min-height: 48px;
    margin: 0 0 12px;
    padding: 0 44px 0 var(--spot-gutter);
    background: var(--spot-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%235B616B' stroke-width='2'/%3E%3Cpath d='M20 20l-4-4' stroke='%235B616B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 14px center;
}

.spot-create .filter_item-inpt_box > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.spot-create #filter_item90 .btn.css-dsew533 {
    min-height: 84px;
    gap: 8px;
    font-size: 13px;
    font-weight: 700 !important;
}

.spot-create #filter_item90 .btn.css-dsew533 img {
    max-height: 32px;
}

.spot-create .filter_item90_control {
    min-height: 84px;
    border: 0;
    background: var(--spot-field);
}

.spot-create .filter_item90_control svg {
    transform: rotate(90deg);
}

/* контейнеры «Торг»/Turbo: create.js переносит их содержимое (в «Доп. параметры» и к «Объёму») — пустые рамки не рисуем */
.spot-create .ads-create-main-data-filters .filter_item-block,
.spot-create .ads-create-main-data-filters #filter_turbo {
    padding: 0;
    border-top: 0;
}

.spot-create #filter_turbo:not(:has(*)) {
    display: none !important;
}

/* модели (доска CreateModel): список строк, выбранная — с красной галочкой */
.spot-create #filter_item302 .row {
    display: block !important;
    height: auto !important;
    max-height: none;
    overflow: visible !important;
    padding: 0;
}

.spot-create #filter_item302 .custom-control {
    display: block;
    width: 100%;
    padding: 0 !important;
}

.spot-create #filter_item302 .btn.css-dsew533 {
    width: 100%;
}

.spot-create #filter_item302 .btn.css-dsew533 {
    justify-content: space-between;
    min-height: 48px;
    padding: 0;
    border: 0 !important;
    border-bottom: 1px solid var(--spot-line) !important;
    border-radius: 0;
    background: none;
    color: var(--spot-ink);
    font-size: 16px;
    font-weight: 500 !important;
    text-align: right;
}

.spot-create #filter_item302 .btn-check:checked + .btn.css-dsew533 {
    background: none;
    color: var(--spot-ink);
    font-weight: 700 !important;
}

.spot-create #filter_item302 .btn-check:checked + .btn.css-dsew533::after {
    content: "";
    width: 12px;
    height: 7px;
    margin: -4px 0 0 4px;
    border-right: 2px solid var(--spot-red);
    border-bottom: 2px solid var(--spot-red);
    transform: rotate(45deg);
}

/* год выпуска: кнопки последних лет над полем (spot_create.js) */
.spot-create .spot-create-years {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 var(--spot-space-3);
}

.spot-create .spot-create-year {
    min-height: 44px;
    padding: 0 4px;
    border: 1px solid var(--spot-line);
    border-radius: var(--spot-radius-s);
    background: var(--spot-surface);
    color: var(--spot-ink);
    font-family: var(--spot-font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.spot-create .spot-create-year.is-on {
    border: 2px solid var(--spot-ink);
    font-weight: 800;
}

.spot-create .spot-create-year:focus-visible {
    outline: 2px solid var(--spot-focus);
    outline-offset: 2px;
}

@media (min-width: 992px) {
    .spot-create .spot-create-years {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* ---------- экраны «Фото, описание, цена, город» (доска CreateDetails) ---------- */
.spot-create .spot-create-sec {
    margin: 0 0 8px !important;
    padding: var(--spot-space-5) var(--spot-gutter) !important;
    border: 0 !important;
    background: var(--spot-surface);
}

/* сетка bootstrap внутри экранов (цена, «Договорная», телефон): узкие отступы колонок */
.spot-create .spot-create-sec .row {
    margin-right: -8px;
    margin-left: -8px;
}

.spot-create .spot-create-sec .row > [class*="col"] {
    padding-right: 8px;
    padding-left: 8px;
}

.spot-create .spot-create-sec > .ads-create-main-data-box-item:last-child {
    margin-bottom: 0;
}

.spot-create .spot-create-photos .ads-create-main-data-box-item {
    margin-bottom: 0;
}

.spot-create .spot-create-photos .spot-edit-video {
    margin-top: var(--spot-space-5);
}

.spot-create .ads-create-main-data-online-view:not(:has(*)) {
    display: none !important;
}

.spot-create .ads-create-main-data-online-view .ads-create-main-data-box-item {
    margin: 12px 0 0;
}

.spot-create .spot-create-all-er {
    margin: 0;
    padding: 8px var(--spot-gutter);
    background: var(--spot-surface);
}

.spot-create .ads-create-main-data {
    background: none;
}

.spot-create .ads-create-main-data-title:not(:has(*)) {
    display: none;
}

.spot-create .ads-create-main-data-title .ads-create-main-data-box-item {
    margin: 0 0 var(--spot-space-5) !important;
}

.spot-create .spot-create-price .ads-create-main-data-price:not(:has(*)) {
    display: none !important;
}

.spot-create .spot-create-address:not(:has(.gf *)) {
    display: none;
}

.spot-create .spot-create-place .spot-create-city {
    margin-bottom: 16px;
}

.spot-create .spot-create-address {
    margin: 0 0 16px;
}

.spot-create .mapAddress:empty {
    display: none;
}

.spot-create .ads-create-main-data-delivery:not(:has(*)) {
    display: none;
}

/* вход и регистрация гостя, телефон без номера (доски CreatePublish*, CreateStates) */
.spot-create .auth_create {
    margin: 8px calc(var(--spot-gutter) * -1) 0;
    padding: var(--spot-space-5) var(--spot-gutter) var(--spot-space-2);
    border-top: 8px solid var(--spot-bg);
}

.spot-create .spot-create-phone {
    margin: 8px 0 0;
}

.spot-create .ads-create-main-data-user-options {
    padding: 0;
    border: 0;
    background: none;
    font-size: 14px;
    line-height: 20px;
    color: var(--spot-ink-2);
}

.spot-create .ads-create-main-data-user-options-phone-buttons .btn-custom-mini {
    width: 100%;
    min-height: 48px;
    margin: 8px 0 0;
    border: 0;
    border-radius: var(--spot-radius);
    background: var(--spot-red);
    color: #fff;
    font-family: var(--spot-font);
    font-size: 15px;
    font-weight: 700;
}

.spot-create .ads-create-main-data-user-options-phone-buttons .btn-color-blue {
    background: var(--spot-field);
    color: var(--spot-ink);
}

.spot-create .spot-create-neterr[hidden] {
    display: none !important;
}

.spot-create .spot-create-neterr:not([hidden]) {
    display: block !important;
    margin: 12px 0 0;
}

/* ---------- кнопки «Далее» и «Опубликовать»: панель снизу экрана с безопасной зоной ---------- */
.spot-create .ads-create-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    min-height: var(--spot-control-h-l);
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: var(--spot-radius);
    background: var(--spot-red);
    color: #fff;
    font-family: var(--spot-font);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.spot-create .ads-create-next:active {
    background: var(--spot-red-dark);
}

.spot-create .ads-create-next:focus-visible {
    outline: 2px solid var(--spot-focus);
    outline-offset: 2px;
}

.spot-create .spot-create-bar {
    display: none;
}

.spot-create.spot-create--has-next .spot-create-bar-next,
.spot-create.spot-create--has-pub .spot-create-bar-pub {
    display: block;
}

@media (max-width: 991.98px) {
    .spot-create .spot-create-bar {
        position: fixed;
        right: 0;
        left: 0;
        bottom: var(--spot-kb, 0px); /* над экранной клавиатурой: spot_create.js считает по visualViewport (на Android «resizes-content» окно уже короче) */
        z-index: 40;
        padding: var(--spot-space-3) var(--spot-gutter) calc(var(--spot-space-3) + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--spot-line);
        background: var(--spot-surface);
    }

    .spot-create.spot-create--has-next .spot-create-main,
    .spot-create.spot-create--has-pub .spot-create-main {
        padding-bottom: calc(var(--spot-bar-h, 80px) + var(--spot-space-4));
    }

    .spot-create .spot-create-slot-quality:not(:empty) {
        margin: 16px 0 0;
    }
}

/* шаг входа гостя: остальное прячется, данные остаются в форме (уходят тем же запросом) */
.spot-create--auth .spot-create-progress,
.spot-create--auth .ads-create-main-data-filters,
.spot-create--auth .spot-create-slot-pti,
.spot-create--auth .spot-create-photos,
.spot-create--auth .spot-create-all-er,
.spot-create--auth .spot-create-desc,
.spot-create--auth .spot-create-period,
.spot-create--auth .category_board_status_maps,
.spot-create--auth .ads-create-main-data-booking,
.spot-create--auth .spot-create-price,
.spot-create--auth .spot-create-place > :not(.auth_create):not(.display_phone_create):not(.spot-create-bar):not(.spot-create-neterr) {
    display: none !important;
}

.spot-create--auth .spot-create-place {
    padding-top: 0 !important;
}

.spot-create--auth .auth_create {
    margin-top: 0;
    border-top: 0;
}

/* ---------- десктоп (доска DesktopCreate) ---------- */
@media (min-width: 992px) {
    .spot-create .spot-create-mh {
        display: none;
    }

    .spot-create .spot-create-h1 {
        display: flex;
    }

    .spot-create-aside {
        padding-top: 0;
        top: 24px;
    }

    .spot-create .spot-create-progress,
    .spot-create .spot-create-ctx,
    .spot-create .ads-create-main-category,
    .spot-create .ads-create-subcategory,
    .spot-create .ads-create-main-data-filters,
    .spot-create .spot-create-sec,
    .spot-create .spot-create-offline {
        margin: 0 0 12px !important;
        border-radius: var(--spot-radius-l);
    }

    .spot-create .spot-create-progress {
        padding: 16px;
    }

    .spot-create .spot-create-offline {
        top: 12px;
    }

    .spot-create .spot-create-steps {
        gap: 0;
    }

    .spot-create .spot-create-steps li {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        height: auto;
        min-width: 0;
        padding: 0 4px;
        background: none;
        text-align: center;
    }

    .spot-create .spot-create-steps li.is-done,
    .spot-create .spot-create-steps li.is-cur {
        background: none;
    }

    .spot-create .spot-create-steps li > span {
        display: block;
    }

    .spot-create .spot-create-steps li::before {
        content: "";
        position: absolute;
        top: 11px;
        left: 50%;
        right: -50%;
        height: 2px;
        background: var(--spot-line);
    }

    .spot-create .spot-create-steps li:first-child::before {
        display: none;
    }

    .spot-create .spot-create-steps li.is-done::before,
    .spot-create .spot-create-steps li.is-cur::before {
        background: var(--spot-red);
    }

    .spot-create .spot-create-dot {
        position: relative;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border: 2px solid var(--spot-line);
        border-radius: 50%;
        background: var(--spot-surface);
        font-size: 12px;
        line-height: 1;
        font-weight: 700;
        color: var(--spot-mut);
    }

    .spot-create .spot-create-steps li.is-done .spot-create-dot {
        border-color: var(--spot-red);
        background: var(--spot-red);
        color: #fff;
    }

    .spot-create .spot-create-steps li.is-cur .spot-create-dot {
        border-color: var(--spot-red);
        color: var(--spot-red-fg);
    }

    .spot-create .spot-create-step-name {
        font-size: 12px;
        line-height: 15px;
        font-weight: 700;
        color: var(--spot-ink);
    }

    .spot-create .spot-create-step-sub {
        max-width: 100%;
        overflow: hidden;
        font-size: 11.5px;
        line-height: 15px;
        color: var(--spot-mut);
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .spot-create .spot-create-stepnote {
        display: none;
    }

    .spot-create .spot-create-ctx {
        padding: 0 24px;
        border-top: 0;
    }

    .spot-create .spot-create-ctx-label {
        width: 160px;
    }

    .spot-create .ads-create-main-category,
    .spot-create .ads-create-subcategory,
    .spot-create .ads-create-main-data-filters,
    .spot-create .spot-create-sec {
        padding: 24px !important;
    }

    .spot-create .spot-create-cats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .spot-create .ads-create-main-category-list-item:hover,
    .spot-create .ads-create-subcategory-list span:hover {
        border-color: var(--spot-field-border);
        background-color: var(--spot-surface);
    }

    .spot-create .ads-create-subcategory-list span:hover {
        color: var(--spot-red-fg);
    }

    .spot-create .auth_create {
        margin: 16px -24px 0;
        padding: 24px 24px 0;
        border-top: 1px solid var(--spot-line);
    }

    .spot-create .spot-create-bar-next {
        padding: 4px 0 0;
    }

    .spot-create .spot-create-bar-next .ads-create-next {
        width: 280px;
        margin-right: auto;
    }

    /* кнопку публикации на десктопе даёт правая колонка (spot_edit.js нажимает настоящую) */
    .spot-create .spot-create-bar-pub {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        border: 0;
    }

    .spot-create-sum .spot-edit-sum-img:not(:has(img)) {
        display: none;
    }

    .spot-create-sum .spot-edit-sum-title:empty {
        display: none;
    }

    .spot-create .spot-create-save {
        margin-top: 16px;
    }

    .spot-create .spot-create-save[hidden] {
        display: none;
    }

    .spot-create-slot-quality-aside:not(:empty) {
        margin-top: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spot-create .spot-create-shake {
        animation: none;
    }
}

/* ============================================================================================================================
   07.10.2026 — экран не прыгает (docs/redesign/CREATE_FLOW_UX.md). Один якорь: активный шаг стоит под липкой шапкой и панелью
   контекста; панель кнопок — над клавиатурой; под ожидаемые ответы сервера места зарезервировано. Поведение — spot_create.js.
   ============================================================================================================================ */
.spot-create {
    --spot-mh-h: calc(56px + env(safe-area-inset-top, 0px));
}

/* системная прокрутка к фокусу/якорям тоже учитывает липкий верх и нижнюю панель; обновление «потянуть вниз» не стирает форму */
html:has(body.spot-create-page) {
    scroll-padding-top: var(--spot-stack-h, 0px);
    scroll-padding-bottom: var(--spot-bar-h, 0px);
    overscroll-behavior-y: contain;
}

.spot-create button,
.spot-create label,
.spot-create [role="button"],
.spot-create .btn {
    touch-action: manipulation; /* без задержки двойного касания */
}

/* место под «хвост»: короткий шаг в конце документа тоже может встать на якорь (высоту ставит spot_create.js) */
.spot-create-main::after {
    content: "";
    display: block;
    height: var(--spot-tail, 0px);
    visibility: hidden; /* пустой «хвост» не считается сдвигом макета */
    pointer-events: none;
}

.spot-create .spot-create-ctxbar {
    display: none;
}

@media (max-width: 991.98px) {
    /* липкая панель контекста: «Шаг N из M», полоса шагов, выбранное, «Изменить» */
    .spot-create .spot-create-ctxbar {
        position: sticky;
        top: var(--spot-mh-h);
        z-index: 49;
        display: block;
        box-sizing: border-box;
        height: 64px;
        padding: var(--spot-space-2) var(--spot-gutter) 0;
        overflow: hidden;
        border-bottom: 1px solid var(--spot-line);
        background: var(--spot-surface);
    }

    .spot-create .spot-create-ctxbar-steps {
        display: grid;
        grid-template-columns: repeat(var(--spot-steps, 5), minmax(0, 1fr));
        gap: 4px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .spot-create .spot-create-ctxbar-steps li {
        height: 4px;
        border-radius: 2px;
        background: var(--spot-line);
    }

    .spot-create .spot-create-ctxbar-steps li.is-done,
    .spot-create .spot-create-ctxbar-steps li.is-cur {
        background: var(--spot-red);
    }

    .spot-create .spot-create-ctxbar-steps li > span {
        display: none;
    }

    .spot-create .spot-create-ctxbar-row {
        display: flex;
        align-items: center;
        gap: var(--spot-space-2);
        height: 52px;
    }

    .spot-create .spot-create-ctxbar-text {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-width: 0;
    }

    .spot-create .spot-create-ctxbar-note,
    .spot-create .spot-create-ctxbar-sum {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .spot-create .spot-create-ctxbar-note {
        font-size: 14px;
        line-height: 20px;
        font-weight: 700;
        color: var(--spot-ink);
    }

    .spot-create .spot-create-ctxbar-sum {
        min-height: 16px;
        font-size: 12px;
        line-height: 16px;
        color: var(--spot-mut);
    }

    .spot-create .spot-create-ctxbar-edit {
        flex: 0 0 auto;
        min-width: 64px;
        min-height: 44px;
        margin: 0 0 0 -8px;
        padding: 0 var(--spot-space-2);
        border: 0;
        background: none;
        color: var(--spot-red-fg);
        font-family: var(--spot-font);
        font-size: 15px;
        font-weight: 700;
        text-align: left;
        cursor: pointer;
    }

    .spot-create .spot-create-ctxbar-edit[hidden] {
        display: none;
    }

    .spot-create .spot-create-ctxbar-edit:active {
        opacity: .6;
    }

    .spot-create .spot-create-ctxbar-edit:focus-visible {
        outline: 2px solid var(--spot-focus);
        outline-offset: -2px;
        border-radius: var(--spot-radius-s);
    }

    /* отклик на касание, пока create.js ждёт ответ: тонкая полоса внизу панели, раскладка не меняется */
    .spot-create .spot-create-ctxbar-busy {
        position: absolute;
        left: 0;
        bottom: 0;
        right: 0;
        height: 2px;
        opacity: 0;
        background: linear-gradient(-90deg, transparent, var(--spot-red), transparent) no-repeat -40% 0 / 40% 100%;
        transition: opacity .12s;
    }

    .spot-create.spot-create--loading .spot-create-ctxbar-busy {
        opacity: 1;
        animation: spot-create-busy 1s linear infinite;
    }

    @keyframes spot-create-busy {
        to { background-position: -40% 0; }
    }

    /* прежние «шаги» и «выбрано» в потоке заменяет панель; строки «Изменить» нужны только на экране фото и на шаге входа */
    .spot-create .spot-create-progress {
        display: none;
    }

    .spot-create .spot-create-ctx {
        display: none;
        margin-top: 0;
    }

    /* экран фото: строки «Изменить» — выпадающая панель под строкой контекста (кнопка «Изменить» на ней), поток страницы не двигает */
    .spot-create.spot-create--menu .spot-create-ctx:not([hidden]) {
        position: fixed;
        top: var(--spot-stack-h, 120px);
        left: 0;
        right: 0;
        z-index: 48;
        display: block;
        max-height: calc(100dvh - var(--spot-stack-h, 120px) - var(--spot-bar-h, 76px) - var(--spot-kb, 0px));
        margin: 0;
        overflow-y: auto;
        border-bottom: 1px solid var(--spot-line);
        box-shadow: 0 16px 16px -16px rgba(20, 22, 26, .32);
    }

    /* шаг входа гостя: карточка объявления в потоке над формой входа (весь экран и так сменился) */
    .spot-create.spot-create--auth .spot-create-ctx:not([hidden]) {
        display: block;
    }

    .spot-create .spot-create-offline {
        top: var(--spot-stack-h, var(--spot-mh-h));
    }

    /* шаг «выберите значение»: сообщение create.js лежало в конце формы вне экрана — плашка над нижней панелью, ничего не сдвигает */
    .spot-create .spot-create-all-er {
        position: fixed;
        left: var(--spot-gutter);
        bottom: calc(var(--spot-bar-h, 76px) + var(--spot-kb, 0px) + var(--spot-space-2));
        right: var(--spot-gutter);
        z-index: 41;
        margin: 0;
        padding: var(--spot-space-3) var(--spot-space-4);
        border: 1px solid var(--spot-red);
        border-radius: var(--spot-radius);
        background: var(--spot-surface);
        box-shadow: 0 8px 16px -8px rgba(20, 22, 26, .24);
        font-size: 14px;
        line-height: 20px;
    }

    /* поля формы: отступы из шкалы 8 pt (в spot_edit.css — 14px общие с правкой, здесь свои) */
    .spot-create .ads-create-input,
    .spot-create .ads-create-textarea {
        padding-left: var(--spot-gutter);
        padding-right: var(--spot-gutter);
    }

    .spot-create .ads-create-textarea {
        padding-top: var(--spot-space-3);
        padding-bottom: var(--spot-space-3);
    }

    .spot-create .filter_item-inpt_box input {
        font-size: 16px; /* меньше 16px iOS увеличивает экран при фокусе */
    }

    /* «Качество объявления» и «Техосмотр» — свёрнуты в строку, пока пользователь не раскроет; поля не двигают */
    .spot-create .spot-create-slot-quality .spot-cq {
        padding-bottom: var(--spot-space-4);
    }

    .spot-create .spot-create-slot-quality .spot-cq-head {
        align-items: center;
        min-height: 44px;
        cursor: pointer;
    }

    .spot-create .spot-create-slot-quality .spot-cq-head::after,
    .spot-create .spot-cpti-head-tx .spot-cpti-t::after {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        margin: 0 10px 3px 4px;
        border-left: 2px solid var(--spot-mut);
        border-bottom: 2px solid var(--spot-mut);
        transform: rotate(-45deg);
    }

    .spot-create .spot-create-slot-quality .spot-cq-head {
        gap: var(--spot-space-2);
    }

    .spot-create .spot-create-slot-quality .spot-cq-t {
        flex: 1 1 auto;
    }

    .spot-create .spot-create-slot-quality.is-open .spot-cq-head::after,
    .spot-create .spot-cpti.is-open .spot-cpti-t::after {
        margin-bottom: -3px;
        transform: rotate(135deg);
    }

    .spot-create .spot-create-slot-quality:not(.is-open) .spot-cq-sub,
    .spot-create .spot-create-slot-quality:not(.is-open) .spot-cq-list {
        display: none;
    }

    /* «Продать быстрее» — своя свёрнутая строка («Premium · 14 дней · 49 ₾» / «Без продвижения»), раскрывается тапом; тапу доступна вся строка (44 px) */
    .spot-create .spot-create-slot-quality .spot-cq-fast-head {
        min-height: 44px;
        cursor: pointer;
    }

    /* заголовок в две строки: «Продать быстрее ⌄» и под ним выбранное — ничего не обрезается ни на 320, ни по-грузински */
    .spot-create .spot-create-slot-quality .spot-cq-fast-head {
        flex-wrap: wrap;
        column-gap: 8px;
        row-gap: 0;
        padding: 6px 0;
    }

    .spot-create .spot-create-slot-quality .spot-cq-fast-t {
        flex: 1 1 0;
        min-width: 0;
        order: 1;
    }

    .spot-create .spot-create-slot-quality .spot-cq-fast-head::after {
        order: 2;
    }

    .spot-create .spot-create-slot-quality .spot-cq-fast-pick {
        display: block;
        flex: 0 0 100%;
        order: 3;
        padding-right: 28px;
        text-align: right;
    }

    .spot-create .spot-create-slot-quality .spot-cq-fast.is-open .spot-cq-fast-pick {
        display: none;
    }

    .spot-create .spot-create-slot-quality .spot-cq-fast-head::after {
        content: "";
        flex: 0 0 auto;
        width: 8px;
        height: 8px;
        margin: 0 4px 3px 4px;
        border-left: 2px solid var(--spot-mut);
        border-bottom: 2px solid var(--spot-mut);
        transform: rotate(-45deg);
    }

    .spot-create .spot-create-slot-quality .spot-cq-fast.is-open .spot-cq-fast-head::after {
        margin-bottom: -3px;
        transform: rotate(135deg);
    }

    .spot-create .spot-create-slot-quality .spot-cq-fast:not(.is-open) .spot-cq-fast-body {
        display: none;
    }

    .spot-create .spot-create-slot-quality .spot-cq-fast {
        padding-top: 0;
        padding-bottom: var(--spot-space-2);
    }

    .spot-create .spot-create-slot-quality .spot-cq-fast.is-open {
        padding-bottom: var(--spot-space-4);
    }

    .spot-create .spot-create-slot-quality .spot-cq-det-t {
        min-height: 44px;
    }

    .spot-create .spot-create-slot-quality .spot-cq-meta {
        min-height: 44px;
    }

    .spot-create .spot-create-slot-quality:not(.is-open) .spot-cq-bar {
        margin-bottom: 0;
    }

    .spot-create .spot-cpti:not(.is-open) .spot-cpti-body,
    .spot-create .spot-cpti:not(.is-open) .spot-cpti-off,
    .spot-create .spot-cpti:not(.is-open) .spot-cpti-skip {
        display: none;
    }

    .spot-create .spot-cpti .spot-cpti-head-tx {
        cursor: pointer;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spot-create.spot-create--loading .spot-create-ctxbar-busy {
        animation: none;
        background: linear-gradient(-90deg, transparent, var(--spot-red) 30%, var(--spot-red) 70%, transparent);
        background-size: 100% 100%;
    }
}

/* ---------- списки с сотней строк (модели, «Все марки»): внутри своей прокрутки. Иначе выбор строки сворачивает список на тысячи
   пикселей, и страница уезжает; высота зарезервирована, поэтому список приходит ajax-ом без сдвига ---------- */
.spot-create #filter_item302 .row:has(.custom-control:nth-child(8)) {
    height: clamp(224px, 44dvh, 440px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.spot-create #filter_item90 .row:has(.custom-control[style*="flex"]) {
    max-height: clamp(288px, 52dvh, 480px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* пока список моделей едет с сервера, под него занято то же место (заглушку ставит spot_create.js при выборе марки; уходит с приходом списка) */
.spot-create .spot-create-skel {
    height: calc(60px + clamp(224px, 44dvh, 440px));
    margin: 0 0 var(--spot-space-4);
    border-radius: var(--spot-radius);
    background: repeating-linear-gradient(to bottom, var(--spot-field) 0 16px, transparent 16px 48px) 0 60px / 100% calc(100% - 60px) no-repeat, linear-gradient(var(--spot-field), var(--spot-field)) 0 0 / 100% 48px no-repeat;
}

/* ---------- фото: пустая зона — одна широкая плитка «добавить» той же высоты, что строка превью; плитки квадратные, ничего не едет ---------- */
.spot-create .spot-create-photos {
    container-type: inline-size;
}

.spot-create #dropzone.dropzone {
    min-height: 112px !important;
    align-content: start;
}

.spot-create #dropzone .dz-preview,
.spot-create #dropzone .dz-message,
.spot-create #dropzone.dz-started .dz-message {
    aspect-ratio: 1 / 1;
}

/* «Добавить фото» — первая плитка: на месте остаётся, пока рядом приходят превью (иначе она уезжала бы вправо с каждым снимком) */
.spot-create #dropzone .dz-message,
.spot-create #dropzone.dz-started .dz-message {
    order: -1;
}

.spot-create #dropzone:not(.dz-started) .dz-message {
    grid-column: 1 / -1;
    aspect-ratio: auto;
    min-height: 112px;
    height: calc((100cqw - 16px) / 3);
}

.spot-create #dropzone .dz-message .spot-edit-add {
    font-size: 13px;
}

/* ---------- состояния нажатия (без hover): плитки значений откликаются сразу ---------- */
.spot-create .filter_item label.btn:active,
.spot-create .spot-create-year:active {
    background-color: var(--spot-field);
}

/* ---------- цели касания ≥ 44px и шрифт полей ≥ 16px (iOS приближает экран при фокусе, если меньше) ---------- */
.spot-create .filter_item-inpt_box {
    min-height: 48px;
}

.spot-create .filter_item-inpt_box input,
.spot-create .filter_item input.inpt_num,
.spot-create .filter_item input.form-control,
.spot-create .uni-select-list-search input {
    min-height: 44px;
    font-size: 16px !important; /* styles.css: .form-control { font-size: 14px !important } */
}

.spot-create .ads-create-main-data-online-view .custom-control-label {
    min-height: 44px;
    padding: var(--spot-space-3) 0;
}

.spot-create .ads-create-main-data-online-view .custom-control-label::before,
.spot-create .ads-create-main-data-online-view .custom-control-label::after {
    top: calc(var(--spot-space-3) + 4px);
}

.spot-create .spot-cq-btn,
.spot-create .spot-cq-opt {
    min-height: 44px;
}

.spot-create .spot-cpti-skip {
    min-height: 44px;
}

/* ---------- отклик на касание: сразу, без задержки (≤120 мс), без движения раскладки ---------- */
.spot-create .ads-create-next,
.spot-create .ads-create-publish,
.spot-create .ads-create-main-category-list-item,
.spot-create .spot-create-ctxbar-edit {
    transition: transform .12s cubic-bezier(.23, 1, .32, 1), background-color .12s, opacity .12s;
}

.spot-create .ads-create-next:active,
.spot-create .ads-create-publish:active,
.spot-create .ads-create-main-category-list-item:active {
    transform: scale(.98);
}

@media (prefers-reduced-motion: reduce) {
    .spot-create .ads-create-next:active,
    .spot-create .ads-create-publish:active,
    .spot-create .ads-create-main-category-list-item:active {
        transform: none;
    }
}

/* узкие телефоны (320): грузинская подпись шага длиннее русской — чуть мельче, чтобы название шага поместилось дальше */
@media (max-width: 360px) {
    .spot-create .spot-create-ctxbar-note {
        font-size: 13px;
    }

    .spot-create .spot-create-ctxbar-edit {
        font-size: 14px;
    }
}

/* ============================================================================================================================
   07.10.2026 — «Назад» и автопереход (docs/redesign/CREATE_FLOW_UX.md, раздел «Автопереход и Назад»). Поведение — spot_create.js.
   ============================================================================================================================ */
.spot-create .spot-create-ctxbar-back,
.spot-create .spot-create-back {
    display: none;
}

@media (max-width: 991.98px) {
    /* стрелка назад — слева в строке «Шаг N из M», цель касания 44×44 (глаз остаётся на месте: панель той же высоты 64px) */
    .spot-create .spot-create-ctxbar-back {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: 0 -12px 0 0;
        padding: 0;
        border: 0;
        border-radius: var(--spot-radius-s);
        background: none;
        color: var(--spot-ink);
        cursor: pointer;
    }

    .spot-create .spot-create-ctxbar-back[hidden] {
        display: none;
    }

    .spot-create .spot-create-ctxbar-back:active {
        background: var(--spot-field);
    }

    .spot-create .spot-create-ctxbar-back:focus-visible {
        outline: 2px solid var(--spot-focus);
        outline-offset: -2px;
    }
}

@media (min-width: 992px) {
    .spot-create .spot-create-back {
        display: inline-flex;
        align-items: center;
        gap: var(--spot-space-1);
        min-height: 44px;
        margin: var(--spot-space-1) -8px 0 0;
        padding: 0 var(--spot-space-2);
        border: 0;
        border-radius: var(--spot-radius-s);
        background: none;
        color: var(--spot-ink-2);
        font-family: var(--spot-font);
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

    .spot-create .spot-create-back[hidden] {
        display: none;
    }

    .spot-create .spot-create-back:hover {
        color: var(--spot-ink);
    }

    .spot-create .spot-create-back:focus-visible {
        outline: 2px solid var(--spot-focus);
    }
}

/* подтверждение «Вернуться к выбору категории?» — нижняя шторка на телефоне, окно по центру на десктопе */
.spot-create .spot-create-confirm {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, .4);
}

.spot-create .spot-create-confirm[hidden] {
    display: none;
}

.spot-create .spot-create-confirm-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
    padding: var(--spot-space-5) var(--spot-gutter) calc(var(--spot-space-4) + env(safe-area-inset-bottom, 0px));
    border-radius: var(--spot-radius-l) var(--spot-radius-l) 0 0;
    background: var(--spot-surface);
}

.spot-create .spot-create-confirm-t {
    margin: 0 0 var(--spot-space-2);
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    color: var(--spot-ink);
}

.spot-create .spot-create-confirm-d {
    margin: 0 0 var(--spot-space-4);
    font-size: 14px;
    line-height: 20px;
    color: var(--spot-mut);
}

.spot-create .spot-create-confirm-ok,
.spot-create .spot-create-confirm-no {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0 0 var(--spot-space-2);
    border-radius: var(--spot-radius-m, 12px);
    font-family: var(--spot-font);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.spot-create .spot-create-confirm-no {
    border: 1px solid var(--spot-line);
    background: none;
    color: var(--spot-ink);
}

@media (min-width: 992px) {
    .spot-create .spot-create-confirm {
        align-items: center;
    }

    .spot-create .spot-create-confirm-card {
        border-radius: var(--spot-radius-l);
    }
}
