/* tm-ds.css 1.0.0 - system projektowy: warstwa bazowa i komponenty tm-* */

.tm-ic { font-family: 'Material Symbols Outlined'; font-weight: 400; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal;
  text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; font-feature-settings: 'liga'; }

/* ---------- warstwa podstawowa ---------- */
:root:has(body.tm-ds) { font-size: 16px; }
.tm-ds { margin: 0; font-family: var(--tm-font); font-size: 16px; line-height: 1.5; color: var(--tm-text); background: var(--tm-surface);
  -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
.tm-ds *, .tm-ds *::before, .tm-ds *::after { box-sizing: border-box; }
.tm-ds :focus-visible, .tm-ds .is-focus { outline: 3px solid var(--tm-focus); outline-offset: 2px; }
:where(.tm-ds) p { margin: 0 0 1em; }
/* warstwa podstawowa przez :where() - zerowa szczegolowosc, komponent zawsze ja nadpisze */
:where(.tm-ds a:not([class])), .tm-link { color: var(--tm-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
:where(.tm-ds a:not([class]):hover), .tm-link:hover { color: var(--tm-link-hover); }
.tm-link--stand { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }
.tm-link--stand .tm-ic { font-size: 16px; }
.tm-wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .tm-wrap { padding: 0 24px; } }
.tm-section { padding: var(--tm-space-7) 0; }
.tm-section--subtle { background: var(--tm-surface-subtle); }
.tm-section--sand { background: var(--tm-surface-sand); }
@media (min-width: 992px) { .tm-section { padding: var(--tm-space-9) 0; } }
.tm-prose { max-width: 680px; }
.tm-num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }

/* role tekstu */
.tm-title-1 { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; margin: 0 0 12px; }
.tm-title-2 { font-size: 24px; line-height: 1.2; font-weight: 700; margin: 0 0 16px; }
.tm-title-3 { font-size: 20px; line-height: 1.3; font-weight: 700; margin: 0 0 12px; }
.tm-title-card { font-size: 18px; line-height: 1.3; font-weight: 700; margin: 0 0 6px; }
.tm-lead { font-size: 18px; line-height: 1.5; color: var(--tm-text-secondary); margin: 0 0 20px; }
.tm-body { font-size: 16px; line-height: 1.6; }
.tm-body-ui { font-size: 16px; line-height: 1.5; }
.tm-small { font-size: 14px; line-height: 1.5; color: var(--tm-text-muted); }
.tm-label { font-size: 12px; line-height: 1.2; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tm-text-brand); }
@media (min-width: 992px) {
  .tm-title-1 { font-size: 40px; } .tm-title-2 { font-size: 30px; } .tm-lead { font-size: 20px; } .tm-body { font-size: 18px; }
}

/* ---------- przycisk ---------- */
.tm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: var(--tm-radius-pill);
  font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background var(--tm-dur-fast) var(--tm-ease), border-color var(--tm-dur-fast), box-shadow var(--tm-dur-fast), transform var(--tm-dur-fast); white-space: nowrap; }
@media (min-width: 992px) { .tm-btn { height: 52px; } }
.tm-btn--m { height: 44px; padding: 0 18px; }
.tm-btn--s { height: 36px; padding: 0 14px; font-size: 14px; }
.tm-btn--primary { background: var(--tm-action); color: var(--tm-text-inverse); }
.tm-btn--primary:hover, .tm-btn--primary.is-hover { background: var(--tm-action-hover); }
.tm-btn--primary:active, .tm-btn--primary.is-active { background: var(--tm-action-hover); transform: translateY(1px); }
.tm-btn--secondary { background: var(--tm-surface); color: var(--tm-text); border-color: var(--tm-border); font-weight: 600; }
.tm-btn--secondary:hover, .tm-btn--secondary.is-hover { border-color: var(--tm-border-strong); }
.tm-btn--tertiary { background: none; color: var(--tm-link); padding: 0 4px; height: auto; font-weight: 600; }
.tm-btn--inverse { background: var(--tm-surface); color: var(--tm-p-green-900); }
.tm-btn--ghost-inverse { background: transparent; color: var(--tm-text-inverse); border-color: rgba(255,255,255,.4); font-weight: 600; }
.tm-btn[disabled], .tm-btn.is-disabled { background: var(--tm-disabled-bg); color: var(--tm-disabled-text); border-color: transparent; cursor: not-allowed; transform: none; }
.tm-btn.is-loading { position: relative; color: transparent; pointer-events: none; }
.tm-btn.is-loading::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; }
.tm-btn--block { width: 100%; }
.tm-btn .tm-ic { font-size: 20px; }

/* ---------- etykiety, plakietki ---------- */
.tm-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--tm-radius-pill); background: var(--tm-surface-brand);
  color: var(--tm-text-brand); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; margin-bottom: 14px; }
.tm-eyebrow .tm-ic { font-size: 16px; }
.tm-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tm-text-brand); margin-bottom: 8px; }
.tm-kicker--warn { color: var(--tm-status-warn-text); }
.tm-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--tm-radius-pill); font-size: 14px; font-weight: 600; line-height: 1.4; }
.tm-badge .tm-ic { font-size: 16px; }
.tm-badge--ok { background: var(--tm-status-ok-bg); color: var(--tm-status-ok-text); }
.tm-badge--warn { background: var(--tm-status-warn-bg); color: var(--tm-status-warn-text); }
.tm-badge--danger { background: var(--tm-status-danger-bg); color: var(--tm-status-danger-text); }
.tm-badge--info { background: var(--tm-status-info-bg); color: var(--tm-status-info-text); }
.tm-badge--brand { background: var(--tm-surface-brand); color: var(--tm-text-brand); }

/* ---------- filtr / zakladki ---------- */
.tm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--tm-radius-pill); border: 1px solid var(--tm-border);
  background: var(--tm-surface); color: var(--tm-text-secondary); font: 600 14px/1 var(--tm-font); cursor: pointer; }
@media (min-width: 992px) { .tm-chip { height: 36px; } }
.tm-chip:hover, .tm-chip.is-hover { border-color: var(--tm-border-strong); }
.tm-chip[aria-pressed="true"], .tm-chip.is-selected { background: var(--tm-selected-bg); border-color: var(--tm-selected-bg); color: var(--tm-selected-text); }
.tm-chip small { font-weight: 500; opacity: .8; }

/* ---------- pole formularza ---------- */
.tm-field { display: grid; gap: 6px; margin-bottom: 20px; max-width: 420px; }
.tm-field__label { font-size: 14px; font-weight: 600; }
.tm-field__hint { font-size: 14px; color: var(--tm-text-muted); margin-top: -2px; }
.tm-input { height: 48px; padding: 0 14px; border-radius: var(--tm-radius-sm); border: 1px solid var(--tm-border-strong); background: var(--tm-surface);
  font: 400 16px/1.2 var(--tm-font); color: var(--tm-text); width: 100%; }
.tm-input:hover { border-color: var(--tm-p-stone-600); }
.tm-input:focus, .tm-input.is-focus { outline: 3px solid var(--tm-focus); outline-offset: 2px; border: 2px solid var(--tm-text); }
.tm-input:disabled { background: var(--tm-surface-subtle); color: var(--tm-text-muted); border-color: var(--tm-border); }
.tm-field.is-error .tm-input { border: 2px solid var(--tm-status-danger-accent); }
.tm-field__error { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; font-weight: 600; color: var(--tm-status-danger-text); }
.tm-field__error .tm-ic { font-size: 18px; }

/* ---------- wiersz ceny, pas zaufania, ocena ---------- */
.tm-price-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--tm-border); }
.tm-price-row:last-child { border-bottom: 0; }
.tm-price-row__name { font-weight: 600; }
.tm-price-row__meta { font-size: 14px; color: var(--tm-text-muted); }
.tm-price-row__price { text-align: right; white-space: nowrap; }
.tm-price-row__price .tm-num { font-size: 18px; }
.tm-price-row__from { font-size: 14px; color: var(--tm-text-muted); margin-right: 2px; }
.tm-price-row__old { font-size: 14px; color: var(--tm-text-muted); text-decoration: line-through; margin-right: 6px; }
.tm-price .tm-num { color: var(--tm-text); } /* D10: ceny w kolorze tekstu */
.tm-trust { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; font-weight: 600; color: var(--tm-text-secondary); margin-top: 16px; }
.tm-trust b { color: var(--tm-text); }
.tm-rating { display: inline-flex; align-items: center; gap: 6px; }
.tm-rating__stars { color: var(--tm-star); letter-spacing: 1px; font-size: 15px; }

/* ---------- okruszki, kroki, stronicowanie ---------- */
.tm-breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; list-style: none; font-size: 14px; color: var(--tm-text-muted); }
.tm-breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--tm-border-strong); }
.tm-breadcrumbs a { color: var(--tm-text-muted); text-decoration: none; }
.tm-breadcrumbs a:hover { color: var(--tm-text); text-decoration: underline; }
.tm-steps { display: grid; gap: 16px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
@media (min-width: 768px) { .tm-steps { grid-template-columns: repeat(3, 1fr); } }
.tm-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 4px 14px; align-items: start; }
.tm-steps li::before { counter-increment: s; content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--tm-surface-brand);
  color: var(--tm-text-brand); font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.tm-pagination { display: flex; gap: 8px; align-items: center; }
.tm-pagination a, .tm-pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--tm-radius-pill); border: 1px solid var(--tm-border);
  color: var(--tm-text-secondary); font-weight: 600; font-size: 14px; text-decoration: none; padding: 0 12px; }
.tm-pagination [aria-current] { background: var(--tm-selected-bg); border-color: var(--tm-selected-bg); color: var(--tm-selected-text); }

/* ---------- karta ---------- */
.tm-card { position: relative; background: var(--tm-surface); border: 1px solid var(--tm-border); border-radius: var(--tm-radius-lg); padding: 16px; }
@media (min-width: 768px) { .tm-card { padding: 24px; } }
.tm-card--link { transition: box-shadow var(--tm-dur-fast) var(--tm-ease), transform var(--tm-dur-fast) var(--tm-ease); }
.tm-card--link:hover, .tm-card--link.is-hover { box-shadow: var(--tm-shadow-1); transform: translateY(-2px); }
.tm-card--link .tm-card__link::after { content: ''; position: absolute; inset: 0; }
.tm-card__link { color: inherit; text-decoration: none; }
.tm-card__media { position: relative; margin: -16px -16px 16px; border-radius: var(--tm-radius-lg) var(--tm-radius-lg) 0 0; overflow: hidden; aspect-ratio: 16/9; background: var(--tm-surface-sand); }
@media (min-width: 768px) { .tm-card__media { margin: -24px -24px 20px; } }
.tm-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-card__name { position: absolute; left: 16px; bottom: 14px; color: #fff; font-weight: 800; font-size: 22px; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.tm-card__media.has-scrim::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(8,38,25,.72)); }
.tm-card__media.has-scrim .tm-card__name { z-index: 1; }
/* znak marki: bialy krzyz w czerwonym narozniku (D15) */
.tm-plus { position: absolute; top: 0; left: 0; width: 44px; height: 44px; background: var(--tm-brand-red); z-index: 2;
  clip-path: polygon(0 0, 100% 0, 0 100%); }
.tm-plus::before, .tm-plus::after { content: ''; position: absolute; background: #fff; left: 9px; top: 13px; width: 12px; height: 4px; }
.tm-plus::after { left: 13px; top: 9px; width: 4px; height: 12px; }
.tm-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--tm-border); }
.tm-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .tm-grid--2 { grid-template-columns: repeat(2, 1fr); } .tm-grid--3 { grid-template-columns: repeat(3, 1fr); } .tm-grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .tm-grid { gap: 24px; } }

/* ---------- wybor terminu ---------- */
.tm-slots { background: var(--tm-surface); border: 1px solid var(--tm-border); border-radius: var(--tm-radius-lg); padding: 20px; box-shadow: var(--tm-shadow-1); }
.tm-slots__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.tm-slots__days { display: flex; gap: 8px; margin-bottom: 16px; }
.tm-day { width: 76px; min-height: 76px; border: 1px solid var(--tm-border); border-radius: var(--tm-radius-sm); background: var(--tm-surface); display: grid; place-items: center;
  align-content: center; gap: 2px; font-family: inherit; color: var(--tm-text); cursor: pointer; padding: 6px 0; }
.tm-day__name, .tm-day__mon { font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--tm-text-muted); line-height: 1.1; }
.tm-day__num { font-size: 22px; font-weight: 700; line-height: 1.1; }
.tm-day[aria-pressed="true"] { background: var(--tm-selected-bg); border-color: var(--tm-selected-bg); color: var(--tm-selected-text); }
.tm-day[aria-pressed="true"] .tm-day__name, .tm-day[aria-pressed="true"] .tm-day__mon { color: rgba(255,255,255,.85); }
.tm-day[disabled] { border-style: dashed; color: var(--tm-text-muted); background: var(--tm-surface-subtle); cursor: not-allowed; }
.tm-hours { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.tm-hour { height: 44px; min-width: 76px; padding: 0 14px; border-radius: var(--tm-radius-pill); border: 1.5px solid var(--tm-action); color: var(--tm-action); background: var(--tm-surface);
  font: 700 16px/1 var(--tm-font); font-variant-numeric: tabular-nums; cursor: pointer; display: inline-grid; place-items: center; text-decoration: none; }
.tm-hour:hover, .tm-hour.is-hover { background: var(--tm-action-subtle); }
.tm-skel { background: linear-gradient(90deg, var(--tm-p-stone-100), var(--tm-p-stone-50), var(--tm-p-stone-100)); border-radius: var(--tm-radius-sm); }

/* ---------- komunikat, karta postepowania, karta faktow, wskaznik poziomu ---------- */
.tm-notice { display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; padding: 14px 16px; border-radius: var(--tm-radius-md); border-left: 4px solid; }
.tm-notice .tm-ic { font-size: 22px; grid-row: span 2; }
.tm-notice__title { font-weight: 600; }
.tm-notice__text { font-size: 14px; color: var(--tm-text-secondary); }
.tm-notice--info { background: var(--tm-status-info-bg); border-color: var(--tm-status-info-accent); } .tm-notice--info .tm-ic { color: var(--tm-status-info-accent); }
.tm-notice--ok { background: var(--tm-status-ok-bg); border-color: var(--tm-status-ok-accent); } .tm-notice--ok .tm-ic { color: var(--tm-status-ok-accent); }
.tm-notice--warn { background: var(--tm-status-warn-bg); border-color: var(--tm-status-warn-accent); } .tm-notice--warn .tm-ic { color: var(--tm-status-warn-accent); }
.tm-notice--danger { background: var(--tm-status-danger-bg); border-color: var(--tm-status-danger-accent); } .tm-notice--danger .tm-ic { color: var(--tm-status-danger-accent); }
.tm-care { border-radius: var(--tm-radius-md); overflow: hidden; border: 1px solid var(--tm-border); background: var(--tm-surface); }
.tm-care__head { padding: 14px 18px; font-weight: 700; font-size: 18px; color: #fff; display: flex; gap: 10px; align-items: center; }
.tm-care__body { padding: 14px 18px 16px; }
.tm-care__body ul { margin: 0; padding-left: 20px; } .tm-care__body li { margin: 4px 0; }
.tm-care--routine .tm-care__head { background: var(--tm-p-green-700); }
.tm-care--urgent { border-color: var(--tm-status-danger-accent); }
.tm-care--urgent .tm-care__head { background: var(--tm-status-danger-bg); color: var(--tm-status-danger-text); border-bottom: 1px solid var(--tm-status-danger-accent); }
.tm-care--emergency { border: 2px solid var(--tm-p-red-600); }
.tm-care--emergency .tm-care__head { background: var(--tm-p-stone-900); border-bottom: 6px solid var(--tm-p-red-600); }
.tm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tm-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--tm-border); border: 1px solid var(--tm-border); border-radius: var(--tm-radius-lg); overflow: hidden; }
@media (min-width: 768px) { .tm-facts { grid-template-columns: repeat(3, 1fr); } }
.tm-facts > div { background: var(--tm-surface); padding: 16px 18px; }
.tm-facts b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.tm-facts span { font-size: 14px; color: var(--tm-text-muted); }
.tm-level { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.tm-level .tm-badge { white-space: nowrap; }
.tm-level__num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid; background: var(--tm-surface); font-weight: 800; font-size: 13px; }
.tm-level--1 .tm-level__num { color: var(--tm-status-ok-text); border-color: var(--tm-status-ok-accent); } .tm-level--2 .tm-level__num { color: var(--tm-status-warn-text); border-color: var(--tm-status-warn-accent); } .tm-level--3 .tm-level__num { color: var(--tm-status-danger-text); border-color: var(--tm-status-danger-accent); }
.tm-card--alert { border-left: 4px solid; }
.tm-card--alert.l1 { border-left-color: var(--tm-status-ok-accent); } .tm-card--alert.l2 { border-left-color: var(--tm-status-warn-accent); } .tm-card--alert.l3 { border-left-color: var(--tm-status-danger-accent); }

/* ---------- FAQ, tabela, lista korzysci ---------- */
.tm-accordion { border-top: 1px solid var(--tm-border); }
.tm-accordion details { border-bottom: 1px solid var(--tm-border); }
.tm-accordion summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 16px; cursor: pointer; }
@media (min-width: 992px) { .tm-accordion summary { font-size: 18px; } }
.tm-accordion summary::-webkit-details-marker { display: none; }
.tm-accordion details[open] summary .tm-ic { transform: rotate(180deg); }
.tm-accordion details > div { padding: 0 0 18px; color: var(--tm-text-secondary); }
.tm-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.tm-table th { text-align: left; font-size: 14px; font-weight: 600; background: var(--tm-surface-sand); padding: 10px 14px; }
.tm-table td { padding: 12px 14px; border-bottom: 1px solid var(--tm-border); }
.tm-table .r { text-align: right; }
.tm-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tm-checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.tm-checklist .tm-ic { color: var(--tm-brand-green); font-size: 22px; }
.tm-feature-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--tm-surface-brand); color: var(--tm-brand-green); display: grid; place-items: center; margin-bottom: 12px; }
.tm-feature-ic .tm-ic { font-size: 24px; }

/* ---------- naglowek kompaktowy, pas naglowkowy, ciemny blok, stopka, pasek dolny ---------- */
.tm-header { position: sticky; top: 0; z-index: var(--tm-z-sticky); background: var(--tm-surface); border-bottom: 1px solid var(--tm-border); }
.tm-header__in { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
@media (min-width: 992px) { .tm-header__in { height: 64px; } }
.tm-header__logo img { height: 28px; display: block; }
@media (min-width: 992px) { .tm-header__logo img { height: 32px; } }
.tm-header__actions { display: flex; align-items: center; gap: 12px; }
.tm-header__phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--tm-text); text-decoration: none; font-variant-numeric: tabular-nums; }
.tm-header__phone .tm-ic { color: var(--tm-action); }
.tm-hero { background: radial-gradient(1200px 400px at 100% 0%, rgba(15,135,94,.07), transparent 60%), var(--tm-surface); padding: 24px 0 40px; }
@media (min-width: 992px) { .tm-hero { padding: 40px 0 64px; } .tm-hero__grid { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: start; } }
.tm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tm-band { background: var(--tm-surface-inverse); color: var(--tm-text-inverse); border-radius: var(--tm-radius-xl); padding: 32px 24px; }
@media (min-width: 992px) { .tm-band { padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 32px; } }
.tm-band .tm-title-2 { color: #fff; margin-bottom: 8px; }
.tm-band p { color: rgba(255,255,255,.82); margin: 0; }
.tm-band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
@media (min-width: 992px) { .tm-band__actions { margin-top: 0; flex-shrink: 0; } }
.tm-band :focus-visible { outline-color: var(--tm-focus-inverse); }
.tm-footer { background: var(--tm-surface-inverse); color: rgba(255,255,255,.78); padding: 32px 0 96px; font-size: 14px; line-height: 1.6; }
@media (min-width: 992px) { .tm-footer { padding: 40px 0; } }
.tm-footer a { color: #fff; }
.tm-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.14); }
.tm-footer__logo { font-weight: 800; font-size: 20px; color: #fff; } .tm-footer__logo span { color: var(--tm-p-red-500); }
.tm-footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.tm-sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--tm-z-sticky); background: var(--tm-surface); box-shadow: var(--tm-shadow-2);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); display: flex; gap: 8px; }
.tm-sticky-bar .tm-btn { flex: 1; height: 48px; padding: 0 12px; }
.tm-sticky-bar .tm-btn--primary { flex: 1.5; }
.tm-sticky-bar { transform: translateY(110%); visibility: hidden; transition: transform var(--tm-dur) var(--tm-ease), visibility 0s linear var(--tm-dur); }
.tm-sticky-bar.is-visible { transform: none; visibility: visible; transition: transform var(--tm-dur) var(--tm-ease), visibility 0s; }
@media (min-width: 992px) { .tm-sticky-bar { display: none; } }

/* ---------- pelny naglowek ---------- */
.tm-infobar { background: var(--tm-surface-brand); color: var(--tm-text-brand); font-size: 14px; font-weight: 600; }
.tm-infobar .tm-wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.tm-infobar a { color: var(--tm-text-brand); }
@media (max-width: 991px) { .tm-infobar { display: none; } }
.tm-nav { display: none; gap: 28px; font-weight: 600; font-size: 15px; }
.tm-nav a { color: var(--tm-text); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.tm-nav a[aria-current] { border-bottom-color: var(--tm-selected-bg); color: var(--tm-text-brand); }
@media (min-width: 992px) { .tm-nav { display: flex; } }
.tm-menu-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--tm-border); border-radius: var(--tm-radius-pill);
  background: var(--tm-surface); font: 600 15px/1 var(--tm-font); color: var(--tm-text); }
.tm-menu-btn i { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; display: block; }
@media (min-width: 992px) { .tm-menu-btn { display: none; } }
.tm-header__city { color: var(--tm-text-muted); font-weight: 600; font-size: 15px; margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--tm-border); }
.tm-header__brand { display: flex; align-items: center; }
.tm-lang { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 1px solid var(--tm-border); border-radius: var(--tm-radius-pill); font-weight: 600; font-size: 14px; color: var(--tm-text); background: var(--tm-surface); }
.tm-lang img { width: 18px; height: 12px; border-radius: 2px; display: block; object-fit: cover; }
.tm-anchors { display: none; gap: 22px; font-size: 15px; font-weight: 600; }
.tm-anchors a { color: var(--tm-text-secondary); text-decoration: none; }
@media (min-width: 992px) { .tm-anchors { display: flex; } }

/* ---------- pelna stopka ---------- */
.tm-footer-full { background: var(--tm-surface-sand); color: var(--tm-text-secondary); padding: 48px 0 96px; font-size: 14px; }
@media (min-width: 992px) { .tm-footer-full { padding: 64px 0 40px; } }
.tm-footer-full__cols { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); margin-bottom: 32px; }
@media (min-width: 992px) { .tm-footer-full__cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.tm-footer-full h4 { font-size: 14px; color: var(--tm-text); margin: 0 0 12px; }
.tm-footer-full ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tm-footer-full a { color: var(--tm-text-secondary); text-decoration: none; }
.tm-footer-full__legal { border-top: 1px solid var(--tm-border); padding-top: 18px; line-height: 1.6; }

/* ---------- uklady stron ---------- */
.tm-hero--home { background: linear-gradient(302deg, #f2f3ef 0%, #c4dbd4 100%); } /* poza-systemem: tło strony głównej do jej przebudowy (D6) */
.tm-article { display: grid; gap: 40px; }
@media (min-width: 992px) { .tm-article { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; } }
.tm-article__main { max-width: 680px; }
.tm-article__meta { font-size: 14px; color: var(--tm-text-muted); margin: 0 0 20px; }
.tm-article__img { border-radius: var(--tm-radius-lg); overflow: hidden; aspect-ratio: 16/9; position: relative; margin: 0 0 28px; background: var(--tm-surface-sand); }
.tm-article__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-article__main h2 { font-size: 24px; line-height: 1.2; margin: 36px 0 12px; }
@media (min-width: 992px) { .tm-article__main h2 { font-size: 30px; } }
.tm-article__main > p, .tm-article__main li { font-size: 16px; line-height: 1.6; }
@media (min-width: 992px) { .tm-article__main > p, .tm-article__main li { font-size: 18px; } }
.tm-aside { display: grid; gap: 16px; align-content: start; }
@media (min-width: 992px) { .tm-aside { position: sticky; top: 88px; } }
.tm-panel-ok { border-radius: var(--tm-radius-lg); background: var(--tm-status-ok-bg); border: 1px solid var(--tm-status-ok-accent); padding: 24px; }
.tm-panel-ok .tm-title-2 { color: var(--tm-text-brand); display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.tm-dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 18px 0 0; }
.tm-dl dt { color: var(--tm-text-muted); font-size: 14px; } .tm-dl dd { margin: 0; font-weight: 600; }
.tm-form-grid { display: grid; gap: 0 24px; }
@media (min-width: 768px) { .tm-form-grid { grid-template-columns: 1fr 1fr; } }
.tm-form-grid .tm-field { max-width: none; }
.tm-errsum { border: 3px solid var(--tm-status-danger-accent); border-radius: var(--tm-radius-md); padding: 16px 18px; margin-bottom: 24px; }
.tm-errsum h3 { margin: 0 0 8px; font-size: 18px; } .tm-errsum ul { margin: 0; padding-left: 20px; } .tm-errsum a { color: var(--tm-status-danger-text); font-weight: 600; }
@media (max-width: 991px) { .tm-only-desktop { display: none !important; } }
@media (min-width: 992px) { .tm-only-mobile { display: none !important; } }
.tm-clinics { display: grid; gap: 0; }
.tm-clinics a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--tm-border); text-decoration: none; color: var(--tm-text); }
.tm-clinics a:last-child { border-bottom: 0; }
.tm-clinics b { font-weight: 600; }
.tm-clinics span { font-size: 14px; color: var(--tm-text-muted); white-space: nowrap; }
.tm-clinics span strong { color: var(--tm-action); font-variant-numeric: tabular-nums; }

/* Pasek korzyści nad nagłówkiem LP (zawsze widoczny; na telefonie dwie pierwsze pozycje) */
.tm-infobar--usp { display: block; }
.tm-infobar--usp .tm-wrap { justify-content: center; flex-wrap: wrap; gap: 4px 20px; }
.tm-infobar--usp .tm-wrap > span { display: inline-flex; align-items: center; gap: 4px; }
.tm-infobar--usp .tm-ic { font-size: 16px; }
@media (max-width: 991px) { .tm-infobar--usp { display: block; } }
@media (max-width: 575.98px) { .tm-infobar--usp { font-size: 13px; } .tm-infobar--usp .tm-wrap > span:nth-child(n+3) { display: none; } }

/* Tabela układana w karty poniżej 576 px (porównania cen, cenniki z kilkoma kolumnami liczb) */
@media (max-width: 575.98px) {
  .tm-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tm-table--stack, .tm-table--stack tbody, .tm-table--stack tr { display: block; width: 100%; }
  .tm-table--stack tr { border-bottom: 1px solid var(--tm-border); padding: 12px 14px; }
  .tm-table--stack td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; padding: 3px 0; text-align: right; }
  .tm-table--stack td::before { content: attr(data-label); color: var(--tm-text-muted); font-size: 14px; font-weight: 500; text-align: left; }
  .tm-table--stack td:first-child { font-weight: 700; text-align: left; padding-bottom: 6px; }
  .tm-table--stack td:first-child::before { content: none; }
}

/* Fakty: ostatni nieparzysty kafel w układzie dwukolumnowym zajmuje cały wiersz (bez pustej komórki) */
@media (max-width: 767.98px) { .tm-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Stopka pełna - treść 1:1 z include/footer.php, nowy układ */
.tm-ff__logo { height: 32px; display: block; margin-bottom: 28px; }
.tm-ff__top { display: grid; gap: 28px; margin-bottom: 32px; }
@media (min-width: 992px) { .tm-ff__top { grid-template-columns: 1fr 3fr; } }
.tm-ff__contact h4 { font-size: 14px; color: var(--tm-text); margin: 0 0 10px; }
.tm-ff__contact h4 + a, .tm-ff__contact a + a { margin-top: 0; }
.tm-ff__contact > a { display: flex; align-items: center; gap: 8px; color: var(--tm-text); font-weight: 600; margin-bottom: 8px; }
.tm-ff__contact > a .tm-ic { font-size: 20px; color: var(--tm-text-brand); }
.tm-ff__contact h4:not(:first-child) { margin-top: 20px; }
.tm-ff__social { display: flex; gap: 14px; } .tm-ff__social img { width: 28px; height: 28px; display: block; }
.tm-ff__links { display: grid; gap: 8px 24px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .tm-ff__links { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .tm-ff__links { grid-template-columns: repeat(3, 1fr); } }
.tm-ff__links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.tm-ff__links a { color: var(--tm-text-secondary); text-decoration: none; }
.tm-ff__legal { display: grid; gap: 8px 40px; border-top: 1px solid var(--tm-border); padding-top: 24px; font-size: 13px; line-height: 1.6; color: var(--tm-text-secondary); }
@media (min-width: 992px) { .tm-ff__legal { grid-template-columns: 1fr 1.4fr; } }
.tm-ff__legal p { margin: 0 0 12px; }
.tm-ff__doc { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.tm-ff__doc a { color: var(--tm-text); }
.tm-ff__langs { display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--tm-border); padding-top: 16px; margin-top: 12px; }
.tm-ff__langs img { display: block; width: 20px; height: 15px; border-radius: 2px; }
.tm-footer p { margin: 0 0 10px; }
.tm-footer__clinic { color: #fff; }
.tm-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; margin-top: 16px; }
