:root {
  --ink: #101d24;
  --ink-soft: #5c6c72;
  --accent: #11596b;
  --accent-dark: #0d4655;
  --accent-light: #2d6d80;
  --accent-tint: #eaf3f4;
  --bg: #ffffff;
  --bg-alt: #f5f7f8;
  --line: #dde7ea;
  --dark: #101d24;
  /* Stopka: ten sam petrol co akcent w nagłówku, o kilka tonów ciemniejszy
     (hsl 192° — jasność 24% → 17%). Kontrast bieli 11,6:1. */
  --footer-bg: #0c3e4b;
  --footer-text: #a7c0c7;
  /* Pasek CTA: ten sam kolor co stopka, żeby dół strony był jednolity. */
  --cta-bg: #0c3e4b;
  --shadow-ink: 12, 24, 29;
  --radius: 8px;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-display: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

a {
  color: var(--accent);
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.narrow {
  width: min(760px, 92%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 70;
  will-change: transform;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-light {
  background: #fff;
  color: var(--accent-dark);
}

.btn-light:hover {
  background: var(--accent-tint);
}

.topbar {
  background: var(--dark);
  color: #c9c8ce;
  font-size: 0.85rem;
  padding: 0.45rem 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem 1.5rem;
  flex-wrap: wrap;
}

.topbar-title {
  font-weight: 500;
}

.topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.tb-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.tb-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  height: 46px;
  width: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
  white-space: nowrap;
}

/* Pozycja dla lekarzy: na desktopie zamiast niej działa link w górnym
   pasku, bo ósma pozycja nie mieści się już w szerokości nagłówka. */
.nav-docs {
  display: none;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav .nav-cta {
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(480px, 58vw, 640px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 54%;
  border-radius: 28px 0 0 28px;
  overflow: hidden;
}

.hero-media img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 108%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transform: translateY(-50%);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .doctor-photo img {
    transform: translateY(-50%) !important;
  }
}

.hero-split-inner {
  position: relative;
  z-index: 1;
}

.hero-stage {
  max-width: 480px;
  padding: clamp(2.4rem, 6vw, 4rem) 0;
}

.hero-hours {
  margin-top: 1.8rem;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.hero-hours a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.hero-hours a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 42vh;
    min-height: 280px;
    order: -1;
    border-radius: 0 0 28px 28px;
  }

  .hero-stage {
    max-width: none;
    padding: 2.4rem 0 2.8rem;
  }
}

.cookie-bubble {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 320px;
  max-height: calc(100dvh - 2.4rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 90;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1rem;
  text-align: left;
  box-shadow:
    0 2px 6px rgba(var(--shadow-ink), 0.06),
    0 22px 48px rgba(var(--shadow-ink), 0.16);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-bubble.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .cookie-bubble {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
    max-height: calc(100dvh - 2rem);
  }
}

.cookie-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.cookie-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #e8b36b, #a96c2c);
}

.cookie-text {
  font-size: 0.93rem;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}

.cookie-info {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
  overflow: visible;
}

.cookie-info[open] {
  border: 0;
  box-shadow: none;
}

.cookie-info summary {
  padding: 0.1rem 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.cookie-info summary::after {
  display: none;
}

.cookie-info p {
  padding: 0.3rem 0 0;
  font-size: 0.76rem;
  line-height: 1.5;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}

.hl {
  color: var(--accent);
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.hero-badges li {
  background: #fff;
  border: 1px solid rgba(17, 89, 107, 0.28);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.review {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 10px 26px rgba(var(--shadow-ink), 0.07);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.review-name {
  font-weight: 600;
  line-height: 1.3;
}

.review-src {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.review-stars {
  color: #f6a725;
  font-size: 1.1rem;
  letter-spacing: 3px;
}

.review-text {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.review > a {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
}

.hours div {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.hours div:last-child {
  border-bottom: 0;
}

.hours dt {
  font-weight: 500;
}

.hours dd {
  font-variant-numeric: tabular-nums;
}

.hours .closed {
  color: #9a99a3;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.8rem;
}

.chapter {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

.chapter::after {
  content: "";
  width: 44px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.5;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.7rem;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Zakres leczenia: dwie usługi o różnej wadze — endodoncja dostaje
   szerszą kartę, zachowawcza węższą. Asymetria komunikuje specjalizację. */
.offer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.offer-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(17, 89, 107, 0.22);
  border-radius: var(--radius);
  padding: 2rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.offer-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(var(--shadow-ink), 0.09);
}

.offer-card-primary {
  background: var(--accent-tint);
}

.offer-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(17, 89, 107, 0.3);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  margin-bottom: 1rem;
}

.offer-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.offer-card-primary h3 {
  font-size: 1.55rem;
}

.offer-card > p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 1.4rem;
}

.offer-link {
  margin-top: auto;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.offer-card:hover .offer-link {
  text-decoration: underline;
}

/* Baza wiedzy — lista artykułów, karty równej wagi */
.kb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .kb-grid {
    grid-template-columns: 1fr;
  }
}

/* Strona "Zakres leczenia": opis usług prozą zamiast kafelków —
   przy dwóch usługach karty tylko rozrzedzają treść. */
.offer-detail {
  max-width: 46rem;
}

.offer-detail + .offer-detail {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.offer-detail h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 1rem;
}

.offer-detail p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.offer-detail h3 {
  font-size: 1.15rem;
  margin-top: 2.2rem;
}

.offer-detail .btn {
  margin-top: 1.6rem;
}

.case-list {
  list-style: none;
  display: grid;
  gap: 1.3rem;
  margin-top: 1.2rem;
}

.case-list li {
  color: var(--ink-soft);
  font-size: 0.98rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--accent);
}

.case-list strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.equip-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.equip-list li {
  color: var(--ink-soft);
  font-size: 0.98rem;
  padding-top: 1rem;
  border-top: 2px solid var(--accent);
}

.equip-list strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}

.referral {
  background: var(--accent-tint);
  border: 1px solid rgba(17, 89, 107, 0.22);
  border-radius: var(--radius);
  padding: 2rem;
}

.referral h2 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

.referral p {
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
}

.referral a {
  font-weight: 600;
}

/* Zobowiązanie wobec lekarza kierującego — wyróżnione, bo to główna
   obawa przy kierowaniu pacjenta do innego gabinetu. */
.referral-pledge {
  background: #fff;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.95rem 1.15rem;
  color: var(--ink);
  font-weight: 500;
}

/* Artykuł edukacyjny (bol-zeba.html) */
.article h2 {
  font-size: 1.45rem;
  margin: 2.6rem 0 0.9rem;
  clear: both;
}

.article > p:first-child {
  font-size: 1.05rem;
}

.article p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.article strong {
  color: var(--ink);
}

.article ul:not(.stages),
.article ol {
  color: var(--ink-soft);
  margin: 0 0 1rem 1.3rem;
  display: grid;
  gap: 0.35rem;
}

.article-chain {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
}

/* Ilustracje w artykule — panele wycięte z infografiki pacjenta */
.article-fig {
  margin: 1.6rem 0 2rem;
}

.article-fig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.article-fig figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Szeroki pasek — wychodzi poza wąską kolumnę tekstu jak .stages */
.article-fig--wide {
  clear: both;
  width: min(984px, 92vw);
  margin-left: 50%;
  transform: translateX(-50%);
}

/* Mniejszy panel opływany tekstem po prawej */
.article-fig--right {
  float: right;
  width: min(290px, 46%);
  margin: 0.3rem 0 1rem 1.5rem;
}

@media (max-width: 640px) {
  .article-fig--right {
    float: none;
    width: min(320px, 100%);
    margin: 1.2rem auto;
  }
}

/* Stadia rozwoju korzenia — pasek ponumerowanych kart */
/* Pasek wychodzi poza wąską kolumnę tekstu, żeby pięć kart miało oddech.
   Na mobile szerokości się zrównują i breakout jest neutralny. */
.stages {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 1.6rem 0 2rem;
  width: min(1080px, 92vw);
  margin-left: 50%;
  transform: translateX(-50%);
}

.stage {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.2rem;
}

.stage-fig {
  margin-bottom: 0.9rem;
  text-align: center;
}

.stage-fig img {
  display: block;
  width: auto;
  height: 150px;
  margin: 0 auto;
}

.stage-num {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.stage strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.stage p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Dwie metody leczenia zestawione obok siebie */
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.6rem 0 1rem;
}

.method-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
}

.method-card h3 {
  font-size: 1.15rem;
  margin: 0.6rem 0 0.9rem;
}

.method-card ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.2rem;
  padding: 0;
}

.method-card li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.method-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.method-effect {
  margin-top: auto;
  background: #fff;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  color: var(--ink);
}

@media (max-width: 900px) {
  .stages {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .stages {
    grid-template-columns: 1fr;
  }
}

.article-keypoint {
  background: var(--accent-tint);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.3rem 1.4rem;
  margin-bottom: 1rem;
}

.article-keypoint p:last-child {
  margin-bottom: 0;
}

.faq-more {
  margin-top: 1.6rem;
}

.faq-more a {
  font-weight: 600;
  color: var(--accent);
}

.split h2 {
  margin-bottom: 0.9rem;
}

.split > div > p {
  margin-bottom: 0.9rem;
}

@media (max-width: 800px) {
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .equip-list {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

}

.tooth-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.18));
}

.tooth-float {
  animation: tooth-float 6s ease-in-out infinite;
}

@keyframes tooth-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.section-blue {
  background: var(--accent-tint);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.fact:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(var(--shadow-ink), 0.1);
}

.fact-year {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.fact p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.section-blue h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 1rem;
}

.lead-blue {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.split-review {
  align-items: center;
}

.split-review > div > p:not(.eyebrow) {
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}

.review-featured {
  max-width: 30rem;
  padding: 1.9rem 2.1rem;
}

.review-featured .review-text {
  font-size: 1.02rem;
  color: var(--ink);
}

.review-featured .review-name {
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .review-featured {
    max-width: none;
  }
}

.checklist {
  list-style: none;
  display: grid;
  gap: 1.1rem;
}

.checklist-grid {
  grid-template-columns: 1fr 1fr;
  column-gap: 3rem;
  max-width: 62rem;
}

@media (max-width: 700px) {
  .checklist-grid {
    grid-template-columns: 1fr;
  }
}

.checklist li {
  position: relative;
  padding-left: 2.1rem;
  color: var(--ink-soft);
}

.checklist li strong {
  color: var(--ink);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.doctor-photo {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.8rem;
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  box-shadow: 0 14px 32px rgba(var(--shadow-ink), 0.14);
}

.doctor-photo img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  display: block;
  transform: translateY(-50%);
  will-change: transform;
}

.doctor-title {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.1rem;
}

#lekarz p + p {
  margin-top: 1rem;
}

.doctor-facts {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid var(--line);
}

.doctor-facts h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.doctor-facts ul {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.doctor-facts li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.98rem;
}

.doctor-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 3px;
  background: var(--accent);
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

details[open] {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(var(--shadow-ink), 0.08);
}

summary {
  cursor: pointer;
  padding: 1.15rem 3.2rem 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s;
}

details[open] summary::after {
  content: "–";
}

details p {
  padding: 0 3.2rem 1.3rem 1.4rem;
  color: var(--ink-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.contact-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(var(--shadow-ink), 0.1);
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.contact-card p {
  color: var(--ink-soft);
}

.contact-card p + p {
  margin-top: 0.7rem;
}

.contact-phone a {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.contact-phone a:hover {
  color: var(--accent);
}

.map-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 600;
}

.hours-compact div {
  border-bottom: 1px solid var(--line);
}

.cta-band {
  padding: 0 0 5rem;
  background: var(--bg);
}

.cta-inner {
  background: var(--cta-bg);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.6rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .cta-inner {
    padding: 2.4rem 1.8rem;
  }
}

.callbar {
  display: none;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.2rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
  height: 58px;
  width: auto;
  display: block;
  margin-bottom: 0.9rem;
}

.footer-brand .brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.footer-brand .brand-sub {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-text);
  margin: 0.25rem 0 0.9rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col p {
  margin-bottom: 0.7rem;
}

.footer-col a {
  color: var(--footer-text);
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
}

.footer-hours {
  display: grid;
  gap: 0;
}

.footer-hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-hours div:last-child {
  border-bottom: 0;
}

.footer-hours dd {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-credit {
  width: 100%;
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-credit a {
  color: inherit;
}

.footer-legal {
  width: 100%;
  font-size: 0.8rem;
}

.footer-legal a {
  color: inherit;
  opacity: 0.85;
}

.footer-legal a:hover {
  opacity: 1;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.legal p a {
  color: var(--accent);
}

.legal-list {
  list-style: disc;
  padding-left: 1.4rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  display: grid;
  gap: 0.4rem;
}

.legal .related-links {
  padding-top: 2.4rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tooth-float {
    animation: none;
  }
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .hero-stage {
    padding: 7vh 0 0;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Menu zwija się do przycisku poniżej 1180 px. Siedem pozycji plus przycisk
   z telefonem zajmuje ok. 1080 px obok logo, więc poniżej tej szerokości
   etykiety zaczynały się łamać na dwie linie. */
@media (max-width: 1180px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 4%;
    gap: 1.1rem;
    z-index: 60;
  }

  .site-nav.open {
    display: flex;
  }

  /* W menu mobilnym jest miejsce na pozycję dla lekarzy kierujących,
     na desktopie link żyje w górnym pasku. */
  .nav-docs {
    display: block;
  }
}

@media (max-width: 640px) {
  .topbar-title {
    display: none;
  }

  .topbar-inner {
    justify-content: center;
  }

  .hero {
    padding: 3.2rem 0 3rem;
  }

  .section {
    padding: 3.4rem 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .callbar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 0.7rem 4%;
    padding-bottom: calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 0.3s ease;
  }

  .callbar.show {
    transform: none;
  }

  .callbar-btn {
    display: block;
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  body {
    padding-bottom: 0;
  }

  .site-footer {
    padding-bottom: 5.2rem;
  }
}

/* Multi-page navigation: active link, subpage intro banner, home hub
   grid and cross-page related-content cards. */
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.page-hero {
  padding: 3.4rem 0 2.8rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  margin-bottom: 0.7rem;
}

.breadcrumb a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.breadcrumb a:hover {
  text-decoration-color: currentColor;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin-bottom: 0.8rem;
}

.page-hero .lead {
  margin-bottom: 0;
  max-width: 42rem;
}

.related-links {
  padding: 3.2rem 0 0;
}

.related-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(var(--shadow-ink), 0.08);
}

.related-card span {
  color: var(--accent);
  flex-shrink: 0;
}

