/* Конструктор услуги — визуал в духе карточки товара + калькулятор */
:root {
  --mm-yellow: var(--mk-primary, #ffcc00);
  --mm-ink: #1a1a1a;
  --mm-muted: #6b6b6b;
  --mm-line: rgba(0, 0, 0, .1);
  --mm-card: #ffffff;
  --mm-soft: #f7f7f5;
}

/* —— Страница товара —— */
.prod-page {
  padding: 1.25rem 0 2.5rem;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(255, 204, 0, .12), transparent 55%),
    linear-gradient(180deg, #fafaf8 0%, #f3f3f0 100%);
}
.prod-page .svc-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  font-size: .88rem;
  color: var(--mm-muted);
  margin-bottom: 1.1rem;
}
.prod-page .svc-crumbs a {
  color: var(--mm-muted);
  font-weight: 600;
  text-decoration: none;
}
.prod-page .svc-crumbs a:hover { color: var(--mm-ink); }

.prod-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 1.35rem 1.5rem;
  align-items: stretch;
}
.prod-left,
.prod-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.prod-right {
  align-self: stretch;
}
@media (max-width: 980px) {
  .prod-layout { grid-template-columns: 1fr; }
}

.prod-gallery {
  background: var(--mm-card);
  border-radius: 18px;
  border: 1px solid var(--mm-line);
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(0, 0, 0, .04);
}
.prod-gallery-main {
  aspect-ratio: 4 / 3;
  background: var(--mm-soft);
  display: grid;
  place-items: center;
  position: relative;
  max-height: min(72vh, 620px);
}
.prod-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background:
    linear-gradient(45deg, #efeee8 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(-45deg, #efeee8 25%, transparent 25%) 0 0 / 16px 16px,
    #f7f6f2;
}
.prod-gallery-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--mm-yellow);
  color: var(--mm-ink);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  padding: .35rem .65rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.prod-thumbs {
  display: flex;
  gap: .5rem;
  padding: .75rem;
  overflow-x: auto;
  background: #fff;
}
.prod-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 2px solid transparent;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--mm-soft);
}
.prod-thumb.is-on { border-color: var(--mm-yellow); }
.prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prod-delivery {
  margin-top: 0;
  background: var(--mm-card);
  border: 1px solid var(--mm-line);
  border-radius: 16px;
  padding: 1rem 1.1rem 1.15rem;
}
.prod-dlv-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: .85rem;
}
.prod-dlv-head a {
  font-size: .85rem;
  font-weight: 700;
  color: var(--mm-ink);
}
.prod-dlv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) {
  .prod-dlv-grid { grid-template-columns: 1fr; }
}
.prod-dlv-brand {
  font-weight: 800;
  font-size: .92rem;
  margin-bottom: .45rem;
}
.prod-dlv-row {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  font-size: .9rem;
  margin-top: .35rem;
}
.prod-dlv-meta {
  font-size: .78rem;
  color: var(--mm-muted);
  margin-bottom: .35rem;
}

.prod-design-banner {
  margin: 0 auto 2.5rem;
}
.prod-design-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(255, 204, 0, .28), rgba(255, 255, 255, .9) 45%),
    var(--mm-card);
  border: 1px solid var(--mm-line);
}
.prod-design-copy strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: .25rem;
}
.prod-design-copy p {
  margin: 0;
  color: var(--mm-muted);
  max-width: 36rem;
}

/* —— Конструктор —— */
.mm-section--embed {
  margin: 0;
}
.mm-ctor {
  background: var(--mm-card);
  border: 1px solid var(--mm-line);
  border-radius: 18px;
  padding: 1.25rem 1.35rem 1.4rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .05);
}
/* Корень на странице товара: оболочка без «карточки», панели внутри колонок */
.mm-ctor--product {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.mm-ctor-pane {
  background: var(--mm-card);
  border: 1px solid var(--mm-line);
  border-radius: 18px;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .05);
}
.mm-ctor-pane--form {
  position: sticky;
  top: 1rem;
}
@media (max-width: 980px) {
  .mm-ctor-pane--form { position: static; }
}
.mm-order-block--visual .mm-order-h {
  margin-bottom: .85rem;
}
.mm-ctor-head { margin-bottom: 1rem; }
.mm-ctor-title {
  margin: 0 0 .35rem;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -.02em;
}
.mm-ctor-lead {
  margin: 0;
  color: var(--mm-muted);
  font-size: .92rem;
  line-height: 1.45;
}

.mm-modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .55rem;
  margin-bottom: 1.15rem;
}
.mm-mode {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  text-align: left;
  border: 1.5px solid var(--mm-line);
  background: var(--mm-soft);
  border-radius: 14px;
  padding: .75rem .7rem .7rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.mm-mode:hover { border-color: rgba(0, 0, 0, .22); }
.mm-mode.is-on {
  background: #fff;
  border-color: var(--mm-yellow);
  box-shadow: 0 0 0 1px var(--mm-yellow);
}
.mm-mode-ico { color: var(--mm-ink); opacity: .85; }
.mm-mode-txt b {
  display: block;
  font-size: .88rem;
  font-weight: 800;
}
.mm-mode-txt small {
  display: block;
  font-size: .72rem;
  color: var(--mm-muted);
  line-height: 1.3;
  margin-top: .15rem;
}
.mm-mode-check {
  position: absolute;
  top: .45rem;
  right: .45rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--mm-yellow);
  color: #111;
  font-size: .7rem;
  font-weight: 800;
  display: none;
  place-items: center;
}
.mm-mode.is-on .mm-mode-check { display: grid; }

.mm-order-block { margin-top: .25rem; }
.mm-order-h {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  font-weight: 800;
}

.mm-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: .85rem;
  flex-wrap: wrap;
}
.mm-tab {
  border: 1px solid var(--mm-line);
  background: var(--mm-soft);
  border-radius: 999px;
  padding: .4rem .9rem;
  font: inherit;
  cursor: pointer;
}
.mm-tab.is-active {
  background: var(--mm-ink);
  color: #fff;
  border-color: transparent;
}

.mm-stage { margin-bottom: 1rem; }
.mm-drop {
  border: 2px dashed rgba(0, 0, 0, .16);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  background: var(--mm-soft);
  transition: border-color .2s, background .2s;
}
.mm-drop.over,
.mm-drop:hover {
  border-color: var(--mm-yellow);
  background: #fffceb;
}
.mm-drop strong { display: block; margin-bottom: .3rem; }
.mm-drop span { font-size: .86rem; color: var(--mm-muted); }

.mm-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .55rem;
  margin-top: .75rem;
}
.mm-file-card {
  border: 1px solid var(--mm-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  font-size: .8rem;
}
.mm-thumb {
  aspect-ratio: 4/3;
  background: #eee;
  display: grid;
  place-items: center;
  position: relative;
}
.mm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mm-file-card > div:last-child {
  padding: .4rem .5rem;
  display: flex;
  justify-content: space-between;
  gap: .35rem;
  align-items: center;
}
.mm-file-card b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80px;
}
.mm-file-card button {
  border: 0;
  background: transparent;
  color: #a33;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.mm-canvas-hold {
  display: flex;
  justify-content: center;
  background: #e8e8e4;
  border-radius: 12px;
  padding: .75rem;
  overflow: auto;
}
.mm-canvas-hold canvas {
  max-width: 100%;
  height: auto;
  cursor: grab;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  touch-action: none;
}
.mm-hint {
  margin-top: .45rem;
  font-size: .82rem;
  color: var(--mm-muted);
  text-align: center;
}

.mm-file-status {
  padding: 0 .5rem .4rem;
  font-size: .72rem;
  color: var(--mm-muted);
}
.mm-file-badge {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: .12rem .35rem;
  border-radius: 6px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  background: #2a6f9c;
}
.mm-file-badge--manual { background: #c45c26; }
.mm-file-badge--pdf { background: #2a6f9c; }
.mm-file-card.is-manual {
  border-color: rgba(196, 92, 38, .35);
  background: #fffaf6;
}

.mm-safe-warn {
  margin: .55rem 0 0;
  padding: .55rem .7rem;
  border-radius: 10px;
  border: 1px solid rgba(196, 92, 38, .45);
  background: #fff4eb;
  color: #8a3d12;
  font-size: .82rem;
  line-height: 1.35;
}
.mm-safe-warn.is-on { display: block; }

.mm-preview-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  align-items: stretch;
}

.mm-bleed-panel {
  border: 1px solid #c5d9c8;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  font-size: .84rem;
}
.mm-bleed-panel[hidden] { display: none !important; }
.mm-bleed-panel__title {
  margin: 0;
  padding: .55rem .75rem;
  background: #d8ecd9;
  color: #1a3d22;
  font-size: .88rem;
  font-weight: 700;
}
.mm-bleed-fit {
  display: grid;
  gap: 0;
  padding: .35rem 0;
}
.mm-bleed-fit__opt {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .45rem .75rem;
  cursor: pointer;
  line-height: 1.3;
}
.mm-bleed-fit__opt:hover { background: #f4faf4; }
.mm-bleed-fit__opt input {
  margin-top: .15rem;
  accent-color: #2f8f46;
}
.mm-bleed-panel__warn {
  margin: 0;
  padding: .65rem .75rem;
  color: #c0392b;
  font-size: .8rem;
  line-height: 1.35;
  border-top: 1px solid #e8eee8;
}
.mm-bleed-legend {
  list-style: none;
  margin: 0;
  padding: .55rem .75rem .7rem;
  border-top: 1px solid #e8eee8;
  display: grid;
  gap: .35rem;
  font-size: .76rem;
  color: #444;
}
.mm-bleed-legend__swatch {
  display: inline-block;
  width: 1.1rem;
  height: 0;
  border-top: 2px dashed;
  vertical-align: middle;
  margin-right: .25rem;
}
.mm-bleed-legend .is-trim .mm-bleed-legend__swatch { border-color: #22a04a; }
.mm-bleed-legend .is-safe .mm-bleed-legend__swatch { border-color: #d64545; }

.mm-mock-tune {
  margin-top: .65rem;
  display: grid;
  gap: .4rem;
}
.mm-mock-tune[hidden] { display: none !important; }
.mm-zoom-row,
.mm-rot-row {
  display: grid;
  gap: .4rem;
}
.mm-zoom-btns,
.mm-rot-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
}
.mm-zoom-val {
  min-width: 3.2rem;
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
  color: var(--mm-ink, #222);
}
.mm-rot-btn {
  appearance: none;
  border: 1px solid var(--mm-line);
  background: #fff;
  color: var(--mm-ink, #222);
  border-radius: 8px;
  padding: .35rem .65rem;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}
.mm-rot-btn:hover {
  border-color: rgba(0, 0, 0, .28);
  background: #faf9f6;
}
.mm-rot-btn:active {
  transform: translateY(1px);
}
.mm-mock-hint {
  margin: 0;
  font-size: .76rem;
  color: var(--mm-muted);
  line-height: 1.35;
}

.mm-approve {
  margin: 0 0 1.1rem;
  padding: .9rem;
  border: 2px solid #1a1a1a;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffef5 0%, #f7f4e8 100%);
}
.mm-approve[hidden] { display: none !important; }
.mm-approve-legal {
  margin: 0 0 .65rem;
  font-size: .82rem;
  line-height: 1.45;
  color: #333;
}
.mm-approve-check {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  margin: 0 0 .5rem;
  font-size: .84rem;
  line-height: 1.35;
  cursor: pointer;
}
.mm-approve-check input { margin-top: .2rem; accent-color: #111; }
.mm-btn-approve {
  width: 100%;
  margin-top: .35rem;
  padding: .85rem 1rem !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #111 !important;
  color: #ffcc00 !important;
  border-color: #111 !important;
  border-radius: 12px !important;
}
.mm-btn-approve:hover:not(:disabled) {
  filter: brightness(1.08);
}
.mm-btn-approve:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.mm-approve-hint {
  margin: .55rem 0 0;
  font-size: .76rem;
  color: var(--mm-muted);
  line-height: 1.35;
}
.mm-approve-done {
  margin-top: .65rem;
  padding: .55rem .7rem;
  border-radius: 10px;
  background: #eaf7ee;
  color: #1a7a3c;
  font-weight: 700;
  font-size: .88rem;
}
.mm-approve-done[hidden] { display: none !important; }
.mm-approve.is-done {
  border-color: #1a7a3c;
  background: #f3fbf5;
}

.mm-preview-block {
  margin: 1rem 0 1.15rem;
  padding: .9rem;
  border: 1px solid var(--mm-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffef8 0%, #f7f6f2 100%);
}
.mm-preview-lead {
  margin: 0 0 .65rem;
  font-size: .84rem;
  color: var(--mm-muted);
  line-height: 1.4;
}
.mm-examples {
  display: flex;
  gap: .45rem;
  margin: 0 0 .65rem;
  overflow-x: auto;
  padding-bottom: 2px;
}
.mm-example {
  flex: 0 0 64px;
  width: 64px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}
.mm-example.is-on {
  border-color: var(--mm-yellow);
  box-shadow: 0 0 0 1px var(--mm-yellow);
}
.mm-example img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mm-mock-hold {
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    linear-gradient(45deg, #e8e6e0 25%, transparent 25%) -8px 0 / 16px 16px,
    linear-gradient(-45deg, #e8e6e0 25%, transparent 25%) -8px 0 / 16px 16px,
    #f0eee8;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  min-height: 360px;
  width: 100%;
  transition: min-height .2s ease;
}
.mm-mock-hold.is-landscape { min-height: 440px; }
.mm-mock-hold.is-portrait { min-height: 560px; }
.mm-mock-stage {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  line-height: 0;
  vertical-align: top;
}
.mm-mock-stage > canvas,
.mm-mock-hold canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  cursor: grab;
  border-radius: 12px;
  box-shadow: none;
  background: transparent;
  touch-action: none;
}
/* Safe-zone / вылеты — поверх canvas с картинкой
   зелёный пунктир = линия реза, красный = safe-zone (как в препресс-превью) */
.mm-print-guides {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  box-sizing: border-box;
  pointer-events: none;
  --mm-bleed: 6px;
  --mm-safe-inset: 9px;
}
.mm-print-guides[hidden] { display: none !important; }
.mm-print-guides__bleed {
  position: absolute;
  z-index: 1;
  inset: calc(-1 * var(--mm-bleed));
  border: var(--mm-bleed) solid rgba(34, 160, 74, .14);
  box-sizing: border-box;
  pointer-events: none;
}
.mm-print-guides__trim {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1.5px dashed rgba(34, 160, 74, .95);
  box-sizing: border-box;
  pointer-events: none;
}
.mm-print-guides__safe {
  position: absolute;
  z-index: 3;
  inset: var(--mm-safe-inset);
  border: 1.5px dashed rgba(214, 69, 69, .95);
  box-sizing: border-box;
  pointer-events: none;
}
.mm-print-guides.is-round,
.mm-print-guides.is-round .mm-print-guides__bleed,
.mm-print-guides.is-round .mm-print-guides__trim,
.mm-print-guides.is-round .mm-print-guides__safe {
  border-radius: 50%;
}
.mm-chips--visual {
  align-items: stretch;
}
.mm-chip--fmt {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  min-width: 4.5rem;
  padding: .55rem .6rem .45rem;
}
.mm-chip-shape {
  display: block;
  background: #fff;
  border: 1.5px solid #222;
  border-radius: 3px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .06);
}
.mm-chip--fmt.on .mm-chip-shape {
  border-color: #111;
  background: #fffdf2;
  box-shadow: 0 0 0 1px var(--mm-yellow);
}
.mm-chip-label {
  font-size: .78rem;
  line-height: 1.15;
  text-align: center;
}
.mm-personalize {
  margin-top: .75rem;
  display: grid;
  gap: .45rem;
}
.mm-personalize-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.mm-personalize-row .btn {
  font-size: .85rem;
  padding: .5rem .75rem;
  border-radius: 10px;
}

.mm-validate {
  margin: 0 0 1.1rem;
  padding: .85rem .9rem;
  border: 1px solid var(--mm-line);
  border-radius: 14px;
  background: #fff;
}
.mm-validate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  margin-bottom: .65rem;
}
.mm-validate-grid label {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-size: .78rem;
  color: var(--mm-muted);
}
.mm-validate-grid.is-locked label {
  opacity: .85;
}
.mm-validate-grid.is-locked input:disabled,
.mm-validate-grid.is-locked select:disabled {
  background: var(--mm-paper-2, #f3f4f6);
  cursor: not-allowed;
  opacity: 1;
}
.mm-validate-grid input,
.mm-validate-grid select {
  border: 1px solid var(--mm-line);
  border-radius: 10px;
  padding: .45rem .55rem;
  font: inherit;
  background: #fff;
  color: var(--mm-ink);
}
.mm-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .35rem;
}
.mm-check-list li {
  position: relative;
  padding: .4rem .55rem .4rem 1.85rem;
  border-radius: 10px;
  font-size: .84rem;
  background: var(--mm-soft);
}
.mm-check-list li::before {
  content: '○';
  position: absolute;
  left: .55rem;
  top: .35rem;
  font-weight: 700;
}
.mm-check-list li.is-ok {
  background: #eaf7ee;
  color: #1a7a3c;
}
.mm-check-list li.is-ok::before { content: '✓'; }
.mm-check-list li.is-warn {
  background: #fff7e6;
  color: #8a5a00;
}
.mm-check-list li.is-warn::before { content: '!'; }
.mm-check-list li.is-err {
  background: #fdeceb;
  color: #a33;
}
.mm-check-list li.is-err::before { content: '×'; }
.mm-check-list li.is-wait::before { content: '…'; color: var(--mm-muted); }
.mm-validate-msg {
  margin-top: .55rem;
  font-size: .82rem;
  line-height: 1.4;
}
.mm-val-ok { color: #1a7a3c; }
.mm-val-warn { color: #8a5a00; }
.mm-val-err { color: #a33; }

@media (max-width: 720px) {
  .mm-validate-grid {
    grid-template-columns: 1fr;
  }
}

.mm-field { margin-bottom: 1rem; }
.mm-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: .45rem;
  color: var(--mm-ink);
}
.mm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.mm-chip {
  border: 1.5px solid var(--mm-line);
  background: #fff;
  border-radius: 12px;
  padding: .45rem .7rem;
  font: inherit;
  font-size: .86rem;
  cursor: pointer;
  min-width: 4.5rem;
  text-align: center;
  transition: border-color .15s, box-shadow .15s;
}
.mm-chip.on {
  border-color: var(--mm-yellow);
  box-shadow: 0 0 0 1px var(--mm-yellow);
  background: #fffceb;
  font-weight: 700;
}
.mm-paper-chip-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  position: relative;
}
.mm-paper-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1.5px solid var(--mm-line, #cbd5e1);
  background: #f8fafc;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: help;
  line-height: 1;
  flex-shrink: 0;
}
.mm-paper-hint:hover,
.mm-paper-hint:focus {
  border-color: var(--mm-yellow, #eab308);
  color: #0f172a;
  background: #fffceb;
  outline: none;
}
.mm-paper-hints-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-top: 0.45rem;
}
.mm-paper-hint-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 0.78rem;
  color: var(--mm-muted, #64748b);
  cursor: help;
}
.mm-paper-tip {
  position: fixed;
  z-index: 12000;
  max-width: min(280px, calc(100vw - 16px));
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
  font-size: 0.82rem;
  line-height: 1.35;
  pointer-events: none;
}
.mm-paper-tip[hidden] {
  display: none !important;
}
.mm-paper-tip-title {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
}
.mm-paper-tip-img {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.45rem;
  background: #1e293b;
}
.mm-paper-tip-desc {
  margin: 0;
  color: #cbd5e1;
  white-space: pre-wrap;
}
.mm-paper-tip-empty {
  margin: 0 0 0.35rem;
  color: #94a3b8;
  font-size: 0.78rem;
  font-style: italic;
}
.mm-size-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-top: .55rem;
}
.mm-size-row label {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-size: .8rem;
  color: var(--mm-muted);
}
.mm-size-row input,
.mm-inp,
.mm-qty-inp {
  border: 1px solid var(--mm-line);
  border-radius: 12px;
  padding: .55rem .7rem;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
}

.mm-select-wrap {
  width: 100%;
}
.mm-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: block;
  width: 100%;
  border: 1px solid var(--mm-line);
  border-radius: 12px;
  padding: .55rem 2.4rem .55rem .75rem;
  font: inherit;
  font-size: .9rem;
  line-height: 1.35;
  color: var(--mm-ink);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 16px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.mm-select:hover {
  background-color: #fafafa;
  border-color: #c5cad3;
}
.mm-select:focus {
  outline: none;
  border-color: var(--mm-yellow);
  box-shadow: 0 0 0 2px var(--mm-yellow);
}
.mm-select optgroup {
  font-weight: 700;
  color: var(--mm-ink);
}
.mm-select option {
  font-weight: 500;
}
.mm-checks {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.mm-opt-row {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.mm-opt-choices {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding: 0 .45rem .15rem 1.9rem;
}
.mm-opt-choices[hidden] {
  display: none !important;
}
.mm-opt-choices .mm-chip {
  font-size: .82rem;
  padding: .28rem .65rem;
}
.mm-check {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .9rem;
  cursor: pointer;
  padding: .35rem .45rem;
  border-radius: 10px;
}
.mm-check:hover { background: var(--mm-soft); }

.mm-qty-row {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.mm-qty-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  border: 1px solid var(--mm-line);
  background: #fff;
  font-size: 1.15rem;
  cursor: pointer;
}
.mm-qty-inp { width: 5rem; text-align: center; font-weight: 700; }

.mm-placement {
  margin: 0 0 .85rem;
}
.mm-placement[hidden] { display: none !important; }
.mm-chips--placement {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .35rem;
}
.mm-chips--placement .mm-chip {
  border-radius: 10px;
  padding: .42rem .85rem;
  font-size: .86rem;
}
.mm-chips--placement .mm-chip.is-on {
  background: var(--mm-yellow, #f5c518);
  color: #111;
  border-color: transparent;
}
.mm-chips--placement .mm-chip.is-filled:not(.is-on) {
  box-shadow: inset 0 0 0 1.5px var(--mm-yellow, #f5c518);
}
.mm-placement-hint {
  margin: .4rem 0 0;
  font-size: .8rem;
  color: var(--mm-muted);
  line-height: 1.35;
}
.mm-mock-hold.is-placement-mirror canvas {
  transform: scaleX(-1);
}
.mm-mock-hold.is-placement-mirror .mm-print-guides {
  transform: scaleX(-1);
}
.mm-seg-item {
  position: relative;
  margin: 0;
  cursor: pointer;
}
.mm-seg-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.mm-seg-item span {
  display: block;
  padding: .5rem 1rem;
  font-size: .88rem;
  font-weight: 600;
}
.mm-seg-item input:checked + span {
  background: var(--mm-yellow);
  color: #111;
}

.mm-sl {
  display: block;
  font-size: .85rem;
  color: var(--mm-muted);
  margin-bottom: .45rem;
}
.mm-sl input { width: 100%; }

.mm-price-box {
  margin-top: .35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mm-line);
}
.mm-discount {
  color: #1a7a3c;
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: .35rem;
}
.mm-price-row {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  flex-wrap: wrap;
}
.mm-total {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--mm-ink);
}
.mm-old {
  font-size: 1rem;
  color: var(--mm-muted);
  text-decoration: line-through;
}
.mm-meta, .mm-note, .mm-muted { font-size: .82rem; color: var(--mm-muted); }

/* Прогресс заказа */
.mm-progress {
  margin: 0 0 1.1rem;
  padding: .85rem 1rem;
  background: var(--mm-soft);
  border: 1px solid var(--mm-line);
  border-radius: 14px;
}
.mm-progress-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .35rem;
  justify-content: space-between;
}
.mm-progress-step {
  flex: 1 1 0;
  min-width: 4.2rem;
  text-align: center;
  font-size: .72rem;
  color: var(--mm-muted);
  font-weight: 600;
}
.mm-progress-n {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  margin: 0 auto .25rem;
  border-radius: 50%;
  background: #e8e8e4;
  color: #555;
  font-size: .75rem;
  font-weight: 800;
}
.mm-progress-t { display: block; line-height: 1.2; }
.mm-progress-step.is-done .mm-progress-n {
  background: #c8e6c9;
  color: #1b5e20;
}
.mm-progress-step.is-on .mm-progress-n {
  background: var(--mm-yellow);
  color: #111;
}
.mm-progress-step.is-on { color: var(--mm-ink); }
.mm-progress-bar {
  margin-top: .65rem;
  height: 4px;
  background: rgba(0,0,0,.08);
  border-radius: 99px;
  overflow: hidden;
}
.mm-progress-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #e6b800, var(--mm-yellow));
  border-radius: 99px;
  transition: width .35s ease;
}

.mm-eta {
  margin: .45rem 0 .15rem;
  font-size: .92rem;
  font-weight: 700;
  color: #1a4d7a;
}
.mm-btn-print {
  width: 100%;
  margin-top: .5rem;
  background: #111 !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.mm-btn-print:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.mm-print-confirm {
  margin-top: .75rem;
  padding: .75rem;
  border: 1px dashed rgba(0,0,0,.2);
  border-radius: 12px;
  background: #fafafa;
}
.mm-print-confirm[hidden] { display: none !important; }

.mm-fields {
  display: grid;
  gap: .45rem;
  margin: .85rem 0 .5rem;
}
.mm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .65rem;
  margin-bottom: .45rem;
}
.mm-actions .btn {
  flex: 1 1 auto;
  min-width: 7.5rem;
  font-size: .9rem;
  padding: .7rem .9rem;
  border-radius: 12px;
  font-weight: 800;
}
.mm-actions .btn-primary {
  background: var(--mm-yellow);
  color: #111;
  border-color: var(--mm-yellow);
}
.mm-actions .btn-primary:hover {
  filter: brightness(.96);
}
.mm-msg { font-size: .88rem; min-height: 1.2em; }
.mm-msg.ok { color: #1a7a3c; }
.mm-msg.err { color: #b33; }
.mm-msg a { color: inherit; font-weight: 600; }

/* Legacy standalone section */
.mm-section:not(.mm-section--embed) .mm-ctor {
  max-width: 520px;
  margin-left: auto;
}
.mm-section .section-head { margin-bottom: 1rem; }

/* SRA3 crop marks */
.sra3-item.has-marks {
  background:
    linear-gradient(#222,#222) top left / 10px 1px no-repeat,
    linear-gradient(#222,#222) top left / 1px 10px no-repeat,
    linear-gradient(#222,#222) top right / 10px 1px no-repeat,
    linear-gradient(#222,#222) top right / 1px 10px no-repeat,
    linear-gradient(#222,#222) bottom left / 10px 1px no-repeat,
    linear-gradient(#222,#222) bottom left / 1px 10px no-repeat,
    linear-gradient(#222,#222) bottom right / 10px 1px no-repeat,
    linear-gradient(#222,#222) bottom right / 1px 10px no-repeat,
    linear-gradient(135deg, rgba(226,24,122,0.18), rgba(0,194,216,0.18));
  box-shadow: inset 0 0 0 1px rgba(34,160,74,.55);
}
.sra3-item.has-marks::after {
  content: "";
  position: absolute;
  left: var(--trim-inset-x, 4%);
  top: var(--trim-inset-y, 4%);
  right: var(--trim-inset-x, 4%);
  bottom: var(--trim-inset-y, 4%);
  border: 1px dashed rgba(34,160,74,.85);
  pointer-events: none;
  box-sizing: border-box;
}
.mm-sra3-canvas { max-height: 280px; margin-top: .5rem; }
.mm-eyelet-row { display: grid; gap: .5rem; margin-top: .5rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; }
.mm-eyelet-count-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  font-size: .9rem;
}
.mm-eyelet-count-inp {
  width: 5.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  padding: .4rem .5rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.18);
}
.mm-eyelet-count {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .5rem;
  margin-top: .15rem;
  padding: .55rem .7rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, .04);
  border: 1px solid rgba(0, 0, 0, .08);
  grid-column: 1 / -1;
}
.mm-eyelet-count-label { font-size: .85rem; color: var(--muted, #666); }
.mm-eyelet-count-n {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text, #111);
  min-width: 1.5ch;
}
.mm-eyelet-count-unit { font-size: .9rem; font-weight: 600; }
.mm-eyelet-count .mm-muted { flex: 1 1 100%; margin: 0; font-size: .8rem; }
.mm-photo-list { display: grid; gap: .5rem; margin-top: .75rem; }
.mm-photo-item {
  display: flex; gap: .5rem; align-items: center;
  padding: .5rem .65rem; border: 1px solid var(--line, #ddd); border-radius: 12px;
  background: var(--paper, #f7f5f0);
}
.mm-photo-item.is-active { border-color: var(--mm-yellow, #ffcc00); box-shadow: 0 0 0 1px rgba(255, 204, 0, .35); }
.mm-photo-thumb {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line,#ccc);
  background: #fff; cursor: pointer;
}
.mm-photo-meta { flex: 1; display: grid; gap: .25rem; font-size: .88rem; }
.mm-photo-meta label { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.mm-photo-meta select, .mm-photo-meta input[type=number] {
  padding: .2rem .4rem; border-radius: 8px; border: 1px solid var(--line,#ccc);
}
.lk-flash {
  padding: .75rem 1rem; border-radius: 12px; margin-bottom: 1rem;
  background: #e8f7ee; color: #14532d; border: 1px solid #86efac;
}
.admin-order-card {
  margin-top: 1rem; padding: 1rem; border: 1px solid var(--line,#ddd);
  border-radius: 14px; background: var(--panel-2, #111827); color: inherit;
}
.admin-order-card pre {
  white-space: pre-wrap; word-break: break-word; font-size: .82rem;
  max-height: 220px; overflow: auto; background: rgba(0,0,0,.04); padding: .75rem; border-radius: 8px;
}
.admin-order-files { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.admin-order-files a {
  display: inline-block; padding: .35rem .6rem; border-radius: 8px;
  border: 1px solid var(--line,#ccc); text-decoration: none; font-size: .85rem;
}

/* ——— Обучение конструктору ——— */
html.mm-tour-lock { overflow: hidden; }
html.mm-tour-lock.mm-tour-active { overflow: auto; }
.mm-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 9400;
  background: transparent;
  pointer-events: auto;
}
.mm-tour-overlay[hidden] { display: none !important; }
.mm-tour-spotlight {
  position: fixed;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(18, 18, 16, .48), 0 0 0 2px #ffcc00;
  background: transparent;
  pointer-events: none;
  z-index: 9401;
  will-change: top, left, width, height;
}
.mm-tour-target {
  position: relative;
  z-index: 9402;
  border-radius: 12px;
  outline: 2px solid #ffcc00;
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(255, 204, 0, .22);
}
.mm-tour-tip {
  position: fixed;
  z-index: 9500;
  max-width: 340px;
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: #fffdf6;
  border: 1px solid rgba(0,0,0,.1);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  color: #1a1a1a;
  font-family: Georgia, "Times New Roman", serif;
  pointer-events: auto;
}
.mm-tour-tip[hidden] { display: none !important; }
.mm-tour-tip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.mm-tour-tip__n {
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b6b6b;
  font-family: system-ui, sans-serif;
}
.mm-tour-tip__x {
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: #6b6b6b;
  padding: 0 2px;
}
.mm-tour-tip__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}
.mm-tour-tip__text {
  margin: 0 0 12px;
  font-size: .9rem;
  line-height: 1.45;
  color: #3a3a38;
  font-family: system-ui, -apple-system, sans-serif;
}
.mm-tour-tip__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.mm-tour-tip__btn {
  appearance: none;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  padding: .4rem .85rem;
  font-size: .82rem;
  font-family: system-ui, sans-serif;
  cursor: pointer;
  background: #fff;
  color: #1a1a1a;
}
.mm-tour-tip__btn:disabled { opacity: .4; cursor: default; }
.mm-tour-tip__btn.is-primary {
  background: #ffcc00;
  border-color: #e6b800;
  font-weight: 600;
}
.mm-tour-tip__btn.is-ghost { background: transparent; }
.mm-tour-invite {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 18, 16, .55);
}
.mm-tour-invite[hidden] { display: none !important; }
.mm-tour-invite__card {
  width: min(400px, 100%);
  padding: 28px 24px 22px;
  border-radius: 20px;
  background: linear-gradient(165deg, #fffef8 0%, #f7f3e8 100%);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
  text-align: center;
}
.mm-tour-invite__badge {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffcc00;
  color: #1a1a1a;
  font-size: 1.35rem;
  font-weight: 700;
  font-family: Georgia, serif;
  box-shadow: 0 4px 0 rgba(0,0,0,.08);
}
.mm-tour-invite__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-family: Georgia, "Times New Roman", serif;
}
.mm-tour-invite__text {
  margin: 0 0 18px;
  font-size: .92rem;
  line-height: 1.5;
  color: #4a4a46;
  font-family: system-ui, sans-serif;
}
.mm-tour-invite__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.mm-tour-fab-dock {
  display: flex;
  justify-content: flex-end;
  margin-top: .65rem;
}
.mm-tour-fab {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  background: #fffdf6;
  color: #1a1a1a;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: Georgia, serif;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease, opacity .25s ease;
  opacity: 0;
  transform: scale(.85);
}
.mm-tour-fab.is-in {
  opacity: 1;
  transform: scale(1);
}
.mm-tour-fab:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  background: #ffcc00;
}
.mm-tour-fab[hidden] { display: none !important; }
@media (max-width: 640px) {
  .mm-tour-tip { max-width: calc(100vw - 24px); }
  .prod-page {
    padding: 0.75rem 0 1.5rem;
    background: #f7f7f5;
  }
  .mm-ctor {
    border-radius: 14px;
    padding: 0.95rem 0.9rem 1.05rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .04);
  }
  .mm-ctor--product {
    padding: 0;
    box-shadow: none;
  }
  .mm-ctor-pane {
    border-radius: 14px;
    padding: 0.9rem 0.85rem 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .04);
  }
  .mm-modes {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .mm-mode {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.75rem;
  }
  .mm-preview-block {
    margin: 0.75rem 0 0.9rem;
    padding: 0.7rem;
    border-radius: 12px;
  }
  .mm-mock-hold {
    min-height: 240px;
    border-radius: 10px;
  }
  .mm-mock-hold.is-landscape { min-height: 220px; }
  .mm-mock-hold.is-portrait { min-height: 300px; }
  .mm-actions {
    flex-direction: column;
  }
  .mm-actions .btn {
    width: 100%;
    min-width: 0;
  }
  .mm-chips {
    gap: 0.35rem;
  }
  .mm-chip {
    min-width: 0;
    flex: 1 1 auto;
    padding: 0.5rem 0.55rem;
    font-size: 0.82rem;
  }
  .prod-gallery {
    border-radius: 14px;
  }
  .prod-gallery-main {
    max-height: min(52vh, 360px);
  }
  .prod-delivery {
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
  }
  body.mk-embed .prod-page {
    padding-top: 0.5rem;
  }
  body.mk-embed .mm-ctor-pane--form {
    position: static;
  }
}
