/* Mobile fit repairs: retain the live Nadiance components, palette and content.
   No desktop redesign, order logic, pricing or experiment changes. */
@media (max-width: 760px) {
  /* Legacy closing sections are outside .nad-pdp-bg. Restore their existing
     design tokens so borders and the primary buy button are not transparent. */
  body.nad-mobile-landing {
    --n-black: #282725; --n-white: #fffcfb;
    --n-grey-100: #e6e6e5; --n-grey-200: #cecdca;
    --n-grey-300: #b5b1b0; --n-grey-400: #8e8886;
    --n-grey-500: #746e6c; --n-grey-600: #5a5554;
    --n-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  }
  /* A grid's automatic minimum was wider than a 320px viewport. Keep the
     existing swipe galleries contained instead of scaling the whole page. */
  body.nad-mobile-landing .nad-hero { grid-template-columns: minmax(0, 1fr); }
  body.nad-mobile-landing .nad-hero-head,
  body.nad-mobile-landing .nad-content,
  body.nad-mobile-landing .nad-foundation-assets,
  body.nad-mobile-landing .nad-foundation-assets-main { min-width: 0; }
  body.nad-mobile-landing .nad-foundation-grid { grid-template-columns: minmax(0, 1fr); }
  body.nad-mobile-landing .nad-foundation-list { min-width: 0; max-width: calc(100% + 40px); }

  /* The closing purchase section sits outside .nad-pdp; give it the same
     gutters and shrinkable columns, without hiding prices or changing them. */
  body.nad-mobile-landing .nad-bundles {
    box-sizing: border-box; width: calc(100% - 40px); min-width: 0;
    margin-left: auto; margin-right: auto;
  }
  body.nad-mobile-landing .nad-bundle-list { min-width: 0; }
  body.nad-mobile-landing .nad-bundle-option { min-width: 0; gap: 12px; }
  body.nad-mobile-landing .nad-bundle-label { min-width: 0; }
  body.nad-mobile-landing .nad-bundle-price { min-width: 0; }
  body.nad-mobile-landing .nad-bundle-price-row { white-space: normal; }
  body.nad-mobile-landing .nad-bundle-unit { white-space: normal; }
  body.nad-mobile-landing .nad-notes { flex-wrap: wrap; gap: 8px 12px; line-height: 1.5; }
  body.nad-mobile-landing .nad-payments { min-width: 0; max-width: 100%; }
  body.nad-mobile-landing .nad-payments .nad-pay-badges { max-width: 100%; height: auto; }
  body.nad-mobile-landing .nad-bundles .nad-atc-btn {
    min-height: 52px; font-size: 18px; line-height: 1.4;
    white-space: normal; padding: 16px 14px;
  }

  /* Existing B-page proof pills must wrap rather than widen the viewport. */
  body.nad-mobile-landing .nadb-pills { min-width: 0; max-width: 100%; flex-wrap: wrap; }
  body.nad-mobile-landing .nadb-pills .nadb-video { max-width: 100%; white-space: normal; line-height: 1.4; }

  /* Readable closing note in the same existing grey card. */
  body.nad-mobile-landing .nad-disclaimer {
    box-sizing: border-box; width: calc(100% - 40px); max-width: 680px;
    margin: 32px auto 48px; padding: 24px;
  }
  body.nad-mobile-landing .nad-disclaimer h3 { line-height: 1.5; overflow-wrap: break-word; }
  body.nad-mobile-landing .nad-disclaimer p { font-size: 16px; line-height: 1.65; color: #5a5554; }

  /* Existing footer slots: legal links span the mobile row instead of being
     squeezed into a half-width column. No new content or decoration. */
  .nf .nf-wrap { padding: 40px 20px 32px; }
  .nf .nf-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .nf .nf-top > * { min-width: 0; }
  .nf .nf-brand, .nf .nf-contact,
  .nf .nf-col[aria-label="Правова інформація"] { grid-column: 1 / -1; }
  .nf .nf-tagline, .nf .nf-col li, .nf .nf-contact p {
    font-size: 16px; line-height: 1.55;
  }
  .nf .nf-col h3 { font-size: 14px; line-height: 1.5; letter-spacing: .8px; margin-bottom: 12px; }
  .nf .nf-col ul { gap: 4px; }
  .nf .nf-col li a { display: inline-block; padding: 7px 0; overflow-wrap: break-word; }
  .nf .nf-btn { font-size: 18px; line-height: 1.4; min-height: 52px; max-width: 100%; text-align: center; justify-content: center; padding: 14px 18px; }
  .nf .nf-social a { width: 44px; height: 44px; }
  .nf .nf-bottom { align-items: flex-start; font-size: 16px; line-height: 1.55; gap: 20px; }
  .nf .nf-bottom-left { gap: 12px; }
  .nf .nf-pay { min-width: 0; width: 100%; }
  .nf .nf-pay .nad-pay-badges { max-width: 100%; height: auto; }

  /* Review controls stay inside the narrow card and do not trigger iOS zoom. */
  #nad-customer-reviews .nr-toolbar,
  #nad-customer-reviews .nr-toolbar label { min-width: 0; max-width: 100%; }
  #nad-customer-reviews .nr-toolbar select { min-width: 0; font-size: 16px; min-height: 44px; }
  #nad-customer-reviews .nr-button { font-size: 18px; line-height: 1.4; min-height: 48px; max-width: 100%; white-space: normal; }
  body.nad-mobile-landing .nr-dialog label, body.nad-mobile-landing .nr-dialog input:not([type=radio]):not([type=checkbox]), body.nad-mobile-landing .nr-dialog textarea { font-size: 16px; line-height: 1.5; }
  body.nad-mobile-landing .nr-dialog .nr-rating-picker { flex-wrap: wrap; }
  body.nad-mobile-landing .nr-dialog .nr-close { min-width: 44px; min-height: 44px; }
}
@media (max-width: 360px) {
  .nf .nf-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .nf .nf-btn { width: 100%; }
  body.nad-mobile-landing .nad-bundle-option {
    display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start;
    gap: 10px 12px; padding: 16px;
  }
  body.nad-mobile-landing .nad-bundle-option.is-selected { padding: 15px; }
  body.nad-mobile-landing .nad-bundle-option input[type="radio"] { grid-column: 1; grid-row: 1; margin-top: 3px; }
  body.nad-mobile-landing .nad-bundle-option .nad-bundle-label { grid-column: 2; grid-row: 1; }
  body.nad-mobile-landing .nad-bundle-option .nad-bundle-price { grid-column: 2; grid-row: 2; text-align: left; }
  body.nad-mobile-landing .nad-disclaimer { padding: 20px; }
  #nad-customer-reviews .nr-card { padding: 16px; }
}
