:root {
  --medicus-header: 76px;
  --medicus-radius: 10px;
  --medicus-shadow: 0 2px 8px rgba(16, 24, 32, 0.06);
  --medicus-shadow-hover: 0 4px 12px rgba(21, 95, 140, 0.12);
  --medicus-ink: #1a3042;
  --medicus-ink-muted: #a9bac8;
  --medicus-ink-border: rgba(255, 255, 255, 0.14);
  --medicus-brand-text: #09354f;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
.medicus-form-shell {
  width: min(calc(100% - 2rem), 1200px);
  margin: 0 auto;
  padding-block: clamp(1rem, 3vw, 2rem);
}
html {
  scroll-behavior: smooth;
}
body {
  overflow-x: clip;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* React applies balanced wrapping to headings globally. Without it, equal
   containers can still choose different line breaks (notably Foundation). */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Inter, sans-serif;
}
.wp-site-blocks {
  padding: 0;
}
.wp-site-blocks > * + * {
  margin-block-start: 0 !important;
}
.medicus-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}
.medicus-section-header {
  margin-bottom: 4rem !important;
}
.medicus-section-header:has(+ .medicus-section-intro) {
  margin-bottom: 1.25rem !important;
}
.medicus-section-intro {
  margin-bottom: 5rem !important;
}
.medicus-section--compact {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.medicus-card {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  box-shadow: var(--medicus-shadow);
  overflow: hidden;
}
.medicus-card h3 {
  font-size: 1.0625rem;
}
.medicus-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
  /* !important: markup stron ma preset has-*-color (też !important) — wygrywa porządek arkuszy */
  color: var(--medicus-brand-text) !important;
}
/* Konteksty eyebrow: partnerzy (muted, szerszy tracking), ciemne pasy (biel) */
.medicus-partners .medicus-eyebrow {
  letter-spacing: 0.14em;
  color: var(--wp--preset--color--muted) !important;
}
.medicus-phone-band .medicus-eyebrow,
.medicus-final-cta .medicus-eyebrow,
.medicus-stats-band .medicus-eyebrow {
  color: rgba(255, 255, 255, 0.8) !important;
}
.medicus-footer .medicus-eyebrow {
  color: inherit !important;
}
.wp-site-blocks > header.wp-block-template-part {
  position: sticky;
  /* Zalogowany redaktor ma nad stroną pasek administracyjny. Bez tego offsetu
     nagłówek wjeżdżałby pod niego i zasłaniał nawigację. */
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 100;
}
.medicus-header {
  position: relative;
  z-index: auto;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--wp--preset--color--border);
  backdrop-filter: blur(10px);
}
.medicus-header a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.medicus-footer {
  background-color: var(--medicus-ink) !important;
}
.medicus-footer a {
  color: var(--medicus-ink-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.medicus-footer a:hover {
  color: #fff;
}
.medicus-footer .medicus-footer__foundation-cta {
  color: #f0b9b3;
  font-weight: 600;
}
.medicus-footer .medicus-footer__foundation-cta:hover {
  color: #fbebe9;
}
.medicus-mobile-call {
  display: none;
}
.medicus-form {
  display: grid;
  gap: 1rem;
}
.medicus-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.medicus-form input,
.medicus-form select,
.medicus-form textarea {
  min-height: 48px;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}
.medicus-form textarea {
  min-height: 130px;
}
.medicus-form input:focus,
.medicus-form select:focus,
.medicus-form textarea:focus {
  outline: none;
  border-color: var(--wp--preset--color--brand);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--wp--preset--color--brand) 16%, transparent);
}
.medicus-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.medicus-form__check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 400 !important;
}
.medicus-form__check input {
  width: 22px;
  min-height: 22px;
}
.medicus-notice {
  padding: 1rem;
  border-radius: 10px;
  background: var(--wp--preset--color--brand-light);
}
.medicus-notice--error {
  background: #fff0ee;
  color: var(--wp--preset--color--danger);
}
.medicus-placeholder {
  border: 2px dashed var(--wp--preset--color--foundation);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}
.medicus-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1023px) {
  body {
    padding-bottom: 64px;
  }
  .medicus-form__row {
    grid-template-columns: 1fr;
  }
  .medicus-mobile-call {
    display: flex;
    position: fixed;
    z-index: 999;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 64px;
    padding: 12px 16px;
    gap: 12px;
    align-items: center;
    background: #fff;
    border-top: 1px solid var(--wp--preset--color--border);
    box-shadow: 0 -2px 8px rgba(16,24,32,.06);
  }
  .medicus-mobile-call > a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    border-radius:10px;
    font-size:14px;
    font-weight:600;
    line-height:20px;
    text-decoration:none;
  }
  .medicus-mobile-call__phone {
    flex:1;
    gap:8px;
    background:var(--wp--preset--color--brand);
    color:#fff;
  }
  .medicus-mobile-call__phone:hover {
    background:var(--wp--preset--color--brand-dark);
  }
  .medicus-mobile-call__message {
    flex:0 0 auto;
    padding-inline:16px;
    border:2px solid var(--wp--preset--color--brand);
    color:var(--wp--preset--color--brand);
    background:#fff;
  }
  .medicus-header .wp-block-navigation__responsive-container-open {
    min-width: 44px;
    min-height: 44px;
    margin-right: 0;
  }
  .medicus-section {
    padding-block: 4rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Podstrony — parity z prototypem (kontakt/praca/o-nas/wszystkie usługi). */
.medicus-phone-band {
  padding-block: 2.5rem !important;
}
@media (min-width: 1024px) {
  .medicus-phone-band {
    padding-block: 3rem !important;
  }
}
.medicus-phone-band .wp-block-columns {
  margin-block: 0 !important;
  gap: 1.5rem !important;
}
.medicus-phone-band p {
  margin-block: 0 !important;
}
.medicus-phone-band .medicus-eyebrow {
  margin-bottom: 0.5rem !important;
}
.medicus-phone-band__number {
  margin-bottom: 0 !important;
}
.medicus-phone-band__number + p {
  margin-top: 0.75rem !important;
}
.medicus-phone-band__number a {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3rem) !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.medicus-phone-band__number a:hover {
  color: var(--wp--preset--color--brand-light);
}
.medicus-info-card {
  padding: 1.75rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 16px;
  margin-bottom: 1.25rem;
}
.medicus-info-card__row {
  padding: 0.85rem 1rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
}
.medicus-info-card__row p {
  margin: 0;
}
.medicus-benefit-card {
  padding: 1.65rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 16px;
  margin-bottom: 1.25rem;
}
.medicus-benefit-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}
.medicus-benefit-card p {
  margin: 0;
}
.medicus-rounded-photo img {
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.medicus-check-list {
  list-style: none;
  padding-left: 0;
}
.medicus-check-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.65rem;
}
.medicus-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  background: var(--wp--preset--color--brand);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21.801 10A10 10 0 1 1 17 3.335"/><path d="m9 11 3 3L22 4"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21.801 10A10 10 0 1 1 17 3.335"/><path d="m9 11 3 3L22 4"/></svg>') center / contain no-repeat;
}
.medicus-check-list--foundation li::before {
  background: var(--wp--preset--color--foundation);
}
.medicus-check-list--columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
}
.medicus-anchor-nav {
  position: sticky;
  top: var(--medicus-header);
  z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--wp--preset--color--border);
  backdrop-filter: blur(8px);
  padding-block: 0.85rem;
}
.medicus-chip-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin: 0;
}
.medicus-chip-row a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 18px;
  border-radius: 10px;
  background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
}
.medicus-chip-row a.is-active,
.medicus-chip-row a.is-active:hover {
  background: var(--wp--preset--color--brand);
  color: #fff;
}
.medicus-chip-row a:hover {
  background: var(--wp--preset--color--brand-light);
  color: var(--wp--preset--color--brand);
}
/* Kotwice sekcji (np. /fundacja#misja). Nagłówek jest przyklejony do góry
   okna, więc bez tego odstępu przewinięcie chowa tytuł sekcji pod paskiem.
   Dotyczy każdej sekcji z identyfikatorem, także tych nadanych przez
   redaktora w panelu „Zaawansowane". */
.wp-site-blocks .wp-block-group[id],
.wp-site-blocks .wp-block-columns[id],
.wp-site-blocks .wp-block-image[id] {
  scroll-margin-top: calc(var(--medicus-header) + 1.5rem);
}
.medicus-service-article {
  scroll-margin-top: calc(var(--medicus-header) + 72px);
  padding: 2.25rem;
  margin-top: 1.5rem;
  max-width: 920px !important;
  margin-inline: auto !important;
  background: #fff;
}
.medicus-service-article h2 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}
.medicus-service-article__head {
  margin-bottom: 1rem;
}
.medicus-stats-band .medicus-stats--inverse strong {
  color: #fff;
}
.medicus-stats-band .medicus-stats--inverse span {
  color: var(--wp--preset--color--brand-mid);
}
.medicus-stats-band .medicus-stats--inverse > div {
  border-color: var(--wp--preset--color--brand-dark);
}
.medicus-steps-vertical p {
  background: #fff;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 0.75rem;
  box-shadow: var(--medicus-shadow);
}
.medicus-step-num {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--wp--preset--color--brand);
  font-size: 1.875rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.medicus-district-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.medicus-district-fieldset legend {
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.medicus-district-city {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  margin: 0.6rem 0 0.35rem;
}
.medicus-district-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.medicus-district-chips label {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 999px;
  background: #fff;
  color: var(--wp--preset--color--muted);
  font-size: 0.85rem;
  font-weight: 500 !important;
  cursor: pointer;
}
.medicus-district-chips label:hover {
  border-color: var(--wp--preset--color--brand);
  color: var(--wp--preset--color--brand);
}
.medicus-district-chips label:has(input:checked),
.medicus-district-chips label.is-checked {
  background: var(--wp--preset--color--brand);
  border-color: var(--wp--preset--color--brand);
  color: #fff;
}
/* Checkbox ukryty wizualnie — chip wygląda jak przycisk (parity z prototypem) */
.medicus-district-chips input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}
.medicus-district-chips label {
  position: relative;
  min-height: 40px;
}
.medicus-district-chips label span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.medicus-district-chips label:has(input:checked) span::before,
.medicus-district-chips label.is-checked span::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat;
}
.medicus-district-chips label:has(input:focus-visible) {
  outline: 2px solid var(--wp--preset--color--brand);
  outline-offset: 2px;
}

/* Home — parity with the Vercel prototype. */
.medicus-home-hero {
  overflow: hidden;
  background: #fff;
}
.medicus-home-hero__grid {
  margin: 0;
  gap: 0;
  min-height: clamp(560px, calc(100svh - var(--medicus-header)), 760px);
}
@media (min-width: 1024px) {
  .medicus-home-hero__grid {
    gap: 2rem;
  }
  .medicus-home-hero__grid > .wp-block-column:first-child {
    flex-basis: 48%;
    max-width: 48%;
  }
  .medicus-home-hero__grid > .wp-block-column:last-child {
    flex-basis: calc(52% - 2rem);
  }
}
.medicus-home-hero__copy {
  display: flex;
  align-items: center;
}
.medicus-home-hero__copy > .wp-block-group {
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  padding: 5rem clamp(1.5rem, 3vw, 3rem);
}
.medicus-home-hero__copy > .wp-block-group > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.medicus-home-hero__title {
  font-size: clamp(2.75rem, 3.8vw, 3.625rem) !important;
  letter-spacing: -0.025em;
  line-height: 1.06 !important;
  margin: 1rem 0 1.25rem;
}
.medicus-home-hero__title mark,
.medicus-section mark,
mark.has-inline-color {
  color: var(--wp--preset--color--brand);
  background: transparent;
}
.medicus-home-hero__lead {
  max-width: 50ch;
  line-height: 1.7;
  margin-top: 0;
  margin-bottom: 0;
}
.medicus-home-hero__actions {
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  gap: 0.75rem !important;
  flex-wrap: nowrap !important;
}
.medicus-home-hero__actions .wp-block-button__link {
  white-space: nowrap;
  min-width: 0;
}
.medicus-home-hero__proof {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wp--preset--color--muted);
  gap: 2rem;
}
.medicus-home-hero__media {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 34rem;
}
.medicus-home-hero__media figure {
  flex: 1;
  display: flex;
}
.medicus-home-hero__media figure,
.medicus-home-hero__media img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}
@media (min-width: 1024px) {
  .medicus-home-hero__media figure,
  .medicus-home-hero__media img {
    border-bottom-left-radius: 20px;
  }
}
.medicus-consultation-card {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: min(280px, calc(100% - 2rem));
  padding: 1.25rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--medicus-shadow);
}
.medicus-consultation-card h3,
.medicus-consultation-card p {
  margin: 0.15rem 0;
}
.medicus-pill {
  box-sizing: border-box;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--wp--preset--color--brand-light);
  color: var(--wp--preset--color--brand-dark);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: normal;
}
.medicus-pill--foundation {
  background: color-mix(
    in srgb,
    var(--wp--preset--color--foundation) 12%,
    transparent
  );
}
.medicus-partners {
  padding: 2.75rem 0;
  border-block: 1px solid #eef0f2;
  overflow: hidden;
}
.medicus-logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.medicus-logo-marquee__track {
  display: flex;
  width: max-content;
  animation: medicus-marquee 36s linear infinite;
}
.medicus-logo-marquee:hover .medicus-logo-marquee__track {
  animation-play-state: paused;
}
.medicus-logo-marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-right: clamp(2.5rem, 6vw, 5rem);
}
.medicus-logo-marquee img {
  width: auto;
  object-fit: contain;
}
/* Logo heights parity */
.medicus-logo-marquee__group img.medicus-partner-logo {
  height: auto;
  opacity: 1;
  filter: grayscale(1);
  transition: filter 0.3s;
}
.medicus-logo-marquee__group img.medicus-partner-logo:hover {
  filter: none;
}
.medicus-partner-logo--polpharma, .medicus-partner-logo--medicover {
  height: 2rem !important; /* h-8 */
}
.medicus-partner-logo--polpharma {
  width: calc(2rem * 5.051215) !important;
}
.medicus-partner-logo--medicover {
  width: calc(2rem * 4.888455) !important;
}
.medicus-partner-logo--pzu {
  height: 2.75rem !important; /* h-11 */
  width: calc(2.75rem * 2.604492) !important;
}
.medicus-partner-logo--doz {
  height: 2.25rem !important; /* h-9 */
  width: calc(2.25rem * 3.105469) !important;
}
.medicus-partner-logo--gemini {
  height: 1.75rem !important; /* h-7 */
  width: calc(1.75rem * 4.529297) !important;
}

@media (min-width: 1024px) {
  .medicus-partner-logo--polpharma, .medicus-partner-logo--medicover {
    height: 2.25rem !important; /* lg:h-9 */
  }
  .medicus-partner-logo--polpharma {
    width: calc(2.25rem * 5.051215) !important;
  }
  .medicus-partner-logo--medicover {
    width: calc(2.25rem * 4.888455) !important;
  }
  .medicus-partner-logo--pzu {
    height: 3rem !important; /* lg:h-12 */
    width: calc(3rem * 2.604492) !important;
  }
  .medicus-partner-logo--doz {
    height: 2.5rem !important; /* lg:h-10 */
    width: calc(2.5rem * 3.105469) !important;
  }
  .medicus-partner-logo--gemini {
    height: 2rem !important; /* lg:h-8 */
    width: calc(2rem * 4.529297) !important;
  }
}
@keyframes medicus-marquee {
  to {
    transform: translateX(-50%);
  }
}
.medicus-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.75rem max(1.5rem, calc((100% - 1200px) / 2));
  background: var(--wp--preset--color--surface);
}
.medicus-stats > div {
  text-align: center;
  padding: 1rem 1.5rem;
  border-right: 1px solid var(--wp--preset--color--border);
}
.medicus-stats > div:last-child {
  border: 0;
}
.medicus-stats strong {
  display: block;
  color: var(--wp--preset--color--brand);
  font-size: 1.9rem;
  font-variant-numeric: tabular-nums;
}
.medicus-stats span {
  display: block;
  color: var(--wp--preset--color--muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.medicus-stats-band .medicus-stats {
  background: transparent;
}
.medicus-process-grid > .wp-block-column {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 10px;
  box-shadow: var(--wp--custom--shadows--card);
}
/* Numeracja przez licznik CSS: dodanie/usunięcie kroku w Gutenbergu
   przenumerowuje resztę automatycznie, bez ręcznej edycji treści. */
.medicus-process-grid { counter-reset: medicus-item; }
.medicus-process-grid > .wp-block-column { counter-increment: medicus-item; }
.medicus-process-grid > .wp-block-column::before {
  content: counter(medicus-item, decimal-leading-zero);
  display: block;
  color: var(--wp--preset--color--brand);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.medicus-process-grid > .wp-block-column::before {
  font-size: 2.5rem;
  line-height: 1;
  margin: 0 0 1.1rem;
}
.medicus-process-grid h3 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.05rem;
}
.medicus-process-grid p {
  color: var(--wp--preset--color--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
@media (min-width: 1024px) {
  .medicus-section:has(.medicus-process-grid) {
    padding-top: clamp(5rem, 8vw, 7rem);
    padding-bottom: clamp(5rem, 8vw, 7rem);
  }
  .medicus-section:has(.medicus-process-grid) > .alignwide {
    width: min(100% - 3rem, 1326px);
    max-width: 1326px !important;
    margin-inline: auto !important;
  }
  .medicus-section:has(.medicus-process-grid) > .alignwide > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .medicus-section:has(.medicus-process-grid) .has-large-font-size {
    max-width: 52rem;
  }
  .medicus-process-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100% !important;
    max-width: none !important;
    gap: 1.25rem !important;
    margin-top: clamp(3.5rem, 5vw, 4.5rem) !important;
  }
  .medicus-process-grid > .wp-block-column {
    min-height: 236px;
    padding: 2.25rem 2rem;
  }
  .medicus-process-grid > .wp-block-column::before {
    font-size: 3.125rem;
    margin-bottom: 1.6rem;
  }
  .medicus-process-grid h3 {
    margin-bottom: 0.8rem;
    font-size: 1.125rem;
  }
  .medicus-process-grid p {
    max-width: 18rem;
    font-size: 1rem;
    line-height: 1.55;
  }
}
.medicus-quote-card {
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  box-shadow: var(--medicus-shadow);
}
.medicus-review-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 2rem;
  row-gap: 1rem;
  margin-top: 2.5rem;
  color: var(--wp--preset--color--muted);
  font-size: 0.9rem;
}
.medicus-review-logos > p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.medicus-review-logos figure {
  margin: 0;
}
.medicus-review-logos img {
  width: auto;
  max-width: 120px;
  height: 22px;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter 0.3s;
}
.medicus-review-logos figure:nth-of-type(1) img { height:30px; }
.medicus-review-logos figure:nth-of-type(2) img { height:22px; }
.medicus-review-logos figure:nth-of-type(3) img { height:21px; }
@media (min-width:1024px) {
  .medicus-review-logos figure:nth-of-type(1) img { height:34px; }
  .medicus-review-logos figure:nth-of-type(2) img { height:25px; }
  .medicus-review-logos figure:nth-of-type(3) img { height:24px; }
}
.medicus-review-logos img:hover {
  filter: none;
}
.medicus-founder-photo {
  max-width: 30rem;
  margin: auto;
}
.medicus-founder-photo img {
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 16px;
}
@media (min-width: 1024px) {
  .medicus-founder-photo img {
    border-radius: 32px;
  }
}
.medicus-video-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-top: 2.5rem;
  border-radius: 20px;
  background: #161a1e;
  /* pełna szerokość kontenera 1200 (prototyp), mimo constrained layoutu */
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.medicus-video-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition:
    opacity 0.5s,
    transform 0.5s;
}
.medicus-video-player::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(22, 26, 30, 0.25);
  pointer-events: none;
  transition: background-color 0.3s;
}
.medicus-video-player__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.25s;
}
.medicus-video-player__play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--wp--preset--color--brand);
  box-shadow: var(--medicus-shadow);
  translate: -50% -50%;
  transition: transform 0.3s;
}
.medicus-video-player__play svg {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  margin-left: 6px;
  fill: currentColor;
  stroke: none;
}
@media (min-width: 1024px) {
  .medicus-video-player__play::before {
    width: 96px;
    height: 96px;
  }
}
.medicus-video-player:hover video {
  opacity: 1;
  transform: scale(1.01);
}
.medicus-video-player:hover::after {
  background: rgba(22, 26, 30, 0.15);
}
.medicus-video-player__play:hover::before {
  transform: scale(1.05);
}
.medicus-video-player.is-playing .medicus-video-player__play {
  opacity: 0;
  pointer-events: none;
}
.medicus-video-player.is-playing::after {
  display: none;
}
.medicus-video-player.is-playing video {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .medicus-video-player video,
  .medicus-video-player::after,
  .medicus-video-player__play,
  .medicus-video-player__play::before {
    transition: none;
  }
}
/* Odstęp siedzi na <summary>, a nie na <details>: cała powierzchnia karty
   ma reagować na kliknięcie, nie tylko sam tekst pytania. Wysokość karty
   zostaje ta sama — odstęp przenosi się do środka, a nie znika. */
.medicus-faq-grid details {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  background: #fff;
}
.medicus-faq-grid summary {
  padding: 1.3rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}
.medicus-faq-grid details p {
  color: var(--wp--preset--color--muted);
}
.medicus-contact-hours {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 10px;
}
.medicus-final-cta {
  padding-inline: 1.5rem;
}
.medicus-final-cta > .wp-block-buttons .wp-block-button__link {
  padding: 1rem 2.25rem;
}
.medicus-final-cta > .wp-block-buttons .is-style-outline a {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-weight: 600;
}
.medicus-final-cta > .wp-block-buttons .is-style-outline a:hover {
  border-color: #fff;
  color: #fff;
  background: transparent;
}
/* Pierwszy (telefoniczny) przycisk w Final CTA: biały z tekstem brand (parity) */
.medicus-final-cta > .wp-block-buttons .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: #fff !important;
  color: var(--wp--preset--color--brand) !important;
}
.medicus-final-cta > .wp-block-buttons .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background: var(--wp--preset--color--brand-light) !important;
}
/* Trust row w Final CTA — czytelny na niebieskim niezależnie od klas markupu */
.medicus-final-cta .medicus-final-cta__proof,
.medicus-final-cta .medicus-final-cta__proof .medicus-inline-icon,
.medicus-final-cta .medicus-home-hero__proof,
.medicus-final-cta .medicus-home-hero__proof .medicus-inline-icon,
.medicus-final-cta .medicus-home-hero__proof p {
  color: rgba(255, 255, 255, 0.75) !important;
}
.medicus-final-cta .medicus-proof-icon {
  color: rgba(255, 255, 255, 0.75);
}
.medicus-header__inner {
  min-height: 76px;
  height: 100%;
  padding: 0 1.5rem;
}
.medicus-brand-lockup {
  gap: 0.75rem;
  box-sizing: border-box;
  height: 56px;
  margin-left: -4px !important;
  padding: 4px 6px;
  border-radius: 12px;
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.medicus-brand-lockup:hover {
  background: var(--wp--preset--color--surface);
}
.medicus-brand-lockup figure {
  margin: 0;
  width: auto !important;
  height: 48px;
  line-height: 0;
  flex: 0 0 auto;
}
.medicus-brand-lockup figure a {
  min-height: 48px !important;
  height: 48px;
}
.medicus-brand-lockup figure img {
  width: auto !important;
  height: 48px !important;
}
.medicus-brand-lockup p {
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid var(--wp--preset--color--border);
  /* Dwa wiersze po ~17,5 px dają blok ok. 35 px przy logo wysokim na 48 px.
     Wcześniej 11 px z interlinią 11 px: tekst ginął przy logo, a wiersze
     sklejały się bez światła. Zbicie -0.025em przy tak małym stopniu
     dodatkowo zlepiało litery. */
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.medicus-brand-lockup p a {
  min-height: 0 !important;
  font: inherit;
  line-height: inherit;
}
.medicus-brand-lockup strong {
  font-weight: 600;
}
.medicus-brand-lockup a {
  text-decoration: none;
  color: var(--wp--preset--color--muted);
}
.medicus-main-nav {
  font-size: 0.875rem;
  line-height: 1.43;
  gap: 1.75rem;
}
.medicus-header__cta {
  gap: 1rem;
}
.medicus-header__contact {
  gap: 0;
}
.medicus-header__contact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink-light);
  margin: 0;
}
.medicus-header__contact-link {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}
.medicus-header__contact-link a {
  color: inherit;
  text-decoration: none;
}
.medicus-header__contact-link a:hover {
  color: var(--wp--preset--color--brand);
}
.medicus-header__cta .wp-block-button__link {
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  min-height: 48px;
  box-shadow: var(--medicus-shadow);
  gap: 0.5rem;
}
.medicus-header__phone-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"/></svg>') center / contain no-repeat;
}
.medicus-main-nav .medicus-foundation-link a {
  color: var(--wp--preset--color--foundation);
}
.medicus-footer {
  padding: 4rem 1.5rem 1.5rem;
}
.medicus-footer__columns {
  gap: clamp(2rem, 5vw, 5rem);
}
.medicus-footer h2,
.medicus-footer h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.medicus-footer p {
  font-size: 0.875rem;
  color: var(--medicus-ink-muted);
}
.medicus-footer .wp-block-separator {
  background-color: var(--medicus-ink-border) !important;
  border: 0;
  height: 1px;
  opacity: 1;
}
.medicus-footer__bottom {
  padding-top: 1rem;
}
.medicus-footer__bottom p,
.medicus-footer__bottom a {
  font-size: 0.75rem;
  color: var(--medicus-ink-muted);
}
.medicus-footer__bottom p {
  margin: 0;
  font-size: 0.75rem;
}
.js .medicus-reveal {
  opacity: 0.92;
  transform: translateY(14px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.js .medicus-reveal.is-visible {
  opacity: 1;
  transform: none;
}
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  transition:
    background-color 0.2s,
    transform 0.2s,
    border-color 0.2s,
    color 0.2s;
}
:where(.wp-block-button:not(.is-style-outline)) .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--brand-dark);
}
:where(.wp-block-button.is-style-outline) .wp-block-button__link {
  border: 1px solid var(--wp--preset--color--border);
  color: var(--wp--preset--color--foreground);
  background: transparent;
}
:where(.wp-block-button.is-style-outline) .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--brand);
  color: var(--wp--preset--color--brand);
}
.wp-block-button__link:active {
  transform: translateY(1px);
}
@media (max-width: 1023px) {
  .medicus-brand-lockup p,
  .medicus-header__cta {
    display: none;
  }
  .medicus-header__inner {
    min-height: 76px;
    padding: 0.4rem 1rem;
  }
  .medicus-home-hero__grid {
    display: flex;
    flex-direction: column-reverse;
    min-height: 0;
  }
  .medicus-home-hero__copy > .wp-block-group {
    margin-left: 0;
    margin-right: auto;
    padding: 3.5rem 1.5rem;
  }
  .medicus-home-hero__media {
    min-height: 340px;
  }
  .medicus-consultation-card {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
  }
  .medicus-home-hero__title {
    font-size: 2.5rem !important;
  }
  .medicus-stats {
    grid-template-columns: 1fr 1fr;
  }
  .medicus-stats > div:nth-child(2) {
    border-right: 0;
  }
  .medicus-logo-marquee__group {
    gap: clamp(2.5rem, 6vw, 5rem);
    padding-right: clamp(2.5rem, 6vw, 5rem);
  }
  .medicus-logo-marquee img {
    height: 28px;
  }
  .medicus-review-logos {
    column-gap: 2rem;
    row-gap: 1rem;
  }
  .medicus-process-grid {
    display: grid !important;
    grid-template-columns: 1fr;
  }
  .medicus-faq-grid {
    gap: 2rem;
    flex-wrap: wrap !important;
  }
  .medicus-faq-grid > .wp-block-column {
    flex-basis: 100% !important;
  }
  .medicus-footer__columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }
  .medicus-footer__columns > .wp-block-column:first-child {
    grid-column: 1/-1;
  }
  .medicus-check-list--columns {
    grid-template-columns: 1fr;
  }
  .medicus-phone-band .has-text-align-right {
    text-align: left;
  }
}

@media (max-width: 639px) {
  .medicus-home-hero__media {
    flex:none;
    height:350px;
    min-height:350px;
    max-height:350px;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .medicus-home-hero__copy > .wp-block-group {
    padding-inline:32px;
  }
  .medicus-home-hero__title {
    font-size:3rem !important;
  }
  .medicus-home-hero__media {
    flex:none;
    height:clamp(350px, calc(64.7vw - 38px), 458px);
    min-height:clamp(350px, calc(64.7vw - 38px), 458px);
    max-height:458px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .medicus-home-hero__copy > .wp-block-group {
    padding-inline:32px;
  }
  .medicus-home-hero__title {
    font-size:3rem !important;
  }
  .medicus-home-hero__media {
    flex:none;
    height:clamp(458px, 55vw, 560px);
    min-height:clamp(458px, 55vw, 560px);
    max-height:560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .medicus-reveal {
    opacity: 1;
    transform: none;
  }
  .medicus-logo-marquee__track {
    animation: none;
    transform: none;
    flex-wrap: wrap;
  }
  .medicus-logo-marquee__group[aria-hidden="true"] {
    display: none;
  }
  .medicus-logo-marquee [data-filler] {
    display: none;
  }
  .medicus-logo-marquee {
    overflow: visible;
  }
}

/* ── Ikony (lucide inline SVG) ─────────────────────────────────────────── */
.medicus-icon {
  flex-shrink: 0;
  vertical-align: middle;
}
.medicus-icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--wp--preset--color--brand-light);
  color: var(--wp--preset--color--brand);
  margin-bottom: 1rem;
}
.medicus-icon-tile--foundation {
  background: var(--wp--preset--color--foundation-light);
  color: var(--wp--preset--color--foundation);
}
.medicus-inline-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Hover kart — parity z .card-hover prototypu ───────────────────────── */
.medicus-card,
.medicus-quote-card,
.medicus-benefit-card,
.medicus-info-card {
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
.medicus-card:hover,
.medicus-benefit-card:hover {
  border-color: var(--wp--preset--color--brand-mid);
  box-shadow: var(--medicus-shadow-hover);
  transform: translateY(-1px);
}

/* ── Nawigacja — animowany underline (parity z headerem prototypu) ────── */
.medicus-main-nav .wp-block-navigation-item__content {
  position: relative;
  padding-block: 0.5rem;
  color: #3d4650;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.medicus-main-nav .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: var(--wp--preset--color--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s;
}
.medicus-main-nav .wp-block-navigation-item__content:hover {
  color: #161a1e;
}
.medicus-main-nav .current-menu-item .wp-block-navigation-item__content,
.medicus-main-nav .current-menu-item > a,
.medicus-main-nav .wp-block-navigation-item__content[aria-current="page"] {
  color: var(--wp--preset--color--brand);
}
.medicus-main-nav .current-menu-item .wp-block-navigation-item__content::after,
.medicus-main-nav .current-menu-item > a::after,
.medicus-main-nav .wp-block-navigation-item__content[aria-current="page"]::after {
  transform: scaleX(1);
}
.medicus-main-nav .medicus-foundation-link .wp-block-navigation-item__content,
.medicus-main-nav .medicus-foundation-link a {
  color: var(--wp--preset--color--foundation);
}
.medicus-main-nav .medicus-foundation-link .wp-block-navigation-item__content::after {
  background: var(--wp--preset--color--foundation);
}

/* ── Slider opinii ─────────────────────────────────────────────────────── */
.medicus-slider {
  position: relative;
  overflow: hidden;
  padding: 2.25rem 1.5rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--medicus-shadow);
}
@media (min-width: 640px) {
  .medicus-slider {
    padding: 2.25rem 3rem;
  }
}
@media (min-width: 1024px) {
  .medicus-slider {
    padding: 3rem 4rem;
  }
}
.medicus-testimonials > .alignwide {
  width: min(100% - 3rem, 1326px);
  max-width: 1326px !important;
  margin-inline: auto !important;
}
.medicus-slider__slide {
  display: none;
  min-height: var(--medicus-slider-slide-height, 0px);
}
.medicus-slider__slide.is-measuring {
  display: grid !important;
  visibility: hidden;
}
.medicus-slider__slide.is-active {
  display: block;
  animation: medicus-fade 0.3s ease;
}
@keyframes medicus-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.medicus-slider__slide > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.medicus-slider__slide > * + * {
  margin-block-start: 0 !important;
}
.medicus-slider > .wp-block-query,
.medicus-slider > .medicus-slider__footer,
.medicus-slider > .medicus-slider__progress {
  width: 100%;
  max-width: none !important;
  margin-inline: 0 !important;
}
.medicus-slider > .wp-block-query {
  margin-block: 0 !important;
}
.medicus-slider .wp-block-post-template {
  margin: 0;
  padding: 0;
  list-style: none;
}
.medicus-slider .wp-block-post-template > li {
  margin-block: 0 !important;
}
.medicus-slider__stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  color: var(--wp--preset--color--brand);
}
.medicus-slider__stars .medicus-icon {
  fill: currentColor;
}
.medicus-slider__quote {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.375;
  max-width: 52ch;
  margin: 0 0 2rem;
}
@media (min-width: 1024px) {
  .medicus-slider__quote {
    font-size: 1.625rem;
  }
}
.medicus-slider__author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.medicus-slider__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wp--preset--color--brand-light);
  color: var(--wp--preset--color--brand);
  font-weight: 700;
}
.medicus-slider__author p {
  margin: 0;
  font-weight: 600;
}
.medicus-slider__author p span {
  font-weight: 400;
  color: var(--wp--preset--color--muted);
}
.medicus-slider__source {
  font-size: 0.875rem;
  color: var(--wp--preset--color--muted);
  text-decoration: underline;
  text-decoration-color: var(--wp--preset--color--border);
  text-underline-offset: 4px;
  transition:
    color 0.2s,
    text-decoration-color 0.2s;
}
.medicus-slider__source:hover {
  color: var(--wp--preset--color--brand);
  text-decoration-color: currentColor;
}
.medicus-slider__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--wp--preset--color--border);
}
.medicus-slider__dots {
  display: flex;
}
.medicus-slider__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.medicus-slider__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d4d9de;
  transition: all 0.3s;
}
.medicus-slider__dot.is-active::before {
  width: 22px;
  background: var(--wp--preset--color--brand);
}
.medicus-slider__arrows {
  display: flex;
  gap: 0.5rem;
}
.medicus-slider__prev,
.medicus-slider__next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 9999px;
  background: transparent;
  color: #3d4650;
  padding: 0;
  font: 500 1rem/1.5 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.medicus-slider__prev:hover,
.medicus-slider__next:hover {
  border-color: var(--wp--preset--color--brand);
  color: var(--wp--preset--color--brand);
}
.medicus-slider__progress {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--wp--preset--color--brand-light);
}
.medicus-slider__progress span {
  display: block;
  height: 100%;
  background: var(--wp--preset--color--brand);
  transform-origin: left;
  animation: medicus-slider-progress 7s linear forwards;
}
@keyframes medicus-slider-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.medicus-slider[data-paused="true"] .medicus-slider__progress span {
  animation-play-state: paused;
}

/* ── FAQ — animowany akordeon + chevron ────────────────────────────────── */
.medicus-faq-grid summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}
.medicus-faq-grid summary::-webkit-details-marker {
  display: none;
}
.medicus-faq-grid summary::after {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>') center / contain no-repeat;
  color: var(--wp--preset--color--muted);
  transition: transform 0.3s;
}
details.is-open summary::after {
  transform: rotate(180deg);
}
.medicus-faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
details.is-open .medicus-faq-panel {
  grid-template-rows: 1fr;
}
.medicus-faq-panel__inner {
  overflow: hidden;
  /* Odstęp z <details> przeniesiony na <summary>, więc odpowiedź musi wnieść
     własny — bez góry, bo tę domyka dolny odstęp pytania. */
  padding: 0 1.5rem 1.3rem;
}
@media (prefers-reduced-motion: reduce) {
  .medicus-faq-panel {
    grid-template-rows: none;
  }
  details[open] .medicus-faq-panel {
    grid-template-rows: none;
  }
  .medicus-slider__progress span {
    animation: none;
    transform: scaleX(0);
  }
  .medicus-card:hover,
  .medicus-benefit-card:hover {
    transform: none;
  }
}

/* ── Strzałki w linkach (gap rośnie na hover) ──────────────────────────── */
.medicus-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s;
}
.medicus-arrow-link:hover {
  gap: 0.65rem;
}

/* Slider — wiersz autora i cytat (uzupełnienie). */
.medicus-slider__name-row {
  gap: 0.35rem !important;
}
.medicus-slider__name-row p {
  margin: 0;
}
.medicus-slider__location::before {
  content: "· ";
}
.medicus-slider__source-row {
  margin: 0.1rem 0 0;
  font-size: 0.875rem;
}
.medicus-slider__quote-wrap .wp-block-post-excerpt__excerpt {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.625;
  max-width: 62rem;
  margin: 0 0 2rem !important;
}
@media (min-width: 1024px) {
  .medicus-slider__quote-wrap .wp-block-post-excerpt__excerpt {
    font-size: 1.5rem;
    line-height: 1.375;
  }
}
.medicus-slider__quote-wrap .wp-block-post-excerpt__excerpt::before {
  content: "„";
}
.medicus-slider__quote-wrap .wp-block-post-excerpt__excerpt::after {
  content: "”";
}
.medicus-testimonials__score .medicus-slider__stars {
  display: inline-flex;
  gap: 0.15rem;
  vertical-align: -2px;
  margin: 0;
}
.medicus-testimonials__score .medicus-icon {
  fill: currentColor;
  color: var(--wp--preset--color--brand);
}

/* ── Detale parity: hero, founder, usługi, CTA ─────────────────────────── */
.medicus-pill--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--wp--preset--color--brand);
  margin-right: 0.5rem;
  align-self: center;
}
.medicus-pill--foundation {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--wp--preset--color--foundation-dark);
}
.medicus-btn-icon .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.medicus-home-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--wp--preset--color--muted);
}
.medicus-home-hero__proof .medicus-inline-icon {
  gap: 0.5rem;
}
.medicus-home-hero__proof a {
  color: var(--wp--preset--color--muted);
  text-decoration: underline;
  text-decoration-color: var(--wp--preset--color--border);
  text-underline-offset: 4px;
  transition:
    color 0.2s,
    text-decoration-color 0.2s;
}
.medicus-home-hero__proof a:hover {
  color: var(--wp--preset--color--foreground);
  text-decoration-color: var(--wp--preset--color--muted);
}
.medicus-proof-icon {
  color: var(--wp--preset--color--brand);
  display: inline-flex;
}
.medicus-consultation-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.medicus-consultation-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wp--preset--color--brand-light);
  color: var(--wp--preset--color--brand);
  flex-shrink: 0;
}
.medicus-consultation-card__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
}
.medicus-consultation-card__sub {
  margin: 0;
  font-size: 0.75rem;
  color: var(--wp--preset--color--muted);
}
.medicus-founder-media {
  position: relative;
}
.medicus-founder-badge {
  position: absolute;
  bottom: -1.25rem;
  right: 1.5rem;
  width: 120px;
  text-align: left;
  background: var(--wp--preset--color--brand);
  color: #fff;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 32px rgba(14, 72, 109, 0.18);
}
@media (min-width: 1024px) {
  .medicus-founder-badge {
    bottom: -2rem;
    right: -2rem;
    width: 132px;
    padding: 1.15rem 1.25rem;
    border-radius: 12px;
  }
}
.medicus-founder-badge__value {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 800;
}
@media (min-width: 1024px) {
  .medicus-founder-badge__value {
    font-size: 1.875rem;
  }
}
.medicus-founder-badge__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.9);
}
@media (min-width: 1024px) {
  .medicus-founder-badge__label {
    font-size: 0.875rem;
  }
}
.medicus-check-list--circle li {
  font-weight: 500;
  font-size: 0.875rem;
}
/* Nagłówek sekcji: kontener na pełnej szerokości wide (1200, wycentrowany),
   a tekst przy jego LEWEJ krawędzi, ograniczony do 42rem (parity z prototypem).
   Constrained layout WP centruje dzieci przez margin:auto !important — stąd !important. */
.wp-block-group.medicus-section-header {
  max-width: var(--wp--style--global--wide-size, 1200px) !important;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.wp-block-group.medicus-section-header > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 42rem;
  text-align: left;
}
/* Header jako jedyna treść sekcji (hero) — bez dolnego marginesu */
.wp-block-group.medicus-section-header:last-child {
  margin-bottom: 0 !important;
}
.medicus-service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  cursor: pointer;
}
.medicus-service-card .medicus-icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}
.medicus-service-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  line-height: 1.25;
}
.medicus-service-card h3 a {
  color: var(--wp--preset--color--foreground);
  text-decoration: none;
}
.medicus-service-card .wp-block-post-excerpt {
  margin-bottom: 0.75rem !important;
  color: var(--wp--preset--color--muted);
  font-size: 0.875rem;
  line-height: 1.5;
  flex: none !important;
}
.medicus-service-card__features {
  list-style: none !important;
  margin: 0 0 1.5rem 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.medicus-service-card__features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--wp--preset--color--muted);
}
.medicus-service-card__features li svg {
  color: var(--wp--preset--color--brand);
  flex-shrink: 0;
}
.medicus-service-card .wp-block-read-more {
  display: inline-flex !important;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wp--preset--color--brand);
  text-decoration: none;
  transition: gap 0.2s;
  margin-top: 0.75rem !important;
}
.medicus-service-card:hover .wp-block-read-more {
  gap: 0.625rem !important;
}
.medicus-service-card .wp-block-read-more::after {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>') center / contain no-repeat;
}
.medicus-final-cta__title {
  font-size: clamp(2.25rem, 3.6vw, 3.25rem) !important;
  margin-bottom: 1.25rem !important;
}
.medicus-final-cta__lead {
  max-width: 32rem;
  margin-inline: auto;
  opacity: 0.9;
  font-size: 1.25rem !important;
  font-weight: 500;
  margin-bottom: 2.5rem !important;
}
.medicus-final-cta .medicus-eyebrow {
  opacity: 0.8;
}
.medicus-final-cta__proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}
.medicus-mark--foundation,
.has-foundation-light-background-color mark {
  color: var(--wp--preset--color--foundation) !important;
  background: transparent;
}
.medicus-btn-foundation .wp-block-button__link:hover {
  background: var(--wp--preset--color--foundation-dark) !important;
}
.medicus-btn-foundation-outline .wp-block-button__link {
  border-color: var(--wp--preset--color--foundation);
  color: var(--wp--preset--color--foundation);
}
.medicus-btn-foundation-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--foundation);
  color: #fff;
}
.medicus-contact-hours__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.medicus-contact-hours__icon {
  color: var(--wp--preset--color--brand);
  display: inline-flex;
  margin-top: 2px;
}
.medicus-contact-hours__text p {
  margin: 0;
  font-size: 0.875rem;
}
/* Optyczne wysokości logotypów w marquee (dobór z prototypu). */
.medicus-logo-marquee img {
  height: 36px;
}
.medicus-logo-marquee img[alt="PZU"] {
  height: 48px;
}
.medicus-logo-marquee img[alt="DOZ"] {
  height: 40px;
}
.medicus-logo-marquee img[alt="Apteka Gemini"] {
  height: 32px;
}
.medicus-stats strong {
  font-size: 1.875rem;
  font-weight: 800;
}
.medicus-video-player video {
  cursor: pointer;
}

/* ── Formularze — parity: gwiazdki, dropzone CV, licznik, submit ───────── */
.medicus-field-note {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--wp--preset--color--muted);
}

.medicus-field-error {
  display: block;
  margin-top: 0.4rem;
  color: #b42318;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
}

.medicus-form :is(input, select, textarea)[aria-invalid="true"] {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgb(217 45 32 / 10%);
}
.medicus-star-input {
  display: inline-flex;
  gap: 0.25rem;
}
.medicus-star-input label {
  display: inline-flex !important;
  cursor: pointer;
  color: #d4d9de;
  transition: color 0.15s;
}
.medicus-star-input label svg {
  fill: currentColor;
}
.medicus-star-input.is-active-1 label:nth-of-type(-n + 1),
.medicus-star-input.is-active-2 label:nth-of-type(-n + 2),
.medicus-star-input.is-active-3 label:nth-of-type(-n + 3),
.medicus-star-input.is-active-4 label:nth-of-type(-n + 4),
.medicus-star-input.is-active-5 label:nth-of-type(-n + 5) {
  color: var(--wp--preset--color--brand);
}
.medicus-star-input input:focus-visible + label {
  outline: 2px solid var(--wp--preset--color--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
.medicus-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  border: 1px dashed var(--wp--preset--color--border);
  border-radius: 10px;
  background: var(--wp--preset--color--surface);
  text-align: center;
  padding: 1rem;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.medicus-dropzone:hover,
.medicus-dropzone.is-dragover {
  border-color: var(--wp--preset--color--brand);
  background: var(--wp--preset--color--brand-light);
}
.medicus-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  min-height: 0;
}
.medicus-dropzone__text {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--wp--preset--color--muted);
  pointer-events: none;
}
.medicus-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: var(--wp--preset--color--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s,
    transform 0.2s;
}
.medicus-form__submit:hover {
  background: var(--wp--preset--color--brand-dark);
}
.medicus-form__submit:active {
  transform: translateY(1px);
}

/* ── Stopka — ikony kontaktu (maski CSS; template part to czysty HTML) ─── */
.medicus-footer a {
  text-decoration: none;
}
.medicus-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.medicus-footer__contact {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--medicus-ink-muted);
}
.medicus-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.medicus-footer__contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.medicus-footer__contact-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background: #8fa5b3;
}
.medicus-footer__contact-icon[data-icon="phone"] {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384"/></svg>') center / contain no-repeat;
}
.medicus-footer__contact-icon[data-icon="mail"] {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"/><rect x="2" y="4" width="20" height="16" rx="2"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"/><rect x="2" y="4" width="20" height="16" rx="2"/></svg>') center / contain no-repeat;
}
.medicus-footer__contact-icon[data-icon="clock"] {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 6v6l4 2"/><circle cx="12" cy="12" r="10"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 6v6l4 2"/><circle cx="12" cy="12" r="10"/></svg>') center / contain no-repeat;
}
/* Logo w stopce jest białym SVG przygotowanym pod ciemne tło, więc nie
   potrzebuje białej podkładki (przy niej znikało: biel na bieli). */
.medicus-footer .wp-block-image img {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

/* Stopka — finalne dopasowanie do szerokiego układu prototypu. */
.medicus-footer {
  padding: 4.5rem 1.5rem 2rem;
  background: #213752 !important;
}
.medicus-footer > .alignwide {
  width: min(100% - 3rem, 1326px);
  max-width: 1326px !important;
  margin-inline: auto !important;
}
.medicus-footer__columns {
  display: grid !important;
  grid-template-columns: minmax(18rem, 1.25fr) repeat(3, minmax(9rem, 0.75fr));
  gap: clamp(3rem, 8vw, 7rem) !important;
  align-items: start;
  margin-bottom: 3.75rem !important;
}
.medicus-footer__columns > .wp-block-column {
  margin: 0 !important;
}
.medicus-footer__columns > .wp-block-column:first-child {
  max-width: 24rem;
}
.medicus-footer .wp-block-image {
  margin: 0 0 1.6rem;
}
.medicus-footer .wp-block-image img {
  width: 64px !important;
  border-radius: 0;
}
.medicus-footer p,
.medicus-footer__contact {
  color: rgba(226, 234, 241, 0.7);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.medicus-footer h2,
.medicus-footer h3 {
  margin: 0 0 1.55rem;
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.medicus-footer p a,
.medicus-footer__contact a {
  color: rgba(226, 234, 241, 0.7);
  font-size: inherit;
  line-height: 2.05;
}
.medicus-footer p a:hover,
.medicus-footer__contact a:hover {
  color: #fff;
}
.medicus-footer__contact {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.45rem;
}
.medicus-footer__contact li {
  margin: 0;
  gap: 0.75rem;
}
.medicus-footer__contact-icon {
  background: rgba(226, 234, 241, 0.62);
}
.medicus-footer .wp-block-separator {
  width: min(100% - 3rem, 1326px);
  max-width: 1326px !important;
  margin: 0 auto 1.75rem !important;
  background-color: rgba(226, 234, 241, 0.14) !important;
}
.medicus-footer__bottom {
  width: min(100% - 3rem, 1326px);
  max-width: 1326px !important;
  margin-inline: auto !important;
  padding-top: 0;
}
.medicus-footer__bottom p,
.medicus-footer__bottom a {
  color: rgba(226, 234, 241, 0.62);
  font-size: 0.8125rem;
}
@media (max-width: 900px) {
  .medicus-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem !important;
  }
}
@media (max-width: 599px) {
  .medicus-footer {
    padding: 3.5rem 1.25rem 5rem;
  }
  .medicus-footer > .alignwide,
  .medicus-footer .wp-block-separator,
  .medicus-footer__bottom {
    width: 100%;
  }
  .medicus-footer__columns {
    grid-template-columns: 1fr;
  }
  .medicus-footer__bottom {
    gap: 1rem;
  }
}

/* ── Księga gości ──────────────────────────────────────────────────────── */
.medicus-gb-stars {
  display: inline-flex;
  gap: 0.15rem;
}
.medicus-gb-stars .is-filled svg {
  color: var(--wp--preset--color--brand);
  fill: currentColor;
}
.medicus-gb-stars .is-empty svg {
  color: #d4d9de;
  fill: currentColor;
}
.medicus-gb-summary {
  padding: 1.5rem;
  background: #fff;
}
.medicus-gb-summary__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.medicus-gb-summary__avg {
  margin: 0;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--wp--preset--color--brand);
}
.medicus-gb-summary__stars,
.medicus-gb-summary__count {
  margin: 0;
}
.medicus-gb-summary__count {
  font-size: 0.875rem;
  color: var(--wp--preset--color--muted);
}
.medicus-gb-summary__scale {
  width: 100%;
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--wp--preset--color--muted);
}
.medicus-gb-summary__bars {
  margin-top: 1rem;
  display: grid;
  gap: 0.35rem;
}
.medicus-gb-summary__bar-row {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--wp--preset--color--muted);
}
.medicus-gb-summary__bar-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.medicus-gb-summary__bar-label svg {
  fill: currentColor;
  color: var(--wp--preset--color--brand);
}
.medicus-gb-summary__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--wp--preset--color--surface);
  overflow: hidden;
}
.medicus-gb-summary__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--wp--preset--color--brand);
  transition: width 0.8s ease;
}
.medicus-gb__filter {
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.medicus-gb__chip {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.5rem 18px;
  border: 0;
  border-radius: 10px;
  background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--muted);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.medicus-gb__chip:hover {
  background: var(--wp--preset--color--brand-light);
  color: var(--wp--preset--color--brand);
}
.medicus-gb__chip.is-active,
.medicus-gb__chip.is-active:hover {
  background: var(--wp--preset--color--brand);
  color: #fff;
}
.medicus-gb__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 1023px) {
  .medicus-gb__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 599px) {
  .medicus-gb__grid {
    grid-template-columns: 1fr;
  }
}
.medicus-gb__card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: #fff;
}
.medicus-gb__card.is-highlight {
  background: var(--wp--preset--color--brand);
  border-color: var(--wp--preset--color--brand);
  color: #fff;
}
.medicus-gb__card.is-highlight .medicus-gb-stars .is-filled svg,
.medicus-gb__card.is-highlight .medicus-gb-stars .is-empty svg {
  color: #fff;
}
/* Tło dostaje tylko chip usługi — data i miejscowość to goły tekst, więc
   półprzezroczyste tło rysowało pod nimi luźne prostokąty. */
.medicus-gb__card.is-highlight .medicus-gb__service {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.medicus-gb__card.is-highlight .medicus-gb__date,
.medicus-gb__card.is-highlight .medicus-gb__who small {
  color: rgba(255, 255, 255, 0.8);
}
.medicus-gb__card.is-highlight .medicus-gb__avatar {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.medicus-gb__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.medicus-gb__date {
  font-size: 0.75rem;
  color: var(--wp--preset--color--muted);
}
.medicus-gb__text {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.65;
  flex: 1;
}
.medicus-gb__service {
  align-self: flex-start;
  margin: 0 0 1rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--wp--preset--color--brand-light);
  color: var(--wp--preset--color--brand);
  font-size: 0.72rem;
  font-weight: 700;
}
.medicus-gb__card-foot {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.medicus-gb__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--wp--preset--color--brand-light);
  color: var(--wp--preset--color--brand);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.medicus-gb__who {
  display: grid;
  line-height: 1.3;
  font-size: 0.85rem;
}
.medicus-gb__who small {
  color: var(--wp--preset--color--muted);
}
.medicus-gb__empty {
  padding: 2rem;
  text-align: center;
  color: var(--wp--preset--color--muted);
}

.medicus-gb__filter {
  justify-content: flex-start;
  max-width: 1200px;
  margin-inline: auto;
}
.medicus-parity-guestbook-list .medicus-gb {
  width: 100%;
  max-width: 1200px !important;
  margin-inline: auto;
}
.medicus-gb__card {
  min-height: 354px;
}
.medicus-gb__text {
  font-size: 1rem;
  line-height: 1.58;
}
.medicus-gb__card-foot {
  margin-top: auto;
}
.medicus-gb__card[hidden] {
  display: none !important;
}

.medicus-parity-card-grid--foundation {
  max-width: 1200px;
  margin-inline: auto !important;
  gap: 1.25rem !important;
}
.medicus-parity-card-grid--foundation > .wp-block-column {
  min-height: 154px;
  padding: 2rem !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}
.medicus-parity-card-grid--foundation .medicus-icon-tile,
.medicus-parity-card-grid--foundation .medicus-icon-tile--foundation {
  width: 36px;
  height: 36px;
  margin-bottom: 1.25rem;
  border-radius: 8px;
}
.medicus-parity-card-grid--foundation h3 {
  margin-bottom: 0.5rem !important;
}
.medicus-parity-card-grid--foundation p {
  line-height: 1.55;
}

.medicus-breadcrumbs {
  padding: 1rem 0 !important;
  border-bottom: 0 !important;
  background: #fff !important;
}
/* Prototyp nie pokazuje breadcrumbs na stronie głównej */
.home .medicus-breadcrumbs {
  display: none;
}
.medicus-breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem !important;
  margin: 0 auto;
  padding: 0 1.5rem;
  max-width: 1200px;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
}
.medicus-breadcrumbs li {
  display: flex;
  align-items: center;
}
.medicus-breadcrumbs li + li::before {
  content: "/" !important;
  margin-right: 0.375rem !important;
  color: #A3ABB4 !important;
}
.medicus-breadcrumbs a {
  color: var(--wp--preset--color--muted);
  text-decoration: none;
}
.medicus-breadcrumbs a:hover {
  color: #161a1e;
}
.medicus-breadcrumbs span {
  color: #161a1e !important;
  font-weight: 500 !important;
}

/* Formatted Contact Links (Vite Parity) */
.medicus-contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.medicus-contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #161A1E;
  text-decoration: none;
  transition: color 0.2s;
}
.medicus-contact-link:hover {
  color: var(--wp--preset--color--brand);
}
.medicus-contact-link p {
  margin: 0;
}
.medicus-contact-link p:first-child {
  font-weight: 600;
}
.medicus-contact-link p:last-child {
  font-size: 0.75rem;
  color: var(--wp--preset--color--muted);
}

/* Phone band hours */
.medicus-phone-band__hours {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-end;
}
@media (max-width: 1023px) {
  .medicus-phone-band__hours {
    align-items: flex-start;
  }
}
.medicus-phone-band__hours p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* Fix forms */
.medicus-form input,
.medicus-form select,
.medicus-form textarea {
  background-color: var(--wp--preset--color--surface);
  border-color: #E2E5E9;
}
/* Buttons and inline icons */
.medicus-btn-icon .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
}
.medicus-inline-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--wp--preset--color--muted);
  text-decoration: none;
  font-size: 0.875rem;
}
a.medicus-inline-icon:hover {
  color: var(--wp--preset--color--foreground);
}
.medicus-proof-icon {
  color: var(--wp--preset--color--brand);
  display: inline-flex;
}
.medicus-pill--dot {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.medicus-pill--dot::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--wp--preset--color--brand);
}

.medicus-consultation-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.medicus-consultation-card__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--wp--preset--color--brand-light);
  color: var(--wp--preset--color--brand);
}
.medicus-consultation-card__title {
  font-weight: 700;
  font-size: 0.875rem;
  margin: 0;
}
.medicus-consultation-card__sub {
  font-size: 0.75rem;
  color: var(--wp--preset--color--muted);
  margin: 0;
}

/* Usługi page: hide redundant section header when following the hero block */
.medicus-parity-hero ~ .medicus-section .medicus-section-header {
  display: none !important;
}

body.home .medicus-service-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}
body.home .medicus-service-card .wp-block-read-more,
body.home .medicus-service-card .medicus-arrow-link {
  margin-top: 0.65rem !important;
}

/* Microinteractions parity pass. */
:where(a, button, input, textarea, select, summary, .wp-block-button__link):focus-visible,
.medicus-service-card[role="link"]:focus-visible {
  outline: 2px solid var(--wp--preset--color--brand);
  outline-offset: 2px;
}
.wp-block-button__link,
.wp-element-button,
.medicus-form__submit {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.medicus-gb__chip,
.medicus-district-chips label,
.medicus-parity-support-toggle button,
.medicus-parity-support-level-grid button {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:active,
.medicus-form__submit:active {
  transform: translateY(1px);
}
.medicus-service-card,
.medicus-parity-service-card,
.medicus-process-grid > .wp-block-column,
.medicus-parity-card-grid > .wp-block-column,
.medicus-parity-scope > .wp-block-column,
.medicus-parity-support-spending article,
.medicus-parity-support-types article,
.medicus-gb__card,
.medicus-info-card,
.medicus-benefit-card {
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
.medicus-service-card:hover,
.medicus-parity-service-card:hover,
.medicus-process-grid > .wp-block-column:hover,
.medicus-parity-card-grid > .wp-block-column:hover,
.medicus-parity-scope > .wp-block-column:hover,
.medicus-parity-support-spending article:hover,
.medicus-parity-support-types article:hover,
.medicus-gb__card:hover,
.medicus-info-card:hover,
.medicus-benefit-card:hover {
  border-color: var(--wp--preset--color--brand-mid);
  box-shadow: var(--medicus-shadow-hover);
  transform: translateY(-1px);
}
.medicus-gb__card.is-highlight:hover {
  border-color: var(--wp--preset--color--brand);
  box-shadow: 0 10px 24px rgba(21, 95, 140, 0.18);
}
.medicus-service-card:hover h3 a,
.medicus-parity-service-card:hover h2,
.medicus-parity-service-card:hover a {
  color: var(--wp--preset--color--brand);
}
.medicus-parity-service-card a,
.medicus-parity-post-card .wp-block-read-more,
.medicus-parity-featured-post .wp-block-read-more,
.medicus-arrow-link {
  transition:
    gap 0.2s ease,
    color 0.2s ease;
}
.medicus-parity-service-card:hover a,
.medicus-parity-post-card:hover .wp-block-read-more,
.medicus-parity-featured-post:hover .wp-block-read-more {
  gap: 0.65rem;
}
.medicus-faq-grid summary {
  cursor: pointer;
  transition: color .15s cubic-bezier(.4,0,.2,1);
}
.medicus-faq-grid details {
  transition:background-color .15s cubic-bezier(.4,0,.2,1);
}
.medicus-faq-grid details:hover {
  background-color:var(--wp--preset--color--surface);
}
.medicus-faq-grid summary:hover {
  color: inherit;
  background-color:transparent;
}
.medicus-star-input label:hover,
.medicus-star-input label:hover ~ label {
  color: #d4d9de;
}
.medicus-star-input label:hover {
  transform: translateY(-1px);
}
.medicus-form input:hover,
.medicus-form select:hover,
.medicus-form textarea:hover {
  border-color: var(--wp--preset--color--brand-mid);
}
.medicus-parity-support-level-grid button:hover,
.medicus-parity-support-toggle button:hover {
  border-color: var(--wp--preset--color--foundation);
  box-shadow: 0 4px 12px rgba(194, 59, 50, 0.1);
}
.medicus-parity-support-level-grid button:hover {
  transform: translateY(-1px);
}

/* Precision parity pass — section-level fixes from React double check. */
@media (min-width: 782px) {
  .medicus-header__inner {
    min-height: 76px !important;
    width: min(100%, 1200px);
    margin-inline: auto;
  }
  .medicus-header a {
    min-height: 36px;
  }
  .medicus-header__cta .wp-block-button__link {
    min-height: 48px;
    padding-inline: 1.25rem;
  }
  .medicus-breadcrumbs {
    padding-block: 16px !important;
  }
  .medicus-breadcrumbs ol {
    line-height: 20px !important;
  }
}

.medicus-header {
  box-shadow: 0 1px 4px rgba(16, 24, 32, 0.05);
}
.medicus-brand-lockup img {
  display: block;
}
.medicus-main-nav {
  align-items: center;
}
.medicus-main-nav .wp-block-navigation-item__content {
  min-height: 36px;
  align-items: center;
}

@media (min-width: 1024px) {
  .medicus-home-hero__grid {
    height: clamp(560px, calc(100svh - 76px), 760px);
    min-height: clamp(560px, calc(100svh - 76px), 760px) !important;
    max-height: 760px !important;
    gap: 0 !important;
  }
  .medicus-home-hero__grid > .wp-block-column:first-child,
  .medicus-home-hero__grid > .wp-block-column:last-child {
    flex-basis: 50%;
    max-width: 50%;
  }
  .medicus-home-hero__copy > .wp-block-group {
    width: 576px;
    max-width: calc(100% - 1.5rem);
    padding: 0 56px 0 0;
    transform: none !important;
  }
  .medicus-home-hero__media {
    height: 100%;
    min-height: 0;
  }
  .medicus-home-hero__media figure,
  .medicus-home-hero__media img {
    min-height: 0;
  }
  .medicus-home-hero__title {
    font-size: 58px !important;
    margin: 0.875rem 0 1.5rem;
  }
  .medicus-home-hero__actions {
    margin-top: 1.75rem;
  }
  .medicus-consultation-card > p:last-child {
    font-size: 0.75rem !important;
    line-height: 1.625;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .medicus-home-hero__copy > .wp-block-group {
    padding-left:8px;
    transform:translateY(-9px) !important;
  }
  .medicus-home-hero__title {
    font-size:57px !important;
    line-height:1 !important;
  }
  .medicus-main-nav,
  .medicus-main-nav .wp-block-navigation__container {
    flex-wrap: nowrap !important;
    gap: 1rem !important;
  }
  .medicus-main-nav {
    font-size: 0.875rem;
  }
  .medicus-header__cta {
    flex: 0 0 auto;
  }
  .medicus-header__cta .wp-block-button__link {
    padding-inline: 1.25rem;
    white-space: nowrap;
  }
}

@media (min-width: 1200px) {
  body.home .medicus-home-hero__copy {
    transform: translateY(-12.3px);
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  body.home .medicus-consultation-card {
    left: 24px;
    right: auto;
    bottom: 24px;
    width: 300px;
    max-width: calc(100% - 48px);
  }
}

.medicus-home-hero__media img,
.medicus-parity-service-hero img,
.medicus-parity-foundation-hero img,
.medicus-parity-help img {
  object-position: center;
}

.medicus-partners {
  padding: 2.75rem max(1.5rem, calc((100% - 1200px) / 2));
}
.medicus-logo-marquee {
  max-width: 1152px;
  margin-inline: auto;
}
.medicus-logo-marquee__group {
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-right: clamp(2.5rem, 6vw, 5rem);
}

.medicus-slider {
  touch-action: pan-y;
}
.medicus-slider__slide {
  min-height: 13rem;
}
.medicus-slider__slide.is-active {
  display: grid;
  align-content: start;
}
.medicus-slider__footer button:focus-visible,
.medicus-slider__dot:focus-visible {
  outline: 2px solid var(--wp--preset--color--brand);
  outline-offset: 2px;
}

/* Final computed-style contract for the header. Core navigation rules inherit
   the header text colour with greater specificity than the component rule,
   so pin the same base/hover colours and timing used by the React header. */
.medicus-header .medicus-main-nav .wp-block-navigation-item__content {
  color:#3d4650;
  transition:color .15s cubic-bezier(.4,0,.2,1);
}
.medicus-header .medicus-main-nav .wp-block-navigation-item__content:hover {
  color:#161a1e;
}
.medicus-header .medicus-main-nav .current-menu-item .wp-block-navigation-item__content,
.medicus-header .medicus-main-nav .wp-block-navigation-item__content[aria-current="page"] {
  color:var(--wp--preset--color--brand);
}
.medicus-header .medicus-main-nav .medicus-foundation-link .wp-block-navigation-item__content {
  color:var(--wp--preset--color--foundation);
}
.medicus-header__cta .wp-block-button__link {
  line-height:20px;
  transition:background-color .2s ease, transform .2s ease;
}
.medicus-header__cta .wp-block-button__link:active,
.medicus-home-hero__actions .wp-block-button__link:active,
.medicus-final-cta .wp-block-button__link:active {
  transform:none;
}
body.home .medicus-home-hero__actions .is-style-outline .wp-block-button__link {
  transition:border-color .2s ease, color .2s ease, background-color .2s ease;
}

/* Hero entrance sequence mirrors Home.tsx: the proof row is intentionally
   static while badge, title, lead and actions enter with a 60ms stagger. */
@media (prefers-reduced-motion:no-preference) {
  .js body.home .medicus-home-hero__copy > .medicus-reveal {
    opacity:1;
    transform:none;
    transition:none;
  }
  .js body.home .medicus-home-hero__copy > .medicus-reveal > :is(.medicus-pill,.medicus-home-hero__title,.medicus-home-hero__lead,.medicus-home-hero__actions) {
    opacity:0;
    transform:translateY(12px);
    transition:opacity .5s cubic-bezier(.25,.1,.25,1),transform .5s cubic-bezier(.25,.1,.25,1);
  }
  .js body.home .medicus-home-hero__copy > .medicus-reveal.is-visible > :is(.medicus-pill,.medicus-home-hero__title,.medicus-home-hero__lead,.medicus-home-hero__actions) {
    opacity:1;
    transform:none;
  }
  .js body.home .medicus-home-hero__copy > .medicus-reveal > .medicus-home-hero__title { transition-delay:.06s; }
  .js body.home .medicus-home-hero__copy > .medicus-reveal > .medicus-home-hero__lead { transition-delay:.12s; }
  .js body.home .medicus-home-hero__copy > .medicus-reveal > .medicus-home-hero__actions { transition-delay:.18s; }
  .js body.home .medicus-home-hero__media > figure {
    animation:medicus-hero-media-in .6s ease .1s both;
  }
  .js body.home .medicus-consultation-card.medicus-reveal {
    opacity:0;
    transform:translateY(10px);
    transition:opacity .5s cubic-bezier(.25,.1,.25,1) .3s,transform .5s cubic-bezier(.25,.1,.25,1) .3s;
  }
  .js body.home .medicus-consultation-card.medicus-reveal.is-visible {
    opacity:1;
    transform:none;
  }
}
@keyframes medicus-hero-media-in {
  from { opacity:0; }
  to { opacity:1; }
}

@media (max-width:1023px) {
  .medicus-gb__card {
    min-height:0;
    padding:2rem;
  }
}

@media (max-width: 1023px) {
  .medicus-header__inner {
    min-height: 76px !important;
  }
  .medicus-brand-lockup p,
  .medicus-header__cta {
    display: none !important;
  }
  .medicus-main-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none;
  }
  .medicus-main-nav .wp-block-navigation__responsive-container-open {
    display: flex !important;
  }
  .medicus-home-hero__media {
    min-height: 0;
  }
  .medicus-home-hero__media img {
    aspect-ratio: 4 / 3;
  }
  .medicus-home-hero__actions {
    flex-wrap: wrap !important;
  }
  .medicus-home-hero__actions .wp-block-button__link {
    white-space: normal;
  }
  .medicus-partners {
    padding-inline: 1.5rem;
  }
  .medicus-logo-marquee {
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  }
  .medicus-slider__footer {
    align-items: flex-start;
  }
}

/* Footer geometry shared by every route: mirrors the 1152px / four-column
   footer from the React reference instead of stretching to the old 1326px grid. */
@media (min-width: 1024px) {
  .medicus-footer {
    padding: 4rem 1.5rem 2.5rem;
  }
  .medicus-footer .medicus-footer__columns {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 1152px);
    max-width: 1152px !important;
    gap: 2.5rem !important;
    margin: 0 auto 3.5rem !important;
  }
  .medicus-footer__columns > .wp-block-column {
    width: auto;
  }
  .medicus-footer__columns h2,
  .medicus-footer__columns h3 {
    margin: 0 0 1.25rem;
    font-size: 0.75rem;
    line-height: 1rem;
  }
  .medicus-footer__columns > .wp-block-column:first-child figure {
    min-height: 52px;
    margin-bottom: 1.25rem;
  }
  .medicus-footer__columns > .wp-block-column:first-child > p {
    margin: 0 0 1.5rem;
    font-size: 0.875rem;
    line-height: 1.625;
  }
  .medicus-footer__columns ul,
  .medicus-footer__columns .wp-block-list {
    margin-block: 0;
  }
  .medicus-footer__links {
    display: grid;
    gap: 0.625rem;
    padding: 0;
    list-style: none;
  }
  .medicus-footer__links li,
  .medicus-footer__links a,
  .medicus-footer__contact li,
  .medicus-footer__contact a {
    line-height: 1.25rem;
  }
  .medicus-footer__contact {
    gap: 0.625rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  .medicus-footer .wp-block-separator {
    width: min(100%, 1152px);
    max-width: 1152px !important;
    margin: 0 auto !important;
  }
  .medicus-footer .medicus-footer__bottom {
    width: min(100%, 1152px);
    max-width: 1152px !important;
    min-height: 49px;
    margin: 0 auto !important;
    padding-top: 2rem;
  }
  .medicus-footer .medicus-footer__bottom p,
  .medicus-footer .medicus-footer__bottom a {
    font-size: 0.75rem;
    line-height: 1rem;
  }
}

@media (max-width: 639px) {
  .medicus-footer__columns {
    grid-template-columns:1fr !important;
  }
  .medicus-footer__columns > .wp-block-column:first-child {
    grid-column:auto;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .medicus-footer__columns {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .medicus-footer__columns > .wp-block-column:first-child {
    grid-column:auto;
  }
}

/* Header lockup uses the React `sm` breakpoint independently from the
   desktop navigation breakpoint. */
@media (max-width: 639px) {
  .medicus-header__inner {
    padding: 0 16px !important;
  }
  .medicus-brand-lockup {
    height: 48px;
  }
  .medicus-brand-lockup figure,
  .medicus-brand-lockup figure a {
    height: 40px;
    min-height: 40px !important;
  }
  .medicus-brand-lockup figure img {
    height: 40px !important;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .medicus-header__inner {
    padding: 0 24px !important;
  }
  .medicus-brand-lockup p {
    display: block !important;
  }
}

.medicus-logo-marquee {
  margin-top: 24px !important;
}

@media (min-width: 1024px) {
  .medicus-logo-marquee {
    margin-top: 32px !important;
  }
  .medicus-stats {
    padding: 29px max(24px, calc((100% - 1152px) / 2));
  }
  .medicus-stats > div {
    padding: 8px 24px;
  }
}

.medicus-stats strong {
  margin-bottom: 4px;
  line-height: 36px;
}

@media (prefers-reduced-motion: reduce) {
  .medicus-logo-marquee {
    overflow: hidden;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Partnerzy z CPT: wysokość logo z meta (—logo-h ustawiane inline przez
   shortcode [medicus_partners]); na mobile proporcjonalnie mniejsze.
   Reguła na końcu pliku — wygrywa z wcześniejszymi height per alt/marka. */
.medicus-logo-marquee img.medicus-partner-logo {
  height: var(--logo-h, 34px);
  width: auto;
}
@media (max-width: 781px) {
  .medicus-logo-marquee img.medicus-partner-logo {
    height: calc(var(--logo-h, 34px) * 0.8);
  }
}

/* Podpis marki w nagłówku: dwie linie, ciasny interlinia, bez podkreślenia. */
.medicus-brand-tagline {
  margin: 0;
  line-height: 1.25;
}
.medicus-brand-tagline a {
  text-decoration: none;
  color: var(--wp--preset--color--muted);
}
.medicus-brand-tagline strong {
  font-weight: 600;
}

/* Pas opinii na wąskich ekranach: podpis w pierwszym wierszu, logotypy
   równo w drugim. Bez tego zawijanie rozrzucało je nierówno (jedno logo
   spadało samo pod spód). */
@media (max-width: 640px) {
  /* Podwojona klasa podnosi szczegolowosc ponad wp-block-group-is-layout-flex,
     ktore inaczej wymusza display:flex i rozrzuca logotypy nierowno. */
  .medicus-review-logos.medicus-review-logos {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    align-items: center;
    column-gap: 1.5rem;
    row-gap: .9rem;
  }
  .medicus-review-logos.medicus-review-logos > p {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: .2rem;
  }
  .medicus-review-logos.medicus-review-logos > figure {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Menu mobilne: backdrop-filter na nagłówku tworzy kontekst pozycjonowania
   dla potomków position:fixed, przez co nakładka menu zamykała się w wysokości
   nagłówka (76 px) zamiast pokryć ekran, a linki uciekały poza prawą krawędź.
   Gdy menu jest otwarte, wyłączamy rozmycie — efekt przy przewijaniu zostaje. */
.medicus-header:has(.wp-block-navigation__responsive-container.is-menu-open) {
  backdrop-filter: none;
}
/* Zapas dla przeglądarek bez :has() — klasę ustawia medicus.js. */
.medicus-header.medicus-header--menu-open {
  backdrop-filter: none;
}

/* Układ odnośników w otwartym menu mobilnym. Bez tego dziedziczą wyrównanie
   do prawej z paska nawigacji i przywierają do krawędzi ekranu. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  justify-content: flex-start !important;
  align-items: center !important;
  text-align: center;
  gap: 1.25rem !important;
  padding-inline: 1.5rem;
  width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  justify-content: center !important;
  width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-size: 1.25rem;
  padding-block: .35rem;
}
/* Pozycja odnośnika w pozycji menu: pasek desktopowy jest wyrównany do prawej
   (margin-left:auto), co w pionowym menu spychało tekst do krawędzi. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  margin-inline: auto !important;
}

/* ── Odstępy boczne na mobile i tablecie ────────────────────────────────
   Sekcje ustawiały tylko padding pionowy. Na desktopie treść trzymały
   wewnętrzne kontenery o stałej szerokości, ale poniżej 1024 px stają się
   pełnej szerokości i tekst dochodził do samej krawędzi ekranu.
   Marginesy nadajemy sekcji, a nie treści, żeby tła pozostały pełnej
   szerokości. Podwojona klasa podnosi wagę ponad reguły „parity”. */
@media (max-width: 1023px) {
  .medicus-section.medicus-section,
  .medicus-section--compact.medicus-section--compact,
  .medicus-parity-section.medicus-parity-section,
  .medicus-parity-hero.medicus-parity-hero,
  .medicus-parity-service-hero.medicus-parity-service-hero,
  .medicus-parity-foundation-hero.medicus-parity-foundation-hero,
  .medicus-parity-guestbook-hero.medicus-parity-guestbook-hero,
  .medicus-parity-service-testimonial.medicus-parity-service-testimonial,
  .medicus-testimonials.medicus-testimonials,
  .medicus-video.medicus-video,
  .medicus-partners.medicus-partners,
  .medicus-final-cta.medicus-final-cta,
  .medicus-phone-band.medicus-phone-band,
  .medicus-parity-donation-cta.medicus-parity-donation-cta,
  .medicus-parity-related.medicus-parity-related {
    padding-inline: var(--medicus-pad-mobile, 1.25rem);
  }

  /* Pasy przewijane poziomo (nawigacja kotwic, chipy) potrzebują odstępu
     w środku, żeby pierwszy i ostatni element nie przywierał do krawędzi. */
  .medicus-anchor-nav.medicus-anchor-nav,
  .medicus-chip-row.medicus-chip-row {
    padding-inline: var(--medicus-pad-mobile, 1.25rem);
  }

  /* Sekcje na pełną szerokość nie mogą dziedziczyć ujemnych marginesów. */
  .medicus-section > .alignfull,
  .medicus-section--compact > .alignfull {
    margin-inline: 0;
  }
}

@media (max-width: 480px) {
  :root { --medicus-pad-mobile: 1rem; }
}

/* Pas statystyk na telefonie i tablecie.
   Wcześniej sekcja miała sztywną wysokość z czasów odwzorowywania prototypu,
   więc pod treścią zostawał pusty margines, a kreska między kolumnami
   urywała się w połowie. Teraz wysokość wynika z treści, a kreski dzielą
   wszystkie cztery pola równo. */
@media (max-width: 1023px) {
  .medicus-stats.medicus-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0;
    column-gap: 0;
    align-items: stretch;
  }
  .medicus-stats.medicus-stats > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.15rem 0.75rem;
    border: 0;
  }
  .medicus-stats.medicus-stats > div:nth-child(odd) {
    border-right: 1px solid var(--wp--preset--color--border);
  }
  .medicus-stats.medicus-stats > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--wp--preset--color--border);
  }
  .medicus-stats.medicus-stats strong {
    font-size: 1.75rem;
    line-height: 1.15;
  }
  .medicus-stats.medicus-stats span {
    max-width: 15ch;
    font-size: 0.8125rem;
    line-height: 1.15rem;
  }
  /* Na niebieskim tle kreski muszą być jasne, nie szare. */
  .medicus-stats--inverse.medicus-stats--inverse > div:nth-child(odd) {
    border-right-color: rgba(255, 255, 255, 0.28);
  }
  .medicus-stats--inverse.medicus-stats--inverse > div:nth-child(-n + 2) {
    border-bottom-color: rgba(255, 255, 255, 0.28);
  }
}
