/* MasterFresok — новая карточка товара. Видна только при html.mfcard-on (?newcard=1). Стили калькулятора — mfcalc.css */
.mfc { display: none; }
html.mfcard-on .mfc { display: block; }
html.mfcard-on .catalog-detail__top-info,
html.mfcard-on .catalog-detail__mfcalc { display: none !important; }

.mfc.mfk { margin: 8px 0 32px; font-size: 15px; }
.mfc-modal { --mfk-accent: #307fdd; --mfk-text: #23262b; --mfk-muted: #6b7480; --mfk-line: #e2e5e9; --mfk-bg: #f6f7f9; --mfk-err: #d23b3b; --mfk-ok: #1e8e5a; --mfk-r: 10px; }

.mfc-head { margin-bottom: 18px; }
.mfc-title { font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.mfc-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--mfk-muted); font-size: 14px; }
.mfc-ok { color: var(--mfk-ok); font-weight: 600; }
.mfc-muted { color: var(--mfk-muted); font-weight: 400; }
.mfc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); gap: 32px; align-items: start; }

/* вкладки-переключатели */
.mfc-views, .mfc-seg { display: inline-flex; background: #f1f3f6; border-radius: 12px; padding: 4px; gap: 4px; max-width: 100%; }
.mfc-views button, .mfc-seg button { border: 0; background: transparent; color: #4b5563; font: inherit; font-weight: 700; font-size: 14px;
  height: 40px; padding: 0 16px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.mfc-views button.on, .mfc-seg button.on { background: #fff; color: var(--mfk-text); box-shadow: 0 1px 3px rgba(17,24,39,.12); }
.mfc-views { margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.mfc-views::-webkit-scrollbar { display: none; }
.mfc-modes { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-bottom: 18px; }
.mfc-modes[hidden], .mfc-kinds[hidden] { display: none; }
.mfc-kinds { margin-bottom: 10px; }

/* сцена */
.mfc-stage { position: relative; background: var(--mfk-bg); border-radius: 18px; height: 560px; overflow: hidden; }
.mfc-pane { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mfc-pane[hidden] { display: none; }
.mfc .mfc-sk { flex: 1 1 auto; width: 100%; min-height: 0; background: transparent; border-radius: 0; padding: 24px 24px 44px 52px; align-items: center; }
.mfc .mfc-sk .mfk-sk-dw { bottom: 16px; }
.mfc .mfc-sk .mfk-sk-dh { left: 20px; }
.mfc-hint { flex: none; padding: 0 16px 14px; color: var(--mfk-muted); font-size: 13px; text-align: center; line-height: 1.35; }
.mfc-seams { position: absolute; inset: 0; pointer-events: none; }
.mfc-seams i { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px dashed rgba(255,255,255,.95); box-shadow: 0 0 0 .5px rgba(17,24,39,.35); }
.mfc-pane--layout img, .mfc-pane--slide img, .mfc-pane--wallimg img, .mfc-pane--room img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.mfc-pane--room img { width: 100%; height: 100%; object-fit: cover; }
.mfc-pane--zoom img { width: 100%; height: 100%; object-fit: none; object-position: 50% 40%; }
.mfc-cap { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.94); border-radius: 8px; padding: 5px 10px; font-size: 13px; font-weight: 600; }
.mfc-cap[hidden] { display: none; }
.mfc-arr { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.94); box-shadow: 0 2px 8px rgba(17,24,39,.18); display: grid; place-items: center; color: var(--mfk-text); }
.mfc-arr--l { left: 12px; } .mfc-arr--r { right: 12px; }
.mfc-arr[hidden] { display: none; }
.mfc-map { position: absolute; left: 12px; top: 12px; width: 26%; max-width: 190px; min-width: 96px; padding: 0; border: 3px solid #fff; border-radius: 8px; overflow: hidden;
  background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer; }
.mfc-map[hidden] { display: none; }
.mfc-map:disabled { cursor: default; }
.mfc-pane .mfc-map img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }
.mfc-map span { position: absolute; left: 0; right: 0; top: 0; padding: 3px 6px; font-size: 11px; line-height: 1.3; color: #fff; background: rgba(0,0,0,.45); text-align: left; top: auto; bottom: 0; }

/* лента миниатюр */
.mfc-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.mfc-thumbs[hidden] { display: none; }
.mfc-thumbs button { flex: 0 0 66px; height: 88px; padding: 3px; border-radius: 9px; border: 1px solid var(--mfk-line); background: #fff; cursor: pointer; }
.mfc-thumbs button.on { border-color: var(--mfk-accent); box-shadow: inset 0 0 0 1px var(--mfk-accent); }
.mfc-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

/* инструменты кадра и цвета */
.mfc-tools { position: relative; margin-top: 18px; }
.mfc-tools-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mfc-tools-row .mfk-note { margin: 0; text-align: left; flex: 1 1 200px; }
.mfc-crop { font-weight: 700; }
.mfc .mfc-tones { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.mfc-locked .mfc-tools-in { opacity: .38; pointer-events: none; filter: grayscale(.4); }
.mfc-lock { position: absolute; inset: -6px; display: flex; align-items: center; justify-content: center; }
.mfc-lock[hidden] { display: none; }
.mfc-lock > div { background: #fff; border: 1px solid #dfe3e8; border-radius: 12px; padding: 10px 10px 10px 18px; box-shadow: 0 8px 24px rgba(17,24,39,.10);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: calc(100% - 24px); }
.mfc-lock span { font-size: 14px; line-height: 1.35; }
.mfc-lock .mfk-btn { flex: none; white-space: nowrap; border-color: var(--mfk-accent); color: var(--mfk-accent); font-weight: 700; }

/* панель расчёта */
.mfc-panel { border: 1px solid #e3e7ec; border-radius: 18px; padding: 24px; box-shadow: 0 10px 30px rgba(17,24,39,.06); background: #fff; position: sticky; top: 90px; }
.mfc-panel .mfk-lbl:first-child { margin-top: 0; }
.mfc-sub { font-size: 12.5px; color: var(--mfk-muted); margin-top: 6px; }
.mfc-sub[hidden] { display: none; }
.mfc-ready .mfc-sub { margin: 0 0 8px; }
.mfc-ready { margin-bottom: 4px; }
.mfc-ready[hidden] { display: none; }
.mfc-offers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mfc-offers button { min-height: 46px; border-radius: 10px; border: 1px solid #dfe3e8; background: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; padding: 4px; color: var(--mfk-text); }
.mfc-offers button.on { border-color: var(--mfk-accent); background: color-mix(in srgb, var(--mfk-accent) 7%, #fff); box-shadow: inset 0 0 0 1px var(--mfk-accent); }
.mfc-row { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 8px; }
.mfc-row .mfk-lbl { margin: 0; }
.mfc-link { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: #1f5fae; text-decoration: underline; cursor: pointer; }
.mfc-link[hidden] { display: none; }
.mfc-mats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mfc-mat { display: flex; align-items: center; gap: 8px; text-align: left; padding: 7px 10px 7px 7px; min-height: 58px; border-radius: 10px; border: 1px solid #dfe3e8;
  background: #fff; font: inherit; color: var(--mfk-text); cursor: pointer; }
.mfc-mat.wide { grid-column: 1 / -1; }
.mfc-mat.on { border-color: var(--mfk-accent); background: color-mix(in srgb, var(--mfk-accent) 7%, #fff); box-shadow: inset 0 0 0 1px var(--mfk-accent); }
.mfc-mat.off { opacity: .55; }
.mfc-mat img, .mfc-mat > i { flex: none; width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--mfk-bg); }
.mfc-mat span { min-width: 0; }
.mfc-mat b { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.mfc-mat small { display: block; font-size: 12px; color: #4b5563; margin-top: 2px; }
.mfc .mfk-mdesc { font-size: 12.5px; color: var(--mfk-muted); margin-top: 8px; }
.mfc .mfk-mdesc:empty { display: none; }
.mfc .mfk-srv { display: flex; flex-direction: column; gap: 6px; }
.mfc-stock { margin-top: 18px; display: flex; align-items: center; gap: 8px; color: var(--mfk-ok); font-weight: 600; font-size: 14px; }
.mfc-stock i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mfc .mfk-sum { margin-top: 10px; }
.mfc-buy { width: 100%; margin-top: 14px; min-height: 54px !important; font-size: 17px; font-weight: 700; border-radius: 12px !important; }
.mfc-phone { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 12px; }
.mfc-phone input { height: 42px !important; font-size: 15px !important; }
.mfc-links { margin-top: 16px; border-top: 1px solid #edf0f3; padding-top: 6px; display: flex; flex-direction: column; }
.mfc-lnk { display: flex; align-items: center; gap: 10px; min-height: 40px; color: var(--mfk-text) !important; text-decoration: none !important; font-size: 14px; }
.mfc-lnk svg { flex: none; color: var(--mfk-accent); }
.mfc-lnk span { flex: 1; }
.mfc-lnk em { color: #9aa3ad; font-style: normal; }
.mfc-msg { position: relative; margin-top: 10px; }
.mfc-msg[hidden] { display: none; }
.mfc-designer { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 12px;
  border: 1px solid #cfe9d8; background: #f3fbf6; color: #17723f; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.mfc-msgpop { position: absolute; left: 0; right: 0; bottom: 54px; z-index: 5; background: #fff; border: 1px solid #dfe3e8; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(17,24,39,.16); padding: 8px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.mfc-msgpop[hidden] { display: none; }
.mfc-ms { height: 42px; display: grid; place-items: center; border-radius: 9px; font-weight: 700; font-size: 14px; text-decoration: none !important; }
.mfc-ms--wa { color: #17723f !important; background: #f3fbf6; }
.mfc-ms--tg { color: #1f6fae !important; background: #eef6fc; }
.mfc-ms--max { color: #5b3cc4 !important; background: #f4f1fd; }
.mfc-bar { display: none; }

/* заявка */
.mfc-modal { position: fixed; inset: 0; z-index: 3000; background: rgba(20,22,26,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mfc-modal-box { width: 440px; max-width: 100%; background: #fff; border-radius: 16px; padding: 18px 20px 20px; box-shadow: 0 20px 50px rgba(17,24,39,.25);
  display: flex; flex-direction: column; gap: 10px; color: var(--mfk-text); font-size: 14px; }
.mfc-modal-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mfc-modal-top b { font-size: 18px; }
.mfc-modal p { margin: 0; color: #4b5563; }
.mfc-modal label span { display: block; font-size: 12px; color: var(--mfk-muted); margin-bottom: 3px; }
.mfc-modal input, .mfc-modal textarea { width: 100%; box-sizing: border-box; border: 1px solid #cfd4da; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 16px; }
.mfc-modal input { height: 44px; }
.mfc-modal small { color: var(--mfk-muted); font-size: 12px; }
.mfc-modal .mfk-btn { min-height: 48px; font-weight: 700; }

@media (hover: hover) {
  .mfc-thumbs button:hover:not(.on), .mfc-offers button:hover:not(.on), .mfc-mat:hover:not(.on) { border-color: #b8c0ca; }
  .mfc-lnk:hover span { text-decoration: underline; }
}

@media (max-width: 1100px) {
  .mfc-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: 24px; }
  .mfc .mfc-tones { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mfc-stage { height: 480px; }
}
@media (max-width: 860px) {
  .mfc-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .mfc-panel { position: static; padding: 0; border: 0; box-shadow: none; }
  .mfc-title { font-size: 23px; }
  .mfc-head { margin-bottom: 12px; }
  .mfc-views { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); width: 100%; }
  .mfc-views button { padding: 0 6px; font-size: 13px; height: 36px; }
  .mfc-stage { height: 300px; border-radius: 12px; margin: 0 -4px; }
  .mfc .mfc-sk { padding: 12px 12px 34px 38px; }
  .mfc .mfc-sk .mfk-sk-dw { bottom: 10px; }
  .mfc .mfc-sk .mfk-sk-dh { left: 10px; }
  .mfc-hint { font-size: 12px; padding-bottom: 8px; }
  .mfc-thumbs button { flex-basis: 48px; height: 64px; padding: 2px; }
  .mfc .mfc-tones { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .mfc .mfc-tones::-webkit-scrollbar { display: none; }
  .mfc .mfc-tones .mfk-tone { flex: 0 0 72px; }
  .mfc-lock > div { flex-direction: column; align-items: stretch; text-align: center; padding: 12px; }
  .mfc-offers button { min-height: 44px; font-size: 13px; }
  .mfc-buy { display: none !important; }
  .mfc-bar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: #fff;
    border-top: 1px solid #e7eaee; box-shadow: 0 -6px 18px rgba(17,24,39,.06); padding: 10px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .mfc-bar > div { flex: 1; min-width: 0; }
  .mfc-bar small { display: block; font-size: 12px; color: var(--mfk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mfc-bar b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
  .mfc-bar .mfk-btn { height: 50px; padding: 0 22px; border-radius: 12px; font-size: 16px; font-weight: 700; }
  html.mfcard-on body { padding-bottom: 76px; }
  .mfc-msgpop { grid-auto-flow: row; }
}
@media (max-width: 400px) {
  .mfc-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mfc-phone { grid-template-columns: 1fr; }
}
.mfc [data-k="srvWrap"] .mfk-lbl { margin-top: 18px; }
.mfc-title[hidden] { display: none; }

/* кнопка «Кадр» прямо на сцене */
.mfc-cropfab { position: absolute; right: 14px; top: 14px; z-index: 5; height: 38px; padding: 0 14px; border-radius: 19px; border: 0;
  background: rgba(255,255,255,.95); box-shadow: 0 2px 10px rgba(17,24,39,.18); display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--mfk-text); cursor: pointer; }
.mfc-cropfab[hidden] { display: none; }
.mfc-thumbs-lbl { display: none; }
.mfc-pane[data-pane="wall"] { position: absolute; }
@media (max-width: 860px) {
  /* порядок на телефоне: вкладки → сцена → цвет → расчёт → лента картинок */
  .mfc-left { display: contents; }
  .mfc-views { order: 1; margin-bottom: 0; }
  .mfc-stage { order: 2; height: auto; }
  .mfc-tools { order: 3; margin-top: 0; }
  .mfc-panel { order: 4; }
  .mfc-thumbs { order: 5; margin-top: 4px; }
  .mfc-grid { gap: 12px; }
  .mfc-crop, .mfc-tools-row { display: none; }
  .mfc-tools .mfk-lbl { margin: 0 0 6px; font-size: 14px; }
  .mfc-cropfab { right: 10px; top: 10px; height: 34px; padding: 0 12px; font-size: 13px; }
  .mfc-thumbs-lbl { display: block; order: 6; font-weight: 700; margin-top: 8px; }
  .mfc-thumbs { order: 7; }
}

/* кадр и цвет — только в окне «Макет» (кнопка на сцене); отдельный блок под сценой скрыт */
.mfc .mfc-tools { display: none !important; }

/* описание товара под сценой (компьютер) */
.mfc-desc { display: none; }
.mfc-desc.on { display: block; margin-top: 24px; font-size: 15px; line-height: 1.6; color: #374151; }
.mfc-desc .content { max-width: none; }
@media (min-width: 861px) { .mfc .mfc-thumbs { display: none; } }   /* лента под сценой не нужна — есть галерея ниже */
@media (max-width: 860px) { .mfc-desc { order: 5; } .mfc-desc.on { margin-top: 8px; } }
/* старое описание Aspro заменено нашим */
html.mfcard-on .content[itemprop="description"] { display: none !important; }
.mfc-desc h2 { font-size: 20px; line-height: 1.3; margin: 0 0 10px; }
.mfc-desc h3 { font-size: 16px; margin: 18px 0 6px; }
.mfc-desc p { margin: 0 0 10px; }
.mfc-desc ul { margin: 0 0 10px; padding-left: 20px; }
.mfc-desc li { margin: 4px 0; }
.mfc-desc ul.mfc-checks { list-style: none; padding-left: 0; }
.mfc-desc a { color: var(--mfk-accent); }
/* нижняя галерея Aspro: вертикальные миниатюры 3:4 */
html.mfcard-on .gallery-detail img { aspect-ratio: 3 / 4; height: auto !important; max-height: none !important; width: 100%; object-fit: cover; object-position: 50% 0; }
html.mfcard-on .gallery-detail a, html.mfcard-on .gallery-detail [class*="__item"], html.mfcard-on .gallery-detail [class*="image"] { height: auto !important; max-height: none !important; }

/* лента картинок под сценой скрыта везде — есть «Фотогалерея» ниже */
.mfc .mfc-thumbs, .mfc .mfc-thumbs-lbl { display: none !important; }
/* «Отправить расчёт менеджеру» */
.mfc-sendbox { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--mfk-bg); }
.mfc-sendttl { font-weight: 700; }
.mfc-sendbox .mfc-sub { margin-top: 2px; }
.mfc-sendbox .mfc-phone { margin-top: 10px; }
.mfc-send { width: 100%; margin-top: 8px; font-weight: 700; border-color: var(--mfk-accent) !important; color: var(--mfk-accent); background: #fff; }

/* оплата, доставка, вопросы — инфографика */
.mfc-info { margin-top: 8px; color: #374151; font-size: 15px; line-height: 1.5; }
.mfc-info:empty { display: none; }
.mfi-sec { margin-top: 28px; }
.mfi-sec h3 { font-size: 18px; margin: 0 0 12px; color: var(--mfk-text); }
.mfi-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: s; }
.mfi-steps li { position: relative; background: var(--mfk-bg); border-radius: 14px; padding: 14px 12px; text-align: center; }
.mfi-steps li:not(:last-child)::after { content: '›'; position: absolute; right: -9px; top: 32px; color: #9aa3ad; font-size: 20px; }
.mfi-steps i, .mfi-tile i { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--mfk-accent);
  box-shadow: 0 2px 8px rgba(17,24,39,.08); position: relative; }
.mfi-steps sup { position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--mfk-accent); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.mfi-steps b, .mfi-tile b { display: block; margin-top: 8px; color: var(--mfk-text); font-size: 14.5px; }
.mfi-steps span, .mfi-tile span { display: block; font-size: 13px; color: var(--mfk-muted); margin-top: 2px; line-height: 1.35; }
.mfi-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mfi-tile { border: 1px solid var(--mfk-line); border-radius: 14px; padding: 14px; text-align: center; }
.mfi-tile em { display: inline-block; margin-top: 8px; font-style: normal; font-weight: 700; color: var(--mfk-text); background: var(--mfk-bg); border-radius: 8px; padding: 3px 10px; font-size: 13.5px; }
.mfi-note { margin: 10px 0 0; font-size: 13.5px; color: var(--mfk-muted); }
.mfi-faq details { border-bottom: 1px solid var(--mfk-line); }
.mfi-faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; font-weight: 600; color: var(--mfk-text); position: relative; }
.mfi-faq summary::-webkit-details-marker { display: none; }
.mfi-faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-size: 22px; font-weight: 400; color: var(--mfk-accent); }
.mfi-faq details[open] summary::after { content: '−'; }
.mfi-faq p { margin: 0 0 14px; }
@media (max-width: 860px) {
  .mfc-info { order: 5; }
  .mfi-steps { grid-template-columns: 1fr; gap: 8px; }
  .mfi-steps li { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 12px; text-align: left; align-items: center; }
  .mfi-steps li i { grid-row: 1 / 3; }
  .mfi-steps li b { margin-top: 0; }
  .mfi-steps li:not(:last-child)::after { display: none; }
  .mfi-tiles { grid-template-columns: 1fr; }
  .mfi-tile { display: grid; grid-template-columns: 52px 1fr auto; column-gap: 12px; text-align: left; align-items: center; }
  .mfi-tile i { grid-row: 1 / 3; }
  .mfi-tile b { margin-top: 0; grid-column: 2; grid-row: 1; }
  .mfi-tile span { grid-column: 2; grid-row: 2; }
  .mfi-tile em { grid-column: 3; grid-row: 1 / 3; margin: 0; }
}

/* плашка «Макет»: заметнее — акцентный цвет и мягкая «волна» каждые 3 с, пока клиент её не нажал */
.mfc-cropfab { background: var(--mfk-accent); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--mfk-accent) 45%, transparent); }
.mfc-cropfab::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--mfk-accent) 55%, transparent); animation: mfc-wave 3s ease-out 1s infinite; }
.mfc-cropfab svg { animation: mfc-nudge 3s ease-in-out 1s infinite; }
.mfc-cropfab.seen::after, .mfc-cropfab.seen svg { animation: none; }
@keyframes mfc-wave { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mfk-accent) 55%, transparent); } 45%, 100% { box-shadow: 0 0 0 12px transparent; } }
@keyframes mfc-nudge { 0%, 30%, 100% { transform: rotate(0); } 10% { transform: rotate(-12deg); } 20% { transform: rotate(8deg); } }
@media (hover: hover) { .mfc-cropfab:hover { filter: brightness(1.08); } }
@media (prefers-reduced-motion: reduce) { .mfc-cropfab::after, .mfc-cropfab svg { animation: none; } }
@media (max-width: 860px) {
  .mfc-pane--zoom img { object-fit: cover; }
  .mfc-map { width: 30%; min-width: 84px; left: 8px; top: 8px; border-width: 2px; }
  .mfc-map span { font-size: 10px; padding: 2px 4px; }
}

/* всплывающая карточка материала */
.mfc-mtip { position: absolute; z-index: 1000; width: 300px; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(17,24,39,.22), 0 0 0 1px rgba(17,24,39,.06); font-size: 13px; line-height: 1.45; color: #1f2937; }
.mfc-mtip[hidden] { display: none; }
.mfc-mtip-img { aspect-ratio: 1 / 1; background: #f3f4f6; }
.mfc-mtip-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mfc-mtip-body { padding: 12px 14px 14px; }
.mfc-mtip-body b { display: block; font-size: 15px; }
.mfc-mtip-body small { display: block; color: #6b7280; margin: 2px 0 6px; }
.mfc-mtip-body ul { margin: 0 0 8px; padding: 0 0 0 16px; }
.mfc-mtip-body li { margin: 2px 0; }
.mfc-mtip-body p { margin: 0 0 8px; }
.mfc-mtip-body a { color: var(--mfk-accent, #307fdd); font-weight: 600; text-decoration: none; }
.mfc-mtip-body a:hover { text-decoration: underline; }

/* упаковка и монтаж */
.mfi-pm { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mfi-pm-card { margin: 0; display: flex; gap: 16px; align-items: center; padding: 14px; border: 1px solid #e3e7ec; border-radius: 16px; background: #fff; cursor: zoom-in; transition: box-shadow .2s, border-color .2s; }
.mfi-pm-card:hover { border-color: #c9d2dc; box-shadow: 0 8px 24px rgba(17,24,39,.08); }
.mfi-pm-img { position: relative; flex: 0 0 132px; height: 176px; }
.mfi-pm-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; box-shadow: 0 2px 8px rgba(17,24,39,.12); }
.mfi-pm-pages img { position: absolute; inset: 0; }
.mfi-pm-pages img:first-child { transform: translate(10px, -6px) rotate(4deg); filter: brightness(.96); }
.mfi-pm-pages em { position: absolute; right: -6px; bottom: 8px; z-index: 2; background: var(--mfk-accent, #307fdd); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.mfi-pm-card figcaption { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 14px; line-height: 1.45; color: #4b5563; }
.mfi-pm-card figcaption b { color: #111827; font-size: 16px; }
.mfi-pm-btns { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 4px; }
.mfi-pm-more { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--mfk-accent, #307fdd); font-weight: 700; font-size: 14px; cursor: pointer; }
.mfi-pm-more:hover, .mfi-pm-wa:hover { text-decoration: underline; }
.mfi-pm-wa { color: #1aa34a; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.mfi-pm-wa[hidden] { display: none; }
@media (max-width: 860px) {
  .mfi-pm { grid-template-columns: 1fr; }
  .mfi-pm-img { flex-basis: 96px; height: 128px; }
}
/* просмотр на весь экран */
.mfc-lb { position: fixed; inset: 0; z-index: 10000; background: rgba(15,18,24,.88); display: flex; align-items: center; justify-content: center; }
.mfc-lb figure { margin: 0; max-width: 94vw; max-height: 94vh; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mfc-lb img { max-width: 94vw; max-height: calc(94vh - 30px); object-fit: contain; border-radius: 6px; background: #fff; cursor: pointer; }
.mfc-lb figcaption { color: #e5e7eb; font-size: 14px; }
.mfc-lb-x, .mfc-lb-a { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.mfc-lb-x { top: 16px; right: 16px; }
.mfc-lb-a { top: 50%; transform: translateY(-50%); }
.mfc-lb-l { left: 16px; } .mfc-lb-r { right: 16px; }
.mfc-lb-x:hover, .mfc-lb-a:hover { background: rgba(255,255,255,.26); }

.mfc-sub--hint { color: var(--mfk-accent, #307fdd); font-weight: 600; }

/* первое открытие: цена за м² крупно, сумма — примером */
.mfk-total--m2 { border-top: 0; margin-top: 0; padding-top: 4px; align-items: baseline; }
.mfk-total--m2 b i { font-style: normal; font-size: 15px; font-weight: 600; color: var(--mfk-muted); margin-left: 2px; }
.mfk-sum-ex { font-size: 13px; line-height: 1.45; }

/* метровые: полотно кратно полосе, справа белое поле */
.mfc-pic { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; overflow: hidden; }
.mfc-blank { position: absolute; right: 0; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, #fff 0 10px, #f1f3f6 10px 20px);
  display: flex; align-items: center; justify-content: center; border-left: 1.5px dashed #9aa4b1; }
.mfc-blank[hidden] { display: none; }
.mfc-blank span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; font-weight: 600; color: #6b7280; white-space: nowrap; }
.mfc-meternote { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #fff7e6; border: 1px solid #f3d9a4; color: #7a5300; font-size: 13px; line-height: 1.45; }
.mfc-meternote[hidden] { display: none; }

/* «i» на плитке материала — только там, где нет наведения мышью */
.mfc-mat { position: relative; }
.mfc-mat-i { display: none; position: absolute; left: 3px; bottom: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.95); color: #374151;
  font: italic 700 12px/20px Georgia, serif; text-align: center; z-index: 1; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
@media (hover: none), (max-width: 999px) { .mfc-mat-i { display: block; } }
/* окно материала снизу экрана */
.mfc-msheet { position: fixed; inset: 0; z-index: 10000; background: rgba(15,18,24,0); display: flex; align-items: flex-end; justify-content: center; transition: background .2s; }
.mfc-msheet.on { background: rgba(15,18,24,.55); }
.mfc-msheet-box.mfc-mtip { position: relative; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; border-radius: 18px 18px 0 0;
  transform: translateY(100%); transition: transform .25s ease; }
.mfc-msheet.on .mfc-msheet-box { transform: none; }
.mfc-msheet .mfc-mtip-img { aspect-ratio: 1 / 1; cursor: zoom-in; position: relative; }
.mfc-msheet .mfc-mtip-img::after { content: '⤢'; position: absolute; left: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.15); font-size: 18px; line-height: 34px; text-align: center; color: #374151; }
.mfc-msheet-box.mfc-mtip { max-height: 94vh; }
.mfc-msheet-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92);
  font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.mfc-msheet-btns { padding: 0 14px 18px; }
.mfc-msheet-pick { width: 100%; }
.mfc-msheet-on { display: block; text-align: center; color: #1a8a46; font-weight: 700; padding: 8px 0; }

/* способ оплаты в «Отправить расчёт менеджеру» */
.mfc-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; }
.mfc-pay span { color: var(--mfk-muted); margin-right: 2px; }
.mfc-pay button { border: 1px solid #d5dbe2; background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 13px; cursor: pointer; color: #1f2937; }
.mfc-pay button.on { border-color: var(--mfk-accent); background: color-mix(in srgb, var(--mfk-accent) 10%, #fff); color: var(--mfk-accent); font-weight: 600; }
.mfc-paynote { font-size: 12px; color: var(--mfk-muted); margin: 6px 0 10px; line-height: 1.4; }
.mfc-paynote:empty { display: none; }
