/* =========================================================
   demo.css — wspólna baza stron przykładowych wisnia.dev
   Każde demo nadpisuje tylko tokeny (kolory, fonty, kształty)
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

:root {
  --ink: #16181d;
  --ink-soft: #555b66;
  --paper: #ffffff;
  --bg: #faf9f7;
  --line: #e6e2dc;
  --brand: #b4472a;
  --brand-dark: #8c3520;
  --brand-soft: #fbeee9;
  --accent: #1f7a5a;
  --radius: 12px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(20, 18, 16, .06);
  --shadow: 0 14px 40px rgba(20, 18, 16, .10);
  --shadow-lg: 0 30px 70px rgba(20, 18, 16, .16);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Inter", system-ui, sans-serif;
  --head-weight: 700;
  --wrap: 1160px;
  --demo-bar-h: 44px;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; background: var(--line); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--head-weight); line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.22rem; }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-alt { background: var(--paper); }

/* ---------- pasek demo ---------- */
.demo-bar {
  position: sticky; top: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--demo-bar-h); padding: 0 16px;
  background: linear-gradient(90deg, #0d1017, #1b2233);
  color: #e8ecf5; font-size: .82rem; letter-spacing: .01em;
  text-align: center;
}
.demo-bar b { color: #fff; }
.demo-bar-dot { width: 8px; height: 8px; border-radius: 50%; background: #35d07f; box-shadow: 0 0 0 0 rgba(53, 208, 127, .6); animation: pulse 2.4s infinite; flex: none; }
.demo-bar-arrow { transition: transform .2s ease; }
.demo-bar:hover .demo-bar-arrow { transform: translateX(4px); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(53, 208, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(53, 208, 127, 0); } }

/* ---------- nagłówek ---------- */
.site-head {
  position: sticky; top: var(--demo-bar-h); z-index: 80;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: 1.25rem; font-weight: 700;
}
.brand-name { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.12rem; display: block; line-height: 1.2; }
.brand-sub { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: 26px; font-size: .93rem; font-weight: 500; }
.nav > a { position: relative; padding: 6px 0; }
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--brand); transition: right .25s ease;
}
.nav > a:not(.btn):hover::after { right: 0; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; padding: 0; }
.burger span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); transition: .25s; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 32%, transparent); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 16px 34px color-mix(in srgb, var(--brand) 40%, transparent); }
.btn-ghost { border-color: var(--line); background: var(--paper); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: var(--hero-veil, linear-gradient(180deg, rgba(12,10,9,.72), rgba(12,10,9,.55) 45%, rgba(12,10,9,.85))); }
.hero-inner { position: relative; z-index: 1; padding: clamp(90px, 15vw, 175px) 0 clamp(70px, 11vw, 130px); color: #fff; max-width: 720px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px;
  padding: 7px 16px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); backdrop-filter: blur(6px);
}
.hero h1 { color: #fff; margin-bottom: 20px; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-lead { font-size: clamp(1.03rem, 1.7vw, 1.24rem); color: rgba(255,255,255,.9); max-width: 56ch; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero-cta .btn-ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; border-color: #fff; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 34px; font-size: .92rem; color: rgba(255,255,255,.85); }
.hero-facts li { display: flex; align-items: center; gap: 9px; }
.hero-facts b { color: #fff; }

/* ---------- nagłówki sekcji ---------- */
.head { max-width: 660px; margin-bottom: 52px; }
.head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: block; font-size: .76rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.head p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 16px; }

/* ---------- karty ---------- */
.grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.card-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 1.4rem; margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card-price { margin-top: 16px; font-weight: 700; color: var(--brand); font-size: 1.05rem; }

/* karta z obrazem */
.mcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.mcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.mcard img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mcard-body { padding: 26px 24px 28px; }
.mcard-body h3 { margin-bottom: 8px; }
.mcard-body p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- split (tekst + obraz) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 76px); align-items: center; }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.split-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split-body p { color: var(--ink-soft); }
.split-body p + p { margin-top: 16px; }
.split-badge {
  position: absolute; left: 24px; bottom: 24px; padding: 12px 20px; border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm); font-size: .88rem; font-weight: 600;
}
.split-badge b { display: block; font-size: 1.6rem; color: var(--brand); line-height: 1.1; }

/* ---------- cennik / menu ---------- */
.pricelist { display: grid; gap: 34px 60px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.pricelist h3 { padding-bottom: 12px; margin-bottom: 6px; border-bottom: 2px solid var(--brand); display: inline-block; }
.price-row { display: flex; align-items: baseline; gap: 12px; padding: 15px 0; border-bottom: 1px dashed var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-name { font-weight: 600; }
.price-desc { display: block; font-weight: 400; font-size: .87rem; color: var(--ink-soft); margin-top: 2px; }
.price-dots { flex: 1; border-bottom: 1px dotted color-mix(in srgb, var(--ink-soft) 45%, transparent); transform: translateY(-4px); }
.price-val { font-weight: 700; color: var(--brand); white-space: nowrap; }
.price-tag { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }

/* ---------- galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); transition: transform .35s ease, filter .35s ease; }
.gallery img:hover { transform: scale(1.03); filter: saturate(1.1); }

/* ---------- opinie ---------- */
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 18px; }
.quote-stars { color: #eab308; letter-spacing: 2px; font-size: .95rem; }
.quote p { font-size: 1rem; }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: .9rem; }
.quote-av { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.quote-who b { display: block; }
.quote-who span { color: var(--ink-soft); font-size: .84rem; }

/* ---------- pasek statystyk ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.9rem); color: var(--brand); line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--ink-soft); }

/* ---------- kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-list { display: grid; gap: 20px; margin-bottom: 30px; }
.contact-item { display: flex; gap: 15px; align-items: flex-start; }
.contact-item .ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.contact-item b { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }
.contact-item a, .contact-item p { font-size: 1.05rem; font-weight: 600; }
.contact-item a:hover { color: var(--brand); }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { padding: 10px 0; text-align: left; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.today { color: var(--brand); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-sm); display: grid; gap: 16px; }
.field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; background: var(--bg); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--ink-soft); }
.form-ok { display: none; padding: 14px 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 600; font-size: .92rem; }
.form-ok.show { display: block; }

/* mapa on-demand */
.map-facade {
  width: 100%; min-height: 240px; border: 1px solid var(--line); border-radius: var(--radius-lg); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 46px),
    linear-gradient(140deg, #e9e4dc, #f6f3ee);
  transition: filter .2s ease;
}
.map-facade:hover { filter: brightness(.97); }
.map-facade-pin { font-size: 2rem; line-height: 1; }
.map-facade-txt { font-weight: 600; font-size: .95rem; }
.contact-map iframe { width: 100%; min-height: 240px; border: 0; display: block; border-radius: var(--radius-lg); }

/* ---------- CTA ---------- */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(38px, 6vw, 66px); text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.78); max-width: 54ch; margin: 0 auto 30px; }
.cta-band .btn-ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- stopka ---------- */
.site-foot { background: var(--ink); color: #b9bec9; padding: 60px 0 28px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-foot h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-foot a:hover { color: #fff; }
.foot-brand { color: #fff; font-family: var(--font-head); font-size: 1.4rem; display: block; margin-bottom: 10px; }
.foot-links li + li { margin-top: 9px; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; padding-top: 22px; font-size: .84rem; color: #8a919e; }
.foot-bottom a { color: #cfd5e0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- animacje wejścia ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RWD ---------- */
@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  /* na wąskim ekranie tekst paska demo zawija się do kilku linii —
     stała wysokość ucinała go i nachodziła na nagłówek */
  .demo-bar { position: static; height: auto; padding: 10px 14px; line-height: 1.35; }
  .site-head { top: 0; }
  .nav { inset: 72px 0 auto 0; }
  .brand-sub { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: calc(var(--demo-bar-h) + 72px) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px 20px 22px; box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .3s ease; z-index: 70;
  }
  .nav.open { transform: none; }
  .nav > a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav > a.btn { margin-top: 14px; border-bottom: 0; }
  .hero-inner { max-width: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
