/* ============================================================
   ALEGORIA — Gabinet Psychoterapii · Chorzów
   Arkusz stylów
   ============================================================ */

:root {
  /* Kolory */
  --teal-900: #234a4e;
  --teal-700: #2f5d62;
  --teal-500: #3f7a80;
  --teal-100: #dcebe9;
  --gold:      #e8c98f;
  --gold-deep: #c9a35f;
  --cream:     #faf7f1;
  --cream-2:   #f3ede2;
  --white:     #ffffff;
  --ink:       #2a2e2e;
  --muted:     #5e6968;
  --line:      #e3ddcf;

  /* Status (wyniki) */
  --good:  #4f8a6b;
  --good-bg:  #e7f1ea;
  --watch: #cf9a3f;
  --watch-bg: #f6ecd5;
  --focus: #c2674f;
  --focus-bg: #f6e3dc;

  /* Typografia */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Wymiary */
  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 14px 40px -18px rgba(35, 74, 78, 0.35);
  --shadow-sm: 0 6px 18px -10px rgba(35, 74, 78, 0.4);
  --transition: 0.25s ease;
}

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { display: block; max-width: 100%; }

a { color: var(--teal-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-900); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--teal-900); margin: 0 0 .4em; }

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

/* ---------- Nagłówek / nawigacja ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--teal-700); }
.brand-mark { width: 38px; height: 38px; color: var(--teal-700); flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; letter-spacing: .3px; color: var(--teal-900); }
.brand-sub { font-size: .68rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: .92rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.main-nav a:hover { color: var(--teal-700); }
.nav-cta {
  background: var(--teal-700); color: var(--white) !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--teal-900); color: var(--white) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--teal-900); border-radius: 2px; transition: var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-block; cursor: pointer; border: 0; font-family: var(--sans);
  font-weight: 600; font-size: .98rem; padding: 14px 28px; border-radius: 999px;
  transition: var(--transition); text-align: center;
}
.btn-sm { padding: 10px 22px; font-size: .9rem; }
.btn-primary { background: var(--teal-700); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-900); color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--teal-700); border: 1.5px solid var(--teal-500); }
.btn-ghost:hover { background: var(--teal-700); color: var(--white); border-color: var(--teal-700); }
.btn-gold { background: var(--gold); color: var(--teal-900); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(232,201,143,0.28), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  padding: 64px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .76rem; font-weight: 600; color: var(--teal-500); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.1rem); color: var(--teal-900); }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-badges li { position: relative; padding-left: 22px; font-size: .9rem; color: var(--muted); }
.hero-badges li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }

/* Statystyki doświadczenia (hero / o-mnie) */
/* Blok doświadczenia z podpisem terapeuty */
.hero-cred { margin-top: 30px; }
.hero-cred-by {
  margin: 0 0 16px; font-size: .92rem; line-height: 1.5; color: var(--muted);
  max-width: 34em;
}
.hero-cred-by strong { color: var(--teal-900); font-weight: 600; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 0; margin: 0; padding: 0; }
.hero-stats > div { padding: 0 28px; }
.hero-stats > div:first-child { padding-left: 0; }
.hero-stats > div + div { border-left: 1px solid var(--gold-deep); }
.hero-stats dt { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; color: var(--teal-700); line-height: 1.05; }
.hero-stats dd { margin: 2px 0 0; font-size: .82rem; color: var(--muted); max-width: 12em; }

.hero-card {
  background: var(--white); border-radius: 24px; padding: 28px; box-shadow: var(--shadow);
  border: 1px solid var(--line); text-align: center;
}
.hero-svg { width: 100%; max-width: 280px; margin: 0 auto; }

/* ---------- Sekcje ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--cream-2); }
.section-eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .76rem; font-weight: 600; color: var(--teal-500); margin-bottom: 10px; }
.section-title { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 28px; }
.section-intro { font-size: 1.1rem; color: var(--muted); max-width: 60ch; margin-bottom: 36px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two-col p { color: var(--muted); }
.two-col em { color: var(--teal-700); }

.value-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.value-list li { display: flex; gap: 14px; }
.value-ico { color: var(--gold-deep); font-size: 1rem; margin-top: 4px; }
.value-list strong { color: var(--teal-900); }

/* ---------- Karty oferty ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: var(--transition); box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.4rem; }
.card p { color: var(--muted); margin: 0; }
.card-accent { background: linear-gradient(160deg, var(--teal-700), var(--teal-900)); border-color: var(--teal-900); }
.card-accent h3, .card-accent p { color: #fff; }
.card-accent p { color: rgba(255,255,255,0.85); }
.card-link { display: inline-block; margin-top: 14px; color: var(--gold) !important; font-weight: 600; }
.card-link:hover { color: #fff !important; }
.offer-note { text-align: center; color: var(--muted); font-size: .95rem; margin: 30px 0 0; }
.offer-note span { font-style: italic; }

/* ============================================================
   AUTODIAGNOZA — Mapa Wewnętrznego Świata
   ============================================================ */
.quiz {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 40px; max-width: 780px; margin: 0 auto;
}

/* Ekran startowy */
.quiz-intro { text-align: center; }
.quiz-intro .map-emblem { width: 96px; height: 96px; margin: 0 auto 18px; }
.quiz-intro h3 { font-size: 1.8rem; }
.quiz-intro p { color: var(--muted); max-width: 52ch; margin: 0 auto 14px; }
.quiz-areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 28px; }
.quiz-area-chip {
  font-size: .82rem; font-weight: 500; color: var(--teal-700);
  background: var(--teal-100); border-radius: 999px; padding: 7px 15px;
}
.quiz-meta { font-size: .88rem; color: var(--muted); margin-bottom: 26px; }

/* Pasek postępu */
.quiz-progress { margin-bottom: 28px; }
.quiz-progress-bar { height: 8px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.quiz-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-500), var(--gold-deep)); border-radius: 999px; transition: width .35s ease; }
.quiz-progress-label { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-top: 8px; }
.quiz-step-area { font-weight: 600; color: var(--teal-700); }

/* Pytanie */
.quiz-question { animation: fadeUp .4s ease; }
.quiz-q-area { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold-deep); font-weight: 600; margin-bottom: 10px; }
.quiz-q-text { font-family: var(--serif); font-size: 1.6rem; color: var(--teal-900); line-height: 1.3; margin-bottom: 28px; }

/* Rozdroże — wybór wymuszony (dwie karty) */
.vs-situation {
  max-width: 46em; margin: 0 auto 10px; text-align: center;
  font-size: 1.02rem; font-style: italic; color: var(--muted);
  background: var(--cream-2); border-radius: var(--radius-sm); padding: 12px 18px;
}
.vs-lead { font-family: var(--serif); font-size: 1.5rem; color: var(--teal-900); text-align: center; line-height: 1.3; margin-bottom: 26px; }
.quiz-resume { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.vs-cards { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.vs-or {
  align-self: center; font-family: var(--serif); font-style: italic; font-size: 1.1rem;
  color: var(--muted); padding: 0 2px;
}

.vs-card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 18px; transition: var(--transition);
}
.vs-card.chosen { border-color: var(--teal-700); background: var(--teal-100); box-shadow: 0 6px 20px rgba(35, 74, 78, .10); }
.vs-text { margin: 0; flex: 1 1 auto; font-size: 1.04rem; line-height: 1.5; color: var(--ink); }

.vs-btns { display: grid; gap: 8px; }
.vs-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 14px; cursor: pointer; font-family: var(--sans); font-size: .92rem; color: var(--teal-700);
  transition: var(--transition);
}
.vs-btn:hover { border-color: var(--teal-500); background: var(--teal-100); }
.vs-btn.selected { border-color: var(--teal-700); background: var(--teal-700); color: #fff; }
.vs-key {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: .72rem; font-weight: 700; background: var(--cream-2); color: var(--muted);
}
.vs-btn.selected .vs-key { background: rgba(255, 255, 255, .22); color: #fff; }
.vs-btn-label { line-height: 1.1; }

@media (max-width: 720px) {
  .vs-cards { grid-template-columns: 1fr; gap: 12px; }
  .vs-or { padding: 2px 0; }
  .vs-lead { font-size: 1.3rem; }
}

.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.quiz-back { background: none; border: 0; color: var(--muted); cursor: pointer; font-family: var(--sans); font-size: .95rem; padding: 8px 4px; }
.quiz-back:hover { color: var(--teal-700); }
.quiz-back:disabled { opacity: .35; cursor: not-allowed; }

/* Wyniki */
.quiz-results { animation: fadeUp .5s ease; }
.results-head { text-align: center; margin-bottom: 32px; }
.results-head h3 { font-size: 2rem; }
.results-head p { color: var(--muted); max-width: 50ch; margin: 0 auto; }

.results-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: start; }
.radar-wrap { background: var(--cream); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.radar-wrap svg { width: 100%; height: auto; }

.summary-box { background: var(--teal-100); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 22px; }
.summary-box h4 { margin: 0 0 10px; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--teal-700); }
.summary-box .s-line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: .98rem; }
.summary-box .s-line b { font-family: var(--serif); font-size: 1.15rem; }
.summary-strength b { color: var(--good); }
.summary-focus b { color: var(--focus); }
.pattern-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(35, 74, 78, .15); }
.pattern-label { margin: 0 0 4px; font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--teal-700); font-weight: 600; }
.pattern-box p:last-child { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--ink); }

.result-cards { display: grid; gap: 14px; }
.result-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; background: var(--white); }
.result-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.result-card-title { display: flex; align-items: center; gap: 10px; }
.result-card-title h4 { margin: 0; font-family: var(--serif); font-size: 1.3rem; color: var(--teal-900); }
.result-card-sub { font-size: .8rem; color: var(--muted); }
.result-badge { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.badge-good  { background: var(--good-bg);  color: var(--good); }
.badge-watch { background: var(--watch-bg); color: var(--watch); }
.badge-focus { background: var(--focus-bg); color: var(--focus); }

.result-meter { height: 8px; background: var(--cream-2); border-radius: 999px; overflow: hidden; margin: 12px 0; }
.result-meter span { display: block; height: 100%; border-radius: 999px; }
.meter-good  span { background: var(--good); }
.meter-watch span { background: var(--watch); }
.meter-focus span { background: var(--focus); }
.result-card p { font-size: .95rem; color: var(--muted); margin: 6px 0 0; }
.result-card .therapy { margin-top: 10px; font-size: .92rem; color: var(--teal-700); }
.result-card .therapy b { color: var(--teal-900); }

/* Twój styl w relacjach */
.rel-style { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.rel-style h3 { font-size: 1.7rem; text-align: center; margin-bottom: 8px; }
.rel-style-intro { text-align: center; color: var(--muted); max-width: 56ch; margin: 0 auto 22px; font-size: .97rem; }
.rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rel-card p { margin-top: 4px; }
@media (max-width: 720px) { .rel-grid { grid-template-columns: 1fr; } }

/* Adnotacja o niespójnych odpowiedziach */
.consistency-note {
  max-width: 640px; margin: 0 auto 26px; font-size: .9rem; color: var(--muted);
  background: var(--watch-bg); border-left: 3px solid var(--watch);
  padding: 12px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.results-cta { text-align: center; margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.results-cta h4 { font-size: 1.5rem; margin-bottom: 10px; }
.results-cta p { color: var(--muted); max-width: 46ch; margin: 0 auto 20px; }
.results-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.map-emblem { color: var(--teal-700); }

/* ---------- Disclaimer ---------- */
.disclaimer {
  max-width: 780px; margin: 22px auto 0; font-size: .86rem; color: var(--muted);
  background: var(--cream-2); border-left: 3px solid var(--gold-deep);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ============================================================
   CENNIK
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; position: relative; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.price-featured { border-color: var(--teal-700); box-shadow: var(--shadow); transform: translateY(-6px); }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--teal-900); font-size: .72rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; letter-spacing: .3px; }
.price-card h3 { font-size: 1.45rem; }
.price { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--teal-700); margin: 6px 0 18px; line-height: 1.15; }
/* Jednostka zawsze w osobnej linii. W kolumnie cennika jest ok. 154 px, więc kwota
   z jednostką w jednej linii zawijała się raz tak, raz inaczej („200 zł za 90 min"
   łamało się, „160 zł za wizytę" nie) i karty przestawały być równe. */
.price-amt { display: block; white-space: nowrap; }
.price-unit {
  display: block; margin-top: 2px; font-family: var(--sans); font-size: .95rem;
  font-weight: 400; color: var(--muted);
}
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.price-card li { position: relative; padding-left: 24px; color: var(--muted); font-size: .95rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }
.price-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 26px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px; transition: var(--transition); }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--teal-900); cursor: pointer; padding: 16px 0; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold-deep); transition: var(--transition); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: stretch; }
.contact-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.contact-line { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact-line span { font-size: .76rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; padding-top: 3px; }
.contact-note { margin-top: 18px; font-size: .92rem; color: var(--muted); }
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; box-shadow: var(--shadow-sm); }
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ============================================================
   STOPKA
   ============================================================ */
.site-footer { background: var(--teal-900); color: rgba(255,255,255,0.8); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 32px; align-items: start; }
.brand-footer { color: var(--gold); }
.brand-footer .brand-name { color: #fff; }
.footer-tag { font-size: .85rem; color: rgba(255,255,255,0.65); margin-top: 8px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: rgba(255,255,255,0.8); font-size: .92rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-legal { font-size: .85rem; }
.footer-legal p { margin: 0 0 8px; }
.footer-small { color: rgba(255,255,255,0.55); font-size: .78rem; }

/* ============================================================
   ANIMACJE
   ============================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 560px; margin: 0 auto; }
  .price-featured { transform: none; }
  .results-layout { grid-template-columns: 1fr; }
  .radar-wrap { max-width: 420px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Mobilna nawigacja — próg 1040px: 8 pozycji menu (z przełącznikiem EN) + logo
   potrzebuje ok. 1010px, więc przełączamy się na hamburger z zapasem */
@media (max-width: 1040px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--cream);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: var(--transition);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 14px 24px; }
  .nav-cta { text-align: center; margin: 8px 24px; }
}

@media (max-width: 720px) {
  .section { padding: 44px 0; }
  .hero { padding: 40px 0 48px; }
  .section-intro { margin-bottom: 26px; font-size: 1.02rem; }
  .quiz { padding: 26px 20px; }
  .quiz-q-text { font-size: 1.35rem; }
  .hero-stats > div { padding: 0 18px; }
  .hero-stats > div:first-child { padding-left: 0; }
}

@media (max-width: 460px) {
  .cards-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 340px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .contact-cta { flex-direction: column; }
  .contact-cta .btn { width: 100%; }
}

/* Na wąskich ekranach liczby doświadczenia nie mieszczą się obok siebie —
   układamy je pionowo, z liczbą w stałej kolumnie, dzięki czemu opisy
   równają się do jednej linii. (Reguła po innych media queries, by wygrać kaskadę.) */
@media (max-width: 600px) {
  .hero-stats { flex-direction: column; flex-wrap: nowrap; gap: 0; max-width: 22em; }
  .hero-stats > div {
    display: flex; align-items: baseline; gap: 16px;
    padding: 12px 0; border-left: 0; border-top: 1px solid var(--line);
  }
  .hero-stats > div:first-child { border-top: 0; padding-top: 2px; }
  .hero-stats dt { min-width: 2.9em; font-size: 1.85rem; }
  .hero-stats dd { margin: 0; max-width: none; }
}

/* ============================================================
   PODSTRONA — O MNIE / O TERAPEUCIE
   ============================================================ */
.main-nav a[aria-current="page"] { color: var(--teal-700); font-weight: 600; }

.about-hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(232,201,143,0.28), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  padding: 64px 0 72px;
}
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }

.about-photo { margin: 0; max-width: 340px; width: 100%; justify-self: center; }
.about-photo-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--teal-100), var(--cream-2));
}
.about-photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.photo-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center;
  gap: 14px; text-align: center; color: var(--teal-700); padding: 24px;
}
.photo-fallback svg { width: 96px; height: 96px; margin: 0 auto; }
.photo-fallback span { font-size: .8rem; line-height: 1.5; color: var(--muted); }

.about-intro h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); margin-bottom: .1em; }
.about-role { font-family: var(--serif); font-size: 1.35rem; color: var(--teal-700); margin: 0 0 18px; }
.about-intro .lead { font-size: 1.08rem; color: var(--muted); max-width: 38em; }

.cred-block h3 { font-size: 1.45rem; margin-bottom: 12px; }
.cred-list { list-style: none; margin: 0; padding: 0; }
.cred-list li { display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.cred-list li:last-child { border-bottom: 0; }
.cred-years { font-family: var(--serif); font-size: 1.08rem; font-weight: 700; color: var(--gold-deep); white-space: nowrap; padding-top: 1px; }
.cred-what { color: var(--muted); font-size: .96rem; line-height: 1.55; }
.cred-what strong { display: block; color: var(--teal-900); font-weight: 600; }
.cred-note {
  margin-top: 18px; font-size: .93rem; color: var(--muted);
  background: var(--cream-2); border-left: 3px solid var(--gold-deep);
  padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.about-contact { margin-bottom: 26px; }
.about-contact-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }

@media (max-width: 920px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 300px; }
}
@media (max-width: 460px) {
  .cred-list li { grid-template-columns: 1fr; gap: 2px; }
  .about-contact-cta { flex-direction: column; }
  .about-contact-cta .btn { width: 100%; }
}

/* Dostępność — preferencje ruchu */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   DRUK — „Pobierz / wydrukuj mapę" (tylko wynik testu)
   ============================================================ */
@media print {
  @page { size: A4 portrait; margin: 9mm; }
  html, body { background: #fff !important; }
  body { font-size: 10px; padding: 0 !important; }

  /* Chowamy wszystko poza samą mapą wyniku */
  .skip-link, .site-header, .site-footer, .hero, .mobile-bar,
  #o-gabinecie, #dla-kogo, #oferta, #cennik, #faq, #kontakt,
  #autodiagnoza .section-eyebrow, #autodiagnoza .section-title,
  #autodiagnoza .section-intro, #autodiagnoza .disclaimer,
  .quiz-toolbar, .quiz-progress, .quiz-nav,
  .results-cta, .results-actions,
  .results-head p, .rel-style-intro,
  .result-card p, .result-card .therapy, .rel-card p,
  .result-card-sub { display: none !important; }

  .section { padding: 0 !important; }
  .container { padding: 0 !important; max-width: 100% !important; }
  .quiz { box-shadow: none; border: 0; padding: 0; max-width: 100%; }
  .quiz-results, .reveal {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .results-head { text-align: left; margin: 0 0 6px; }
  .results-head h3 { font-size: 15px; margin: 0; }

  /* Radar obok podsumowania */
  .results-layout {
    display: grid !important; grid-template-columns: 46mm 1fr !important;
    gap: 8px !important; align-items: start;
  }
  .radar-wrap { max-width: 100%; margin: 0; border: 0; padding: 0; background: none; }
  .radar-wrap svg { width: 100%; }

  .summary-box { padding: 8px 10px; margin: 0 0 8px; break-inside: avoid; }
  .summary-box h4 { margin: 0 0 4px; font-size: 8px; }
  .summary-box .s-line { margin-bottom: 2px; font-size: 10px; }
  .summary-box .s-line b { font-size: 11px; }
  .pattern-box { margin-top: 5px; padding-top: 5px; }
  .pattern-label { font-size: 7.5px; }
  .pattern-box p:last-child { font-size: 9px; line-height: 1.3; }

  /* Dziewięć obszarów jako zwarte kafelki: nazwa + status + pasek zasobu */
  .result-cards { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 6px; }
  .result-card { padding: 5px 7px !important; border: 1px solid #ddd !important; box-shadow: none !important; break-inside: avoid; }
  .result-card-head {
    flex-direction: row !important; align-items: center; justify-content: space-between;
    gap: 5px; margin: 0;
  }
  .result-card-title h4 { font-size: 10px !important; line-height: 1.15; }
  .result-badge { font-size: 7px; padding: 1px 5px; }
  .result-meter { height: 5px; margin: 5px 0 0; }

  /* Styl w relacjach — zwarto na dole */
  .rel-style { margin-top: 8px; padding-top: 6px; }
  .rel-style h3 { font-size: 12px; text-align: left; margin: 0 0 5px; }
  .rel-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 5px; }
  .rel-card { padding: 5px 7px !important; break-inside: avoid; }
}

/* ============================================================
   PRZEŁĄCZNIK JĘZYKA (PL / EN) w nawigacji
   ============================================================ */
.nav-lang {
  font-size: .76rem; font-weight: 600; letter-spacing: 1px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; color: var(--muted); line-height: 1.6;
}
.nav-lang:hover { border-color: var(--gold-deep); color: var(--teal-900); }

@media (max-width: 1040px) {
  /* w rozwijanym menu pigułka nie może być na całą szerokość */
  .main-nav .nav-lang { align-self: flex-start; margin: 10px 24px 4px; padding: 5px 14px; }
}

/* ============================================================
   DOKUMENTY PRAWNE — polityka prywatności
   ============================================================ */
.legal-lead { font-size: 1.05rem; color: var(--muted); max-width: 60ch; margin-bottom: 8px; }
.legal-updated { font-size: .85rem; color: var(--muted); margin-bottom: 36px; }
.legal h2 {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--teal-900);
  margin: 40px 0 12px; padding-top: 8px; border-top: 1px solid var(--line);
}
.legal h3 { font-size: 1.02rem; font-weight: 600; color: var(--teal-900); margin: 22px 0 6px; }
.legal p { color: var(--ink); margin: 0 0 14px; }
.legal ul { color: var(--ink); margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; }
.legal .legal-box {
  background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px; margin: 0 0 18px;
}
.legal .legal-box p { margin: 0; }
.legal-fill {
  background: var(--watch-bg); border-radius: 4px; padding: 1px 6px;
  font-weight: 600; color: #8a6410;
}

/* ============================================================
   v9 — DOSTĘPNOŚĆ, HERO-FOTO, „DLA KOGO", FORMULARZ, PASEK MOBILNY
   Uzupełnienia projektowane mobile-first (bazowo telefon,
   media (min-width) rozbudowują widok na większe ekrany).
   ============================================================ */

/* ---- Skip-link (przeskok do treści) ---- */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  background: var(--teal-900); color: #fff; padding: 10px 16px;
  border-radius: 999px; font-weight: 600; font-size: .9rem;
  transform: translateY(-150%); transition: transform var(--transition);
}
.skip-link:focus { transform: translateY(0); color: #fff; outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- Widoczny fokus na klawiaturze (dostępność) ---- */
:focus-visible {
  outline: 2.5px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible, .nav-cta:focus-visible, .mobile-bar-btn:focus-visible {
  outline-offset: 3px;
}

/* ---- HERO: zdjęcie terapeuty (widoczne także na telefonie) ---- */
.hero-photo { margin: 0; display: flex; flex-direction: column; align-items: center; }
.hero-photo-frame {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 2 / 3;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--teal-100), var(--cream-2));
}
.hero-photo-frame::after {
  content: ""; position: absolute; inset: 0; border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(201, 163, 95, .35);
  pointer-events: none;
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-photo-cap {
  margin-top: 14px; text-align: center; font-size: .9rem; color: var(--muted); line-height: 1.4;
}
.hero-photo-cap strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--teal-900); font-weight: 600; }

/* Statystyki pod zdjęciem — na telefonie w pionie (czytelniej) */
.hero-art .hero-stats { margin-top: 26px; justify-content: center; }

/* ---- Sekcja „Dla kogo" ---- */
.section-tint {
  background:
    radial-gradient(900px 320px at 15% 0%, rgba(220, 235, 233, .55), transparent 70%),
    var(--cream);
}
.reasons-grid {
  list-style: none; margin: 0 0 8px; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
.reason {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
/* złota krawędź pojawia się przy najechaniu */
.reason::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  opacity: 0; transition: opacity var(--transition);
}
.reason:hover {
  transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d9d2c1;
}
.reason:hover::before { opacity: 1; }
.reason-ico {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center; color: var(--teal-700);
  background: linear-gradient(150deg, var(--teal-100), #eff7f5);
  box-shadow: inset 0 0 0 1px rgba(63, 122, 128, .18);
}
.reason-ico svg { width: 23px; height: 23px; }
.reason-body { min-width: 0; }
.reason h3 {
  margin: 2px 0 3px; font-family: var(--serif); font-weight: 600;
  font-size: 1.2rem; line-height: 1.2; color: var(--teal-900);
}
.reason p {
  margin: 0; font-size: .93rem; line-height: 1.5; color: var(--muted);
  overflow-wrap: anywhere;
}
.reasons-note {
  margin-top: 22px; font-size: .92rem; color: var(--muted);
  background: var(--cream-2); border-left: 3px solid var(--gold-deep);
  padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.reasons-note strong { color: var(--teal-900); }

/* ---- FORMULARZ KONTAKTOWY ---- */
.contact-form-wrap {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow); align-self: start;
}
.contact-form .field { margin-bottom: 16px; }
.contact-form label {
  display: block; font-size: .9rem; font-weight: 600; color: var(--teal-900); margin-bottom: 6px;
}
.contact-form label .opt { font-weight: 400; color: var(--muted); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 14px; transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form textarea { resize: vertical; min-height: 84px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(63, 122, 128, .16); background: var(--white);
}
.contact-form input:user-invalid { border-color: var(--focus); }
.hp-field { position: absolute; left: -9999px; }
.consent {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
  font-size: .86rem; font-weight: 400 !important; color: var(--muted) !important;
  margin: 4px 0 18px; line-height: 1.45; cursor: pointer;
}
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal-700); flex: 0 0 auto; }
.consent a { text-decoration: underline; }
.btn-block { display: block; width: 100%; }
.form-privacy { font-size: .8rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.form-status { margin: 14px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .95rem; }
.form-status.ok { background: var(--good-bg); color: var(--good); border: 1px solid rgba(79,138,107,.3); }
.form-status.err { background: var(--focus-bg); color: var(--focus); border: 1px solid rgba(194,103,79,.3); }

/* Kontakt: mapa pod danymi (mobile-first — jedna kolumna) */
.contact-info .contact-map { margin-top: 22px; min-height: 240px; }
.contact-info .contact-map iframe { min-height: 240px; }

/* ---- STICKY PASEK AKCJI (telefon) ---- */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250, 247, 241, 0.94); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 10px; border-radius: 999px; font-weight: 600; font-size: 1rem;
    min-height: 52px;
  }
  .mobile-bar-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
  .mb-call { background: var(--teal-700); color: #fff; }
  .mb-book { background: var(--gold); color: var(--teal-900); }
  /* miejsce, by pasek nie zakrywał stopki */
  body { padding-bottom: 76px; }
  .mobile-bar.hide { transform: translateY(120%); transition: transform var(--transition); }
}

/* ============================================================
   v9 — ROZBUDOWA WIDOKU NA WIĘKSZYCH EKRANACH (min-width)
   ============================================================ */
@media (min-width: 640px) {
  .reasons-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
/* Na dużym ekranie 4 kolumny, ikona nad tekstem (8 kart = równe 2 rzędy) */
@media (min-width: 1000px) {
  .reasons-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .reason { flex-direction: column; gap: 13px; padding: 22px 20px 24px; }
  .reason h3 { margin-top: 0; }
}
@media (min-width: 920px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .hero-photo { align-items: flex-start; }
  .hero-photo-frame { max-width: 340px; }
  .hero-photo-cap { text-align: left; }
}

/* ============================================================
   v9.1 — DOPRACOWANIE SEKCJI AUTODIAGNOZY I STATYSTYK HERO
   ============================================================ */

/* Ekran startowy testu — kompaktowy (tytuł/opis są już nad ramką w HTML).
   Zostaje tylko przycisk i zapewnienie o prywatności; ta sama ramka #quiz
   wypełnia się potem pytaniami. */
.quiz-intro-compact { text-align: center; padding: 6px 0; }
.quiz-intro-compact .quiz-meta { margin: 20px auto 0; max-width: 48ch; }
.btn-lg { font-size: 1.05rem; padding: 16px 34px; }
.quiz-lock {
  width: 15px; height: 15px; color: var(--teal-500);
  vertical-align: -2px; margin-right: 6px;
}

/* Wyniki — likwidacja przepełnienia na wąskich ekranach.
   Elementy siatki dostają min-width:0, żeby mogły zwężać się poniżej
   domyślnej szerokości treści (m.in. radar SVG ~300px). */
.results-layout, .results-layout > *,
.radar-wrap, .result-cards, .result-card,
.summary-box, .rel-grid, .rel-card { min-width: 0; }
.radar-wrap svg { max-width: 100%; }
.result-card p, .vs-text, .summary-box .s-line { overflow-wrap: anywhere; }

/* Nagłówki kart wyników — równiejsze wysokości.
   Tytuł skaluje się płynnie, a na wąskich ekranach etykieta ląduje pod
   tytułem (nie ściska go w jednym wierszu → koniec „powiększonych okienek”). */
.result-card-title h4 { font-size: clamp(1.02rem, 0.9rem + 1vw, 1.3rem); line-height: 1.2; }
@media (max-width: 560px) {
  .result-card-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .result-badge { align-self: flex-start; }
}

/* Hero: statystyki pod zdjęciem zawsze w pionie — usuwa ciasne złote
   pionowe kreski, które niemal stykały się z liczbami 300+ / 5000+. */
.hero-art .hero-stats {
  flex-direction: column; flex-wrap: nowrap; gap: 0;
  margin: 22px auto 0; max-width: 24em;
}
.hero-art .hero-stats > div {
  display: flex; align-items: baseline; gap: 18px;
  padding: 12px 0; border-left: 0; border-top: 1px solid var(--line);
}
.hero-art .hero-stats > div:first-child { border-top: 0; padding-top: 2px; }
.hero-art .hero-stats dt { min-width: 2.9em; font-size: 1.95rem; }
.hero-art .hero-stats dd { margin: 0; max-width: none; }
@media (min-width: 920px) {
  .hero-art .hero-stats { margin: 26px 0 0; }
}

/* Przycisk „Zacznij od nowa” dostępny na każdym etapie testu */
.quiz-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.quiz-reset {
  background: none; border: 0; cursor: pointer; font-family: var(--sans);
  font-size: .85rem; color: var(--muted); padding: 6px 10px; border-radius: 999px;
  transition: var(--transition);
}
.quiz-reset:hover, .quiz-reset:focus-visible { color: var(--focus); background: var(--cream-2); }

/* „W skrócie” — zdania mają płynąć jak zwykły tekst i zawijać się między
   słowami (wcześniej flex ciął długie nazwy, np. „Poczucie”, w połowie). */
.summary-box .s-line { display: block; }
.summary-box .s-line b { white-space: nowrap; }
@media (max-width: 560px) {
  .summary-box .s-line b { font-size: 1.02rem; white-space: normal; overflow-wrap: normal; }
}

/* Promocja wrześniowa w cenniku */
.promo-box {
  background: var(--cream-2); border: 1px solid var(--gold-deep);
  border-radius: var(--radius); padding: 20px 24px; margin: 0 auto 28px;
  max-width: 720px; text-align: center;
}
.promo-title {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 700;
  color: var(--teal-700); margin: 0 0 8px;
}
.promo-box p { margin: 0; color: var(--ink, inherit); font-size: .97rem; line-height: 1.55; }
.promo-box p + p { margin-top: 6px; }

/* Warianty ceny (pierwszy miesiąc, przed południem) na kartach cennika.
   Etykieta nad kwotą, bo w kolumnie cennika jest za mało miejsca, żeby
   „Przed południem: 120 zł" zmieściło się w jednej linii. */
.price-extra {
  margin: -4px 0 20px; padding-top: 14px; border-top: 1px solid var(--line);
  display: grid; gap: 12px; align-content: start;
}
.price-extra > div { display: grid; gap: 2px; }
.price-extra dt { font-size: .82rem; color: var(--muted); }
.price-extra dd {
  margin: 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
  line-height: 1.15; color: var(--teal-700);
}
@media (min-width: 461px) {
  /* Karty stoją obok siebie, więc rezerwujemy miejsce na najwyższy wariant:
     dwie linie tytułu („Psychoterapia 1×/tydz") i dwie ceny dodatkowe.
     Bez tego listy zalet startują na czterech różnych wysokościach. */
  .price-card h3 { min-height: 2.3em; }
  .price-extra { min-height: 118px; }
}

/* ============================================================
   GRAFIK — kalendarz dostępności, przewijany tydzień po tygodniu
   Tabela: wiersz = godzina, kolumna = dzień. Pokazuje wyłącznie
   stan „wolne / zajęte", bez żadnych danych osobowych.

   Cała skala zajętości siedzi w ciepłej, beżowej części palety;
   wolny termin to jedyny chłodny akcent, celowo delikatny.
   ============================================================ */

/* Siatka mieszka na białej karcie — tej samej co karty cennika,
   dzięki czemu obie sekcje czytają się jako jeden system. */
.grafik-karta {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 26px 32px 24px; margin-bottom: 22px;
}
.grafik-fallback { color: var(--muted); font-size: .95rem; margin: 0; }

/* Pasek nawigacji: strzałki po bokach, zakres dat pośrodku. */
.grafik-nawigacja {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 20px;
}
.grafik-zakres {
  margin: 0; flex: 1; text-align: center;
  font-family: var(--serif); font-size: 1.28rem; font-weight: 600;
  color: var(--teal-900);
}
.grafik-strzalka {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white);
  color: var(--teal-700); font-size: 1.3rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition);
}
.grafik-strzalka:hover:not(:disabled) {
  background: var(--teal-100); border-color: var(--teal-500); color: var(--teal-900);
}
.grafik-strzalka:focus-visible { outline: 2px solid var(--teal-700); outline-offset: 2px; }
.grafik-strzalka:disabled { opacity: .3; cursor: default; }

.grafik-tab {
  width: 100%; border-collapse: separate; border-spacing: 5px;
  table-layout: fixed;
}

/* Dni tygodnia serifem — jak wszystkie nagłówki na stronie. */
.grafik-tab thead th {
  padding: 0 2px 10px; text-align: center;
  font-family: var(--serif); font-size: 1.16rem; font-weight: 600;
  color: var(--teal-900); letter-spacing: .01em;
}
.grafik-tab thead th abbr { text-decoration: none; border: 0; }
.grafik-data {
  display: block; margin-top: 1px;
  font-family: var(--sans); font-size: .7rem; font-weight: 500;
  color: var(--muted); letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.grafik-godz {
  width: 62px; padding-right: 12px; text-align: right; vertical-align: middle;
  font-size: .76rem; font-weight: 500; color: var(--muted);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.slot {
  height: 38px; border-radius: 8px; padding: 0;
  transition: transform var(--transition), box-shadow var(--transition),
              background-color var(--transition);
}
.slot-poza { background: transparent; }

/* Termin, który już minął — ledwie widoczny, bez interakcji. */
.slot-minal { background: var(--cream); }

/* Dwa stopnie zajętości w tej samej beżowej rodzinie: zwykły zajęty
   jasny, zajęty na stałe wyraźnie głębszy — różnicę widać z daleka. */
.slot-zajety { background: #f2ebdd; }
.slot-stale  { background: #d8caae; }

/* Wolny termin: chłodny akcent, celowo delikatny — ma się wyróżniać
   spokojnie, a nie krzyczeć na tle beżowej siatki. */
.slot-wolny { background: var(--teal-100); cursor: pointer; }
.slot-wolny a { display: block; height: 100%; border-radius: 8px; }
.slot-wolny:hover { background: #cbe2df; transform: translateY(-1px); }
.slot-wolny a:focus-visible { outline: 2px solid var(--teal-700); outline-offset: 3px; }

/* Przerwa w środku dnia: sama cienka linia. Podpis zostaje w treści
   dla czytników ekranu — bez niego skok z 12:00 na 16:00 jest zagadką. */
.grafik-przerwa td { position: relative; height: 26px; padding: 0; }
.grafik-przerwa td::after {
  content: ""; position: absolute; left: 4%; right: 4%; top: 50%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--line) 18%, var(--line) 82%, transparent);
}

.grafik-stopka {
  margin: 18px 0 0; font-size: .85rem; color: var(--muted);
}

/* Legenda zamyka kartę, oddzielona tą samą linią co reszta strony. */
.grafik-legenda {
  list-style: none; margin: 18px 0 0; padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  font-size: .84rem; color: var(--muted);
}
.grafik-legenda li { display: flex; align-items: center; gap: 8px; }
.legenda-znak { width: 22px; height: 15px; border-radius: 5px; flex: none; }
.znak-wolny  { background: var(--teal-100); }
.znak-zajety { background: #f2ebdd; }
.znak-stale  { background: #d8caae; }

.grafik-uwaga { margin: 0; font-size: .88rem; color: var(--muted); max-width: 62ch; }

@media (max-width: 560px) {
  /* Pięć kolumn na wąskim ekranie: zwężamy oś godzin i odstępy,
     tabela nadal mieści się bez przewijania w poziomie. */
  .grafik-karta { padding: 22px 16px 18px; }
  .grafik-tab { border-spacing: 4px; }
  .grafik-godz { width: 48px; padding-right: 8px; font-size: .7rem; }
  .slot { height: 32px; }
  .grafik-tab thead th { font-size: 1rem; padding-bottom: 8px; }
  .grafik-data { font-size: .64rem; }
  .grafik-zakres { font-size: 1.08rem; }
  .grafik-strzalka { width: 34px; height: 34px; }
}

/* Tekst wyłącznie dla czytników ekranu (stan każdego slotu). */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
