/* ==========================================================================
   BENSER ID Studio — пошаговый конструктор и заказ NFC-визиток. Mobile-first: 360 → 720 → 960.
   ========================================================================== */
:root { --phone-w: min(220px, 60vw); --st-header: 80px; }
html { scroll-behavior: smooth; scroll-padding-top: var(--st-header); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html:has(body.st), body.st { overflow-x: clip; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.ic--back { transform: scaleX(-1); }
.mono { font-family: var(--bn-font-mono); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--bn-gutter); position: relative; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }

.aurora { position: relative; isolation: isolate; }
.aurora::before, .aurora::after {
  content: ""; position: absolute; z-index: -1; width: 60%; aspect-ratio: 1; border-radius: 50%;
  transform: scale(1.25); opacity: var(--bn-aurora-opacity); pointer-events: none;   /* градиент вместо blur(90px) — как на витрине */
}
.aurora::before { background: radial-gradient(closest-side, var(--bn-aurora-a), transparent); top: -10%; left: -10%; }
.aurora::after { background: radial-gradient(closest-side, var(--bn-aurora-b), transparent); bottom: -10%; right: -10%; }

/* --- Шапка --- */
.st-hdr {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--bn-gutter); padding-top: max(12px, env(safe-area-inset-top));
  background: var(--bn-scrim); -webkit-backdrop-filter: var(--bn-glass-blur); backdrop-filter: var(--bn-glass-blur); border-bottom: 1px solid var(--bn-border);
}
.logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--bn-text); text-decoration: none; }
.logo__mark { width: 26px; height: 26px; }
.logo__word { font: 600 1.25rem/1 var(--bn-font-display); letter-spacing: -.025em; }

/* --- Типографика --- */
.st-eyebrow { margin: 0 0 14px; color: var(--bn-accent-ink); }
.st-title { font-size: var(--bn-fs-h1); max-width: 16ch; }
.st-h2 { font-size: var(--bn-fs-h2); margin-bottom: var(--bn-s6); max-width: 22ch; }
.st-h3 { display: flex; align-items: center; gap: 10px; font-size: var(--bn-fs-h3); margin: 0 0 8px; }
.st-lead { margin: 18px 0 0; max-width: 56ch; font-size: 1.0625rem; color: var(--bn-text-2); }
.st-note { margin: 10px 0 0; font-size: var(--bn-fs-small); color: var(--bn-text-2); }
.st-note--lead { margin: 0 0 12px; }

/* --- Hero --- */
.st-hero { padding-top: 40px; padding-bottom: 24px; }
.st-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.st-ref { margin: 16px 0 0; font-size: var(--bn-fs-label); color: var(--bn-accent-ink); }
.st-section { padding-top: 56px; padding-bottom: 8px; }

/* --- Возможности --- */
.st-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.st-feats li { padding: 20px; }
.st-feats .ic { width: 26px; height: 26px; color: var(--bn-accent); }
.st-feats h3 { margin: 14px 0 6px; font-size: 1.125rem; letter-spacing: -.01em; line-height: 1.2; }
.st-feats p { margin: 0; color: var(--bn-text-2); font-size: .9375rem; }

/* --- Визард: прогресс, превью, шаг, панель «Назад / Далее» --- */
.st-wiz { display: grid; gap: 16px; }
.st-progress { display: grid; gap: 10px; }
.st-progress__count { margin: 0; font-size: var(--bn-fs-label); letter-spacing: var(--bn-tracking-label); text-transform: uppercase; color: var(--bn-accent-ink); }
.st-progress__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.st-progress__bar li { height: 4px; border-radius: 2px; background: var(--bn-border); transition: background var(--bn-t-hover) var(--bn-ease); }
.st-progress__bar li.is-done { background: var(--bn-grad); }

.st-preview { display: grid; justify-items: center; }
.st-cardview { display: grid; justify-items: center; gap: 10px; width: 100%; }
.st-cardview .idcard--canvas { max-width: min(264px, 72vw); cursor: default; }
.st-hubview { display: none; justify-items: center; }
.st-wiz[data-step="4"] .st-cardview, .st-wiz[data-step="5"] .st-preview { display: none; }
.st-wiz[data-step="4"] .st-hubview { display: grid; }
.st-flip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--bn-r-pill);
  border: 1px solid var(--bn-border); background: var(--bn-surface); color: var(--bn-text); cursor: pointer;
  font: 500 var(--bn-fs-label)/1 var(--bn-font-mono); letter-spacing: var(--bn-tracking-label); text-transform: uppercase;
}
.st-flip .ic { color: var(--bn-accent); }
.st-flip__side { color: var(--bn-text-2); }
.st-flip__side::before { content: "·"; margin-right: 8px; }

.st-form { display: grid; gap: 14px; min-width: 0; }
.st-step { margin: 0; padding: 20px 16px; border: 1px solid var(--bn-border); border-radius: var(--bn-r-card); background: var(--bn-surface); box-shadow: var(--bn-shadow); min-width: 0; }
.st-step__title { float: left; width: 100%; margin: 0 0 16px; padding: 0; font: 600 1.25rem/1.2 var(--bn-font-display); letter-spacing: -.015em; }
.st-step__title + * { clear: both; }
.st-step.is-in { animation: st-in 260ms var(--bn-ease) both; }
.st-wiz[data-dir="back"] .st-step.is-in { animation-name: st-in-back; }
@keyframes st-in { from { opacity: 0; transform: translateX(14px); } }
@keyframes st-in-back { from { opacity: 0; transform: translateX(-14px); } }
@media (prefers-reduced-motion: reduce) { .st-step.is-in { animation: none; } }

.st-nav {
  position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  margin: 0 calc(-1 * var(--bn-gutter)); padding: 10px var(--bn-gutter); padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: var(--bn-scrim); -webkit-backdrop-filter: var(--bn-glass-blur); backdrop-filter: var(--bn-glass-blur); border-top: 1px solid var(--bn-border);
}
.st-nav__sum { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-width: 0; }
.st-nav__sum b { font: 600 1.25rem/1 var(--bn-font-display); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-nav__sum span { font-size: var(--bn-fs-micro); color: var(--bn-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-nav .bn-btn { flex: none; min-height: 50px; font-size: 1rem; }
.st-nav__back { width: 50px; padding: 0; }
.st-nav__next { padding: 0 20px; }

/* --- Шаг 1 и 3: крупные варианты --- */
.st-plans { display: grid; gap: 10px; }
.st-plan, .st-tier {
  display: grid; gap: 4px; padding: 14px 16px; text-align: left; border-radius: var(--bn-r-control);
  border: 1.5px solid var(--bn-border); background: var(--bn-surface); color: var(--bn-text); cursor: pointer; font: inherit;
  transition: border-color var(--bn-t-hover) var(--bn-ease), transform var(--bn-t-press) var(--bn-ease);
}
.st-plan b { font-weight: 600; }
.st-plan span { font-size: var(--bn-fs-small); color: var(--bn-text-2); }
:is(.st-plan, .st-tier)[aria-pressed="true"] { border-color: transparent; background: linear-gradient(var(--bn-surface), var(--bn-surface)) padding-box, var(--bn-grad) border-box; box-shadow: var(--bn-shadow-lift); }

/* --- Шаг 2: тиражи с ценой --- */
.st-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-tier { align-content: start; gap: 2px; min-height: 76px; padding: 10px 14px; }
.st-tier--custom { grid-column: 1 / -1; min-height: 56px; }
.st-tier__qty { font: 600 1.375rem/1.1 var(--bn-font-display); letter-spacing: -.02em; }
.st-tier__total { font-size: 1rem; }
.st-tier__per { font-size: var(--bn-fs-micro); color: var(--bn-text-2); }

/* --- Шаг 3: дизайн --- */
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip, .st-seg button {
  min-height: 44px; min-width: 52px; padding: 0 14px; border-radius: var(--bn-r-pill); border: 1px solid var(--bn-border);
  background: var(--bn-surface-2); color: var(--bn-text); font: 500 .9375rem/1 var(--bn-font-text); cursor: pointer;
  transition: background var(--bn-t-hover) var(--bn-ease), color var(--bn-t-hover) var(--bn-ease), transform var(--bn-t-press) var(--bn-ease);
}
:is(.st-chip, .st-seg button, .st-plan, .st-tier, .st-dot, .st-sugg, .st-flip, .st-add, .st-slot__rm, .st-manual-btn, .bn-btn):active { transform: scale(.97); }
:is(.st-chip, .st-seg button)[aria-pressed="true"] { background: var(--bn-grad); color: var(--bn-on-accent); border-color: transparent; }
.st-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.st-design { margin-top: 18px; }
.st-design > .bn-label, .st-manual .bn-label { margin: 0 0 10px; }

/* Сферы на телефоне — одна строка с прокруткой, чтобы шаг не растягивался */
/* scroll-padding: иначе притяжение ставит первую сферу к краю карточки и строка стартует сдвинутой на 16px влево */
.st-chips--scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-padding-inline: 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
.st-chips--scroll::-webkit-scrollbar { display: none; }
.st-chips--scroll .st-chip { flex: none; scroll-snap-align: start; }
.st-suggest { margin-top: 16px; }
/* «Подходящие дизайны» и рядом «Выбрать вручную» — цвет карты и композиция открываются под дизайнами */
.st-suggest__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st-suggest__head .bn-label { flex: 1 1 0; min-width: 0; margin: 0; }
.st-suggest > .st-note { margin: 10px 0 0; }
/* Видимая высота 36px, зона касания 44px — за счёт ::after */
.st-manual-btn {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: var(--bn-r-pill);
  border: 1px solid var(--bn-border); background: var(--bn-surface-2); color: var(--bn-accent-ink); font: 500 .8125rem/1 var(--bn-font-text);
  white-space: nowrap; cursor: pointer;
  transition: background var(--bn-t-hover) var(--bn-ease), border-color var(--bn-t-hover) var(--bn-ease), transform var(--bn-t-press) var(--bn-ease);
}
.st-manual-btn::after { content: ""; position: absolute; inset: -4px 0; }
.st-manual-btn .ic { width: 14px; height: 14px; }
.st-manual-btn:hover, .st-manual-btn[aria-expanded="true"] { background: var(--bn-accent-soft); border-color: var(--bn-accent); }
.st-manual { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--bn-border); }
.st-manual .st-dots__name { margin-bottom: 16px; }
.st-suggest__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.st-sugg {
  display: grid; gap: 6px; padding: 8px; border-radius: var(--bn-r-control); min-height: 44px;
  border: 1.5px solid var(--bn-border); background: var(--bn-surface); color: var(--bn-text); font: 500 .75rem/1.25 var(--bn-font-text); text-align: left; cursor: pointer;
}
.st-sugg small { color: var(--bn-text-2); font-size: var(--bn-fs-micro); }
.st-sugg[aria-pressed="true"] { border-color: var(--bn-accent); box-shadow: 0 0 0 3px var(--bn-accent-soft); }
.st-sugg__mini {
  position: relative; display: block; width: 100%; aspect-ratio: 85.6 / 54; border-radius: 4px; background: var(--sw-card);
}
/* Контур поверх плашки — иначе светлая карта сливается с белой плиткой */
.st-sugg__mini::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--bn-border); pointer-events: none; }
/* Плашка — точка отсчёта для кольца и линии: у монохромных отступает на белую рамку (--sw-inset из studio.js) */
.st-sugg__plate { position: absolute; inset: var(--sw-inset, 0); border-radius: inherit; background: var(--sw-card); }
.st-sugg__mini em {
  position: absolute; right: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sw-a), var(--sw-b));
  -webkit-mask: radial-gradient(circle, transparent 45%, #000 47%); mask: radial-gradient(circle, transparent 45%, #000 47%);
}
.st-sugg__mini b { position: absolute; left: 6px; bottom: 7px; width: 26px; height: 4px; border-radius: 2px; background: var(--sw-text); }
.st-sugg__mini--center b { left: 50%; bottom: auto; top: 54%; transform: translateX(-50%); }
.st-sugg__mini--center em { left: 50%; right: auto; top: 18%; transform: translateX(-50%); }
.st-sugg__mini--bold b { top: 7px; bottom: auto; width: 34px; height: 6px; }
.st-sugg__mini--bold em { top: auto; bottom: 5px; }

/* Монохромная печать: вокруг плашки — белая рамка 2 мм, как на карте */
.st-sugg__mini--framed { background: var(--sw-plastic); }
.st-sugg__mini--framed .st-sugg__plate { border-radius: 2px; }

/* «Скоро»: аккуратный бейдж; цветные дизайны видны в каталоге, но не выбираются */
.st-badge {
  justify-self: start; display: inline-block; padding: 3px 8px; border-radius: var(--bn-r-pill); border: 1px solid var(--bn-border);
  background: var(--bn-surface-2); color: var(--bn-text-2); font: 600 var(--bn-fs-micro)/1.2 var(--bn-font-text); white-space: nowrap;
}
.st-plan .st-badge { font-size: var(--bn-fs-micro); color: var(--bn-text-2); }
.st-plan:disabled { cursor: not-allowed; background: var(--bn-surface-2); }
.st-plan:disabled:active { transform: none; }
.st-soon { margin-top: 20px; }
.st-soon > .bn-label { margin: 0; }
.st-soon > .st-note { margin: 4px 0 0; }
/* На телефоне — одна строка с прокруткой, как сферы */
.st-soon__list {
  display: flex; gap: 8px; margin: 10px -16px 0; padding: 0 16px 4px; list-style: none;
  overflow-x: auto; scroll-padding-inline: 16px; scrollbar-width: none;
}
.st-soon__list::-webkit-scrollbar { display: none; }
.st-sugg--soon { flex: 0 0 112px; cursor: default; }
.st-sugg--soon:active { transform: none; }
.st-sugg--soon > span { color: var(--bn-text-2); }

/* Палитры — кружки 44 px: фон карты/страницы + кольцо её градиента */
.st-dots { display: flex; flex-wrap: wrap; gap: 10px; }
.st-dot {
  position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--sw-bg); box-shadow: inset 0 0 0 1px var(--bn-border-strong);
  transition: box-shadow var(--bn-t-hover) var(--bn-ease), transform var(--bn-t-press) var(--bn-ease);
}
.st-dot::after {
  content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--sw-ring);
  -webkit-mask: radial-gradient(circle, transparent 42%, #000 46%); mask: radial-gradient(circle, transparent 42%, #000 46%);
}
.st-dot[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--bn-border-strong), 0 0 0 2px var(--bn-surface), 0 0 0 4px var(--bn-accent); }
.st-dots__name { margin: 10px 0 0; font-size: var(--bn-fs-small); color: var(--bn-text); }

/* Раскрывашка «текст заказа» на шаге 5 */
.st-more { margin-top: 18px; border-top: 1px solid var(--bn-border); }
.st-more > summary { min-height: 48px; display: flex; align-items: center; color: var(--bn-accent-ink); font-size: var(--bn-fs-small); font-weight: 500; cursor: pointer; }
.st-more[open] > summary { margin-bottom: 6px; }

.st-field { display: grid; gap: 6px; margin-top: 12px; font-size: var(--bn-fs-small); color: var(--bn-text-2); }
.st-field:first-child { margin-top: 0; }
.st-field small { font-size: var(--bn-fs-label); }
.st-field input, .st-prefix, .st-slot__extra {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--bn-r-control); border: 1px solid var(--bn-border-strong);
  background: var(--bn-surface); color: var(--bn-text); font: 400 1rem/1.3 var(--bn-font-text);
}
:is(.st-field input, .st-slot__extra):focus-visible { outline: 2px solid var(--bn-accent); outline-offset: 1px; }
.st-prefix { display: flex; align-items: center; gap: 2px; padding-right: 0; }
.st-prefix .mono { font-size: .8125rem; color: var(--bn-text-2); white-space: nowrap; }
.st-prefix input { min-height: 46px; border: 0; padding: 0 12px 0 0; outline: none; min-width: 0; }
.st-prefix:focus-within { outline: 2px solid var(--bn-accent); outline-offset: 1px; }
.st-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.st-upload__btn { min-height: 46px; font-size: .9375rem; }
.st-art { display: grid; gap: 6px; margin-bottom: 12px; }
.st-art .st-upload__btn { justify-self: start; }
.st-art--back { margin: 12px 0 0; }
.st-art__status { margin: 0; font-size: var(--bn-fs-small); color: var(--bn-text-2); }
.st-art__status:empty { display: none; }
.st-art__status.is-ok { color: var(--bn-text); }
.st-link { min-height: 44px; border: 0; background: none; color: var(--bn-accent-ink); font: 500 var(--bn-fs-small)/1 var(--bn-font-text); cursor: pointer; text-decoration: underline; }

/* --- Шаг 4: кнопки страницы Hub — «тип + значение», до 5 --- */
.st-slots { display: grid; gap: 10px; }
.st-slot { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
.st-slot__box {
  display: flex; min-height: 48px; border: 1px solid var(--bn-border-strong); border-radius: var(--bn-r-control);
  background: var(--bn-surface); overflow: hidden;
}
.st-slot__box:focus-within { outline: 2px solid var(--bn-accent); outline-offset: 1px; }
.st-slot.is-invalid .st-slot__box, .st-slot.is-invalid .st-slot__extra { border-color: var(--bn-error); }
.st-slot__tw { position: relative; flex: none; width: 124px; background: var(--bn-surface-2); border-right: 1px solid var(--bn-border); }
.st-slot__tw::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; margin-top: -5px; pointer-events: none;
  border: solid var(--bn-text-2); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.st-slot__type {
  width: 100%; height: 100%; min-height: 46px; padding: 0 26px 0 12px; border: 0; background: transparent; color: var(--bn-text);
  font: 500 1rem/1.2 var(--bn-font-text); -webkit-appearance: none; appearance: none; cursor: pointer; outline: none;
}
.st-slot__value { flex: 1 1 auto; min-width: 0; padding: 0 12px; border: 0; background: transparent; color: var(--bn-text); font: 400 1rem/1.3 var(--bn-font-text); outline: none; }
.st-slot__extra { grid-column: 1 / 2; }
.st-slot__rm { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bn-surface-2); color: var(--bn-text-2); font: 400 1.375rem/1 var(--bn-font-text); cursor: pointer; }
.st-add {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; padding: 0 16px; border-radius: var(--bn-r-pill);
  border: 1px dashed var(--bn-border-strong); background: none; color: var(--bn-accent-ink); font: 500 .9375rem/1 var(--bn-font-text); cursor: pointer;
}

/* --- Шаг 5: сводка и отправка заказа --- */
.st-sum { display: grid; gap: 16px; }
.st-sum__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-sum__cards canvas { display: block; width: 100%; height: auto; border-radius: 3.7% / 5.9%; border: 1px solid var(--bn-border); box-shadow: var(--bn-shadow); }
.st-sum__list { display: grid; margin: 0; }
.st-sum__row { display: grid; grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--bn-border); }
.st-sum__row dt { font-size: var(--bn-fs-small); color: var(--bn-text-2); }
.st-sum__row dd { margin: 0; font-size: .9375rem; overflow-wrap: anywhere; }
.st-sum__row--total dd { font: 600 1.5rem/1.1 var(--bn-font-display); letter-spacing: -.02em; }
.st-sum__links { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.st-order__btns { display: grid; gap: 8px; margin-top: 14px; }
.st-order__btns .bn-btn { width: 100%; }
.st-order__hint:empty { display: none; }
.st-order__text { max-height: 220px; overflow: auto; margin: 0 0 6px; padding: 12px; border-radius: var(--bn-r-control); background: var(--bn-surface-2); font-size: .75rem; white-space: pre-wrap; word-break: break-word; }

.st-errors { padding: 14px 16px; border-radius: var(--bn-r-control); border: 1px solid var(--bn-error); background: var(--bn-surface); color: var(--bn-text); font-size: var(--bn-fs-small); }
.st-errors ul { margin: 6px 0 0; padding-left: 18px; }

/* --- Телефон для превью Hub (iPhone-подобный) --- */
.st-phone {
  --r: 40px; position: relative; width: var(--phone-w); aspect-ratio: 9 / 18.6; padding: 3px; border-radius: var(--r);
  background: var(--bn-device-frame); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 0 0 1px var(--bn-device-edge), var(--bn-shadow-device);
}
.st-phone .phone__screen { position: relative; height: 100%; border-radius: calc(var(--r) - 3px); overflow: hidden; border: 6px solid var(--bn-device-bezel); }
.st-phone .phone__screen::before { content: ""; position: absolute; z-index: 6; top: 8px; left: 50%; width: 64px; height: 18px; margin-left: -32px; border-radius: 18px; background: var(--bn-device-bezel); }
.st-phone .hub--preview { overflow-y: auto; }
.st-direct { display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; background: var(--bn-surface); text-align: center; }
.st-direct__mark { width: 64px; height: 64px; color: var(--bn-text); }
.st-direct__url { margin: 0; font-size: .8125rem; overflow-wrap: anywhere; color: var(--bn-accent-ink); }

/* --- Print Mode --- */
.st-print { padding-top: 48px; padding-bottom: 24px; }
.st-print__steps { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: step; }
.st-print__box { padding: 20px; display: grid; gap: 12px; align-content: start; counter-increment: step; }
.st-print__box .st-upload__btn { justify-self: start; }
.st-print__h { margin: 0; font: 600 1.125rem/1.2 var(--bn-font-display); }
.st-step__n { display: block; margin-bottom: 6px; font-size: var(--bn-fs-label); color: var(--bn-accent-ink); letter-spacing: var(--bn-tracking-label); }
.st-step__n::before { content: counter(step, decimal-leading-zero); }
.st-print__paste summary { min-height: 44px; display: flex; align-items: center; color: var(--bn-accent-ink); font-size: var(--bn-fs-small); cursor: pointer; }
.st-print__paste textarea { width: 100%; margin: 4px 0 10px; padding: 10px 12px; border: 1px solid var(--bn-border); border-radius: 12px; font: .8125rem/1.4 var(--bn-font-mono); }
.st-print__status:empty { display: none; }
.st-print__howto { margin: 0 0 6px; padding-left: 20px; display: grid; gap: 8px; color: var(--bn-text-2); font-size: var(--bn-fs-small); line-height: 1.45; overflow-wrap: anywhere; }
.st-print__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.st-print__row .bn-btn { min-height: 46px; font-size: .9375rem; }
.st-code { padding: 10px 12px; border-radius: 10px; background: var(--bn-surface-2); font-size: .8125rem; overflow-wrap: anywhere; }
.st-code--pre { margin: 0; white-space: pre-wrap; tab-size: 2; }
.st-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: var(--bn-fs-small); }
.st-check input { width: 20px; height: 20px; accent-color: var(--bn-accent); }

/* --- Подвал --- */
.st-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 40px; padding-bottom: 24px; }

@media (min-width: 720px) {
  .st-feats { grid-template-columns: repeat(2, 1fr); }
  .st-plans { grid-template-columns: 1fr 1fr; }
  .st-step { padding: 24px; }
  .st-tiers { grid-template-columns: repeat(4, 1fr); }
  .st-tier--custom { grid-column: span 2; min-height: 84px; }
  .st-chips--scroll { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .st-suggest__list { grid-template-columns: repeat(3, minmax(0, 168px)); }
  .st-soon__list { flex-wrap: wrap; overflow: visible; margin: 10px 0 0; padding: 0; }
  .st-order__btns { grid-template-columns: 1fr 1fr; }
  .st-print__steps { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  :root { --phone-w: 248px; }
  .st-hero { padding-top: 72px; }
  .st-feats { grid-template-columns: repeat(3, 1fr); }
  /* Превью слева, шаг справа; на шаге 5 сводка сама показывает обе стороны карты */
  .st-wiz {
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr); grid-template-areas: "preview progress" "preview form";
    align-items: start; column-gap: 48px; row-gap: 16px;
  }
  .st-progress { grid-area: progress; }
  .st-form { grid-area: form; }
  .st-preview { grid-area: preview; position: sticky; top: 96px; }
  .st-cardview .idcard--canvas { max-width: 440px; }
  .st-wiz[data-step="5"] { grid-template-columns: minmax(0, 720px); grid-template-areas: "progress" "form"; justify-content: center; }
  .st-nav { bottom: 16px; margin: 0; padding: 10px 10px 10px 20px; border: 1px solid var(--bn-border); border-radius: var(--bn-r-card); box-shadow: var(--bn-shadow); }
}
