/* Shared components injected by build_netlify.py (menu, breadcrumbs, related links,
   price tables, FAQ, booking form). Prefixed ma- so they never clash with page CSS. */
:root { --ma-blue: #034f84; --ma-teal: #009688; --ma-yellow: #facc15; --ma-ink: #334155; --ma-muted: #64748b; --ma-line: #e2e8f0; }

.ma-menu { background: #fff; border-bottom: 1px solid var(--ma-line); font-family: 'Inter', system-ui, sans-serif; position: relative; z-index: 90; }
.ma-menu ul { list-style: none; margin: 0 auto; padding: .55rem 1rem; max-width: 1280px; display: flex; flex-wrap: wrap; gap: .35rem .5rem; justify-content: center; }
.ma-menu a { display: inline-block; padding: .35rem .8rem; border-radius: 999px; color: var(--ma-blue); font-weight: 700; font-size: .9rem; text-decoration: none; }
.ma-menu a:hover, .ma-menu a[aria-current="page"] { background: #e0f2f1; }
.ma-menu a.ma-cta { background: var(--ma-yellow); color: #1f2937; }

.ma-crumbs { max-width: 1280px; margin: 0 auto; padding: .6rem 1rem; font: 500 .85rem/1.4 'Inter', system-ui, sans-serif; color: var(--ma-muted); }
.ma-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; }
.ma-crumbs li + li::before { content: "›"; margin-right: .3rem; }
.ma-crumbs a { color: var(--ma-teal); text-decoration: none; }

.ma-related { max-width: 1100px; margin: 2.5rem auto; padding: 1.5rem 1.75rem; background: #f0f9ff; border-left: 6px solid var(--ma-teal); border-radius: 1rem; font: 400 1.05rem/1.7 'Inter', system-ui, sans-serif; color: var(--ma-ink); }
.ma-related a, .ma-faq a, .ma-prices a { color: var(--ma-blue); font-weight: 700; }

.ma-section { max-width: 1100px; margin: 3rem auto; padding: 0 1rem; font-family: 'Inter', system-ui, sans-serif; color: var(--ma-ink); }
.ma-section h2 { color: var(--ma-blue); font-weight: 900; font-size: clamp(1.5rem, 3.5vw, 2.2rem); line-height: 1.2; margin: 0 0 1rem; }
.ma-faq-item { background: #fff; border: 1px solid var(--ma-line); border-radius: 1rem; padding: 1.25rem 1.4rem; margin-bottom: .9rem; }
.ma-faq-item h3 { color: var(--ma-blue); font-size: 1.1rem; font-weight: 800; margin: 0 0 .4rem; }

/* price cards (district pages keep their own .price-card look; this is the fallback + /cennik) */
.ma-prices { width: 100%; border-collapse: collapse; background: #fff; border-radius: 1rem; overflow: hidden; }
.ma-prices th, .ma-prices td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--ma-line); vertical-align: top; }
.ma-prices thead th { background: var(--ma-blue); color: #fff; }
.ma-prices td.ma-price { font-weight: 800; color: var(--ma-blue); white-space: nowrap; }
.ma-table-wrap { overflow-x: auto; }
.ma-note { font-size: .9rem; color: var(--ma-muted); }

/* booking form */
.ma-book { max-width: 760px; margin: 2rem auto; background: #fff; color: var(--ma-ink); border-radius: 1.25rem; padding: 1.75rem; box-shadow: 0 15px 40px rgba(0,0,0,.08); text-align: left; font-family: 'Inter', system-ui, sans-serif; }
.ma-book h2, .ma-book h3 { color: var(--ma-blue); font-weight: 900; margin: 0 0 .4rem; }
.ma-book .ma-lead { margin: 0 0 1rem; color: var(--ma-muted); }
.ma-book fieldset { border: 0; padding: 0; margin: 0; }
.ma-book legend, .ma-book label.ma-l { display: block; font-weight: 700; color: var(--ma-blue); margin: 1rem 0 .35rem; }
.ma-book input[type=text], .ma-book input[type=tel], .ma-book input[type=email], .ma-book input[type=month], .ma-book select, .ma-book textarea { width: 100%; box-sizing: border-box; padding: .75rem; border: 2px solid #cbd5e1; border-radius: .7rem; font: inherit; color: var(--ma-ink); background: #fff; }
.ma-book input:focus, .ma-book select:focus, .ma-book textarea:focus { outline: none; border-color: var(--ma-teal); }
.ma-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .6rem; }
.ma-types label { display: flex; gap: .6rem; align-items: flex-start; border: 2px solid var(--ma-line); border-radius: .8rem; padding: .8rem; cursor: pointer; font-weight: 600; }
.ma-types input:checked + span { color: var(--ma-blue); }
.ma-types label:has(input:checked) { border-color: var(--ma-teal); background: #f0fdfa; }
.ma-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 1rem; }
.ma-checks { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.ma-checks label, .ma-consent label { display: flex; gap: .5rem; align-items: flex-start; font-weight: 500; }
.ma-consent { margin-top: 1rem; font-size: .88rem; color: var(--ma-muted); }
.ma-price-hint { margin-top: .5rem; padding: .7rem .9rem; background: #fefce8; border-radius: .6rem; font-weight: 600; }
.ma-book button { width: 100%; margin-top: 1.25rem; padding: 1rem; border: 0; border-radius: 999px; background: var(--ma-yellow); color: #1f2937; font: 900 1.05rem 'Inter', system-ui, sans-serif; cursor: pointer; }
.ma-book button[disabled] { opacity: .6; cursor: wait; }
.ma-hidden { display: none !important; }
.ma-done { text-align: center; padding: 1rem 0; }
.ma-done h3 { font-size: 1.5rem; }
.ma-err { color: #b91c1c; font-weight: 700; margin-top: .75rem; }
@media (max-width: 640px) {
  .ma-book { padding: 1.2rem; border-radius: 1rem; }
  .ma-related { margin: 1.5rem 1rem; }
  /* one swipeable row instead of 4–5 wrapped rows */
  .ma-menu ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .ma-menu ul::-webkit-scrollbar { display: none; }
  .ma-menu a { white-space: nowrap; }
  /* older page templates: brand bar was ~330px tall on phones */
  .business-name-bar .logo-header { height: 52px; }
  .business-name-bar .business-name { font-size: 1.05rem; line-height: 1.25; }
  .business-name-bar .business-tagline { font-size: .8rem; }
  .business-name-bar .brand-with-logo { gap: .75rem; }
}

/* language button when the page has no translation: stays on the page */
.ma-lang-off { display: inline-block; padding: .35rem .8rem; border-radius: 999px; color: #94a3b8; font-weight: 700; font-size: .9rem; cursor: not-allowed; opacity: .6; }
.lang-button.ma-lang-off { cursor: not-allowed; opacity: .45; }
