/* Shared landing-page surface used by the editor and public snapshots. */
.mx-page {
  --mx-accent: #2768b2;
  --mx-ink: #172b3d;
  --mx-muted: #40576b;
  --mx-theme-ink: #172b3d;
  --mx-theme-muted: #40576b;
  --mx-paper: #fff;
  --mx-wash: #f1f5f8;
  --mx-rule: #d8e1e8;
  box-sizing: border-box;
  display: grid;
  gap: 26px;
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(12px, 3vw, 30px);
  color: var(--mx-page-ink, var(--mx-ink));
  background: var(--mx-page-background, #f3f6f8);
  font: 400 18px/1.6 Arial, Helvetica, sans-serif;
  overflow-wrap: break-word;
}

.mx-page *,
.mx-page *::before,
.mx-page *::after { box-sizing: border-box; }

.mx-page[data-theme-font="serif"] {
  font-family: Georgia, "Times New Roman", serif;
}

.mx-page[data-palette="ink"] {
  --mx-accent: #594c9b;
  --mx-ink: #292640;
  --mx-muted: #514e68;
  --mx-theme-ink: #292640;
  --mx-theme-muted: #514e68;
  --mx-wash: #f3f1fa;
  --mx-rule: #dedbec;
  background: #eeedf5;
}

.mx-page[data-palette="warm"] {
  --mx-accent: #a64d26;
  --mx-ink: #3e2a20;
  --mx-muted: #665044;
  --mx-theme-ink: #3e2a20;
  --mx-theme-muted: #665044;
  --mx-wash: #fff5ed;
  --mx-rule: #ead8ca;
  background: #fbf4ee;
}

.mx-page[data-palette="forest"] {
  --mx-accent: #286b53;
  --mx-ink: #203b32;
  --mx-muted: #496257;
  --mx-theme-ink: #203b32;
  --mx-theme-muted: #496257;
  --mx-wash: #edf5f0;
  --mx-rule: #d2e2d7;
  background: #f0f6f1;
}

.mx-page[data-theme-spacing="compact"] { gap: 14px; }

.mx-page[data-background-type="transparent"] { background: transparent; }
.mx-page[data-background-type="solid"],
.mx-page[data-background-type="linear"],
.mx-page[data-background-type="radial"],
.mx-page[data-background-type="pattern"],
.mx-page[data-background-type="image"] { background: var(--mx-page-background); }

@media (max-width: 760px) {
  .mx-page[data-background-type="image"][data-mobile-background="true"] { background: var(--mx-page-background-mobile); }
}

.mx-section {
  --mx-ink: var(--mx-section-ink, var(--mx-theme-ink));
  --mx-muted: var(--mx-section-muted, var(--mx-theme-muted));
  position: relative;
  min-width: 0;
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--mx-rule);
  border-radius: 22px;
  background: var(--mx-paper);
  overflow: hidden;
}

.mx-section[data-background-type="inherit"],
.mx-section[data-background-type="transparent"] {
  --mx-ink: var(--mx-section-ink, var(--mx-page-ink, var(--mx-theme-ink)));
  --mx-muted: var(--mx-section-muted, var(--mx-page-muted, var(--mx-theme-muted)));
  background: transparent;
}
.mx-section[data-background-type="solid"],
.mx-section[data-background-type="linear"],
.mx-section[data-background-type="radial"],
.mx-section[data-background-type="pattern"] { background: var(--mx-section-background); }
.mx-section[data-background-type="image"] { background: var(--mx-section-overlay, none), var(--mx-section-background); }

.mx-section--text[data-layout="editorial"],
.mx-section--faq[data-layout="editorial"] {
  --mx-ink: var(--mx-section-ink, var(--mx-page-ink, var(--mx-theme-ink)));
  --mx-muted: var(--mx-section-muted, var(--mx-page-muted, var(--mx-theme-muted)));
}

@media (max-width: 760px) {
  .mx-section[data-background-type="image"][data-mobile-background="true"] {
    background: var(--mx-section-overlay, none), var(--mx-section-background-mobile);
  }
}

.mx-page[data-theme-spacing="compact"] .mx-section {
  padding: clamp(20px, 4vw, 38px);
  border-radius: 16px;
}

.mx-heading {
  max-width: 18ch;
  margin: 0 0 20px;
  color: var(--mx-ink);
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.mx-section:not(.mx-section--cover) .mx-heading { font-size: clamp(26px, 3.5vw, 40px); }
.mx-lead, .mx-copy { max-width: 64ch; margin: 0; color: var(--mx-muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.62; white-space: pre-wrap; }
.mx-section:not(.mx-section--cover) .mx-copy { font-size: 18px; }

/* Injected next to a clicked button (public_tracking.py statusNear()):
   uses the section's own ink custom property (not `color: inherit`) --
   .mx-section never sets its own `color`, only the --mx-ink/--mx-muted
   variables that .mx-heading/.mx-copy read explicitly, so `inherit` picked
   up the page-level color instead of a dark or photo cover's own light ink,
   giving ~1:1-2.5:1 contrast. --mx-ink cascades through the DOM regardless
   of where in the section this span sits. */
.mx-handoff-status { display: block; margin-top: 12px; color: var(--mx-ink); }

.mx-section--cover {
  display: grid;
  align-content: center;
  min-height: 350px;
  isolation: isolate;
  border: 0;
  background: linear-gradient(125deg, #e6f1fa 0%, #fff 62%, #e7eef4 100%);
}

.mx-page[data-palette="ink"] .mx-section--cover:not([data-background-type]),
.mx-page[data-palette="ink"] .mx-section--cover[data-background-type="currenttheme"] { background: linear-gradient(125deg, #ece9fa, #fff 68%, #f3f1fa); }
.mx-page[data-palette="warm"] .mx-section--cover:not([data-background-type]),
.mx-page[data-palette="warm"] .mx-section--cover[data-background-type="currenttheme"] { background: linear-gradient(125deg, #ffebdc, #fff 65%, #fff4eb); }
.mx-page[data-palette="forest"] .mx-section--cover:not([data-background-type]),
.mx-page[data-palette="forest"] .mx-section--cover[data-background-type="currenttheme"] { background: linear-gradient(125deg, #e1f0e6, #fff 65%, #f2f7f1); }
.mx-section--cover .mx-heading { max-width: 22ch; }
.mx-section--cover .mx-lead { max-width: 60ch; }
.mx-section--cover[data-layout="center"] { justify-items: center; text-align: center; }
.mx-section--cover[data-layout="center"] .mx-heading,
.mx-section--cover[data-layout="center"] .mx-lead { margin-inline: auto; }
.mx-section--cover[data-layout="editorial"] { padding-right: clamp(80px, 14vw, 180px); }
.mx-section--cover[data-layout="split"] { grid-template-columns: minmax(0, 1.1fr) minmax(180px, .9fr); align-items: center; gap: 32px; }
.mx-section--cover[data-layout="split"] .mx-image-edit,
.mx-section--cover[data-layout="split"] > .mx-image { grid-column: 2; grid-row: 1 / span 3; }

.mx-page .mx-button,
#user-content a[data-mx-primary-handoff] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 28px;
  padding: 14px 25px;
  border: 0;
  border-radius: 12px;
  background: var(--mx-accent);
  color: var(--mx-button-ink, #fff);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 7px 18px color-mix(in srgb, var(--mx-accent) 22%, transparent);
}

.mx-button:hover, #user-content a[data-mx-primary-handoff]:hover { filter: brightness(.92); }
.mx-button:focus-visible, #user-content a[data-mx-primary-handoff]:focus-visible, .mx-image-edit:focus-visible, .mx-page [contenteditable]:focus-visible { outline: 3px solid #f1a23d; outline-offset: 3px; }
.mx-page[data-button-style="square"] .mx-button,
.mx-page[data-button-style="square"] #user-content a[data-mx-primary-handoff] { border-radius: 3px; }
.mx-page[data-button-style="pill"] .mx-button,
.mx-page[data-button-style="pill"] #user-content a[data-mx-primary-handoff] { border-radius: 999px; }
.mx-section--cover[data-layout="center"] .mx-button { justify-self: center; }

.mx-section--text[data-layout="editorial"] { border: 0; border-left: 4px solid var(--mx-accent); border-radius: 0; background: transparent; padding-left: clamp(26px, 6vw, 70px); }
.mx-section--text[data-layout="center"] { text-align: center; }
.mx-section--text[data-layout="center"] .mx-heading,
.mx-section--text[data-layout="center"] .mx-copy { margin-inline: auto; }

.mx-section--image_text { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(24px, 5vw, 58px); }
.mx-section--image_text .mx-copy-column { min-width: 0; }
.mx-section--image_text[data-layout="editorial"] { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.mx-section--image_text[data-layout="editorial"] > .mx-image-edit { grid-column: 2; grid-row: 1; }
.mx-section--image_text[data-layout="editorial"] .mx-copy-column { grid-column: 1; grid-row: 1; }

.mx-image-edit { display: block; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.mx-image-edit:hover { filter: brightness(.97); }
.mx-image { display: block; width: 100%; max-height: 470px; border-radius: 18px; object-fit: cover; object-position: 50% 50%; }
.mx-image[data-fit="contain"] { object-fit: contain; background: var(--mx-wash); }
.mx-image[data-broken="true"] { min-height: 190px; border: 1px dashed #91a7b8; background: #f1f5f8; }
.mx-image-placeholder { --mx-ink: #172b3d; --mx-muted: #40576b; display: grid; min-height: 190px; place-items: center; padding: 20px; border: 1px dashed #91a7b8; background: #f1f5f8; color: var(--mx-muted); text-align: center; }
.mx-section--cover .mx-image-edit--empty { width: auto; justify-self: start; margin: 0; }
.mx-section--cover[data-layout="center"] .mx-image-edit--empty { justify-self: center; }
.mx-section--cover .mx-image-placeholder { width: min(100%, 190px); min-height: 58px; padding: 10px 14px; border-radius: 9px; font-size: 15px; font-weight: 700; line-height: 1.3; }

.mx-section--benefits .mx-cards { counter-reset: mx-benefit; }
.mx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 18px; margin-top: 28px; }
.mx-card { --mx-ink: #172b3d; --mx-muted: #40576b; min-width: 0; margin: 0; padding: 22px; border: 0; border-radius: 13px; background: var(--mx-wash); }
.mx-section--benefits .mx-card { position: relative; padding-top: 58px; }
.mx-section--benefits .mx-card::before { counter-increment: mx-benefit; content: "0" counter(mx-benefit); position: absolute; top: 16px; left: 22px; color: var(--mx-accent); font-size: 15px; font-weight: 700; letter-spacing: .1em; }
.mx-card h3 { margin: 0 0 8px; color: var(--mx-ink); font-size: 21px; line-height: 1.25; }
.mx-card p { margin: 0; color: var(--mx-muted); font-size: 17px; line-height: 1.5; white-space: pre-wrap; }
.mx-card .mx-image { height: 180px; border-radius: 10px; }
.mx-card figcaption { margin-top: 10px; color: var(--mx-muted); font-size: 16px; }
.mx-section--gallery .mx-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.mx-section--gallery[data-layout="cards"] .mx-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.mx-section--gallery[data-layout="editorial"] .mx-cards { grid-template-columns: 1fr; }
.mx-section--gallery[data-layout="editorial"] .mx-card { display: grid; grid-template-columns: minmax(96px, 180px) minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--mx-rule); border-radius: 0; background: transparent; }
.mx-section--gallery[data-layout="editorial"] .mx-image { height: auto; max-height: 120px; aspect-ratio: 4 / 3; }
.mx-section--benefits[data-layout="editorial"] .mx-cards { display: block; border-top: 1px solid var(--mx-rule); }
.mx-section--benefits[data-layout="editorial"] .mx-card { display: grid; grid-template-columns: 80px 1fr; gap: 4px 18px; padding: 20px 0; border: 0; border-bottom: 1px solid var(--mx-rule); border-radius: 0; background: transparent; }
.mx-section--benefits[data-layout="editorial"] .mx-card::before { position: static; grid-row: span 2; align-self: center; font-size: 19px; }

.mx-section--faq[data-layout="editorial"] { border: 0; border-top: 1px solid var(--mx-rule); border-radius: 0; background: transparent; }
.mx-section--faq[data-layout="center"] { width: min(100%, 820px); margin-inline: auto; }
.mx-faq-item { border-bottom: 1px solid var(--mx-rule); }
.mx-faq-item summary { padding: 18px 34px 18px 0; color: var(--mx-ink); font-size: 19px; font-weight: 700; cursor: pointer; }
.mx-faq-item summary::marker { color: var(--mx-accent); }
.mx-faq-answer { margin: 0 0 20px 1.15em; color: var(--mx-muted); white-space: pre-wrap; }

.mx-section--cta { display: grid; justify-items: center; text-align: center; border: 0; background: var(--mx-wash); }
.mx-section--cta[data-layout="editorial"] { justify-items: start; text-align: left; border-left: 5px solid var(--mx-accent); }
.mx-section--cta .mx-heading, .mx-section--cta .mx-copy { margin-inline: auto; }
.mx-section--cta[data-layout="editorial"] .mx-heading,
.mx-section--cta[data-layout="editorial"] .mx-copy { margin-inline: 0; }

.mx-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mx-section--prices .mx-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: stretch; }
.mx-price-card { display: flex; flex-direction: column; gap: 6px; }
.mx-price-card .mx-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 4px 0 6px; white-space: normal; }
.mx-price-now { color: var(--mx-ink); font-size: 28px; font-weight: 700; line-height: 1.2; }
.mx-price-old { color: var(--mx-muted); font-size: 18px; }
.mx-price-card .mx-button { align-self: stretch; margin-top: auto; }
.mx-price-card > :nth-last-child(2):not(:first-child) { margin-bottom: 14px; }
.mx-section--prices[data-layout="editorial"] .mx-cards { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--mx-rule); }
.mx-section--prices[data-layout="editorial"] .mx-price-card { padding: 20px 0; border-bottom: 1px solid var(--mx-rule); border-radius: 0; background: transparent; }
.mx-section--prices[data-layout="editorial"] .mx-price-card .mx-button { align-self: flex-start; }

.mx-section.is-selected { outline: 2px solid color-mix(in srgb, var(--mx-accent) 72%, #fff); outline-offset: 3px; }
.mx-section--image_text.mx-section--without-image { grid-template-columns: minmax(0, 1fr); }
.mx-section-handle { display: none; }
.mx-page [contenteditable="plaintext-only"] { cursor: text; }
.mx-page [contenteditable="plaintext-only"]:hover { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--mx-accent) 28%, transparent); text-underline-offset: 4px; }

@media (max-width: 760px) {
  .mx-page { gap: 16px; padding: 8px; font-size: 17px; }
  .mx-section { padding: 30px 24px; border-radius: 17px; }
  .mx-section--cover { min-height: 330px; }
  .mx-section--cover[data-layout="editorial"] { padding-right: 68px; }
  .mx-section--cover[data-layout="split"] { grid-template-columns: 1fr; }
  .mx-section--cover[data-layout="split"] .mx-image-edit,
  .mx-section--cover[data-layout="split"] > .mx-image { grid-column: 1; grid-row: auto; }
  .mx-section--image_text,
  .mx-section--image_text[data-layout="editorial"] { grid-template-columns: 1fr; }
  .mx-section--image_text[data-layout="editorial"] > .mx-image-edit,
  .mx-section--image_text[data-layout="editorial"] .mx-copy-column { grid-column: 1; grid-row: auto; }
  .mx-cards, .mx-section--gallery .mx-cards { gap: 12px; }
}

@media (max-width: 500px) {
  .mx-page { gap: 12px; padding: 4px; font-size: 16px; }
  .mx-section { padding: 25px 19px; border-radius: 14px; }
  .mx-section--cover { min-height: 300px; }
  .mx-section--cover[data-layout="editorial"] { padding-right: 38px; }
  .mx-heading { font-size: clamp(29px, 9vw, 40px); }
  .mx-section:not(.mx-section--cover) .mx-heading { font-size: clamp(25px, 7vw, 32px); }
  .mx-lead { font-size: 18px; }
  .mx-cards, .mx-section--gallery .mx-cards,
  .mx-section--gallery[data-layout="cards"] .mx-cards { grid-template-columns: 1fr; }
  .mx-card { padding: 18px; }
  .mx-section--benefits .mx-card { padding-top: 52px; }
  .mx-section--benefits[data-layout="editorial"] .mx-card { grid-template-columns: 46px 1fr; gap: 3px 10px; }
  .mx-button, #user-content a[data-mx-primary-handoff] { width: 100%; min-height: 52px; margin-top: 22px; }
  .mx-section--cta .mx-button { width: auto; min-width: min(100%, 250px); }
  .mx-section--faq[data-layout="editorial"] { padding-inline: 12px; }
}

/* Explicit block backgrounds must win over legacy layout and palette surfaces. */
.mx-page .mx-section[data-background-type="inherit"],
.mx-page .mx-section[data-background-type="transparent"] { background: transparent; }
.mx-page .mx-section[data-background-type="solid"],
.mx-page .mx-section[data-background-type="linear"],
.mx-page .mx-section[data-background-type="radial"],
.mx-page .mx-section[data-background-type="pattern"] { background: var(--mx-section-background); }
.mx-page .mx-section[data-background-type="image"] {
  background: var(--mx-section-overlay, none), var(--mx-section-background);
}

@media (max-width: 760px) {
  .mx-page .mx-section[data-background-type="image"][data-mobile-background="true"] {
    background: var(--mx-section-overlay, none), var(--mx-section-background-mobile);
  }
}

/* The editor's phone preview can be shown on a wide desktop viewport. */
.ml-page-canvas[data-device="mobile"] .mx-page[data-background-type="image"][data-mobile-background="true"] {
  background: var(--mx-page-background-mobile);
}
.ml-page-canvas[data-device="mobile"] .mx-page .mx-section[data-background-type="image"][data-mobile-background="true"] {
  background: var(--mx-section-overlay, none), var(--mx-section-background-mobile);
}

@container ml-phone-preview (max-width: 500px) {
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-page { gap: 12px; padding: 4px; font-size: 16px; }
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-section { padding: 25px 19px; border-radius: 14px; }
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-section--cover { min-height: 300px; }
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-section--cover[data-layout="editorial"] { padding-right: 38px; }
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-section--cover[data-layout="split"] { grid-template-columns: 1fr; }
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-section--cover[data-layout="split"] .mx-image-edit,
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-section--cover[data-layout="split"] > .mx-image { grid-column: 1; grid-row: auto; }
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-section--image_text,
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-section--image_text[data-layout="editorial"] { grid-template-columns: 1fr; }
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-section--image_text[data-layout="editorial"] > .mx-image-edit,
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-section--image_text[data-layout="editorial"] .mx-copy-column { grid-column: 1; grid-row: auto; }
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-heading { font-size: clamp(29px, 9cqw, 40px); }
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-section:not(.mx-section--cover) .mx-heading { font-size: clamp(25px, 7cqw, 32px); }
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-lead { font-size: 18px; }
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-copy { font-size: clamp(18px, 2cqw, 22px); }
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-section--image_text { gap: clamp(24px, 5cqw, 58px); }
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-section--text[data-layout="editorial"] { padding-left: clamp(26px, 6cqw, 70px); }
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-cards,
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-section--gallery .mx-cards { gap: 12px; grid-template-columns: 1fr; }
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-section--gallery[data-layout="cards"] .mx-cards { grid-template-columns: 1fr; }
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-card { padding: 18px; }
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-section--benefits .mx-card { padding-top: 52px; }
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-section--benefits[data-layout="editorial"] .mx-card { grid-template-columns: 46px 1fr; gap: 3px 10px; }
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-button { width: 100%; min-height: 52px; margin-top: 22px; }
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-section--cta .mx-button { width: auto; min-width: min(100%, 250px); }
  #mx-landings-app .ml-page-canvas[data-device="mobile"] .mx-section--faq[data-layout="editorial"] { padding-inline: 12px; }
}

.mx-media-picker {
  width: min(760px, calc(100vw - 24px));
  max-width: 760px;
  max-height: min(92dvh, 900px);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #cbd8e2;
  border-radius: 18px;
  color: #172b3d;
  background: #fff;
  box-shadow: 0 22px 70px rgba(14, 32, 48, .25);
  overflow: auto;
}

.mx-media-picker::backdrop { background: rgba(15, 28, 39, .58); }
.mx-media-picker h2 { max-width: calc(100% - 50px); margin: 0 0 8px; font: 700 25px/1.2 Arial, sans-serif; }
.mx-media-close { position: absolute; top: 12px; right: 12px; width: 42px; min-height: 42px; border: 1px solid #cbd8e2; border-radius: 50%; background: #fff; color: #233b4f; font: 26px/1 Arial,sans-serif; cursor: pointer; }
.mx-media-status { min-height: 24px; margin: 0 0 12px; color: #40576b; }
.mx-media-toolbar, .mx-media-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; margin: 10px 0; }
.mx-media-toolbar button, .mx-media-actions button { min-height: 44px; padding: 9px 15px; border: 1px solid #9fb4ca; border-radius: 9px; background: #fff; color: #183550; font: 600 16px/1.2 Arial,sans-serif; cursor: pointer; }
.mx-media-actions .mx-media-use { border-color: #1769e0; background: #1769e0; color: #fff; }
.mx-media-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; max-height: 240px; padding: 4px; overflow: auto; }
.mx-media-card { min-width: 0; height: 88px; padding: 3px; border: 2px solid transparent; border-radius: 9px; background: #edf2f5; cursor: pointer; }
.mx-media-card[aria-pressed="true"] { border-color: #1769e0; box-shadow: 0 0 0 2px #cfe1f7; }
.mx-media-card img { display: block; width: 100%; height: 100%; border-radius: 5px; object-fit: cover; }
.mx-media-empty { grid-column: 1 / -1; margin: 0; padding: 18px; border: 1px dashed #9fb4c4; border-radius: 10px; color: #40576b; text-align: center; }
.mx-media-preview { display: grid; grid-template-columns: minmax(160px, .85fr) minmax(200px, 1fr); align-items: start; gap: 14px; margin-top: 14px; }
.mx-media-crop { display: grid; min-height: 200px; place-items: center; overflow: hidden; border: 1px solid #cbd8e2; border-radius: 11px; background: #edf2f5; }
.mx-media-crop img { display: block; width: 100%; height: 230px; object-fit: cover; object-position: 50% 50%; }
.mx-media-controls { display: grid; gap: 10px; min-width: 0; }
.mx-media-controls select, .mx-media-controls input[type="text"] { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #9fb4ca; border-radius: 8px; font: 16px Arial,sans-serif; }
.mx-media-position { display: grid; gap: 8px; }
.mx-media-position label { display: grid; gap: 4px; color: #40576b; font: 14px/1.3 Arial,sans-serif; }
.mx-media-position input { width: 100%; min-height: 34px; }
.mx-media-picker :focus-visible { outline: 3px solid #e8933e; outline-offset: 2px; }

@media (max-width: 560px) {
  .mx-media-picker { padding: 18px 14px; }
  .mx-media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 190px; }
  .mx-media-preview { grid-template-columns: 1fr; }
  .mx-media-crop img { height: 190px; }
  .mx-media-actions { display: grid; grid-template-columns: 1fr; }
  .mx-media-actions button { width: 100%; }
}

/* === Новые блоки (prices, reviews, contacts, before_after, video, countdown, schedule, footer) === */
.mx-review { display: grid; gap: 10px; align-content: start; }
.mx-review blockquote { margin: 0; }
.mx-review figcaption { margin: 0; color: var(--mx-ink); font-weight: 700; font-size: 18px; }
.mx-card .mx-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.mx-card p.mx-stars { color: #d98a00; font-size: 24px; letter-spacing: 2px; line-height: 1; }
.mx-stars-off { color: var(--mx-rule); }
.mx-section--reviews[data-layout="editorial"] .mx-cards { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--mx-rule); }
.mx-section--reviews[data-layout="editorial"] .mx-card { padding: 20px 0; border-bottom: 1px solid var(--mx-rule); border-radius: 0; background: transparent; }

.mx-section--contacts { display: grid; gap: 24px; }
.mx-section--contacts > *, .mx-contact-rows > div { min-width: 0; }
.mx-contact-link, .mx-price-now, .mx-schedule-when, .mx-review figcaption { overflow-wrap: anywhere; }
.mx-contact-rows { display: grid; gap: 16px; margin: 0 0 20px; }
.mx-contact-rows dt { color: var(--mx-muted); font-size: 16px; }
.mx-contact-rows dd { margin: 2px 0 0; color: var(--mx-ink); font-size: 20px; line-height: 1.4; white-space: pre-wrap; }
.mx-contact-link { display: inline-block; min-height: 44px; padding-block: 8px; color: var(--mx-accent); font-weight: 700; text-decoration: underline; }
@media (min-width: 761px) {
  .mx-section--contacts[data-layout="split"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

.mx-ba-pair { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
.mx-ba-side { margin: 0; }
.mx-ba-side figcaption { margin: 0 0 6px; color: var(--mx-ink); font-weight: 700; font-size: 18px; }
.mx-ba .mx-image { width: 100%; height: auto; max-height: 340px; object-fit: cover; }
.mx-section--before_after .mx-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
@media (min-width: 560px) { .mx-ba-pair { grid-template-columns: 1fr 1fr; } }

.mx-video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 20px; border-radius: 13px; overflow: hidden; background: #000; }
.mx-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mx-section--video[data-layout="center"], .mx-section--countdown[data-layout="center"] { text-align: center; }
.mx-section--video .mx-heading, .mx-section--countdown .mx-heading { margin-inline: auto; }
.mx-section--video .mx-copy, .mx-section--countdown .mx-copy { margin-inline: auto; }

.mx-countdown { margin-top: 20px; }
.mx-countdown p { margin: 0 0 8px; color: var(--mx-ink); }
.mx-countdown__until { font-size: 20px; font-weight: 700; }
.mx-countdown__timer { font-size: clamp(28px, 7vw, 48px); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--mx-accent); }
.mx-countdown__expired { font-size: 20px; }

.mx-schedule { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--mx-rule); }
.mx-schedule-row { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--mx-rule); }
.mx-schedule-when { color: var(--mx-accent); font-size: 22px; line-height: 1.25; }
.mx-schedule-row h3 { margin: 0 0 4px; color: var(--mx-ink); font-size: 21px; line-height: 1.25; }
.mx-schedule-row p { margin: 0; }
@media (min-width: 640px) { .mx-schedule-row { grid-template-columns: minmax(130px, 200px) minmax(0, 1fr); gap: 24px; } }

.mx-footer { display: grid; gap: 12px; }
.mx-footer-company { margin: 0; color: var(--mx-ink); font-size: 20px; font-weight: 700; }
.mx-footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; }
.mx-policy summary { display: flex; align-items: center; min-height: 44px; color: var(--mx-accent); font-weight: 700; cursor: pointer; }
.mx-policy .mx-copy { max-width: none; padding-bottom: 8px; }

/* === Настройки страницы (вторая кнопка, стили преимуществ, шрифты, размер текста, украшения, закреплённая кнопка, поделиться, окно при уходе) === */

.mx-page[data-theme-font="readable"] { font-family: Verdana, Tahoma, sans-serif; }
.mx-page[data-theme-font="modern"] { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.mx-page .mx-button--secondary { border: 2px solid var(--mx-accent); background: var(--mx-paper); color: var(--mx-accent); box-shadow: none; }

.mx-cover-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.mx-cover-actions .mx-button { margin-top: 0; }
.mx-section--cover[data-layout="center"] .mx-cover-actions { justify-content: center; }

.mx-page[data-theme-text-size="large"] { font-size: 21px; }
.mx-page[data-theme-text-size="large"] .mx-heading { font-size: clamp(35px, 5.8vw, 62px); }
.mx-page[data-theme-text-size="large"] .mx-section:not(.mx-section--cover) .mx-heading { font-size: clamp(31px, 4.1vw, 46px); }
.mx-page[data-theme-text-size="large"] .mx-lead,
.mx-page[data-theme-text-size="large"] .mx-section:not(.mx-section--cover) .mx-copy { font-size: clamp(21px, 2.4vw, 26px); }
.mx-page[data-theme-text-size="large"] .mx-card p,
.mx-page[data-theme-text-size="large"] .mx-benefit-item p { font-size: 20px; }
.mx-page[data-theme-text-size="large"] .mx-card h3,
.mx-page[data-theme-text-size="large"] .mx-benefit-item h3 { font-size: 24px; }
.mx-page[data-theme-text-size="large"] .mx-faq-item summary { font-size: 22px; }
.mx-page[data-theme-text-size="large"] .mx-button { font-size: 21px; }
@media (max-width: 560px) {
  .mx-page[data-theme-text-size="large"] { font-size: 19px; }
  .mx-page[data-theme-text-size="large"] .mx-heading { font-size: clamp(33px, 10vw, 46px); }
  .mx-page[data-theme-text-size="large"] .mx-section:not(.mx-section--cover) .mx-heading { font-size: clamp(29px, 8vw, 37px); }
  .mx-page[data-theme-text-size="large"] .mx-lead { font-size: 21px; }
}

.mx-benefit-list, .mx-benefit-steps { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.mx-benefit-item { position: relative; padding: 0 0 0 46px; }
.mx-benefit-item h3 { margin: 0 0 4px; color: var(--mx-ink); font-size: 21px; line-height: 1.25; }
.mx-benefit-item p { margin: 0; color: var(--mx-muted); font-size: 17px; line-height: 1.5; white-space: pre-wrap; }
.mx-benefit-list .mx-benefit-item::before { content: "\2713"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--mx-accent); color: var(--mx-button-ink, #fff); font-weight: 700; }
.mx-benefit-steps { counter-reset: mx-step; }
.mx-benefit-steps .mx-benefit-item { counter-increment: mx-step; padding-bottom: 18px; }
.mx-benefit-steps .mx-benefit-item::before { content: counter(mx-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--mx-accent); color: var(--mx-button-ink, #fff); font-weight: 700; z-index: 1; }
.mx-benefit-steps .mx-benefit-item:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--mx-rule); }
.mx-benefit-figures .mx-card::before { content: none; }
.mx-benefit-figures .mx-card { padding-top: 22px; }
.mx-figure { display: block; margin-bottom: 8px; color: var(--mx-accent); font-size: clamp(36px, 6vw, 52px); font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }

.mx-page[data-theme-decor="newyear"] > .mx-section:first-child { position: relative; overflow: hidden; }
.mx-page[data-theme-decor="newyear"] > .mx-section:first-child::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 20px 30px, #fff 0 2px, rgba(120, 160, 210, .55) 3px, transparent 4px),
    radial-gradient(circle at 90px 110px, #fff 0 3px, rgba(120, 160, 210, .55) 4px, transparent 5px),
    radial-gradient(circle at 150px 60px, #fff 0 2px, rgba(120, 160, 210, .55) 3px, transparent 4px),
    radial-gradient(circle at 60px 170px, #fff 0 2px, rgba(120, 160, 210, .55) 3px, transparent 4px);
  background-size: 190px 190px, 230px 230px, 170px 170px, 210px 210px;
  animation: mx-snow 14s linear infinite;
}
.mx-page[data-theme-decor="newyear"] > .mx-section:first-child > * { position: relative; z-index: 1; }
@keyframes mx-snow { to { background-position: 40px 190px, -60px 230px, 30px 170px, -20px 210px; } }
@media (prefers-reduced-motion: reduce) {
  .mx-page[data-theme-decor="newyear"] > .mx-section:first-child::after { display: none; }
}

.mx-sticky { display: none; }
.mx-share { display: grid; justify-items: center; gap: 8px; }
.mx-share .mx-button { margin-top: 0; }
.mx-share__status { min-height: 1.5em; margin: 0; color: var(--mx-muted); font-size: 16px; }
@media (max-width: 720px) {
  .mx-page[data-sticky] { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .mx-sticky {
    position: fixed; right: 0; bottom: 0; left: 0; z-index: 20; display: block;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--mx-paper); border-top: 1px solid var(--mx-rule); box-shadow: 0 -6px 18px rgba(15, 28, 39, .12);
  }
  .mx-sticky .mx-handoff-status { position: absolute; right: 0; bottom: 100%; left: 0; margin: 0; padding: 8px 12px; text-align: center; background: var(--mx-paper); }
  .mx-sticky .mx-handoff-status:empty { display: none; }
  .mx-sticky .mx-button { display: flex; width: 100%; min-height: 56px; margin-top: 0; }
}

.mx-exit:not([open]) { display: none; }
.mx-exit { width: min(520px, calc(100vw - 24px)); padding: 28px; border: 0; border-radius: 16px; color: var(--mx-ink); background: var(--mx-paper); box-shadow: 0 22px 70px rgba(14, 32, 48, .3); }
.mx-exit::backdrop { background: rgba(15, 28, 39, .58); }
.mx-exit h2 { margin: 0 0 10px; font-size: 28px; line-height: 1.2; }
.mx-exit p { margin: 0; color: var(--mx-muted); }
.mx-exit .mx-button { display: flex; width: 100%; }
.mx-exit .mx-button--secondary { margin-top: 12px; }

.mx-blank-controls { margin: 0 auto; max-width: 560px; }
.mx-blank-controls--plain { display: grid; justify-items: center; text-align: center; }
.mx-blank-controls img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.mx-blank-controls p { overflow-wrap: anywhere; }

.mx-page[data-blank="1"][data-binding-mode="autofollow"] {
  max-width: none; min-height: 100vh; min-height: 100dvh;
  padding-inline: clamp(12px, 4vw, 30px);
  grid-template-columns: minmax(0, 1fr); place-items: center; align-content: center;
  background: linear-gradient(158deg, #6fc3ea, #7ccfdf 46%, #93dcc3);
}
.mx-page[data-blank="1"][data-binding-mode="autofollow"] .mx-blank-controls {
  display: block; width: min(100%, 400px); padding: clamp(16px, 6vw, 32px); text-align: center;
  border-radius: 24px; background: #fff; box-shadow: 0 18px 50px rgba(16,38,62,.18);
}
.mx-page[data-blank="1"][data-binding-mode="autofollow"] .mx-blank-controls .mx-button {
  display: flex; gap: 8px; width: 100%; min-width: 0; min-height: 48px; margin-top: 18px;
  padding: 10px; border-radius: 14px; font-size: clamp(16px, 4.5vw, 18px);
  background: linear-gradient(105deg, #236ac9, #664adf);
}
.mx-page[data-blank="1"][data-binding-mode="autofollow"] #status { margin: 10px 0 0; font-size: 14px; }
.mx-blank-controls p:empty { display: none; }

.mx-blank-avatar { position: relative; display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; color: #fff; font-size: 36px; font-weight: 700; background: linear-gradient(140deg,#2f8ae6,#7a5cf0); }
.mx-blank-controls .mx-blank-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; }
#mx-blank-title { margin: 0 0 6px; color: #131c26; font-size: 21px; line-height: 1.25; overflow-wrap: anywhere; }
#mx-blank-description { margin: 8px 0 0; color: #526174; font-size: 16px; white-space: pre-line; }
#mx-blank-legal { margin: 8px 0 0; color: #5b6c81; font-size: 13px; }
