/* Превью решения. Цвета и шрифты приходят переменными --k-* от отрасли. */

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

}
@media (max-width: 900px) { .fm-kit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fm-kit { grid-template-columns: minmax(0, 1fr); } }

.fm-tile { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; container-type: inline-size; }
.fm-tile > div {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--k-soft);
  color: var(--k-ink);
  font-family: var(--k-body);
  position: relative;
}
.fm-tile figcaption { font-size: 14px; color: var(--muted, #6e6e73); }
.fm-kit__note { font-size: 14px; color: var(--muted, #6e6e73); margin: 12px 0 0; }

.fm-mark {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--k-accent); color: var(--k-bg);
  font: 700 24px/1 var(--k-head);
  flex: none;
}
.fm-mark--sm { width: 22px; height: 22px; border-radius: 6px; font-size: 12px; }

/* Сайт */
.fm-browser { background: var(--k-bg) !important; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.fm-browser__bar { display: flex; gap: 4px; align-items: center; padding: 7px 10px; background: rgba(0,0,0,.05); }
.fm-browser__bar span { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.18); }
.fm-browser__bar em { margin-left: 8px; font: 10px/1 -apple-system, sans-serif; color: rgba(0,0,0,.45); font-style: normal; background: rgba(255,255,255,.7); padding: 3px 8px; border-radius: 4px; }
.fm-site { padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
.fm-site__nav { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.fm-site__nav i { margin-left: auto; font-style: normal; opacity: .6; font-weight: 400; }
.fm-site__hero h4 { margin: 4px 0 2px; font: 700 clamp(16px, 6cqi, 22px)/1.1 var(--k-head); }
.fm-site__hero p { margin: 0 0 8px; font-size: 12px; opacity: .7; line-height: 1.3; }
.fm-btn { display: inline-block; background: var(--k-accent); color: var(--k-bg); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.fm-site__list { list-style: none; margin: auto 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fm-site__list li { background: color-mix(in srgb, var(--k-ink) 8%, transparent); border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 2px; font-size: 9px; line-height: 1.2; min-width: 0; }
.fm-site__list b { color: var(--k-accent); }

/* Знак и стиль */
.fm-identity { display: grid !important; grid-template-rows: 1fr auto auto; padding: 14px; gap: 10px; background: var(--k-bg) !important; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.fm-identity__logo { display: flex; align-items: center; gap: 10px; font: 700 clamp(16px, 5cqi, 22px)/1.1 var(--k-head); }
.fm-identity__swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fm-identity__swatches span { height: 34px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); display: flex; align-items: flex-end; padding: 3px 5px; }
.fm-identity__swatches em { font: 8px/1 "SF Mono", Menlo, monospace; font-style: normal; background: rgba(255,255,255,.8); color: #111; border-radius: 3px; padding: 1px 3px; }
.fm-identity__type { display: flex; gap: 14px; align-items: baseline; }
.fm-identity__type .fm-head { font: 700 28px/1 var(--k-head); }
.fm-identity__type .fm-body { font: 400 20px/1 var(--k-body); opacity: .7; }

/* Прайс */
.fm-price { padding: 14px 16px; display: flex !important; flex-direction: column; background: var(--k-bg) !important; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.fm-price h5 { margin: 0 0 8px; font: 700 18px/1 var(--k-head); color: var(--k-accent); text-transform: uppercase; letter-spacing: .04em; }
.fm-price ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.fm-price li { display: flex; align-items: baseline; gap: 6px; }
.fm-price li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-price li i { flex: 1; border-bottom: 1px dotted currentColor; opacity: .35; min-width: 10px; }
.fm-price li b { white-space: nowrap; }
.fm-price small { margin-top: auto; font-size: 9px; opacity: .6; }

/* Вывеска */
.fm-facade { display: flex !important; flex-direction: column; background: #d9d6d0 !important; padding: 14px 14px 0; }
.fm-sign { background: var(--k-ink); color: var(--k-bg); border-radius: 6px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.fm-sign strong { font: 700 clamp(14px, 5cqi, 24px)/1 var(--k-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fm-sign .fm-mark { width: 32px; height: 32px; font-size: 18px; border-radius: 8px; }
.fm-facade__wall { flex: 1; display: flex; align-items: flex-end; gap: 10px; padding-top: 12px; }
.fm-door { width: 38%; height: 78%; background: #5b6570; border-radius: 3px 3px 0 0; box-shadow: inset 0 0 0 4px #4a525b; }
.fm-hours { background: var(--k-bg); color: var(--k-ink); font-size: 9px; padding: 5px 7px; border-radius: 4px; margin-bottom: 30%; }

/* Визитка */
.fm-stage { display: grid; place-items: center; }
.fm-card { width: 78%; aspect-ratio: 90 / 50; background: var(--k-bg); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 10px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; font-size: 9px; position: relative; }
.fm-card .fm-mark { position: absolute; top: 10px; left: 12px; }
.fm-card strong { font: 700 14px/1.1 var(--k-head); margin-bottom: 2px; }
.fm-card > span { opacity: .7; }

/* Пост */
.fm-post { height: 86%; aspect-ratio: 1; background: var(--k-accent); color: var(--k-bg); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.fm-post__tag { font-size: 9px; opacity: .85; text-transform: uppercase; letter-spacing: .06em; }
.fm-post strong { margin-top: auto; font: 700 clamp(14px, 5cqi, 20px)/1.05 var(--k-head); }
.fm-post em { font-style: normal; font-weight: 700; font-size: 14px; }
.fm-post small { font-size: 8px; opacity: .8; }

/* ── Онбординг: шаги, команда, файлы, состояние заказа (§19–§25) ───────────── */

.fm-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; padding: 0; list-style: none; }
.fm-steps a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--shop-border, #e2e2de);
  border-radius: 999px; font-size: 14px; text-decoration: none; color: inherit;
}
.fm-steps a:hover { border-color: var(--shop-border-strong, #c9c9c1); }
.fm-steps a.is-current { border-color: currentColor; font-weight: 600; }
.fm-steps a.is-done .fm-steps__num { background: #30a46c; color: #fff; border-color: #30a46c; }
.fm-steps__num {
  display: inline-grid; place-items: center; width: 22px; height: 22px;
  border: 1px solid var(--shop-border, #e2e2de); border-radius: 50%;
  font-size: 12px; font-variant-numeric: tabular-nums;
}

/* Состояние работы: показывается, только когда работа началась */
.fm-stages { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 14px; }
.fm-stages li { position: relative; padding-left: 18px; opacity: .5; }
.fm-stages li::before { content: "○"; position: absolute; left: 0; }
.fm-stages li.is-done { opacity: .75; }
.fm-stages li.is-done::before { content: "●"; }
.fm-stages li.is-current { opacity: 1; font-weight: 600; }
.fm-stages li.is-current::before { content: "◉"; }

.fm-team__row { border: 1px solid var(--shop-border, #e2e2de); border-radius: 12px; padding: 16px; margin: 0 0 14px; }
.fm-team__row legend { font-size: 14px; padding: 0 6px; opacity: .7; }

.fm-check { margin: 16px 0 12px; display: grid; gap: 8px; }
.fm-check > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--shop-border, #e2e2de); padding-bottom: 8px; }
.fm-check dt { font-size: 14px; opacity: .7; margin: 0; }
.fm-check dd { margin: 0; font-size: 14px; text-align: right; }
.fm-check__gap { opacity: .45; }

/* Список файлов рисует Firmenno Cloud (решение 040) — свой стиль убран
   вместе со своей формой загрузки. */

@media (max-width: 640px) {
  .fm-check > div { flex-direction: column; gap: 2px; }
  .fm-check dd { text-align: left; }
}

/* Заголовок шага и подпись под ним.
 *
 * Дизайн-система `.com` даёт заголовкам в тексте отрицательный нижний отступ
 * (`.site-scope .prose h3 { margin-bottom: -0.8em }`) — там следующий абзац
 * имеет свой верхний, и они гасят друг друга. В кабинете абзаца нет, и подпись
 * наезжала на заголовок.
 *
 * У заголовка свой класс: без него селекторы равны по точности, а чужой файл
 * грузится позже и побеждает. Чужое правило не трогаем — в тексте оно на месте. */
.site-scope .fm-configure h3.fm-step-title { margin: 0 0 6px; }
.site-scope .fm-configure .fm-hint { margin: 0 0 18px; }
