@font-face {
    font-family: 'Mifar Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url('/assets/html/fonts/montserrat-cyrillic.woff2') format('woff2');
    unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
    font-family: 'Mifar Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url('/assets/html/fonts/montserrat-latin.woff2') format('woff2');
}
.mf-flow, .mf-order-page { --mf-teal: #15817e; --mf-dark: #323535; --mf-muted: #626868; --mf-accent: #0b6260; --mf-line: #dce7e5; font-family: 'Mifar Montserrat', Arial, sans-serif; color: #323535; font-size: 16px; }
.mf-flow *, .mf-order-page * { box-sizing: border-box; }
.mf-flow [hidden], .mf-order-page [hidden] { display: none !important; }
.mf-order-page { margin: 0; background: #f3f8f7; line-height: 1.6; }
.mf-shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.mf-site-header { background: #fff; border-bottom: 1px solid #dce7e5; }
.mf-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 94px; }
.mf-header-inner img { display: block; max-width: 143px; width: 100%; height: auto; }
.mf-back-link, .mf-flow a:not(.mf-button) { color: var(--mf-accent); text-underline-offset: 3px; }
.mf-back-link { font-weight: 600; text-decoration: none; font-size: 16px; }
.mf-flow h1, .mf-flow h2, .mf-flow h3, .mf-flow p { margin: 0; }
.mf-flow h1 { color: var(--mf-dark); font-size: clamp(28px, 4vw, 44px); font-weight: 700; line-height: 1.2; letter-spacing: -1px; max-width: 850px; }
.mf-flow h2 { color: var(--mf-dark); font-size: 25px; line-height: 1.3; font-weight: 650; margin-bottom: 16px; }
.mf-flow h3 { color: var(--mf-dark); font-size: 17px; line-height: 1.4; font-weight: 650; margin-bottom: 10px; }
.mf-flow .mf-eyebrow { font-size: 14px; font-weight: 750; letter-spacing: 1.8px; text-transform: uppercase; color: var(--mf-accent); margin: 0 0 12px; }
.mf-order-heading { padding: 48px 0 32px; }
.mf-flow .mf-lead { color: var(--mf-dark); font-size: 17px; line-height: 1.7; margin-top: 20px; max-width: 740px; }
.mf-flow .mf-muted { color: var(--mf-dark); font-size: 16px; line-height: 1.7; margin: 0 0 18px; }
.mf-order-layout { display: grid; min-width: 0; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.mf-order-layout.mf-submitted { grid-template-columns: 1fr; max-width: 800px; }
.mf-panel, .mf-contact-card { min-width: 0; overflow-wrap: break-word; background: #fff; border: 1px solid var(--mf-line); padding: 32px; border-radius: 20px; box-shadow: 0 8px 32px rgba(26,74,67,.035); }
.mf-contact-card { margin-bottom: 32px; padding: 24px; text-align: left; line-height: 1.6; }
.mf-contact-card h2 { font-size: 24px; }
.mf-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin: 20px 0; }
.mf-flow .mf-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 16px; line-height: 1.5; font-weight: 600; }
.mf-field-wide { grid-column: 1 / -1; }
.mf-flow .mf-field small { color: var(--mf-dark); font-weight: 400; font-size: 16px; }
.mf-flow .mf-field input, .mf-flow .mf-field select { appearance: auto; font: inherit; font-size: 16px; font-weight: 400; line-height: 1.5; color: #323535; background: #fcfdfd; border: 1px solid #bccfcc; border-radius: 9px; padding: 12px 13px; width: 100%; min-height: 48px; }
.mf-flow .mf-field input:focus, .mf-flow .mf-field select:focus { border-color: var(--mf-accent); outline: 3px solid #15817e25; outline-offset: 1px; }
.mf-flow .mf-consent { overflow-wrap: anywhere; display: flex; align-items: flex-start; gap: 10px; font-size: 16px; font-weight: 400; line-height: 1.7; color: #323535; margin: 20px 0; cursor: pointer; }
.mf-flow .mf-consent input { appearance: auto; width: 19px; height: 19px; flex: 0 0 19px; margin: 1px 0 0; accent-color: var(--mf-accent); position: static; opacity: 1; }
.mf-flow .mf-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.mf-flow .mf-button { max-width: 100%; overflow-wrap: anywhere; display: inline-flex; justify-content: center; align-items: center; padding: 14px 24px; min-height: 48px; border: 1px solid var(--mf-teal); border-radius: 10px; background: var(--mf-teal); color: #fff; font: inherit; font-size: 16px; font-weight: 650; line-height: 1.5; text-align: center; text-decoration: none; cursor: pointer; transition: background .2s ease; }
.mf-flow .mf-button:hover { background: #106d6a; }
.mf-flow .mf-button:disabled { cursor: progress; opacity: .65; }
.mf-button-wide { width: 100%; }
.mf-flow .mf-link-button { padding: 12px 0; border: 0; background: transparent; color: var(--mf-accent); font: inherit; font-size: 16px; font-weight: 600; line-height: 1.5; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.mf-flow a:focus-visible, .mf-flow button:focus-visible, .mf-flow input[type="checkbox"]:focus-visible { outline: 3px solid #15817e; outline-offset: 4px; }
.mf-flow .mf-status { margin: 18px 0; padding: 14px 16px; background: #eaf6f1; border: 1px solid #c6e5d8; border-radius: 10px; font-size: 16px; line-height: 1.65; }
.mf-flow .mf-status-error { background: #fff3ef; border-color: #e8b5a4; color: #833b25; }
.mf-flow .mf-private-note { color: var(--mf-dark); font-size: 16px; line-height: 1.6; margin-top: 16px; }
.mf-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mf-flow .mf-selection-summary { border-left: 3px solid #4da3a1; padding: 10px 14px; background: #f1f8f6; font-size: 16px; font-weight: 650; margin: 16px 0; }
.mf-flow .mf-contact-heading { border-top: 1px solid var(--mf-line); padding-top: 24px; margin-top: 24px; }
.mf-next-panel { background: #eaf4f1; box-shadow: none; }
.mf-next-panel > div { border-top: 1px solid #ccded8; padding-top: 22px; margin-top: 22px; }
.mf-flow .mf-telegram-link { display: inline-block; font-weight: 650; font-size: 16px; margin: 18px 0 12px; }
.mf-flow .mf-document-link { display: block; font-size: 16px; font-weight: 600; line-height: 1.6; margin-bottom: 14px; }
.mf-flow .mf-small { font-size: 16px; color: var(--mf-dark); line-height: 1.65; margin-top: 20px; }
.mf-flow .mf-start-panel { margin-bottom: 30px; max-width: 800px; }
.mf-start-panel p { line-height: 1.7; margin-bottom: 22px; }
.mf-step-label { display: inline-block; color: var(--mf-accent); font-size: 14px; font-weight: 650; margin-bottom: 12px; }
.mf-success-panel { max-width: 800px; margin-bottom: 26px; border-color: #b3d8ca; }
.mf-success-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #d8eee4; color: #137150; font-size: 26px; margin-bottom: 18px; }
.mf-flow .mf-reference { font-size: 20px; font-weight: 650; color: var(--mf-dark); overflow-wrap: anywhere; margin-bottom: 24px; }
.mf-summary-list { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 16px; font-size: 16px; line-height: 1.6; padding-bottom: 22px; margin: 0 0 22px; border-bottom: 1px solid var(--mf-line); }
.mf-summary-list dt { color: var(--mf-muted); }
.mf-summary-list dd { margin: 0; overflow-wrap: anywhere; font-weight: 500; }
.mf-success-panel .mf-button { margin-top: 22px; }
.mf-route { padding: 54px 0 44px; }
.mf-stepper { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 16px; }
.mf-stepper li { min-width: 0; overflow-wrap: break-word; border-top: 2px solid #c3dbd3; padding-top: 14px; }
.mf-stepper span { display: block; color: #626868; font-size: 14px; margin-bottom: 10px; }
.mf-stepper strong { display: block; color: var(--mf-dark); font-size: 16px; line-height: 1.4; }
.mf-stepper p { color: var(--mf-dark); font-size: 16px; line-height: 1.5; margin-top: 8px; }
.mf-site-footer { padding: 24px 0 32px; color: #617572; font-size: 12px; border-top: 1px solid #dce7e5; }
.mf-site-footer a { color: inherit; }
.mf-site-footer p { margin: 0 0 10px; }
/* Keep the existing questionnaire's result copy; add clear actions and keyboard focus. */
.medapp-result-overlay.medapp-active { padding: 20px; }
.medapp-result-overlay .medapp-result-page { margin: auto; width: 100%; }
.medapp-result-actions .mf-result-primary, .medapp-result-actions .mf-result-secondary { display: block; width: 100%; text-align: center; text-decoration: none; line-height: 1.45; padding: 16px 22px; }
.medapp-result-actions .mf-result-primary { background: #15817e; color: #fff; }
.medapp-wrapper .medapp-result-next-note { color: #323535; font-size: 16px; line-height: 1.6; margin-top: 18px; }
.medapp-result-actions .mf-result-secondary { background: transparent; color: #323535; border: 1px solid #b8ccca; }
.medapp-result-actions a:focus-visible, .medapp-result-actions button:focus-visible { outline: 3px solid #0b6260; outline-offset: 4px; }
@media (max-width: 900px) {
    .mf-order-layout { grid-template-columns: 1fr; }
    .mf-stepper { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px 18px; }
}
@media (max-width: 600px) {
    .mf-shell { width: calc(100% - 32px); }
    .mf-header-inner { min-height: 80px; }
    .mf-header-inner img { max-width: 120px; }
    .mf-order-heading { padding: 32px 0 24px; }
    .mf-flow h1 { letter-spacing: -.5px; }
    .mf-flow h2 { font-size: 22px; }
    .mf-flow .mf-lead { font-size: 16px; }
    .mf-panel, .mf-contact-card { padding: 22px 18px; border-radius: 16px; }
    .mf-fields { grid-template-columns: 1fr; gap: 16px; }
    .mf-field-wide { grid-column: auto; }
    .mf-actions { align-items: stretch; flex-direction: column; }
    .mf-actions .mf-link-button { text-align: center; }
    .mf-summary-list { grid-template-columns: 1fr; gap: 2px; }
    .mf-summary-list dd { margin-bottom: 10px; }
    .mf-stepper { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .mf-route { padding: 36px 0; }
    .medapp-result-overlay .medapp-result-page { padding: 28px 0; }
}
@media (prefers-reduced-motion: reduce) {
    .mf-flow *, .medapp-result-overlay * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* The preview helper injects its CSS after page load; keep its controls readable. */
.mf-order-page .mf-flow .mf-preview-steps { color: #323535;  }
.mf-order-page .mf-flow .mf-preview-steps p,
.mf-order-page .mf-flow .mf-preview-steps strong,
.mf-order-page .mf-flow .mf-preview-steps a,
.mf-order-page .mf-flow .mf-preview-skip { font-size: 16px; line-height: 1.6; }
.mf-order-page .mf-flow .mf-preview-steps a,
.mf-order-page .mf-flow .mf-preview-skip { color: #0B6260; }
.mf-order-page .mf-flow .mf-stepper .mf-preview-step-note { color: #626868; font-size: 14px; line-height: 1.6; }
.mf-order-page .mf-flow .mf-preview-skip:disabled { color: #626868; }

/* Digital materials are part of the order, with an explicit later option. */
.mf-flow .mf-materials-section { min-width: 0; border: 0; border-top: 1px solid var(--mf-line); margin: 28px 0; padding: 24px 0 0; }
.mf-flow .mf-materials-section legend { float: left; width: 100%; margin: 0 0 10px; padding: 0; font-size: 20px; font-weight: 650; line-height: 1.4; }
.mf-flow .mf-materials-section > p { clear: both; }
.mf-materials-choices { display: grid; gap: 10px; margin: 18px 0; }
.mf-flow .mf-materials-choice { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid #bccfcc; border-radius: 8px; cursor: pointer; font-size: 16px; line-height: 1.5; }
.mf-flow .mf-materials-choice:has(input:checked) { border-color: var(--mf-accent); background: #edf7f5; }
.mf-flow .mf-materials-choice input { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--mf-accent); }
.mf-order-page .mf-flow .mf-materials-picker input[type=file] { width: 100%; max-width: 100%; padding: 12px; min-height: 48px; font-size: 16px; }
.mf-materials-picker input::file-selector-button { margin-right: 10px; padding: 8px 12px; border: 1px solid #bccfcc; border-radius: 5px; background: #edf7f5; color: #323535; cursor: pointer; }
.mf-flow .mf-materials-list { list-style: none; padding: 0; margin: 18px 0; }
.mf-materials-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #dce7e5; }
.mf-materials-file-info { min-width: 0; flex: 1; }
.mf-materials-file strong { display: block; overflow-wrap: anywhere; font-size: 16px; line-height: 1.5; }
.mf-materials-file span { display: block; color: #626868; font-size: 14px; line-height: 1.6; margin-top: 4px; }
.mf-materials-file > a, .mf-materials-file > button { flex-shrink: 0; font-size: 16px; }
.mf-flow .mf-saved-materials { margin-top: 24px; border-top: 1px solid #dce7e5; padding-top: 24px; }
.mf-flow .mf-success-account { margin-top: 24px; }
@media (max-width: 600px) {
    .mf-materials-file { align-items: flex-start; flex-wrap: wrap; }
    .mf-materials-file-info { flex-basis: calc(100% - 85px); }
    .mf-flow .mf-materials-section legend { font-size: 18px; }
}

/* The order uses the catalogue photographs and the same colour preview. */
.mf-flow .mf-product-preview { margin: 18px 0 22px; padding: 14px; border: 1px solid var(--mf-line); border-radius: 12px; background: #f7fbfa; }
.mf-product-preview-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.mf-product-preview-comparison .mf-product-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mf-product-preview-model { min-width: 0; }
.mf-product-preview-photo { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; max-height: 280px; }
.mf-product-preview-photo img { display: block; width: 100%; height: 100%; min-height: 0; max-height: 280px; object-fit: contain; padding: 8px; }
.mf-flow .mf-product-preview-label { margin-top: 6px; text-align: center; font-size: 16px; font-weight: 600; }
.mf-product-preview figcaption { margin-top: 14px; color: var(--mf-dark); font-size: 16px; line-height: 1.6; }
.mf-flow .mf-product-preview-error { padding: 18px 8px; color: var(--mf-dark); font-size: 16px; line-height: 1.6; text-align: center; }
@media (max-width: 600px) {
    .mf-flow .mf-product-preview { padding: 10px; }
    .mf-product-preview-grid { gap: 10px; }
    .mf-product-preview-photo { max-height: 240px; }
    .mf-product-preview-photo img { max-height: 240px; padding: 4px; }
    .mf-flow .mf-product-preview-label { font-size: 16px; }
}

.mf-product-color-swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 284px; margin: 14px auto 0; }
.mf-flow .mf-product-color-swatch { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; padding: 4px; border: 2px solid transparent; border-radius: 50%; background: transparent; cursor: pointer; }
.mf-product-color-swatch::before { content: ''; width: 30px; height: 30px; border-radius: 50%; background: var(--mf-preview-color); border: 1px solid #0002; }
.mf-flow .mf-product-color-swatch[aria-pressed="true"] { border-color: var(--mf-dark); }
.mf-flow .mf-product-color-swatch:hover { background: #e3efeb; }
.mf-flow .mf-product-color-swatch:focus-visible { outline: 3px solid var(--mf-teal); outline-offset: 2px; }
.mf-flow .mf-product-color-swatch:disabled { cursor: default; opacity: .5; }
