/* Модуль doc_photo: стили виджета «Фото на документы». Один файл на все страницы с виджетом, подключает gd_module().
   Разметку строит script.js; префикс классов fm-pp исторический. Описание: docs/MODULES.md, local/modules/doc_photo/README.md.
   Порядок разделов: общее → телефон (до 767) → планшет и шире (от 768) → планшет (768–991) → ПК (от 992) → ширина секции.
   Раскладка: телефон один столбик (порядок блоков через order), планшет две колонки (фото | панель), ПК три колонки
   (документ и настройки | фото | действие шага). Ширина секции решается только в последнем разделе. */

/* ===== Общее, все ширины ===== */

.fm-pp{font-family:"Manrope",system-ui,-apple-system,"Segoe UI",sans-serif;background:#fff;border:1px solid #e2e8f0;border-radius:0;padding:24px 26px;margin:32px 0;box-shadow:0 1px 3px rgba(15,23,42,.04);box-sizing:border-box;max-width:100%;overflow-x:hidden}
.fm-pp *,.fm-pp *:before,.fm-pp *:after{box-sizing:border-box}
.fm-pp-h{font-size:1.4em;font-weight:800;color:#0F172A;margin:0 0 6px;line-height:1.2}
.fm-pp-s{font-size:.95em;color:#475569;margin:0 0 18px;line-height:1.5}
.fm-pp-step{margin-bottom:18px}
.fm-pp-label{font-size:.82em;font-weight:700;color:#1c3d5c;text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px;display:block}
.fm-pp-modes{display:flex;gap:10px;flex-wrap:wrap}
.fm-pp-mode{flex:1 1 0;min-width:200px;padding:14px 18px;border:2px solid #e2e8f0;border-radius:0;background:#fff;cursor:pointer;font-family:inherit;font-size:.95em;color:#0F172A;font-weight:600;display:flex;align-items:center;justify-content:center;gap:10px;transition:border-color .15s,background .15s}
.fm-pp-mode:hover{border-color:#cbd5e1;background:#f8fafc}
.fm-pp-mode.is-on{border-color:#1c3d5c;background:#f0f7ff}
.fm-pp-mode svg{width:22px;height:22px;flex-shrink:0;color:#1c3d5c}
.fm-pp-tune{margin:14px 0;padding:14px 16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px}
.fm-pp-tune[hidden]{display:none}
.fm-pp-tune-h{font-size:.92em;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.04em;margin-bottom:10px}
.fm-pp-tune-preview{position:relative;width:100%;max-width:320px;margin:0 auto 14px;background:#000;border-radius:8px;overflow:hidden}
.fm-pp-tune-preview canvas{width:100%;height:100%;display:block;cursor:grab;touch-action:none;position:absolute;inset:0}
.fm-pp-tune-preview .fm-pp-tune-overlay{position:absolute;inset:0;pointer-events:none}
.fm-pp-tune-preview .fm-pp-tune-overlay svg{position:absolute;inset:0;width:100%;height:100%}
.fm-pp-tune-preview .fm-pp-tune-tag{position:absolute;left:50%;transform:translateX(-50%);background:rgba(56,189,248,.92);color:#fff;font-size:10px;font-weight:700;padding:2px 7px;border-radius:9px;letter-spacing:.04em;white-space:nowrap}
.fm-pp-tune-preview .fm-pp-tune-tag-crown{top:calc(12% - 7px)}
.fm-pp-tune-preview .fm-pp-tune-tag-eye{top:calc(46% - 11px);background:rgba(34,197,94,.92)}
.fm-pp-tune-preview .fm-pp-tune-tag-chin{top:calc(82% - 7px);background:rgba(245,158,11,.92)}
.fm-pp-check{margin:0 auto 14px;max-width:320px;padding:12px 14px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;font-size:.86em;line-height:1.45}
.fm-pp-check-h{font-weight:700;color:#0F172A;margin-bottom:8px;font-size:.9em}
.fm-pp-check-row{display:flex;align-items:flex-start;gap:8px;padding:4px 0;color:#334155}
.fm-pp-check-row + .fm-pp-check-row{border-top:1px solid #f1f5f9}
.fm-pp-check-ico{flex-shrink:0;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75em;font-weight:700;color:#fff;margin-top:1px}
.fm-pp-check-row--ok .fm-pp-check-ico{background:#22c55e}
.fm-pp-check-row--warn .fm-pp-check-ico{background:#f59e0b}
.fm-pp-check-row--err .fm-pp-check-ico{background:#ef4444}
.fm-pp-check-row--ok .fm-pp-check-t{color:#166534}
.fm-pp-check-row--err .fm-pp-check-t{color:#991b1b}
.fm-pp-check-t{flex:1;min-width:0}
.fm-pp-check-hint{display:block;color:#64748b;font-size:.85em;margin-top:2px}
.fm-pp-doc-restate{margin:0 0 16px;padding:0;border:0;border-radius:0;background:none;animation:none}
.fm-pp-doc-restate-l{font-size:.82em;font-weight:700;color:#1c3d5c;text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px;display:flex;align-items:center;gap:6px}
.fm-pp-doc-restate-l::before{content:none}
.fm-pp-doc-restate .fm-pp-search{margin-bottom:6px;background:#fff}
.fm-pp-doc-restate select{font-weight:700}
.fm-pp-bgmode{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.fm-pp-bgmode-btn{flex:1 1 220px;padding:10px 12px;border:2px solid #cbd5e1;border-radius:0;background:#fff;color:#0F172A;font-family:inherit;font-size:.9em;font-weight:600;line-height:1.3;cursor:pointer;text-align:center}
.fm-pp-bgmode-btn.is-on{border-color:#1c3d5c;background:#f0f7ff}
.fm-pp-autofix[hidden],.fm-pp-slider[hidden]{display:none}
.fm-pp-bgmode-hint{margin-top:8px;font-size:.85em;color:#475569;line-height:1.45}@keyframes fmpp-docPulse{0%{box-shadow:0 0 0 0 rgba(28,61,92,.55)}50%{box-shadow:0 0 0 12px rgba(28,61,92,0)}100%{box-shadow:0 0 0 0 rgba(28,61,92,0)}}
.fm-pp-prefetch{display:flex;align-items:center;gap:8px;padding:9px 14px;margin:0 0 14px;border-radius:8px;font-size:.88em;font-weight:600;border:1px solid transparent;transition:background .15s,color .15s,border-color .15s}
.fm-pp-prefetch.is-working{background:#fef3c7;color:#78350f;border-color:#fbbf24}
.fm-pp-prefetch.is-ready{background:#dcfce7;color:#14532d;border-color:#16a34a}
.fm-pp-prefetch.is-error{background:#fee2e2;color:#7f1d1d;border-color:#ef4444}
.fm-pp-prefetch-spin{display:inline-block;width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:fmpp-spin .8s linear infinite}@keyframes fmpp-spin{to{transform:rotate(360deg)}}
.fm-pp-doc-disclaimer{margin:16px 0 0;padding:0 0 12px;background:none;border:0;border-bottom:1px solid #e2e8f0;border-radius:0;color:#334155;font-size:.9em;line-height:1.5}
.fm-pp-doc-disclaimer-h{font-weight:700;margin-bottom:3px;color:#0f172a}
.fm-pp-doc-disclaimer-meta{color:#64748b;font-size:.92em;font-weight:400;margin-bottom:0}
.fm-pp-tune-preview canvas.is-dragging{cursor:grabbing}
.fm-pp-tune-pan-reset{margin-right:8px}
.fm-pp-slider{margin-bottom:10px}
.fm-pp-slider-l{display:block;font-size:.85em;color:#475569;margin-bottom:4px;font-weight:600}
.fm-pp-slider-l b{color:#1c3d5c;font-family:"SF Mono",Consolas,monospace;display:inline-block;min-width:30px}
.fm-pp-slider-h{font-weight:400;color:#94a3b8;margin-left:6px}
.fm-pp-slider input[type="range"]{width:100%;accent-color:#1c3d5c}
.fm-pp-compare-toggle{margin-bottom:12px;text-align:left}
.fm-pp-compare-toggle[hidden]{display:none}
.fm-pp-compare{margin:10px 0 14px;background:#0f172a;border-radius:8px;padding:12px;color:#cbd5e1}
.fm-pp-compare[hidden]{display:none}
.fm-pp-compare-h{font-size:.85em;text-align:center;margin-bottom:10px;font-weight:600;color:#94a3b8}
.fm-pp-compare-wrap{position:relative;width:100%;max-width:400px;margin:0 auto;overflow:hidden;border-radius:4px;user-select:none;touch-action:none}
.fm-pp-compare-img{display:block;width:100%;height:auto}
.fm-pp-compare-after-mask{position:absolute;top:0;left:0;width:50%;height:100%;overflow:hidden}
.fm-pp-compare-after-mask .fm-pp-compare-img{width:auto;max-width:none}
.fm-pp-compare-divider{position:absolute;top:0;left:50%;width:3px;height:100%;background:#fff;transform:translateX(-1.5px);cursor:ew-resize;box-shadow:0 0 6px rgba(0,0,0,.5)}
.fm-pp-compare-handle{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:36px;height:36px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#0f172a;font-weight:700;box-shadow:0 2px 8px rgba(0,0,0,.4);cursor:ew-resize}
.fm-pp-compare-handle:after{content:"⇆";font-size:1.2em}
.fm-pp-compare-labels{display:flex;justify-content:space-between;max-width:400px;margin:8px auto 0;font-size:.78em;color:#64748b;font-weight:600;letter-spacing:.04em}
.fm-pp-autofix{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin:10px 0 8px}
.fm-pp-autofix>[data-fm-auto="all"]{grid-column:1/-1}
.fm-pp-autofix-btn{padding:10px 6px;background:linear-gradient(135deg,#1c3d5c,#2c5276);color:#fff;border:0;border-radius:6px;font-weight:600;font-size:.86em;cursor:pointer;font-family:inherit;transition:transform .1s;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.fm-pp-autofix-btn:hover{transform:translateY(-1px)}
.fm-pp-autofix-btn:active{transform:translateY(0)}
.fm-pp-autofix-mini{background:#fff;color:#1c3d5c;border:1px solid #cbd5e1;font-size:.78em;padding:8px 4px}
.fm-pp-autofix-mini:hover{background:#1c3d5c;color:#fff;border-color:#1c3d5c}
.fm-pp-tune-reset{display:inline-block;padding:7px 14px;background:#fff;border:1px solid #cbd5e1;color:#475569;border-radius:6px;font-size:.85em;cursor:pointer;font-family:inherit}
.fm-pp-tune-reset:hover{background:#f1f5f9;color:#0f172a}
.fm-pp-rotate{display:flex;align-items:center;gap:8px;margin-bottom:10px;padding:8px 12px;background:#f1f5f9;border-radius:6px;font-size:.86em}
.fm-pp-rotate[hidden]{display:none}
.fm-pp-rotate-l{color:#475569;flex:1}
.fm-pp-rotate-btn{width:32px;height:32px;border:1px solid #cbd5e1;background:#fff;border-radius:4px;cursor:pointer;font-size:1.2em;line-height:1;display:flex;align-items:center;justify-content:center;font-family:inherit;color:#0F172A}
.fm-pp-rotate-btn:hover{background:#1c3d5c;color:#fff;border-color:#1c3d5c}
.fm-pp-search{width:100%;padding:11px 14px;margin-bottom:8px;border:1px solid #cbd5e1;border-radius:0;font-size:.95em;font-family:inherit;color:#0F172A;background:#fff;box-sizing:border-box}
.fm-pp-search:focus{outline:0;border-color:#1c3d5c;box-shadow:0 0 0 3px rgba(28,61,92,.1)}
.fm-pp-select{width:100%;padding:12px 16px;border:1px solid #cbd5e1;border-radius:0;font-size:1em;font-family:inherit;color:#0F172A;background:#fff;font-weight:600}
.fm-pp-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;border:2px dashed #cbd5e1;border-radius:0;padding:36px 24px;text-align:center;background:#f8fafc;cursor:pointer;transition:border-color .15s,background .15s;box-sizing:border-box}
.fm-pp-drop:hover,.fm-pp-drop.is-over{border-color:#1c3d5c;background:#f0f7ff}
.fm-pp-drop svg{width:42px;height:42px;color:#94A3B8;margin:0 0 10px;display:block}
.fm-pp-drop b{display:block;font-size:1.02em;color:#0F172A;margin-bottom:4px;font-weight:700}
.fm-pp-drop span{display:block;font-size:.85em;color:#64748B}
.fm-pp-drop input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[data-fm-actions]{display:flex;justify-content:center}
[data-fm-actions]{display:block!important}
[data-fm-actions] .fm-pp-btn{min-width:0;width:100%;padding:14px 24px;font-size:1em;box-sizing:border-box;justify-content:center;display:flex}
.fm-pp-frame{margin:14px 0;padding:14px;border:1px solid #e2e8f0;background:#f8fafc;border-radius:8px}
.fm-pp-frame .fm-pp-slider:last-of-type{margin-bottom:8px}
.fm-pp-adv{margin:14px 0 0;border:1px solid #e2e8f0;background:#f8fafc}
.fm-pp-adv>summary{cursor:pointer;padding:12px 14px;font-weight:600;color:#334155;font-size:.92em;list-style:none}
.fm-pp-adv>summary::-webkit-details-marker{display:none}
.fm-pp-adv>summary::after{content:"▾";float:right;color:#64748b}
.fm-pp-adv[open]>summary::after{content:"▴"}
.fm-pp-adv[open]{padding:0 14px 14px}
.fm-pp-adv[open]>summary{margin:0 -14px 6px}
[data-fm-actions]{margin-top:22px!important}
[data-fm-actions] .fm-pp-btn-primary{background:#16a34a;font-size:1.2em;padding:19px 24px;letter-spacing:.02em;box-shadow:0 6px 16px rgba(22,163,74,.3)}
[data-fm-actions] .fm-pp-btn-primary:hover:not(:disabled){background:#15803d;box-shadow:0 8px 20px rgba(22,163,74,.38)}
.fm-pp-go-hint{display:block;margin-top:16px;text-align:center;font-size:.86em;color:#b45309;background:#fef3c7;border-radius:6px;padding:8px 12px;line-height:1.35}
.fm-pp-go-hint a{color:#1c3d5c;text-decoration:underline;cursor:pointer}
.fm-pp-pulse{animation:fmpp-stepPulse 1.2s ease-in-out 2;border-radius:10px}@keyframes fmpp-stepPulse{0%,100%{box-shadow:0 0 0 0 rgba(28,61,92,0)}50%{box-shadow:0 0 0 6px rgba(28,61,92,.18)}}
.fm-pp-cam{position:relative;border-radius:0;overflow:hidden;background:#0F172A;display:flex;align-items:center;justify-content:center;max-width:520px;width:100%;aspect-ratio:3/4;margin:0 auto}
.fm-pp-cam video{width:100%;height:100%;display:block;object-fit:cover;transform:scaleX(-1)}
.fm-pp-cam .fm-pp-overlay{position:absolute;inset:0;pointer-events:none}
.fm-pp-cam .fm-pp-overlay svg{position:absolute;inset:0;width:100%;height:100%}
.fm-pp-cam .fm-pp-overlay .fm-pp-hint{position:absolute;left:0;right:0;bottom:8px;text-align:center;color:#fff;font-size:12px;font-weight:600;letter-spacing:.02em;text-shadow:0 1px 2px rgba(0,0,0,.55);padding:0 12px}
.fm-pp-cam .fm-pp-overlay .fm-pp-tag{position:absolute;left:50%;transform:translateX(-50%);background:rgba(34,197,94,.92);color:#fff;font-size:11px;font-weight:700;padding:3px 8px;border-radius:10px;letter-spacing:.04em}
.fm-pp-cam .fm-pp-overlay .fm-pp-tag-eye{top:calc(46% - 12px)}
.fm-pp-cam .fm-pp-overlay .fm-pp-tag-crown{top:calc(12% - 8px);background:rgba(56,189,248,.92)}
.fm-pp-cam .fm-pp-overlay .fm-pp-tag-chin{top:calc(82% - 8px);background:rgba(245,158,11,.92)}
.fm-pp-cam-actions{display:flex;gap:10px;margin-top:10px;justify-content:center}
.fm-pp-btn{padding:13px 24px;border:0;border-radius:0;font-family:inherit;font-size:.95em;font-weight:700;cursor:pointer;transition:transform .12s,box-shadow .2s;display:inline-flex;align-items:center;gap:8px}
.fm-pp-btn-primary{background:linear-gradient(135deg,#1c3d5c,#2c5276);color:#fff}
.fm-pp-btn-primary:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 8px 18px rgba(28,61,92,.3)}
.fm-pp-btn-primary:disabled{opacity:.55;cursor:wait}
.fm-pp-btn-ghost{background:#f1f5f9;color:#0F172A;border:1px solid #e2e8f0}
.fm-pp-btn-ghost:hover{background:#e2e8f0}
.fm-pp-progress{display:none;margin:14px 0;padding:14px 16px;background:#f0f7ff;border:1px solid #c7ddf3;border-radius:0;font-size:.92em;color:#1c3d5c;text-align:center;line-height:1.5}
.fm-pp-progress.is-on{display:block}
.fm-pp-progress-img{display:block;width:min(100%,260px);height:auto;margin:0 auto 10px;border:1px solid #c7ddf3;opacity:.85;filter:saturate(.8)}
.fm-pp-progress-img[hidden]{display:none}
@media(min-width:992px){.fm-pp-progress-img{width:min(100%,360px)}}
.fm-pp-progress .fm-pp-bar{height:4px;background:#c7ddf3;border-radius:0;margin-top:10px;overflow:hidden}
.fm-pp-progress .fm-pp-bar i{display:block;height:100%;background:linear-gradient(90deg,#1c3d5c,#2c5276);width:0;transition:width .3s;border-radius:0}
.fm-pp-result{display:none;margin-top:18px}
.fm-pp-result.is-on{display:block}
.fm-pp-result-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:14px}
.fm-pp-result-grid figure{margin:0}
.fm-pp-result-grid figcaption{font-size:.78em;color:#64748B;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px;font-weight:700}
.fm-pp-result-grid img{width:100%;display:block;border-radius:0;border:1px solid #e2e8f0;background:#fff}
.fm-pp-checks{display:flex;flex-direction:column;gap:6px;margin:0 0 14px;padding:0;list-style:none}
.fm-pp-checks li{display:flex;gap:8px;align-items:flex-start;font-size:.9em;line-height:1.45;color:#334155;padding:8px 12px;background:#f8fafc;border-radius:0;border-left:3px solid #cbd5e1}
.fm-pp-checks li.is-pass{border-left-color:#16a34a}
.fm-pp-checks li.is-pass:before{content:"✓";color:#16a34a;font-weight:800}
.fm-pp-checks li.is-warn{border-left-color:#f59e0b}
.fm-pp-checks li.is-warn:before{content:"!";color:#f59e0b;font-weight:800}
.fm-pp-checks li.is-fail{border-left-color:#dc2626}
.fm-pp-checks li.is-fail:before{content:"×";color:#dc2626;font-weight:800}
.fm-pp-actions{display:grid;grid-template-columns:1fr;gap:8px}
.fm-pp-actions .fm-pp-btn,.fm-pp-compare-toggle .fm-pp-btn{width:100%;justify-content:center;box-sizing:border-box;padding:11px 14px;font-size:.92em;margin:0}
.fm-pp-priv{font-size:12px!important;font-weight:400!important;color:#94A3B8!important;text-align:center;margin:14px 0 0!important;line-height:1.5!important}
.fm-pp-err{padding:12px 16px;background:#fee2e2;border:1px solid #fca5a5;color:#991b1b;border-radius:0;font-size:.9em;margin:12px 0;display:none}
.fm-pp-err.is-on{display:block}
.fm-pp .fm-pp-steps{display:flex;gap:6px;margin:0 0 14px!important;padding:0!important;list-style:none;counter-reset:fmpps}
.fm-pp .fm-pp-steps li{list-style:none;flex:1 1 0;min-width:0;font-size:.78em;font-weight:700;color:#94a3b8;border-top:3px solid #e2e8f0;padding:6px 0 0!important;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;counter-increment:fmpps}
.fm-pp-steps li:before{content:counter(fmpps) ". "}
.fm-pp-steps li.is-done{color:#1c3d5c;border-top-color:#1c3d5c}
.fm-pp-steps li.is-on{color:#0f172a;border-top-color:#16a34a}
[data-fm-stage] [data-fm-doc-restate]{animation:none}
.fm-pp[data-fm-stage="pick"] :is(.fm-pp-colL,.fm-pp-colC,.fm-pp-colR,.fm-pp-wide)>:not(.fm-pp-s-pick),.fm-pp[data-fm-stage="tune"] :is(.fm-pp-colL,.fm-pp-colC,.fm-pp-colR,.fm-pp-wide)>:not(.fm-pp-s-tune),.fm-pp[data-fm-stage="busy"] :is(.fm-pp-colL,.fm-pp-colC,.fm-pp-colR,.fm-pp-wide)>:not(.fm-pp-s-busy),.fm-pp[data-fm-stage="done"] :is(.fm-pp-colL,.fm-pp-colC,.fm-pp-colR,.fm-pp-wide)>:not(.fm-pp-s-done),.fm-pp[data-fm-stage="paid"] :is(.fm-pp-colL,.fm-pp-colC,.fm-pp-colR,.fm-pp-wide)>:not(.fm-pp-s-done){display:none!important}
.fm-pp-tune,.fm-pp-result,.fm-pp-result.is-on{display:none}
.fm-pp-progress.is-on{display:flex;flex-direction:column;justify-content:center;box-sizing:border-box;margin:0}
.fm-pp-prefetch[hidden],.fm-pp-doc-out[hidden],.fm-pp-busy-note[hidden]{display:none}
[data-fm-actions]{margin-top:0!important;margin-bottom:16px}
.fm-pp-swap{display:block;margin:10px auto 0;background:none;border:0;color:#1c3d5c;text-decoration:underline;font:inherit;font-size:.9em;cursor:pointer;padding:6px}
.fm-pp-res-main{margin:0}
.fm-pp-res-main figcaption{font-size:.78em;color:#64748B;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px;font-weight:700}
.fm-pp-res-main img{width:100%;display:block;border:1px solid #e2e8f0;background:#fff;aspect-ratio:var(--fm-ar,35/45);object-fit:contain}
.fm-pp-doc-out{margin-top:8px;font-size:.84em;color:#475569;line-height:1.4}
.fm-pp-busy-note{margin:0 0 12px;font-size:.86em;color:#475569;line-height:1.5}
.fm-pp-colR [data-fm-gate]{margin-top:0!important}
.fm-pp-colR [data-fm-gate]>div:first-child{margin-top:0!important}
.fm-pp-colL .fm-pp-doc-disclaimer{margin:0 0 12px;font-size:.84em;padding:10px 12px}
.fm-pp-colL .fm-pp-actions{margin:0 0 12px}
.fm-pp-colR .fm-pp-checks{margin:12px 0 10px}
.fm-pp-colR .fm-pp-compare-toggle{text-align:left}
.fm-pp-res-before[hidden]{display:none}
.fm-pp-btn-sm{padding:9px 14px;font-size:.86em;font-weight:600}
.fm-pp-fallback{padding:12px 14px;background:#fff7ed;border:1px solid #fdba74;color:#7c2d12;font-size:.92em;line-height:1.45;margin:0 0 10px}
.fm-pp-fallback b{display:block;margin-bottom:4px}
.fm-pp-fallback .fm-pp-btn{margin-top:10px;width:100%}
.fm-pp-mailwhile{margin:0 0 12px;padding:12px 14px;background:#f8fafc;border:1px solid #e2e8f0}
.fm-pp-mailwhile b{display:block;margin-bottom:8px;font-size:1em;color:#0f172a}
.fm-pp-mailwhile input[type=email]{display:block;width:100%;box-sizing:border-box;height:40px;border:1px solid #cbd5e1;padding:0 10px;font:inherit;font-size:15px;background:#fff;margin:0 0 8px}
.fm-pp-mw-news{display:flex;gap:7px;align-items:flex-start;font-size:.85em;color:#475569;line-height:1.4;cursor:pointer}
.fm-pp-mw-news input{margin:3px 0 0;flex:0 0 auto}
.fm-pp-mw-hint{margin-top:8px;font-size:.8em;color:#94a3b8;line-height:1.4}
.fm-pp-mailwhile[hidden]{display:none}
.fm-pp-mail-more{margin:8px 0 0;font-size:.88em}
.fm-pp-mail-more summary{cursor:pointer;color:#1c3d5c;font-weight:600;list-style:none}
.fm-pp-mail-more summary::-webkit-details-marker{display:none}
.fm-pp-mail-more summary:before{content:"✉ "}
.fm-pp-mail-more[open] summary{margin-bottom:6px}
.fm-pp-colR .fm-pp-gate-note{display:none}
.fm-pp-colR [data-fm-gate] .gd-pay-pack{font-size:.88em!important;padding:7px 10px!important;margin-top:8px!important}
[data-fm-fallback] .fm-pp-steps li:nth-child(4).is-on{color:#b45309;border-top-color:#f59e0b}
.fm-pp-sl2{display:block}
.fm-pp-paybar{position:fixed;left:12px;right:84px;bottom:12px;z-index:2147483000;max-width:520px}
.fm-pp-paybar[hidden]{display:none}
.fm-pp-paybar button{display:block;width:100%;padding:14px 12px;border:0;border-radius:10px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font:inherit;font-weight:800;font-size:1rem;cursor:pointer;box-shadow:0 6px 20px rgba(15,23,42,.35);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.fm-pp-mini-ba{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 0}
.fm-pp-mini-ba figure{margin:0}
.fm-pp-mini-ba img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:cover;border:1px solid #e2e8f0;background:#fff}
.fm-pp-mini-ba figcaption{margin-top:4px;font-size:.78em;color:#64748B;text-transform:uppercase;letter-spacing:.04em;text-align:center}
.fm-pp-mini-ba[hidden]{display:none}
/* Полоса доверия под виджетом: четыре числа крупно, подписи мелко */
.gd-dp-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:28px auto 8px;max-width:1100px;padding:0 16px;font-family:"Manrope",system-ui,-apple-system,"Segoe UI",sans-serif}
.gd-dp-stat{text-align:center}
.gd-dp-stat b{display:block;font-size:2.2em;font-weight:800;line-height:1.1;color:#0F172A;letter-spacing:-.02em}
.gd-dp-stat span{display:block;margin-top:4px;font-size:.9em;color:#64748B}
@media(max-width:767px){.gd-dp-stats{grid-template-columns:1fr 1fr;gap:18px 12px;margin:22px 0 4px;padding:0}.gd-dp-stat b{font-size:1.8em}}
/* Блок ручной доводки под кнопкой оплаты: заголовок с ценой, четыре пункта, кнопка сразу в оплату */
.fm-pp-manual{margin-top:14px;padding:14px 16px;border:1px solid #e2e8f0;background:#fff;text-align:left}
.fm-pp-manual-h{display:block;font-size:1.02em;font-weight:800;color:#0F172A;margin:0 0 8px}
.fm-pp-manual-l{margin:0 0 12px;padding:0;list-style:none}
.fm-pp-manual-l li{position:relative;padding:3px 0 3px 18px;font-size:.9em;color:#334155;line-height:1.4}
.fm-pp-manual-l li::before{content:"";position:absolute;left:0;top:.75em;width:8px;height:8px;border-radius:50%;background:#16a34a}
.fm-pp-manual-btn{width:100%;justify-content:center;background:#fff;color:#1c3d5c;border:1px solid #1c3d5c;padding:12px 14px;font-size:.95em}
.fm-pp-manual-btn:hover{background:#f0f7ff}
/* Строка проверки ISO/ICAO под списком проверок */
.fm-pp-icao{margin:0 0 12px;padding:8px 10px;font-size:.9em;line-height:1.4;border:1px solid #e2e8f0;color:#334155}
.fm-pp-icao.is-wait{color:#64748B;border-style:dashed}
.fm-pp-icao.is-ok{border-color:#86efac;background:#f0fdf4;color:#166534}
.fm-pp-icao.is-warn{border-color:#fcd34d;background:#fffbeb;color:#78350f}
.fm-pp-icao-fail{margin-top:3px;font-size:.92em;opacity:.85}
/* ===== Телефон (до 767): один столбик ===== */
/* Источник фото одним блоком: зона выбора (нажатие открывает выбор файла) и под ней одна кнопка камеры; блок «Откуда фото» скрыт. */
.fm-pp-drop-cam{display:none}
.fm-pp-drop .fm-pp-drop-t-m{display:none}
@media(max-width:767px){[data-fm-input-wrap]{display:none!important}.fm-pp-drop .fm-pp-drop-t-pc{display:none}.fm-pp-drop .fm-pp-drop-t-m{display:inline;color:#fff;font-size:1em}[data-fm-input]:has(> .fm-pp-drop){display:grid;grid-template-columns:1fr 1fr;gap:8px}.fm-pp-cam{width:min(100%,calc((100vh - 300px) * .75));margin:0 auto}.fm-pp-drop{flex-direction:row;align-items:center;justify-content:center;gap:8px;padding:0 10px;height:52px;min-height:0;border:1px solid #1c3d5c;background:#1c3d5c;color:#fff}.fm-pp-drop:hover,.fm-pp-drop.is-over{background:#163150;border-color:#163150}.fm-pp-drop svg{width:20px;height:20px;margin:0;color:#fff;flex:0 0 auto}.fm-pp-drop b{display:inline;margin:0;font-size:.95em;color:#fff}.fm-pp-drop span{display:none}.fm-pp-drop-cam{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:52px;margin:0;padding:0 10px;border:1px solid #1c3d5c;background:#fff;color:#1c3d5c;font-family:inherit;font-size:.95em;font-weight:700;cursor:pointer}.fm-pp-drop-cam svg{width:20px;height:20px;flex:0 0 auto}.fm-pp-drop-cam [data-fm-cap]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.fm-pp-drop-cam:active{background:#f0f7ff}}

@media(max-width:420px){.fm-pp-autofix{grid-template-columns:1fr 1fr}
.fm-pp-autofix>[data-fm-auto="all"]{grid-column:1/-1}
.fm-pp-autofix-mini{font-size:.74em}}
@media(max-width:640px){.fm-pp{padding:18px 18px}
.fm-pp-result-grid{grid-template-columns:1fr;gap:12px}}@keyframes fmpp-pulse{0%,100%{opacity:1}50%{opacity:.4}}
@media(max-width:767px){.fm-pp-body{display:flex;flex-wrap:wrap}
.fm-pp-colL,.fm-pp-colC,.fm-pp-colR,.fm-pp-wide{display:contents}
.fm-pp-body :is(.fm-pp-colL,.fm-pp-colC,.fm-pp-colR,.fm-pp-wide)>*{flex:0 0 100%;max-width:100%;box-sizing:border-box}
.fm-pp-body [data-fm-doc-restate]{order:1}
.fm-pp-body [data-fm-err]{order:2}
.fm-pp-body [data-fm-actions]{order:3}
/* Телефон, шаг кадра (владелец 15.10: «на одном экране и фотку покрутить, и отправить; превью можно чуть уменьшить»):
   превью не выше 42% экрана, подписи-заголовки скрыты, поворот и зум компактно под кадром, кнопка «Обработать» закреплена
   внизу экрана (отступ справа под круглую кнопку чата), режим профи свёрнут ниже. */
.fm-pp[data-fm-stage="tune"] .fm-pp-body{padding-bottom:72px}
.fm-pp[data-fm-stage="tune"] .fm-pp-body .fm-pp-tune-h{display:none}
.fm-pp[data-fm-stage="tune"] .fm-pp-body [data-fm-tune-prev]{flex:0 0 auto;width:min(100%,calc(42vh * .78));max-width:none;margin:0 auto 10px}
.fm-pp[data-fm-stage="tune"] .fm-pp-body [data-fm-doc-restate]{margin:0 0 8px;padding:6px 10px;font-size:.85em}
.fm-pp[data-fm-stage="tune"] .fm-pp-body .fm-pp-frame{margin:0 0 8px;padding:0;border:0;background:none;display:grid;grid-template-columns:1fr auto;gap:0 8px;align-items:center}
.fm-pp[data-fm-stage="tune"] .fm-pp-body .fm-pp-frame>.fm-pp-rotate{grid-area:1/1/2/2;margin:0}
.fm-pp[data-fm-stage="tune"] .fm-pp-body .fm-pp-frame>[data-fm-tune-pan-reset]{grid-area:1/2/2/3;margin:0;padding:7px 10px;font-size:.8em}
.fm-pp[data-fm-stage="tune"] .fm-pp-body .fm-pp-frame>.fm-pp-sl2{grid-area:2/1/3/3;margin-top:6px;display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.fm-pp[data-fm-stage="tune"] .fm-pp-body .fm-pp-slider{margin-bottom:4px}.fm-pp[data-fm-stage="tune"] .fm-pp-body .fm-pp-slider-l{font-size:.8em}
.fm-pp[data-fm-stage="tune"] .fm-pp-body [data-fm-actions]{position:fixed;left:12px;right:84px;bottom:10px;z-index:1000;display:flex!important;flex-wrap:nowrap;gap:8px;align-items:stretch;margin:0!important;padding:0;background:none}
body:has(.gdf-cookie:not([hidden])) .fm-pp[data-fm-stage="tune"] .fm-pp-body [data-fm-actions]{bottom:58px}
.fm-pp[data-fm-stage="tune"] .fm-pp-body [data-fm-actions] .fm-pp-btn{flex:1 1 auto;width:auto;box-shadow:0 6px 18px rgba(0,0,0,.25)}
.fm-pp[data-fm-stage="tune"] .fm-pp-body [data-fm-actions] .fm-pp-go-hint{display:none}
.fm-pp[data-fm-stage="tune"] .fm-pp-body [data-fm-actions] .fm-pp-swap{flex:0 0 auto;width:auto;margin:0;font-size:.8em;white-space:nowrap;text-decoration:none;font-weight:600;background:#fff;padding:0 10px;border:1px solid #cbd5e1;box-shadow:0 6px 18px rgba(0,0,0,.18)}
.fm-pp-body [data-fm-input-wrap]{order:4}
.fm-pp-body [data-fm-input]{order:5}
.fm-pp-body .fm-pp-tune-h{order:6}
.fm-pp-body [data-fm-tune-prev]{order:7;max-width:320px}
.fm-pp-body .fm-pp-frame{order:8}
.fm-pp-body [data-fm-check]{order:9}
.fm-pp-body [data-fm-prefetch-badge]{order:10}
.fm-pp-body .fm-pp-adv{order:11}
.fm-pp-body [data-fm-progress]{order:12}
.fm-pp-body [data-fm-busy-note]{order:13}
.fm-pp-body [data-fm-mini-ba]{order:5;margin:12px 0 0;max-width:260px}
.fm-pp-body .fm-pp-res-main{order:14;margin-bottom:12px}
.fm-pp-body [data-fm-gate]{order:15}
.fm-pp-body [data-fm-doc-disclaimer]{order:16;margin-top:14px}
.fm-pp-body .fm-pp-actions{order:17;margin:12px 0 8px}
.fm-pp-body [data-fm-checks]{order:19;margin:0 0 10px}
.fm-pp-body [data-fm-compare-toggle]{order:18}
.fm-pp-body .gd-rt-ask{order:20;padding-top:12px;border-top:1px solid #e2e8f0}
.fm-pp-body .fm-pp-res-before{order:20}
.fm-pp-body [data-fm-compare]{order:21}
.fm-pp-doc-out,.fm-pp-busy-note{display:none!important}
.fm-pp-body .fm-pp-tune-h.fm-pp-s-tune{margin-bottom:8px}
[data-fm-stage="busy"] .fm-pp-progress.is-on{min-height:600px}}
@media(max-width:520px){.fm-pp{padding:14px 10px!important}#fm-home-widget-card{padding:14px 8px!important}
[data-fm-photo-prep]{padding:4px!important}}

/* ===== Планшет и шире (от 768): колонка фото фиксированной высоты ===== */

@media(min-width:768px){.fm-pp-colC{display:flex;flex-direction:column;height:var(--fm-ch);box-sizing:border-box}
.fm-pp-colC>[data-fm-input],.fm-pp-colC>[data-fm-tune-prev],.fm-pp-colC>.fm-pp-progress.is-on,.fm-pp-colC>.fm-pp-res-main{flex:1 1 auto;min-height:0}
.fm-pp-colC>[data-fm-input]{display:flex;flex-direction:column;margin:0}
.fm-pp-colC .fm-pp-drop{flex:1 1 auto;min-height:0;height:auto}
.fm-pp-colC .fm-pp-cam{flex:0 0 auto;min-height:0;height:auto;width:min(100%,calc((100vh - 320px) * .75),480px);aspect-ratio:3/4;margin:0 auto}
.fm-pp-colC .fm-pp-cam-actions{flex:0 0 auto}
.fm-pp-colC>[data-fm-tune-prev]{max-width:100%;margin:0 auto;width:auto}
.fm-pp-colC>.fm-pp-res-main{display:flex;flex-direction:column;min-height:0}
.fm-pp-colC>.fm-pp-res-main img{flex:1 1 auto;min-height:0;width:auto;max-width:100%;align-self:center;object-fit:contain}
.fm-pp-colC>.fm-pp-progress.is-on{margin:0;min-height:0}
.fm-pp-colC>.fm-pp-err{flex:0 0 auto;margin:0 0 10px}
[data-fm-input-wrap] .fm-pp-label,[data-fm-input-wrap] [data-fm-mode="file"]{display:none}
[data-fm-input-wrap] .fm-pp-modes{display:block}
[data-fm-input-wrap] [data-fm-mode="cam"]{width:100%;min-width:0;box-sizing:border-box}
.fm-pp-check{max-width:none;margin:0 0 14px}
.fm-pp-body .fm-pp-tune-h.fm-pp-s-tune{margin-bottom:8px;flex:0 0 auto}}

/* ===== Планшет (768–991): две колонки ===== */

@media(min-width:768px) and (max-width:991px){.fm-pp-body{--fm-ch:clamp(600px,calc(100vh - 330px),720px);display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,44%);grid-template-areas:"C L" "C R";gap:14px 22px;align-items:start}
.fm-pp-colC{grid-area:C}
.fm-pp-colL{grid-area:L}
.fm-pp-colR{grid-area:R}
.fm-pp-wide{grid-column:1/-1}
.fm-pp[data-fm-stage="tune"] .fm-pp-body,.fm-pp[data-fm-stage="done"] .fm-pp-body,.fm-pp[data-fm-stage="paid"] .fm-pp-body{grid-template-areas:"C R" "C L"}
.fm-pp-colL .fm-pp-doc-restate{margin:0 0 12px}
.fm-pp-colL .fm-pp-frame{margin:0 0 10px}}

/* ===== ПК (от 992): три колонки, шрифты крупнее ===== */

@media(min-width:992px){.fm-pp.fm-pp-bleed{font-size:17px}
.fm-pp-bleed .fm-pp-steps li{font-size:.92em;padding-top:8px!important}
.fm-pp-bleed .fm-pp-label,.fm-pp-bleed .fm-pp-doc-restate-l,.fm-pp-bleed .fm-pp-doc-out{font-size:.95em}
.fm-pp-bleed .fm-pp-checks li,.fm-pp-bleed .fm-pp-doc-disclaimer,.fm-pp-bleed .fm-pp-tune-h,.fm-pp-bleed .fm-pp-busy-note,.fm-pp-bleed .fm-pp-manual,.fm-pp-bleed .fm-pp-fallback,.fm-pp-bleed .fm-pp-progress,.fm-pp-bleed .fm-pp-err,.fm-pp-bleed .fm-pp-compare-h{font-size:1em}
.fm-pp-bleed .fm-pp-doc-disclaimer-meta,.fm-pp-bleed .fm-pp-slider-l,.fm-pp-bleed .fm-pp-rotate,.fm-pp-bleed .fm-pp-check,.fm-pp-bleed .fm-pp-check-hint,.fm-pp-bleed .fm-pp-go-hint,.fm-pp-bleed .fm-pp-prefetch,.fm-pp-bleed .fm-pp-drop span,.fm-pp-bleed .fm-pp-compare-labels,.fm-pp-bleed .fm-pp-res-main figcaption,.fm-pp-bleed .fm-pp-tune-reset,.fm-pp-bleed .fm-pp-autofix-btn{font-size:.95em}
.fm-pp-bleed .fm-pp-autofix-mini{font-size:.88em}
.fm-pp-bleed .fm-pp-btn,.fm-pp-bleed .fm-pp-search,.fm-pp-bleed .fm-pp-select,.fm-pp-bleed .fm-pp-mode,.fm-pp-bleed .fm-pp-swap{font-size:1.05em}
.fm-pp-bleed .fm-pp-btn-sm{font-size:.95em}
.fm-pp-bleed .fm-pp-drop b{font-size:1.15em}
.fm-pp-bleed .fm-pp-priv{font-size:14px!important}
.fm-pp-bleed .fm-pp-tune-preview .fm-pp-tune-tag{font-size:13px}
.fm-pp-bleed .fm-pp-cam .fm-pp-overlay .fm-pp-tag{font-size:13px}
.fm-pp-bleed .fm-pp-cam .fm-pp-overlay .fm-pp-hint{font-size:14px}
.fm-pp-bleed [data-fm-gate] button{font-size:1.15rem!important;padding:16px 14px!important}
.fm-pp-bleed [data-fm-gate] input[type=email]{font-size:15px!important;height:42px!important}
.fm-pp-bleed [data-fm-gate] .gd-pay-news{font-size:13.5px!important}
.fm-pp-bleed [data-fm-gate] .gd-pay-benefit{font-size:.92rem!important}
.fm-pp-bleed [data-fm-gate] .gd-pay-pack{font-size:1rem!important}
.fm-pp-bleed [data-fm-gate]>div>div:first-child{font-size:1.05rem!important}
.fm-pp-bleed .gd-fail-offer div{font-size:1rem!important}}
@media(min-width:1600px){.fm-pp.fm-pp-bleed{font-size:18px}}
@media(min-width:992px){.fm-pp.fm-pp-bleed{border-left:0;border-right:0;border-radius:0;box-shadow:none;background:#f5f7fa;padding:18px clamp(24px,3vw,40px) 22px;margin-top:8px;margin-bottom:32px}
.fm-pp.fm-pp-bleed>*{max-width:1720px;margin-left:auto;margin-right:auto}
.fm-pp-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:14px}
.fm-pp-head>div{flex:1 1 auto;min-width:0}
.fm-pp-head .fm-pp-h{font-size:1.15em;margin:0 0 2px}
.fm-pp-head .fm-pp-s{margin:0;font-size:.9em}
.fm-pp-head .fm-pp-steps{flex:0 1 560px;margin:0!important}
.gd-tool-page .fm-pp-head>div{display:none}
.fm-pp-body{--fm-ch:clamp(620px,calc(100vh - 400px),760px);display:grid;grid-template-columns:clamp(250px,21vw,340px) minmax(0,1fr) clamp(290px,24vw,380px);grid-template-areas:"L C R" "W W W";gap:16px 24px;align-items:start}
.fm-pp-colL{grid-area:L}
.fm-pp-colC{grid-area:C}
.fm-pp-colR{grid-area:R}
.fm-pp-wide{grid-area:W}
.fm-pp-colL,.fm-pp-colR,.fm-pp-colC{background:#fff;border:1px solid #e2e8f0;padding:16px;box-sizing:border-box}
.fm-pp-colL,.fm-pp-colR{align-self:stretch;max-height:none;overflow:visible}
.fm-pp-colC{height:auto;min-height:var(--fm-ch);align-self:stretch}
.fm-pp-colL .fm-pp-sl2{margin-top:2px}
.fm-pp-colL .fm-pp-slider{margin-bottom:2px}
.fm-pp-colL .fm-pp-tune-h{margin:6px 0 4px}
.fm-pp-colL .fm-pp-autofix{margin:6px 0 6px;gap:5px;grid-template-columns:1.5fr 1fr 1fr 1fr}
.fm-pp-colL .fm-pp-autofix>[data-fm-auto="all"]{grid-column:auto}
.fm-pp-colL .fm-pp-autofix-btn{padding:7px 4px;font-size:.82em}
.fm-pp-colL .fm-pp-autofix-mini{font-size:.78em}
.fm-pp-colL .fm-pp-search{margin-bottom:6px}
.fm-pp-colL .fm-pp-label{margin-bottom:4px}
.fm-pp-colL .fm-pp-slider-h{display:none}
.fm-pp-colL .fm-pp-select,.fm-pp-colL .fm-pp-search{font-size:.9em;padding:9px 12px}
.fm-pp-colL .fm-pp-doc-restate-l{font-size:.72em;margin-bottom:6px}
.fm-pp-colL .fm-pp-autofix-btn{padding:7px 6px}
.gd-tool-page .fm-pp-head .fm-pp-steps{flex:1 1 auto}
.fm-pp-wide:empty{display:none}
.fm-pp-colL .fm-pp-doc-restate{margin:0 0 10px;padding:0;border:0;background:none;animation:none;border-radius:0}
.fm-pp-colL{padding:14px}
.fm-pp-colL .fm-pp-frame{margin:0 0 4px;padding:0;border:0;background:none;display:grid;grid-template-columns:1fr auto;gap:0 8px;align-items:center}
.fm-pp-colL .fm-pp-frame>.fm-pp-tune-h{grid-area:1/1/2/3}
.fm-pp-colL .fm-pp-frame>.fm-pp-rotate{grid-area:2/1/3/2;margin:0}
.fm-pp-colL .fm-pp-frame>[data-fm-tune-pan-reset]{grid-area:2/2/3/3;margin:0;padding:7px 10px;font-size:.8em}
.fm-pp-colL .fm-pp-frame>.fm-pp-sl2{grid-area:3/1/4/3;margin-top:8px}
.fm-pp-colL .fm-pp-slider-l{font-size:.8em}
.fm-pp-colL .fm-pp-tune-reset{padding:5px 10px;font-size:.8em}
.fm-pp-colL .fm-pp-adv{margin:0;border:0;background:none}
.fm-pp-colL .fm-pp-adv>summary{padding:6px 0 4px;margin:0!important;pointer-events:none;font-size:.8em;color:#475569;text-transform:uppercase;letter-spacing:.04em}
.fm-pp[data-fm-stage="tune"] .fm-pp-colL .fm-pp-doc-out{display:none}
.fm-pp-colL .fm-pp-adv>summary::after{display:none}
.fm-pp-colL .fm-pp-adv[open]{padding:0}
.fm-pp-colL .fm-pp-sl2{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.fm-pp-colL .fm-pp-slider{margin-bottom:6px}
.fm-pp-colL .fm-pp-rotate{margin-bottom:8px}
.fm-pp-colL .fm-pp-autofix{grid-template-columns:1fr 1fr 1fr;gap:6px;margin:6px 0 8px}
.fm-pp-colL .fm-pp-tune-h{font-size:.84em;margin-bottom:8px}
.fm-pp-colR [data-fm-actions]{margin-bottom:10px}
.fm-pp[data-fm-stage="busy"] .fm-pp-colL>[data-fm-doc-restate]{display:block!important;pointer-events:none;opacity:.55}
.fm-pp[data-fm-stage="done"] .fm-pp-colL .fm-pp-doc-disclaimer,.fm-pp[data-fm-stage="paid"] .fm-pp-colL .fm-pp-doc-disclaimer{background:none;border:0;border-bottom:1px solid #e2e8f0;border-radius:0;padding:0 0 12px;margin:0 0 12px;color:#334155;font-size:.9em;animation:none}
.fm-pp-colL .fm-pp-doc-disclaimer-h{font-weight:700;font-size:1em;line-height:1.35;color:#0f172a}
.fm-pp-colL .fm-pp-doc-disclaimer-meta{color:#64748b;font-size:.92em;margin-top:3px}
.fm-pp-colL .fm-pp-actions{display:grid;grid-template-columns:1fr;gap:8px;margin:0 0 8px}
.fm-pp-colL .fm-pp-actions .fm-pp-btn,.fm-pp-colL .fm-pp-compare-toggle .fm-pp-btn{width:100%;justify-content:center;box-sizing:border-box;padding:11px 14px;font-size:.92em;margin:0}
.fm-pp-colL .fm-pp-compare-toggle{margin:0 0 12px;text-align:left}
.fm-pp-colL .fm-pp-checks{margin:0 0 12px}
.fm-pp-colL .gd-rt-ask{margin:4px 0 0;padding-top:12px;border-top:1px solid #e2e8f0}
.fm-pp-priv{margin-top:12px!important}}

/* ===== Ширина секции и резерв высоты до постройки ===== */

/* Резерв (CLS): script.js строит разметку после загрузки; класс fm-pp-reserve держит высоту первого состояния и снимается после постройки. */
.gd-doc-photo.fm-pp-reserve{min-height:580px}
@media(max-width:520px){.gd-doc-photo.fm-pp-reserve{min-height:565px}}
@media(max-width:440px){.gd-doc-photo.fm-pp-reserve{min-height:660px}}
@media(min-width:768px){.gd-doc-photo.fm-pp-reserve{min-height:760px}}
@media(min-width:992px){.gd-doc-photo.fm-pp-reserve{min-height:720px}}
/* Ширина: по умолчанию модуль занимает колонку страницы. data-wide="1" (параметр wide модуля, по умолчанию включён): на ПК секция
   во всю ширину окна без полосы прокрутки (--fm-vw ставит view.html до постройки и script.js при смене размера окна); внутри сетка
   до 1720px по центру (.fm-pp.fm-pp-bleed>*). Страница с собственным полноширинным слотом зовёт модуль с wide="0". */
@media(min-width:992px){.gd-doc-photo[data-wide="1"]{width:var(--fm-vw,100vw);max-width:none;margin-left:calc(50% - var(--fm-vw,100vw)/2);margin-right:0}}
