/* «Подбор столешницы по фото» — /podbor-po-foto (20.10.2026). Токены — из site.css. */
.pm-section { padding-top: 1.5rem; }
.pm-steps { list-style: none; display: flex; gap: .5rem 1.4rem; flex-wrap: wrap; margin: 0 0 1.2rem; font-weight: 700; color: var(--text-muted); font-size: .9rem; }
.pm-steps b { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; margin-right: .35rem; }

.pm-pick { background: var(--surface); border: 2px dashed var(--border); border-radius: var(--radius); padding: 2rem 1.2rem; text-align: center; transition: border-color .2s, background .2s; }
.pm-pick.is-drag { border-color: var(--accent); background: var(--accent-light); }
.pm-pick-ico { font-size: 2.6rem; line-height: 1; margin-bottom: .5rem; }
.pm-pick-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 1rem; }
.pm-pick-btns { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.pm-btn { cursor: pointer; min-width: 210px; justify-content: center; }
.pm-pick-hint { margin-top: .9rem; font-size: .85rem; color: var(--text-muted); }
.pm-pick-privacy { margin-top: .4rem; font-size: .8rem; color: var(--text-muted); }
.pm-pick.is-compact { padding: 1rem; }
.pm-pick.is-compact .pm-pick-ico, .pm-pick.is-compact .pm-pick-hint, .pm-pick.is-compact .pm-pick-privacy { display: none; }
.pm-pick.is-compact .pm-pick-title { font-size: .95rem; margin-bottom: .6rem; }
.pm-status { margin-top: .6rem; font-size: .9rem; font-weight: 600; }
.pm-status:empty { display: none; }
.pm-error { margin-top: .8rem; padding: .7rem 1rem; border-radius: var(--radius-sm); background: #fdecea; color: #a12a1a; font-size: .9rem; font-weight: 600; }

.pm-select { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
.pm-canvas-wrap { position: relative; display: inline-block; max-width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.pm-canvas-wrap canvas { display: block; max-width: 100%; max-height: 62vh; width: auto; height: auto; }
.pm-rect { position: absolute; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent), 0 0 0 9999px rgba(0,0,0,.38); border-radius: 6px; pointer-events: none; }
.pm-canvas-help { font-size: .82rem; color: var(--text-muted); margin-top: .5rem; }
.pm-canvas-btns { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.pm-chip-file { display: inline-flex; align-items: center; }

.pm-side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.pm-side-title, .pm-filter-label { font-weight: 800; font-size: .9rem; margin-bottom: .55rem; }
.pm-swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.pm-sw { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 700; color: var(--text-muted); }
.pm-sw i { width: 2.2rem; height: 2.2rem; border-radius: 10px; border: 1px solid rgba(0,0,0,.12); display: block; }
.pm-tex { margin-top: .6rem; font-size: .88rem; font-weight: 600; }
.pm-filter { margin-top: 1.1rem; }
.pm-filter-chips { display: flex; flex-wrap: wrap; gap: .4rem; }

.pm-results { margin-top: 2rem; }
.pm-h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: .4rem; }
.pm-note { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }
.pm-results.is-loading .pm-grid { opacity: .45; pointer-events: none; transition: opacity .2s; }
.pm-card .prod-card-bg { position: relative; }
.pm-pct { position: absolute; left: .5rem; top: .5rem; padding: .2rem .55rem; border-radius: 50px; font-size: .75rem; font-weight: 800; color: #fff; background: #6b6e74; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.pm-pct--hi { background: #1a8a3c; }
.pm-pct--mid { background: #c27a12; }
.pm-card-sw { position: absolute; right: .5rem; bottom: .5rem; display: flex; gap: 3px; }
.pm-card-sw i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(255,255,255,.85); box-shadow: 0 1px 3px rgba(0,0,0,.25); display: block; }
.pm-card-quote { display: block; width: calc(100% - 1.6rem); margin: .2rem .8rem .8rem; padding: .45rem; border: 2px solid var(--border); border-radius: 50px; background: transparent; font: 700 .8rem var(--font); color: var(--text); cursor: pointer; }
.pm-card-quote:hover { border-color: var(--accent); background: var(--accent-light); }

.pm-cta { margin-top: 2rem; display: flex; gap: 1rem 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(135deg, var(--surface) 0%, var(--accent-light) 100%); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.pm-cta-title { font-size: 1.15rem; font-weight: 800; }
.pm-cta-sub { color: var(--text-muted); font-size: .9rem; max-width: 560px; }
.pm-cta-btns { display: flex; gap: .5rem; flex-wrap: wrap; }

.pm-tips { margin-top: 2rem; max-width: 860px; }
.pm-tips ul { margin: .6rem 0 0 1.2rem; display: grid; gap: .35rem; }
.pm-tips-note { margin-top: .8rem; color: var(--text-muted); font-size: .85rem; }

@media (max-width: 900px) {
  .pm-select { grid-template-columns: 1fr; gap: 1rem; }
  .pm-canvas-col { text-align: center; }
  .pm-canvas-help, .pm-canvas-btns { text-align: left; }
  .pm-canvas-wrap canvas { max-height: 55vh; }
  .pm-btn { min-width: 0; flex: 1 1 100%; }
  .pm-cta { padding: 1.1rem; }
  .pm-cta-btns .btn { flex: 1 1 auto; justify-content: center; }
}

/* 29.10.2026: заявка менеджеру над выдачей при слабом совпадении */
.pm-help { display: flex; gap: .8rem 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 1.2rem; padding: 1rem 1.2rem; border: 2px solid var(--accent, #f2b705); border-radius: var(--radius); background: var(--accent-light, #fff8e1); }
.pm-help[hidden] { display: none; }
.pm-help-text { font-size: .92rem; max-width: 640px; }
.pm-help-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 640px) { .pm-help { padding: .9rem; } .pm-help-btns .btn { flex: 1 1 auto; justify-content: center; } }
