/* ============================================================
   FotoBiz Online — интерфейс продукта (/app).
   Специфика приложения поверх tokens.css + styles.css.
   Подключать третьим: tokens.css → styles.css → app.css.
   Префикс fba- (FotoBiz App), чтобы не пересекаться с лендингом.
   Острые углы, хайрлайн-сетки и мono-подписи — язык эталона.
   ============================================================ */

/* ---------- 1. Каркас ---------- */

/* Атрибут hidden слабее авторских display:grid/flex/block из styles.css —
   без этого правила скрытые экраны, миниатюры и картинки остаются видимыми. */
[hidden] { display: none !important; }

.fba-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.fba-main {
  flex: 1;
  width: 100%;
  max-width: var(--fb-maxw);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px) var(--fb-gutter) 90px;
}

.fba-screen[hidden] { display: none; }

.fba-foot {
  text-align: center;
  padding: 0 var(--fb-gutter) 22px;
  font-family: var(--fb-font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--fb-muted-7);
}

/* ---------- 2. Верхний бар и степпер ---------- */
.fba-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--fb-header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fb-line);
}
.fba-top__inner {
  max-width: var(--fb-maxw);
  margin: 0 auto;
  padding: 11px var(--fb-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.fba-top__exit {
  font-size: var(--fb-fs-xxs);
  color: var(--fb-muted-5);
  flex: none;
}
.fba-top__exit:hover { color: var(--fb-ink); }

.fba-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.fba-step {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--fb-muted-5);
}
.fba-step__mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--fb-fs-mono-xs);
  background: transparent;
  color: var(--fb-muted-5);
  border: 1px solid var(--fb-line-5);
  flex: none;
}
.fba-step__sep {
  width: 16px;
  height: 1px;
  background: var(--fb-line-4);
  display: inline-block;
}
.fba-step:last-child .fba-step__sep { display: none; }

.fba-step.is-active { color: var(--fb-ink); }
.fba-step.is-active .fba-step__mark {
  background: var(--fb-accent);
  color: var(--fb-paper);
  border-color: var(--fb-accent);
}
.fba-step.is-done .fba-step__mark {
  background: var(--fb-ink);
  color: var(--fb-paper);
  border-color: var(--fb-ink);
}

/* ---------- 3. Общие атомы ---------- */
.fba-eyebrow {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  letter-spacing: var(--fb-ls-wide);
  text-transform: uppercase;
  color: var(--fb-muted-4);
}
.fba-title {
  font-family: var(--fb-font-serif);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.18;
  margin: 8px 0 0;
}
.fba-title--sm { font-size: 24px; line-height: 1.2; }
.fba-lead {
  font-size: var(--fb-fs-sm);
  line-height: var(--fb-lh-body);
  color: var(--fb-muted-2);
  margin: 10px 0 0;
}
.fba-hint {
  font-size: var(--fb-fs-xxs);
  color: var(--fb-muted-5);
  line-height: 1.5;
}
.fba-mono {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono);
  color: var(--fb-muted-5);
  letter-spacing: 0.04em;
}

/* Сообщение об ошибке / статусе */
.fba-alert {
  border: 1px solid var(--fb-line-4);
  border-left: 3px solid var(--fb-accent);
  background: var(--fb-panel);
  padding: 12px 16px;
  font-size: var(--fb-fs-sm);
  line-height: 1.55;
  color: var(--fb-muted-1);
  margin-bottom: 18px;
}
.fba-alert__title {
  font-weight: 600;
  color: var(--fb-ink);
  display: block;
  margin-bottom: 3px;
}
.fba-alert[hidden] { display: none; }

/* Поля формы */
.fba-field { display: block; margin-top: 18px; }
.fba-field__label {
  display: block;
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  letter-spacing: var(--fb-ls-wide);
  text-transform: uppercase;
  color: var(--fb-muted-4);
  margin-bottom: 9px;
}
.fba-input {
  width: 100%;
  font: inherit;
  font-size: var(--fb-fs-body);
  padding: 12px 14px;
  background: var(--fb-paper);
  color: var(--fb-ink);
  border: 1px solid var(--fb-line-5);
  border-radius: 0;
}
.fba-input:focus-visible { outline: 2px solid var(--fb-accent); outline-offset: -1px; }

/* Чипы-переключатели (пол, форматы) */
.fba-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.fba-chip {
  padding: 7px 13px;
  border: 1px solid var(--fb-line-5);
  background: transparent;
  color: var(--fb-muted-3);
  font-family: var(--fb-font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--fb-dur) ease, color var(--fb-dur) ease,
              border-color var(--fb-dur) ease;
}
.fba-chip:hover { border-color: var(--fb-ink); color: var(--fb-ink); }
.fba-chip.is-active {
  background: var(--fb-ink);
  border-color: var(--fb-ink);
  color: var(--fb-paper);
}

/* Чекбокс-строка */
.fba-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fb-fs-xs);
  line-height: 1.55;
  color: var(--fb-muted-1);
  cursor: pointer;
}
.fba-check input {
  width: 17px;
  height: 17px;
  flex: none;
  margin: 1px 0 0;
  accent-color: var(--fb-accent);
}

/* ---------- 4. Шаг 1 · Загрузка ---------- */
.fba-upload {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
.fba-side {
  background: var(--fb-panel);
  border: 1px solid var(--fb-line-2);
  padding: 22px;
}
.fba-req {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 18px;
}
.fba-req__item {
  display: flex;
  gap: 9px;
  align-items: baseline;
  font-size: var(--fb-fs-xs);
  color: var(--fb-muted-1);
  line-height: 1.5;
}
.fba-req__n {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  color: var(--fb-muted-5);
  flex: none;
}

.fba-meter { margin-top: 20px; }
.fba-meter__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  letter-spacing: var(--fb-ls-mono);
  text-transform: uppercase;
  color: var(--fb-muted-4);
}
.fba-meter__bar {
  height: 4px;
  background: rgba(20, 24, 29, 0.1);
  margin-top: 7px;
  position: relative;
  overflow: hidden;
}
.fba-meter__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--fb-accent);
  transition: width .25s var(--fb-ease);
}

/* Дропзона с ретиклом по углам */
.fba-drop {
  position: relative;
  min-height: 360px;
  border: 1.5px dashed var(--fb-line-7);
  background-color: var(--fb-panel);
  padding: 26px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
  background-image:
    linear-gradient(var(--fb-line-7) 0 0), linear-gradient(var(--fb-line-7) 0 0),
    linear-gradient(var(--fb-line-7) 0 0), linear-gradient(var(--fb-line-7) 0 0),
    linear-gradient(var(--fb-line-7) 0 0), linear-gradient(var(--fb-line-7) 0 0),
    linear-gradient(var(--fb-line-7) 0 0), linear-gradient(var(--fb-line-7) 0 0);
  background-repeat: no-repeat;
  background-size:
    16px 2px, 2px 16px, 16px 2px, 2px 16px,
    16px 2px, 2px 16px, 16px 2px, 2px 16px;
  background-position:
    left 10px top 10px, left 10px top 10px,
    right 10px top 10px, right 10px top 10px,
    left 10px bottom 10px, left 10px bottom 10px,
    right 10px bottom 10px, right 10px bottom 10px;
}
.fba-drop.is-over {
  border-color: var(--fb-accent);
  background-color: #EAF0F6;
}
.fba-drop__empty {
  min-height: 308px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}
.fba-drop__icon {
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--fb-line-7);
  display: grid;
  place-items: center;
  font-family: var(--fb-font-mono);
  font-size: 20px;
  color: var(--fb-muted-5);
}
.fba-drop__title { font-size: 16px; font-weight: 600; }
.fba-drop__sub { font-size: var(--fb-fs-xs); color: var(--fb-muted-4); }

.fba-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.fba-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--fb-ph-flat);
  border: 1px solid var(--fb-line-2);
  overflow: hidden;
}
.fba-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fba-thumb__x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  background: var(--fb-scrim-3);
  color: var(--fb-paper);
  font-size: 13px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.fba-thumb__x:hover { background: var(--fb-ink); }
.fba-thumb__add {
  aspect-ratio: 1 / 1;
  border: 1.5px dashed var(--fb-line-7);
  background: transparent;
  color: var(--fb-muted-4);
  font-size: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.fba-thumb__add:hover { border-color: var(--fb-ink); color: var(--fb-ink); }

/* Каталог образов */
.fba-styles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}
.fba-style {
  border: 1px solid var(--fb-line-2);
  background: var(--fb-panel);
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color var(--fb-dur) ease, background var(--fb-dur) ease;
}
.fba-style:hover { border-color: var(--fb-line-6); }
.fba-style.is-active {
  border-color: var(--fb-accent);
  background: var(--fb-accent-wash);
}
.fba-style__shot {
  aspect-ratio: 4 / 5;
  background: var(--fb-ph-warm-8);
  border-bottom: 1px solid var(--fb-line-2);
  position: relative;
}
.fba-style__shot img { width: 100%; height: 100%; object-fit: cover; }
.fba-style__mark {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  background: var(--fb-accent);
  color: var(--fb-paper);
  font-size: 11px;
  opacity: 0;
}
.fba-style.is-active .fba-style__mark { opacity: 1; }
.fba-style__name {
  font-size: var(--fb-fs-xxs);
  font-weight: 600;
  padding: 9px 10px 4px;
}
.fba-style__tag {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fb-muted-5);
  padding: 0 10px 10px;
}

.fba-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.fba-btn-main {
  padding: 13px 26px;
  border: 0;
  font-family: inherit;
  font-weight: 600;
  font-size: 14.5px;
  background: var(--fb-ink);
  color: var(--fb-paper);
  cursor: pointer;
  transition: background var(--fb-dur) ease;
}
.fba-btn-main:hover:not(:disabled) { background: var(--fb-accent); }
.fba-btn-main:disabled {
  background: rgba(20, 24, 29, 0.15);
  color: var(--fb-muted-5);
  cursor: not-allowed;
}

/* ---------- 5. Шаг 2 · Обработка ---------- */
.fba-proc {
  max-width: 600px;
  margin: clamp(16px, 4vw, 44px) auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fba-proc__shot {
  position: relative;
  width: 180px;
  aspect-ratio: 4 / 5;
  background: var(--fb-ph-warm-12);
  border: 1px solid var(--fb-line-3);
  overflow: hidden;
}
.fba-proc__shot img { width: 100%; height: 100%; object-fit: cover; }
.fba-proc__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(36, 64, 92, 0) 0%, rgba(36, 64, 92, 0.5) 100%);
  animation: pf-scan 2.6s linear infinite;
  pointer-events: none;
}
.fba-proc__timer {
  font-family: var(--fb-font-mono);
  font-size: 28px;
  letter-spacing: 0.04em;
  margin-top: 20px;
}
.fba-proc__label {
  font-size: var(--fb-fs-xs);
  color: var(--fb-muted-4);
  margin-top: 2px;
  text-align: center;
}
.fba-proc__eta {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  letter-spacing: var(--fb-ls-mono);
  text-transform: uppercase;
  color: var(--fb-muted-5);
  margin-top: 8px;
}

.fba-stages {
  width: 100%;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--fb-line);
  border: 1px solid var(--fb-line);
}
.fba-stage {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  background: var(--fb-paper);
}
.fba-stage__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 10px;
  background: transparent;
  color: var(--fb-muted-7);
  border: 1px solid var(--fb-line-5);
}
.fba-stage__label {
  font-size: var(--fb-fs-xs);
  color: var(--fb-muted-7);
  font-weight: 500;
}
.fba-stage.is-active { background: var(--fb-panel); }
.fba-stage.is-active .fba-stage__dot {
  background: var(--fb-accent);
  border-color: var(--fb-accent);
  color: var(--fb-paper);
}
.fba-stage.is-active .fba-stage__label { color: var(--fb-ink); font-weight: 600; }
.fba-stage.is-done .fba-stage__dot {
  background: var(--fb-ink);
  border-color: var(--fb-ink);
  color: var(--fb-paper);
}
.fba-stage.is-done .fba-stage__label { color: var(--fb-muted-3); }

.fba-log {
  width: 100%;
  margin-top: 16px;
  background: var(--fb-ink);
  color: var(--fb-muted-6);
  padding: 12px 14px;
  font-family: var(--fb-font-mono);
  font-size: 11px;
  line-height: 1.9;
  min-height: 96px;
  max-height: 190px;
  overflow-y: auto;
}
.fba-log__line { white-space: pre-wrap; word-break: break-word; }

/* ---------- 6. Шаг 3 · Превью и оплата ---------- */
.fba-pay {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

/* Карточка бесплатного кадра. Вотермарк и плашка приходят в самом
   изображении с сервера — фронт ничего не рисует и ничего не снимает. */
.fba-shot {
  border: 1px solid var(--fb-line-2);
  background: var(--fb-panel);
  position: sticky;
  top: 84px;
}
.fba-shot__frame {
  aspect-ratio: 4 / 5;
  background: var(--fb-ph-warm-12);
  position: relative;
  overflow: hidden;
}
.fba-shot__frame img { width: 100%; height: 100%; object-fit: cover; }
.fba-shot__foot {
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--fb-line-2);
}
.fba-shot__cap {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fb-muted-4);
}

/* Компактные карточки тарифов — язык .fb-plan лендинга */
.fba-tariffs {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--fb-line-2);
  border: 1px solid var(--fb-line-2);
  margin-top: 18px;
}
.fba-tariff {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--fb-paper);
  cursor: pointer;
  transition: background var(--fb-dur) ease;
}
.fba-tariff:hover { background: var(--fb-panel-hover); }
.fba-tariff input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.fba-tariff__mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--fb-line-5);
  flex: none;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: transparent;
}
.fba-tariff__body { flex: 1; min-width: 0; }
.fba-tariff__head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}
.fba-tariff__name { font-weight: 700; font-size: 16px; }
.fba-tariff__flag {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 4px 7px;
  line-height: 1;
  color: var(--fb-accent);
  white-space: nowrap;
}
.fba-tariff__desc {
  font-size: var(--fb-fs-xs);
  color: var(--fb-muted-4);
  line-height: 1.5;
  margin-top: 4px;
}
.fba-tariff__price {
  font-family: var(--fb-font-serif);
  font-weight: 600;
  font-size: 24px;
  white-space: nowrap;
  flex: none;
}
.fba-tariff.is-selected { background: var(--fb-panel); }
.fba-tariff.is-selected .fba-tariff__mark {
  background: var(--fb-accent);
  border-color: var(--fb-accent);
  color: var(--fb-paper);
}
.fba-tariff:focus-within { outline: 2px solid var(--fb-accent); outline-offset: -2px; }

.fba-pay__promise {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--fb-accent-line);
  background: var(--fb-accent-wash);
  font-size: var(--fb-fs-xs);
  line-height: 1.55;
  color: var(--fb-muted-1);
}

/* ---------- 7. Шаг 4 · Результат ---------- */
.fba-result__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.fba-btn-ghost {
  padding: 11px 18px;
  background: transparent;
  border: 1px solid var(--fb-line-5);
  font-family: inherit;
  font-size: var(--fb-fs-xs);
  color: var(--fb-muted-1);
  cursor: pointer;
  transition: border-color var(--fb-dur) ease, color var(--fb-dur) ease;
}
.fba-btn-ghost:hover { border-color: var(--fb-ink); color: var(--fb-ink); }

.fba-formats { margin-top: 22px; }
.fba-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.fba-card {
  border: 1px solid var(--fb-line-2);
  background: var(--fb-panel);
  transition: border-color var(--fb-dur) ease;
}
.fba-card.is-selected { border-color: var(--fb-accent); }
.fba-card__shot {
  position: relative;
  aspect-ratio: var(--fba-ratio, 3 / 4);
  background: var(--fb-ph-warm-10);
  overflow: hidden;
  transition: aspect-ratio .2s var(--fb-ease);
}
.fba-card__shot img { width: 100%; height: 100%; object-fit: cover; }
.fba-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  background: var(--fb-scrim-2);
  color: var(--fb-paper);
  font-family: var(--fb-font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}
.fba-card__check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--fb-paper);
  background: rgba(20, 24, 29, 0.35);
  color: var(--fb-paper);
  font-size: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.fba-card.is-selected .fba-card__check { background: var(--fb-accent); }
.fba-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
}
.fba-card__label { font-size: var(--fb-fs-xxs); font-weight: 600; }
.fba-card__dl {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  color: var(--fb-accent);
  flex: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.fba-card__dl:hover { color: var(--fb-ink); }

.fba-bar {
  position: sticky;
  bottom: 16px;
  margin-top: 26px;
  background: var(--fb-ink);
  color: var(--fb-paper);
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 10;
}
.fba-bar__count { font-size: var(--fb-fs-xs); }
.fba-bar__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fba-bar__btn {
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: var(--fb-paper);
  font-family: inherit;
  font-weight: 600;
  font-size: var(--fb-fs-xxs);
  cursor: pointer;
}
.fba-bar__btn:hover { background: rgba(255, 255, 255, 0.12); }
.fba-bar__btn--solid {
  background: var(--fb-paper);
  color: var(--fb-ink);
  border-color: var(--fb-paper);
}
.fba-bar__btn--solid:hover { background: #fff; color: var(--fb-ink); }

.fba-legal {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--fb-line);
  padding-top: 14px;
}
.fba-linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: var(--fb-fs-xxs);
  color: var(--fb-accent);
  cursor: pointer;
  text-align: left;
}
.fba-linkbtn:hover { color: var(--fb-ink); }

/* ---------- 8. Адаптив ---------- */
@media (max-width: 900px) {
  .fba-upload,
  .fba-pay { grid-template-columns: 1fr; }
  .fba-shot { position: static; max-width: 380px; }
}

@media (max-width: 720px) {
  .fba-top__inner { padding: 10px var(--fb-gutter); gap: 10px; }
  .fba-steps { order: 3; width: 100%; justify-content: space-between; gap: 2px; }
  .fba-step__label { display: none; }
  .fba-step__sep { width: 100%; min-width: 10px; }
  .fba-step { flex: 1; }
  .fba-step.is-active .fba-step__label { display: inline; }
  .fba-main { padding-bottom: 64px; }
  .fba-drop { min-height: 280px; padding: 20px; }
  .fba-drop__empty { min-height: 236px; }
  .fba-thumbs { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .fba-cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .fba-card__foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .fba-tariff { gap: 10px; padding: 14px; }
  .fba-tariff__price { font-size: 20px; }
  .fba-bar { padding: 11px 14px; bottom: 8px; }
}

/* ---------- Свой фон клиента ---------- */
/* Превью фона показывается ландшафтной полосой: фон — это обстановка, и по узкой
   вертикальной миниатюре не понять, что именно загружено. */
.fba-bg {
  position: relative;
  aspect-ratio: 16 / 7;
  border: 1px dashed var(--fba-line, #d7dae0);
  background: var(--fba-panel, #f2f2f0);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.fba-bg__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fba-bg__empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  padding: 0 14px;
}
.fba-bg__hint {
  font-family: var(--fba-font-mono, monospace);
  font-size: 11.5px;
  color: var(--fba-muted, #6b7280);
}
.fba-bg__clear {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(255, 255, 255, .92);
}
