/* ===== Phone-friendly layer (≤ 700px) ===== */
.mbar, .mnav { display: none; }
@media (max-width: 700px) {
  html { -webkit-text-size-adjust: 100%; }
  body { padding-bottom: 76px; }
  /* header: hide top contact strip, compact nav */
  #page-root > div > div:first-child { display: none !important; }
  nav[aria-label="Main"] { padding-top: 12px !important; padding-bottom: 12px !important; }
  nav[aria-label="Main"] > a:first-child svg { width: 138px; height: auto; }
  nav[aria-label="Main"] > a.btn { height: 40px !important; padding: 0 14px !important; font-size: 14px !important; border-radius: 10px !important; }
  /* section spacing */
  [style*="padding-top: 88px"] { padding-top: 48px !important; }
  [style*="padding-bottom: 96px"] { padding-bottom: 56px !important; }
  [style*="padding-top: 80px"] { padding-top: 48px !important; }
  [style*="padding-top: 72px"] { padding-top: 44px !important; }
  [style*="padding-top: 64px"] { padding-top: 36px !important; }
  [style*="padding-bottom: 100px"] { padding-bottom: 40px !important; }
  [style*="padding-top: 60px; padding-bottom: 60px"] { padding-top: 40px !important; padding-bottom: 40px !important; }
  [style*="margin-bottom: 36px"], [style*="margin-bottom: 34px"] { margin-bottom: 20px !important; }
  h1 { font-size: clamp(32px, 9vw, 40px) !important; }
  h2 { font-size: clamp(24px, 6.6vw, 30px) !important; }
  p { font-size: 15px; }
  /* hero trust row: 2 x 2 */
  [style*="grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr))"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; }
  [style*="grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr))"] span[style*="width: 48px"] { width: 36px !important; height: 36px !important; border-radius: 10px !important; }
  [style*="grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr))"] div[style*="font-size: 13px"] { display: none !important; }

  /* ---- system size: 3-column compact grid ---- */
  [role="group"][aria-label="System size"] { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  [role="group"][aria-label="System size"] button { min-height: 0 !important; padding: 10px 8px 9px !important; border-radius: 14px !important; gap: 2px !important; align-items: center !important; text-align: center !important; }
  [role="group"][aria-label="System size"] button svg { width: 26px; height: 18px; }
  [role="group"][aria-label="System size"] button > span:nth-of-type(1) { font-size: 15px !important; line-height: 1.2; }
  [role="group"][aria-label="System size"] button > span:nth-of-type(2) { font-size: 11px !important; }
  [role="group"][aria-label="System size"] button > span[aria-hidden] { top: 6px !important; right: 6px !important; width: 18px !important; height: 18px !important; }
  [role="group"][aria-label="System size"] button > span[aria-hidden] svg { width: 11px; height: 11px; }

  /* ---- plan cards (home + pricing): tighter ---- */
  .card[style*="padding: 30px 26px 26px"] { padding: 20px 18px 18px !important; gap: 10px !important; }
  .card h3 { font-size: 20px !important; }
  .card [style*="font-size: 42px"] { font-size: 32px !important; }
  .card [style*="Visits in a year"], .card div[style*="padding: 14px 14px 8px"] { padding: 10px 10px 4px !important; }
  .card ul { font-size: 14px !important; gap: 6px !important; padding-top: 10px !important; }
  .card a.btn { height: 46px !important; }

  /* ---- floating cluster -> bottom bar (all pages) ---- */
  [style*="position: fixed; right: 20px; bottom: 20px"] { left: 0 !important; right: 0 !important; bottom: 0 !important; flex-direction: row !important; align-items: stretch !important; gap: 8px !important; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important; background: rgba(6, 20, 38, 0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,0.08); }
  [style*="position: fixed; right: 20px; bottom: 20px"] > a { width: auto !important; height: 50px !important; border-radius: 14px !important; flex: 1 1 0; box-shadow: none !important; }
  [style*="position: fixed; right: 20px; bottom: 20px"] > a.btn { flex: 2 1 0; justify-content: center; }
  [style*="position: fixed; right: 20px; bottom: 20px"] > a.wa { animation: none !important; }

  /* ---- booking page ---- */
  body.page-book [style*="position: fixed; right: 20px; bottom: 20px"] { display: none !important; }
  body.page-book [style*="display: flex; flex-wrap: wrap; gap: 8px"] > span[style*="border-radius: 999px"] { display: none !important; }
  body.page-book h1 { font-size: 28px !important; }
  body.page-book [style*="padding-top: 40px; padding-bottom: 100px"] { padding-top: 16px !important; }
  body.page-book [style*="margin-bottom: 34px"] { margin-bottom: 14px !important; }
  body.page-book aside { display: none !important; }
  body.page-book [style*="margin-top: 34px; padding-top: 24px"] { display: none !important; }
  body.page-book ol[aria-label="Booking steps"] li span[style*="height: 48px"] { height: 40px !important; font-size: 14px; }
  body.page-book [style*="padding: clamp(22px, 3.5vw, 40px)"] { padding: 18px 16px 22px !important; }
  body.page-book [style*="padding: 20px clamp(18px, 3vw, 32px) 0"] { padding: 14px 12px 0 !important; }
  body.page-book h2 { font-size: 20px !important; margin-bottom: 2px !important; }
  body.page-book h2 + p { font-size: 13px !important; margin-bottom: 12px !important; }
  /* plan choices */
  body.page-book [style*="grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr))"] { gap: 8px !important; }
  body.page-book button[aria-pressed][style*="padding: 24px 20px 20px"] { padding: 14px 14px 12px !important; gap: 4px !important; display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 10px !important; }
  body.page-book button[aria-pressed][style*="padding: 24px 20px 20px"] > span[style^="display: flex; gap: 4px"] { display: none !important; }
  body.page-book button[aria-pressed][style*="padding: 24px 20px 20px"] > span[style^="display: flex; align-items: center; gap: 10px"] { grid-column: 1 / -1; }
  body.page-book button[aria-pressed][style*="padding: 24px 20px 20px"] > span[style*="font-size: 20px"] { font-size: 17px !important; grid-column: 1 / 3; }
  body.page-book button[aria-pressed][style*="padding: 24px 20px 20px"] > span[style*="font-size: 24px"] { font-size: 18px !important; justify-self: end; }
  body.page-book button[aria-pressed][style*="padding: 24px 20px 20px"] span[style*="width: 36px; height: 36px"] { width: 26px !important; height: 26px !important; border-radius: 8px !important; }
  body.page-book button[aria-pressed][style*="padding: 24px 20px 20px"] > span[style*="top: 18px; right: 16px"] { top: 12px !important; right: 12px !important; width: 22px !important; height: 22px !important; }
  /* days + time */
  body.page-book [style*="grid-template-columns: repeat(auto-fit, minmax(84px, 1fr))"] { display: flex !important; overflow-x: auto; gap: 8px !important; padding-bottom: 4px; scroll-snap-type: x mandatory; }
  body.page-book [style*="grid-template-columns: repeat(auto-fit, minmax(84px, 1fr))"] > button { flex: 0 0 64px; min-height: 70px !important; scroll-snap-align: start; }
  body.page-book [style*="grid-template-columns: repeat(auto-fit, minmax(84px, 1fr))"] span[style*="font-size: 26px"] { font-size: 20px !important; }
  body.page-book [style*="margin-bottom: 30px; flex-wrap: wrap"] { margin-bottom: 18px !important; }
  body.page-book [style*="grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr))"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  body.page-book [style*="grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr))"] > button { min-height: 58px !important; padding: 10px 12px !important; flex-direction: row !important; align-items: center !important; flex-wrap: wrap; gap: 0 8px !important; }
  body.page-book [style*="grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr))"] > button svg { width: 18px; height: 18px; }
  body.page-book [style*="grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr))"] > button > span:last-child { width: 100%; font-size: 12px !important; }
  /* details */
  body.page-book [style*="grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr))"] { gap: 12px !important; }
  body.page-book .inp { height: 48px; font-size: 16px; }
  /* sticky booking bar */
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(6, 20, 38, 0.97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,176,32,0.35); box-shadow: 0 -10px 30px rgba(0,0,0,0.35); color: #FFFFFF; }
  .mbar .mb-info { flex: 1 1 auto; min-width: 0; line-height: 1.2; }
  .mbar .mb-plan { display: block; font-size: 12px; color: #B9C6D4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar .mb-total { display: block; font-family: 'Space Grotesk', Inter, sans-serif; font-size: 20px; font-weight: 700; color: #FFB020; }
  .mbar button { height: 50px; border: none; border-radius: 14px; font-weight: 700; font-size: 15px; cursor: pointer; }
  .mbar .mb-back { flex: none; width: 50px; background: rgba(255,255,255,0.1); color: #FFFFFF; font-size: 20px; }
  .mbar .mb-go { flex: none; padding: 0 18px; background: #FFB020; color: #0B2238; }
}
@media (max-width: 700px) {
  section:has(table[style*="min-width: 720px"]) { display: none !important; }
  [style*="grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px"] { gap: 8px !important; }
  [style*="grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px"] > div { padding: 12px 10px !important; }
  [style*="grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px"] > div > div:first-child { font-size: 14px !important; overflow-wrap: normal !important; line-height: 1.5 !important; }
  [style*="grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px"] > div > div[style*="font-size: 34px"] { font-size: 26px !important; }
  #pinchk::placeholder { font-size: 14px; }
}
