/* HealthyMind - poprawki po audycie 08.10.2026 (Taro Media). Ładowane po mobile-overrides.css. */

/* Akcent ciemniejszy: kontrast 5,5:1 na kremie, 4,7:1 na beżu (było 3,7:1 i 3,1:1) */
:root { --terracotta: #a84a2a !important; }

/* Podpis pod nazwą w nagłówku: był 9,6 px */
header a[aria-label] > span > span { font-size: 0.6875rem; letter-spacing: 0.16em; opacity: 0.7; }

/* ---------- Przyciski: główny / drugorzędny / na ciemnym tle ---------- */
.hm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.5rem;
  background: var(--sage-deep); color: var(--primary-foreground);
  border: 1px solid var(--sage-deep); border-radius: 2px;
  font-size: .9375rem; font-weight: 500; letter-spacing: .02em; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.hm-btn:hover { background: var(--sage); border-color: var(--sage); color: var(--primary-foreground); }
.hm-btn:focus-visible, .hm-arrow:focus-visible, .hm-chip:focus-visible, .hm-svc:focus-visible, .hm-track:focus-visible {
  outline: 2px solid var(--terracotta); outline-offset: 3px;
}
.hm-btn--sm { min-height: 42px; padding: .55rem 1.15rem; font-size: .875rem; }
.hm-btn--light { background: var(--background); color: var(--sage-deep); border-color: var(--background); }
.hm-btn--light:hover { background: var(--sand); border-color: var(--sand); color: var(--sage-deep); }
.hm-btn--ghost { background: transparent; color: var(--sage-deep); border-color: var(--sage); }
.hm-btn--ghost:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--primary-foreground); }
.hm-btn--ghost-light { background: transparent; color: var(--primary-foreground); border-color: rgba(254,251,248,.55); }
.hm-btn--ghost-light:hover { background: var(--primary-foreground); color: var(--sage-deep); border-color: var(--primary-foreground); }
.hm-tap { min-height: 44px; }
/* klasa spoza skompilowanego Tailwinda: sekcje na głównej bez podwójnego odstępu */
.pb-24 { padding-bottom: 6rem; }
@media (max-width: 767px) { .pb-24 { padding-bottom: 3.5rem !important; } }

/* ---------- Hero ---------- */
.hm-hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.hm-hero-tel {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px;
  color: var(--primary-foreground); font-size: .9375rem; letter-spacing: .02em;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-color: rgba(254,251,248,.5);
}
.hm-hero-tel:hover { text-decoration-color: currentColor; }

/* ---------- Pasek z oceną pod hero ---------- */
.hm-rating { background: var(--background); border-bottom: 1px solid var(--border); }
.hm-rating__in {
  max-width: 72rem; margin: 0 auto; padding: 1.1rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .9rem;
  font-size: .9375rem; color: var(--muted-foreground); text-align: center;
}
.hm-rating__in strong { color: var(--sage-deep); font-weight: 600; }
.hm-rating__in a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.hm-stars { color: var(--terracotta); letter-spacing: 2px; }

/* ---------- Usługi na głównej ---------- */
.hm-svc-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.hm-svc {
  display: flex; flex-direction: column; gap: .6rem; padding: 1.75rem;
  background: var(--sand); border: 1px solid transparent; color: inherit; text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.hm-svc:hover { border-color: var(--sage); background: color-mix(in oklab, var(--sand) 70%, var(--background)); }
.hm-svc h3 { line-height: 1.2; }
.hm-svc p { color: var(--muted-foreground); font-size: .9375rem; line-height: 1.6; }
.hm-svc__more { margin-top: auto; padding-top: .5rem; display: inline-flex; align-items: center; gap: .5rem; color: var(--terracotta); font-size: .875rem; }
.hm-svc-rest { margin-top: 2.75rem; display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.hm-label { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: .8rem; }
.hm-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.hm-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem;
  border: 1px solid color-mix(in oklab, var(--sage) 45%, transparent); border-radius: 2px;
  font-size: .875rem; color: var(--sage-deep); text-decoration: none; transition: background-color .2s, border-color .2s;
}
.hm-chip:hover { background: var(--sand); border-color: var(--sage); }

/* Kotwice usług: nie chowają się pod przyklejonym nagłówkiem */
.hm-anchor { scroll-margin-top: 6.5rem; }

/* ---------- Opinie: karuzela ze strzałkami pod spodem ---------- */
.hm-carousel { margin-top: 3rem; }
.hm-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3rem) / 3); gap: 1.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: .25rem; margin: -.25rem; overscroll-behavior-x: contain;
}
.hm-track::-webkit-scrollbar { display: none; }
@media (max-width: 1023px) { .hm-track { grid-auto-columns: calc((100% - 1.5rem) / 2); } }
@media (max-width: 639px) { .hm-track { grid-auto-columns: 86%; gap: 1rem; } }
.hm-review {
  scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; gap: 1rem;
  padding: 1.75rem; background: var(--background); border: 1px solid var(--border); text-align: left;
}
.hm-review blockquote { margin: 0; flex: 1; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.4; color: var(--foreground); }
.hm-review figcaption { display: flex; flex-direction: column; gap: .15rem; font-size: .875rem; }
.hm-review__name { color: var(--sage-deep); font-weight: 500; }
.hm-review__spec { color: var(--muted-foreground); font-size: .8125rem; }
.hm-arrows { display: flex; justify-content: center; gap: .75rem; margin-top: 2rem; }
.hm-arrow {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--sage); background: var(--background); color: var(--sage-deep);
  transition: background-color .2s, color .2s;
}
.hm-arrow:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--primary-foreground); }
.hm-reviews-more { margin-top: 1.25rem; text-align: center; font-size: .9375rem; }
.hm-reviews-more a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Blok kontaktu na dole głównej ---------- */
.hm-contact { background: var(--sage-deep); color: var(--primary-foreground); }
.hm-contact__in {
  max-width: 72rem; margin: 0 auto; padding: 6rem 1.5rem;
  display: grid; gap: 3rem 4rem; grid-template-columns: 1.15fr 1fr; align-items: start;
}
.hm-contact h2 { font-size: 3rem; line-height: 1.1; }
.hm-contact__lead { margin-top: 1rem; max-width: 30rem; color: rgba(254,251,248,.85); line-height: 1.65; }
.hm-contact__tels { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .25rem 2rem; }
.hm-contact__tels a { font-family: var(--font-display); font-size: 1.85rem; color: var(--primary-foreground); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.hm-contact__tels a:hover { text-decoration: underline; text-underline-offset: 6px; }
.hm-contact__mail { display: inline-flex; align-items: center; min-height: 44px; color: rgba(254,251,248,.85); text-decoration: underline; text-underline-offset: 4px; }
.hm-contact__btns { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hm-contact__places { display: grid; gap: 1.25rem; }
.hm-place { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.5rem; border: 1px solid rgba(254,251,248,.22); }
.hm-place svg { color: var(--sage-soft); margin-top: .3rem; }
.hm-place h3 { font-size: 1.5rem; line-height: 1.2; margin-bottom: .35rem; }
.hm-place p { color: rgba(254,251,248,.85); font-size: .9375rem; }
.hm-place a { display: inline-flex; align-items: center; min-height: 44px; color: var(--primary-foreground); font-size: .875rem; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 899px) {
  .hm-contact__in { grid-template-columns: 1fr; padding: 3.5rem 1.5rem; }
  .hm-contact h2 { font-size: 2.25rem; }
  .hm-contact__tels a { font-size: 1.6rem; }
}

/* ---------- Telefon ---------- */
.hm-dock { display: none; }
@media (max-width: 1023px) {
  .hm-dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in oklab, var(--background) 94%, transparent);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
  }
  .hm-dock .hm-btn { min-height: 48px; padding-inline: .75rem; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 767px) {
  header a[aria-label] > span > span { font-size: .625rem; letter-spacing: .12em; }
  .hm-hero-h1 { font-size: 2.125rem !important; line-height: 1.15 !important; }
  .hm-hero-cta .hm-btn { flex: 1 1 100%; }
  .hm-svc { padding: 1.4rem; }
  .hm-review { padding: 1.4rem; }
  .hm-review blockquote { font-size: 1.2rem; }
}

/* ---------- Blog na wspólnym szablonie ---------- */
.hm-mnav { position: relative; }
.hm-mnav > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; color: var(--sage-deep); }
.hm-mnav > summary::-webkit-details-marker { display: none; }
.hm-mnav > nav {
  position: fixed; left: 0; right: 0; top: 80px; z-index: 49;
  display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.5rem 1.5rem;
  background: var(--background); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 32px rgba(0,0,0,.08);
}
.hm-mnav > nav a { padding: .75rem .5rem; color: color-mix(in oklab, var(--foreground) 80%, transparent); text-decoration: none; font-size: 1rem; }
.hm-mnav > nav a.hm-on { color: var(--sage-deep); font-weight: 500; }
.hm-mnav > nav .hm-btn { margin-top: .5rem; color: var(--primary-foreground); }
@media (min-width: 1024px) { .hm-mnav { display: none; } }
.hm-cta-row { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.blog-cta .hm-cta-row a.hm-btn { color: var(--primary-foreground); font-weight: 500; }
.blog-cta .hm-cta-row a.hm-btn--ghost { color: var(--sage-deep); }
.blog-cta .hm-cta-row a.hm-btn--ghost:hover { color: var(--primary-foreground); }

/* mail w wąskiej kolumnie stopki */
footer a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Sekcja #kontakt na dole każdej podstrony */
.hm-contact__info { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(254,251,248,.22); max-width: 32rem; font-size: .875rem; line-height: 1.6; color: rgba(254,251,248,.75); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ================= Telefon: wygoda i orientacja (runda 08.10) ================= */

/* Pasek "przejdź do" na Usługach, Warsztatach, Specjalistach */
.hm-jump { background: var(--background); border-bottom: 1px solid var(--border); }
.hm-jump__in { max-width: 72rem; margin: 0 auto; padding: .9rem 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.hm-jump__a {
  display: inline-flex; align-items: center; min-height: 40px; padding: .35rem .95rem; white-space: nowrap;
  border: 1px solid color-mix(in oklab, var(--sage) 45%, transparent); border-radius: 999px;
  font-size: .875rem; color: var(--sage-deep); text-decoration: none; transition: background-color .2s, color .2s;
}
.hm-jump__a:hover { background: var(--sand); }
.hm-jump__a.is-on { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--primary-foreground); }
.hm-jump__a:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
@media (max-width: 1023px) {
  .hm-jump { position: sticky; top: 80px; z-index: 40; box-shadow: 0 6px 14px -12px rgba(0,0,0,.35); }
  .hm-jump__in { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: .6rem 1rem; scrollbar-width: none; scroll-padding-inline: 1rem; }
  .hm-jump__in::-webkit-scrollbar { display: none; }
  .hm-anchor--bar { scroll-margin-top: 9.25rem; }
}

@media (max-width: 767px) {
  /* nadtytuły: mniejsze rozstrzelenie, żeby nie łamały się na 3-4 wiersze */
  .tracking-\[0\.32em\], .tracking-\[0\.28em\] { letter-spacing: .14em !important; }
  .tracking-\[0\.2em\] { letter-spacing: .12em !important; }
  .hm-hide-m { display: none !important; }

  /* karty usług i warsztatów: mniej pustego miejsca */
  .hm-card { padding: 1.25rem !important; gap: .9rem; }
  .hm-card h2, .hm-card h3.font-display { font-size: 1.6rem !important; line-height: 1.2 !important; }
  .hm-info { padding: 1rem 1.1rem !important; }
  .space-y-16 > :not(:last-child) { margin-bottom: 2rem !important; }
  .hm-svc { padding: 1.2rem; gap: .4rem; }
  .hm-svc h3 { font-size: 1.4rem !important; }
  .hm-svc-grid { gap: .75rem; }

  /* kontakt: numery jeden pod drugim, przyciski na całą szerokość */
  .hm-contact__tels { flex-direction: column; gap: 0; }
  .hm-contact__btns .hm-btn { flex: 1 1 100%; }

  /* stopka: linki w dwóch kolumnach, wygodne do kliknięcia */
  footer ul.space-y-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  footer ul.space-y-2 > * { margin: 0 !important; }
  footer ul.space-y-2 a { display: inline-flex; align-items: center; min-height: 44px; }
  footer .md\:flex-row p { text-align: center; }
}

/* specjaliści na telefonie: zdjęcie obok imienia zamiast na cały ekran */
@media (max-width: 639px) {
  .hm-person { display: grid !important; grid-template-columns: 96px minmax(0, 1fr); column-gap: 1rem; align-items: start; }
  .hm-person > :first-child { grid-row: 1 / span 4; width: 96px; aspect-ratio: 4 / 5; }
  .hm-person > :not(:first-child) { grid-column: 2; }
  .hm-person > h3 { margin-top: 0 !important; }
  .hm-person h3 { font-size: 1.35rem !important; line-height: 1.2; }
  .hm-person__txt { margin-top: 0 !important; }
  .hm-person__txt p.uppercase { text-transform: none; letter-spacing: 0; font-size: .875rem; margin-top: .25rem; }
  .hm-person__txt p:last-child { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-top: .6rem; }
  .hm-person__cta { grid-column: 1 / -1 !important; margin-top: 1rem !important; }
  .gap-y-14 { row-gap: 2.25rem !important; }
  .hm-person + .hm-person { padding-top: 0; }
  .grid.gap-8 > .hm-person { padding-bottom: .25rem; }
}

/* blog: cała karta wpisu klikalna */
.blog-card { position: relative; }
.blog-card a.read::after { content: ""; position: absolute; inset: 0; }

/* okno "Pełny opis": duży krzyżyk, dolny pasek nie zasłania treści */
#_bio_modal button[onclick*="_closeBio"] { width: 44px; height: 44px; top: .5rem !important; right: .5rem !important; font-size: 1.75rem !important; display: grid; place-items: center; }
body:has(#_bio_modal[style*="flex"]) .hm-dock { display: none; }
@media (max-width: 639px) { #_bio_modal > div { padding: 1.75rem 1.4rem !important; max-height: 88vh !important; } }

/* 11.10.2026: przycisk na dole kazdej karty uslugi (karty to flex-col, mt-auto dociska do dolu) */
.hm-usluga-cta { margin-top: auto; align-self: flex-start; }
/* podpis Taro Media: osobny, wysrodkowany wiersz pod stopka */
.hm-tworcy { text-align: center; padding: 0 24px 22px; }
.hm-tworcy .tworcy { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: rgba(0,0,0,.5); text-decoration: none; }
.hm-tworcy .tworcy img { width: 22px !important; height: auto !important; max-width: none; display: block; opacity: .8; }
.hm-tworcy .tworcy b { font-weight: 600; color: rgba(0,0,0,.75); }
.hm-tworcy .tworcy:hover { color: rgba(0,0,0,.8); }

/* 11.10.2026: znak ZnanyLekarz przy odnosnikach do znanylekarz.pl (przyciski, opinie, specjalisci, stopka) */
a[href*="znanylekarz.pl"]::before {
  content: ""; display: inline-block; flex: 0 0 auto; width: 1.05em; height: 1.05em;
  margin-right: .5em; vertical-align: -.17em; background-color: currentColor;
  -webkit-mask: url(/assets/znanylekarz-znak.png) center / contain no-repeat;
          mask: url(/assets/znanylekarz-znak.png) center / contain no-repeat;
}
/* linki, ktore juz sa flexem z odstepem (gap), nie potrzebuja marginesu */
a.inline-flex[href*="znanylekarz.pl"]::before, .hm-btn[href*="znanylekarz.pl"]::before { margin-right: 0; }
.hm-btn[href*="znanylekarz.pl"] { gap: .55em; }
