:root {
  --sand: #f6f1ea;
  --sand-deep: #ede5d9;
  --paper: #fffdf9;
  --ink: #2f2a25;
  --ink-soft: #5d554c;
  --muted: #8a8076;
  --sage: #5f6f52;
  --sage-deep: #4b5941;
  --sage-soft: #e3e8dc;
  --clay: #b9876a;
  --line: #e4dbcf;
  --radius: 18px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(47, 42, 37, .05), 0 12px 32px rgba(47, 42, 37, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 16.5px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sage-deep); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1rem; }
.container { width: min(1160px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(780px, 100% - 40px); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin: 0 0 .9rem; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: var(--sage-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-outline { background: transparent; color: var(--sage-deep); border-color: var(--sage); }
.btn-outline:hover { background: var(--sage); color: #fff; }
.btn-small { padding: .6rem 1.1rem; font-size: .9rem; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 241, 234, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font: 600 1.45rem/1 var(--serif); margin-right: auto; }
.logo svg { width: 30px; height: 30px; fill: none; stroke: var(--sage); stroke-width: 1.6; stroke-linecap: round; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; font-size: .93rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.lang-switch { display: flex; gap: .15rem; padding: .2rem; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a { padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.lang-switch a.active { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; position: relative; }
.menu-toggle span:not(.sr-only) { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .25s; }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.menu-toggle[aria-expanded=true] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded=true] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-badges { list-style: none; padding: 0; margin: 2.4rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; color: var(--ink-soft); font-size: .9rem; }
.hero-badges li { display: flex; align-items: center; gap: .5rem; }
.hero-badges li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.hero-media { margin: 0; position: relative; }
.hero-media img { width: 100%; aspect-ratio: 32 / 38; object-fit: cover; border-radius: 300px 300px var(--radius) var(--radius); box-shadow: var(--shadow); }
.hero-media::after {
  content: ""; position: absolute; inset: auto -28px -28px auto; width: 46%; aspect-ratio: 1;
  border-radius: 50%; background: var(--sage-soft); z-index: -1;
}

/* ---------- Sekcje ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-tint { background: var(--paper); }
.section-head { margin-bottom: 2.8rem; }
.section-head h2 { margin-bottom: 1rem; }
.category-title { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 2.6rem 0 1.1rem; }
.category-title:first-of-type { margin-top: 0; }

/* ---------- Usługi ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.service-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem; display: flex; flex-direction: column; gap: .9rem;
  transition: box-shadow .25s, transform .25s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-top { display: flex; flex-direction: column; gap: .4rem; }
.service-card h4 { font-size: 1.6rem; }
.service-meta { display: flex; gap: .9rem; align-items: baseline; margin: 0; font-size: .9rem; color: var(--muted); }
.service-meta .price { color: var(--sage-deep); font-weight: 700; font-size: 1.05rem; }
.service-short { color: var(--ink-soft); margin: 0; }
.service-more summary { cursor: pointer; color: var(--sage-deep); font-weight: 600; font-size: .92rem; list-style: none; display: inline-flex; align-items: center; gap: .35rem; }
.service-more summary::-webkit-details-marker { display: none; }
.service-more summary::after { content: "›"; transform: rotate(90deg); transition: transform .2s; font-size: 1.2rem; line-height: 1; }
.service-more[open] summary::after { transform: rotate(-90deg); }
.service-more .less, .service-more[open] .more { display: none; }
.service-more[open] .less { display: inline; }
.service-description { padding-top: .8rem; color: var(--ink-soft); font-size: .96rem; }
.service-card .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Porównanie ---------- */
.compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.compare-row { display: grid; grid-template-columns: 200px 1fr 1fr; }
.compare-row > span { padding: 1.1rem 1.4rem; border-top: 1px solid var(--line); }
.compare-row > span + span { border-left: 1px solid var(--line); }
.compare-header > span { border-top: 0; font: 600 1.45rem/1.2 var(--serif); background: var(--sage-soft); }
.compare-header > span:first-child { background: var(--sage-soft); }
.compare-aspect { font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.compare-note { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 1.6rem; padding: 1.3rem 1.6rem; border-radius: var(--radius); background: var(--sage-soft); }
.compare-note p { margin: 0; max-width: 70ch; }

/* ---------- O mnie ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about-media { margin: 0; }
.about-media img { width: 100%; aspect-ratio: 28 / 34; object-fit: cover; border-radius: var(--radius) var(--radius) 240px var(--radius); box-shadow: var(--shadow); }
.about-text h2 { margin-bottom: 1.4rem; }
.about-text p { color: var(--ink-soft); }
blockquote { margin: 1.8rem 0 0; padding-left: 1.3rem; border-left: 3px solid var(--clay); font: italic 500 1.6rem/1.3 var(--serif); color: var(--ink); }

/* ---------- Wizyta ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.steps li { position: relative; padding: 1.5rem; border-radius: var(--radius); background: var(--sand); }
.step-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sage); color: #fff; font-weight: 700; margin-bottom: 1rem; }
.steps h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.visit-info { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.info-card { padding: 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.info-card-soft { background: #f7efe6; border-color: #eadccc; }
.info-card h3 { margin-bottom: 1rem; }
.info-card p { margin: 0; color: var(--ink-soft); }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.checklist li { position: relative; padding-left: 1.8rem; color: var(--ink-soft); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0; position: relative; font: 600 1.4rem/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font: 400 1.8rem/1 var(--sans); color: var(--sage); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { color: var(--ink-soft); padding-bottom: 1.2rem; margin: 0; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact-text h2 { margin-bottom: 1.8rem; }
.contact-list { display: grid; grid-template-columns: 110px 1fr; gap: .9rem 1rem; margin: 0 0 2rem; }
.contact-list dt { font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.contact-list dd { margin: 0; }
.map { min-height: 380px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand-deep); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(.75) sepia(.08); }

/* ---------- Stopka ---------- */
.site-footer { padding: 2.5rem 0 6.5rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: flex-end; }
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { color: var(--ink-soft); }

/* ---------- Strony pomocnicze (odwołanie, prywatność) ---------- */
.page { padding: clamp(3rem, 7vw, 5rem) 0; min-height: 60vh; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1.5rem; }
.page h2 { font-size: 1.6rem; margin: 2rem 0 .8rem; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem); }
.summary-list { display: grid; grid-template-columns: 150px 1fr; gap: .6rem 1rem; margin: 0 0 1.5rem; }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 600; }
.notice { padding: 1rem 1.2rem; border-radius: 12px; background: var(--sage-soft); margin-bottom: 1.5rem; }
.notice-warn { background: #f7efe6; }

/* ---------- Czat ---------- */
.chat-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: flex; align-items: center; gap: .6rem;
  padding: .95rem 1.35rem; border: 0; border-radius: 999px;
  background: var(--sage); color: #fff; font: 700 .98rem/1 var(--sans);
  box-shadow: 0 10px 30px rgba(75, 89, 65, .35); cursor: pointer;
  transition: transform .2s, opacity .2s;
}
.chat-launcher:hover { transform: translateY(-2px); }
.chat-launcher svg, .chat-icon svg, .chat-send svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-open .chat-launcher { opacity: 0; pointer-events: none; }

.chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: min(410px, calc(100vw - 40px)); height: min(660px, calc(100vh - 40px));
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(47, 42, 37, .28);
  animation: chat-in .25s ease-out;
}
.chat[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: .9rem .9rem .9rem 1.1rem; background: var(--sage); color: #fff; }
.chat-head h2 { font: 700 1rem/1.2 var(--sans); }
.chat-head p { margin: 0; font-size: .8rem; opacity: .85; }
.chat-head > div:nth-child(2) { flex: 1; min-width: 0; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); font: 600 1.35rem/1 var(--serif); }
.chat-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.chat-icon:hover { background: rgba(255, 255, 255, .15); }
.chat-icon svg { width: 20px; height: 20px; }

.chat-messages { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .75rem; background: var(--sand); overscroll-behavior: contain; }
.msg { display: flex; flex-direction: column; max-width: 88%; }
.msg-user { align-self: flex-end; align-items: flex-end; }
.msg-bot { align-self: flex-start; }
.bubble { padding: .7rem .95rem; border-radius: 16px; font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.msg-user .bubble { background: var(--sage); color: #fff; border-bottom-right-radius: 5px; white-space: pre-wrap; }
.msg-bot .bubble { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg-error .bubble { background: #f8e5e1; border-color: #efcfc8; color: #7b2d23; }
.bubble p { margin: 0 0 .5rem; }
.bubble p:last-child, .bubble ul:last-child, .bubble ol:last-child { margin-bottom: 0; }
.bubble ul, .bubble ol { margin: .2rem 0 .5rem; padding-left: 1.2rem; }
.bubble li { margin: .1rem 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.chip { border: 1.5px solid var(--sage); background: var(--paper); color: var(--sage-deep); border-radius: 999px; padding: .42rem .85rem; font: 600 .85rem/1.2 var(--sans); cursor: pointer; text-align: left; }
.chip:hover:not(:disabled) { background: var(--sage); color: #fff; }
.chip:disabled { opacity: .45; cursor: default; }
.typing { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .88rem; }
.dots { display: inline-flex; gap: 3px; }
.dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--clay); animation: blink 1.2s infinite both; }
.dots span:nth-child(2) { animation-delay: .2s; }
.dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.booking-card { margin-top: .6rem; padding: .9rem 1rem; border-radius: 14px; background: var(--sage-soft); border: 1px solid #cfd9c4; font-size: .9rem; }
.booking-card strong { display: flex; align-items: center; gap: .4rem; font-size: .95rem; margin-bottom: .35rem; color: var(--sage-deep); }
.booking-card strong::before { content: ""; width: 16px; height: 9px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
.booking-card dl { display: grid; grid-template-columns: auto 1fr; gap: .15rem .7rem; margin: 0; }
.booking-card dt { color: var(--muted); }
.booking-card dd { margin: 0; font-weight: 600; }

.chat-form { display: flex; align-items: flex-end; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); background: var(--paper); }
.chat-form textarea {
  flex: 1; resize: none; border: 1px solid var(--line); border-radius: 14px; padding: .7rem .9rem;
  font: 400 1rem/1.4 var(--sans); max-height: 130px; background: var(--sand); color: var(--ink); overflow-y: hidden;
}
.chat-form textarea:focus { outline: 2px solid var(--sage-soft); border-color: var(--sage); }
.chat-send { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--sage); color: #fff; cursor: pointer; }
.chat-send:disabled { opacity: .5; cursor: default; }
.chat-privacy { margin: 0; padding: 0 .9rem .6rem; font-size: .72rem; color: var(--muted); background: var(--paper); }

/* ---------- Responsywność ---------- */
@media (max-width: 1020px) {
  .site-nav { gap: 1.1rem; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 20px 1.2rem;
    transform: translateY(-120%); transition: transform .3s; z-index: -1; font-size: 1.05rem;
  }
  .site-nav.open { transform: none; }
  .site-nav > a { padding: .8rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .lang-switch { margin-top: 1rem; }
  .header-inner { gap: .5rem; }
  .hero-inner, .about, .contact, .visit-info { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; margin: 0 auto; width: 100%; }
  .about-media { max-width: 420px; }
  .compare-header { display: none; }
  .compare-row { grid-template-columns: 1fr; padding: 1rem 1.2rem; border-top: 1px solid var(--line); }
  .compare-row:first-of-type { border-top: 0; }
  .compare-row > span { padding: .25rem 0; border: 0 !important; }
  .compare-row > span[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--sage-deep); }
  .compare-note { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container, .narrow { width: calc(100% - 32px); }
  .header-cta { display: none; }
  .steps { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { padding: 1.3rem; }
  .contact-list, .summary-list { grid-template-columns: 1fr; gap: .2rem; }
  .contact-list dd, .summary-list dd { margin-bottom: .7rem; }
  .chat-launcher { left: 16px; right: 16px; bottom: 14px; justify-content: center; }
  .chat { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
  .chat-form textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
