:root {
  --ink: #1c1c1c;
  --tinta: #f6f6f6;
  --bg: #ffffff;
  --line: #e7e4dc;
  --muted: #5a5a56;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  line-height: 1.65;
  font-size: 1rem;
}

a { color: var(--ink); }
img { max-width: 100%; display: block; }

/* --- Nagłówki i tekst --- */

.page-title, .section h2, .faq-cat, .location-card h2, .section h3, .screen h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

.page-title { font-size: 1.7rem; margin: 30px 0 20px; text-align: center; }
.section h2 { font-size: 1.3rem; margin: 0 0 16px; }
.section h3 { font-size: 1.05rem; margin: 24px 0 10px; }

.quote {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.15rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

.lead::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  float: left;
  font-size: 3.2em;
  line-height: 0.8;
  padding: 0.05em 0.08em 0 0;
}

/* --- Nagłówek podstron (nie-hero) --- */

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 10px;
}

.site-header .brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

/* --- Nawigacja (współdzielona: header podstron i hero) --- */

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.nav-toggle:focus-visible ~ .nav-toggle-label {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.nav-toggle-label {
  display: none;
  font-family: 'Lora', serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Lora', serif;
}

.site-nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.site-nav a:hover { border-bottom-color: currentColor; }

@media (max-width: 760px) {
  .nav-toggle-label { display: inline-block; }

  .site-nav {
    display: none;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    background: var(--bg);
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* --- Hero (tylko strona główna) --- */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero .bg {
  position: absolute;
  inset: 0;
  background: url('/assets/hero-bg.jpg') center/cover no-repeat;
  background-image: image-set(url('/assets/hero-bg.webp') type('image/webp'), url('/assets/hero-bg.jpg') type('image/jpeg'));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7);
}

.hero-inner h1 {
  font-family: 'Marck Script', cursive;
  font-weight: 400;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  margin: 0;
  line-height: 1.3;
}

.hero-name {
  display: block;
  font-size: clamp(1.9rem, 6.5vw, 2.6rem);
  margin-top: 4px;
}

/* --- Sekcje-akcenty na stronie głównej (nie pełnoekranowe) --- */

.screen p, .section p{
  text-align: left;
}
.screen p.text-center, .section p.text-center{
  text-align: center;
}
.screen p.signature, .section p.signature{
  text-align: right;
}

.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.screen.double-padding-top {
  padding-top: 80px;
}

.screen.tinta, .section.tinta  {
  background-color: #f6f6f6;
}

.screen h2 {
  font-size: 1.5rem;
  margin: 0 0 20px;
  max-width: 560px;
}

/* Sekcja treści zagnieżdżona w .screen (np. połączony blok "Umów się na
   wizytę" z adresami placówek) potrzebuje pełnej szerokości nagłówka,
   nie wąskiego 560px z .screen h2 powyżej. */
.screen .section h2 {
  max-width: 100%;
}

.text-center {
  text-align: center;
}

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 30px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background-color: var(--tinta);
  text-decoration: none;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s, color 0.15s;

}

.btn:hover { background: var(--ink); color: #fff; }

button.btn {
  background: transparent;
  cursor: pointer;
  font: inherit;
  letter-spacing: normal;
}

/* Nadpisuje własną grafikę tła wtyczki MyDr (mydr-pp.min.css ładuje się
   po naszym arkuszu i narzuca stały baner 129x317px), żeby przycisk
   wyglądał jak reszta .btn na stronie. */
button.btn-mydr-pp {
  background: #f6f6f6 !important;
  height: auto !important;
  max-width: none !important;
  width: auto !important;
}
button.btn-mydr-pp:hover {
  background-color: var(--ink) !important;
  color: #fff;
  }

.reasons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 640px;
  text-align: left;
}

.r-title { font-weight: 600; margin-bottom: 4px; }
.r-title::before { content: "●"; color: var(--ink); font-size: 0.55em; margin-right: 8px; vertical-align: middle; }

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

/* --- Zwykłe sekcje treści (podstrony i dół strony głównej) --- */

.section {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 20px;
}

.section.no-padding { padding: 0; }

.section ul { padding-left: 1.2em; }
.section li { margin-bottom: 8px; }

.signature {
  text-align: right;
  font-style: italic;
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.4;
}

.note {
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
}

/* Statyczny zrzut mapy (link do Google Maps) na stronach placówek */
.map-link {
  display: block;
  max-width: 100%;
  margin: 20px auto 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-link img {
  width: 100%;
  height: auto;
  transition: opacity 0.15s;
}

.map-link:hover img {
  opacity: 0.85;
}

/* --- Karty placówek (/kontakt/) --- */

.location-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 20px;
}

.location-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 20px;
  text-align: center;
}

.location-card h2 { font-size: 1.1rem; margin-bottom: 10px; }

@media (max-width: 600px) {
  .location-cards { grid-template-columns: 1fr; }
}

/* --- Akordeon FAQ --- */

.section h2.faq-cat {
  font-size: 1.15rem;
  margin: 36px 0 8px;
}

.faq-item { border-bottom: 1px solid var(--line); padding: 4px 0; }

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  padding: 12px 30px 12px 2px;
  position: relative;
  font-family: 'Lora', serif;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 10px;
  font-size: 1.2rem;
  color: var(--ink);
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-answer {
  padding: 0 4px 16px 14px;
  border-left: 2px solid var(--ink);
  margin: 0 0 0 2px;
  color: var(--muted);
}

/* --- Stopka --- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 20px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer a { color: var(--muted); }
.site-footer p { margin: 4px 0; }

.credit-link {
  text-decoration: underline;
  transition: opacity 0.15s;
}

.credit-link:hover {
  opacity: 0.65;
}

/* --- Baner zgody na cookies (Google Analytics / Google Ads) --- */

.btn-primary {
  background: var(--ink) !important;
  color: var(--tinta);
}

.btn-primary:hover {
  background: var(--tinta) !important;
  color: var(--ink);
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent p {
  margin: 0;
  max-width: 500px;
  font-size: 0.88rem;
  text-align: center;
  color: var(--ink);
}

.cookie-consent__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cookie-consent {
    flex-direction: column;
    text-align: center;
  }
}
