/* ===== Motyw ===== */
:root {
  --bg: #f6f4f1;
  --surface: #ffffff;
  --text: #151515;
  --muted: #6d6a66;
  --line: #e3dfd9;
  --accent: #8a6a4f;
  --display: "Bodoni 72", "Didot", "Bodoni MT", "Playfair Display", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1280px;
}
[data-theme="dark"] {
  --bg: #0e0e0e;
  --surface: #181818;
  --text: #f2efe9;
  --muted: #a19c95;
  --line: #2a2a2a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ===== Nawigacja ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--pad);
  color: #fff;
  transition: background .3s, color .3s, box-shadow .3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  box-shadow: 0 1px 0 var(--line);
}
.brand { font-family: var(--display); font-size: 1.35rem; letter-spacing: .01em; }
.nav-links { display: flex; gap: 1.75rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.nav-links a { opacity: .9; }
.nav-links a:hover { opacity: 1; }
.nav-cta { border-bottom: 1px solid currentColor; }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ===== Hero ===== */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 45%, rgba(0,0,0,.65) 100%); }
.hero-text {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(2.5rem, 8vh, 5rem);
  max-width: 820px;
}
.eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; opacity: .9; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(3rem, 11vw, 7.5rem); }
.tagline { margin-top: 1rem; font-size: clamp(1rem, 2.2vw, 1.25rem); max-width: 34ch; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .8rem 1.6rem;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  border-radius: 999px; transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: #111; }
.btn-ghost { border: 1px solid rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-outline { border: 1px solid var(--text); }

/* ===== Sekcje ===== */
.section { padding: clamp(4rem, 10vw, 8rem) var(--pad); max-width: var(--max); margin: 0 auto; scroll-margin-top: 7rem; }
.section-head { margin-bottom: 2.25rem; }
.kicker { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }

/* ===== Galeria ===== */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.filter {
  padding: .55rem 1.1rem; min-height: 40px; border-radius: 999px;
  border: 1px solid var(--line); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  transition: all .2s;
}
.filter:hover { color: var(--text); border-color: var(--text); }
.filter[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.grid { columns: 2; column-gap: 8px; }
@media (min-width: 900px) { .grid { columns: 3; column-gap: 12px; } }
.tile {
  display: block; width: 100%; margin-bottom: 8px; break-inside: avoid;
  overflow: hidden; background: var(--line); border-radius: 2px;
}
@media (min-width: 900px) { .tile { margin-bottom: 12px; } }
.tile img { width: 100%; height: auto; transition: transform .6s ease, opacity .4s; opacity: 0; }
.tile img.loaded { opacity: 1; }
.tile:hover img { transform: scale(1.03); }

/* ===== O mnie ===== */
.about { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (min-width: 860px) { .about { grid-template-columns: 5fr 6fr; } }
.about-img-wrap { overflow: hidden; border-radius: 2px; aspect-ratio: 3 / 4; background: var(--line); }
.about-img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-body p { color: var(--muted); font-size: 1.05rem; max-width: 52ch; }
.about-body p + p { margin-top: 1rem; }

/* ===== Oferta ===== */
.offer-grid { display: grid; gap: 1rem; }
@media (min-width: 860px) { .offer-grid { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 2rem 1.75rem; display: flex; flex-direction: column;
}
.card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card h3 { font-size: 1.9rem; }
.card .price { margin: .5rem 0 1.25rem; color: var(--accent); letter-spacing: .04em; }
.card ul { list-style: none; color: var(--muted); }
.card li { padding: .55rem 0; border-top: 1px solid var(--line); }
.offer-note { margin-top: 1.5rem; color: var(--muted); font-size: .92rem; }

/* ===== Opinie ===== */
.quotes { padding-top: 0; }
.quotes-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .quotes-grid { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.quote p { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.3; }
.quote cite { display: block; margin-top: 1rem; font-style: normal; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ===== Kontakt ===== */
.contact { text-align: center; border-top: 1px solid var(--line); }
.contact h2 { max-width: 16ch; margin: 0 auto; }
.contact-lead { color: var(--muted); margin: 1.25rem auto 2rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.contact-actions .btn-outline:hover { background: var(--text); color: var(--bg); }

/* ===== Stopka ===== */
.footer {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  padding: 2rem var(--pad) 6rem; max-width: var(--max); margin: 0 auto;
  font-size: .8rem; color: var(--muted);
}
.footer-credit:hover { color: var(--text); }
@media (min-width: 721px) { .footer { padding-bottom: 2rem; } }

/* ===== Przycisk na telefonie ===== */
.sticky-cta {
  position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 15;
  display: flex; align-items: center; justify-content: center; min-height: 52px;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transform: translateY(150%); transition: transform .35s ease;
}
.sticky-cta.show { transform: none; }
@media (min-width: 721px) { .sticky-cta { display: none; } }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(8,8,8,.96);
  display: flex; align-items: center; justify-content: center;
  touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
.lb-img { max-width: 92vw; max-height: 86svh; object-fit: contain; user-select: none; }
.lightbox button { position: absolute; color: #fff; font-size: 2.4rem; line-height: 1; width: 56px; height: 56px; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: .5rem; right: .5rem; }
.lb-prev { left: .25rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .25rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1.25rem; left: 0; right: 0; text-align: center; color: #bbb; font-size: .8rem; letter-spacing: .16em; }
@media (max-width: 720px) { .lb-prev, .lb-next { display: none; } }

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