/* Wspólny szkielet. Każda strona pakietu nadpisuje zmienne i dokłada własny klimat. */
:root {
  --bg: #faf7f2; --fg: #1b1a1f; --muted: #6b6772; --accent: #7b3fe4; --accent-fg: #fff;
  --card: #fff; --line: rgba(0,0,0,.1); --radius: 18px;
  --display: 'Caudex', Georgia, serif; --body: 'Caudex', Georgia, serif;
  --wrap: 1180px;
}
/* Czcionka całej strony: Caudex w odmianie standardowej (od 2026-09-30, życzenie artystki) — także na podstronach z własnym
   motywem. Nagłówki pogrubione na każdej podstronie: html h1 przebija h1 { font-weight } z <style> podstron (Caudex ma tylko 400 i 700). */
html h1, html h2, html h3 { font-weight: 700; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0 0 .4em; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
section { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.eyebrow { font: 600 .78rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; display: inline-block; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38em; }

/* Nawigacja */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { font: 700 1.5rem/1 var(--display); text-decoration: none; letter-spacing: -.02em; }
.logo span { color: var(--accent); }
/* Logo i awatar z panelu (js/site.js → applyBrand). Na ciemnym tle strony logo jest odwracane (czarny → biały, niebieskie A
   zostaje niebieskie); JPG z białym tłem zlewa się z paskiem przez mix-blend-mode. */
.logo:has(img) { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.logo-img { height: 30px; width: auto; }
.logo-img[src$=".jpg"], .logo-img[src$=".jpeg"] { mix-blend-mode: multiply; }
.logo.on-dark .logo-img { filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }
@media (max-width: 520px) { .logo-img { height: 24px; } .logo-av { width: 34px; height: 34px; } }
/* Ikonki Instagrama i YouTube tuż obok logo; currentColor, więc działają też na ciemnym tle. */
.social { display: inline-flex; align-items: center; gap: 10px; margin-left: -8px; flex: none; }
.social a { display: inline-flex; opacity: .7; transition: opacity .2s, transform .2s; }
.social a:hover { opacity: 1; transform: translateY(-1px); }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; font-size: .92rem; }
.nav ul a { text-decoration: none; opacity: .75; }
.nav ul a:hover, .nav ul a[aria-current] { opacity: 1; }
/* Menu jest takie samo na każdej podstronie i nic z niego nie znika: gdy się nie mieści, schodzi do drugiego,
   przewijanego w poziomie rzędu pod logo. */
@media (max-width: 1180px) { .nav ul { gap: 16px; font-size: .86rem; } .nav .wrap { gap: 18px; } }
@media (max-width: 1040px) {
  .nav .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; row-gap: 4px; }
  .nav .btn { margin-left: auto; }
  .nav ul { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; padding: 6px 0 10px; }
  .nav ul::-webkit-scrollbar { display: none; }
  .nav ul a { white-space: nowrap; }
}

/* Przyciski */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .95em 1.6em; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-fg); font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--accent); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.sm { padding: .7em 1.2em; font-size: .9rem; }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--card); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .6s; }
.gallery a:hover img { transform: scale(1.05); }
dialog.lightbox { border: 0; padding: 0; background: none; max-width: 94vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(0,0,0,.85); }
dialog.lightbox img { max-height: 92vh; width: auto; border-radius: 8px; }

/* Kroki */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 2rem/1 var(--display); color: var(--accent); margin-bottom: 14px; }
.steps b { display: block; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Konfigurator */
.cfg { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .cfg { grid-template-columns: 1fr; } }
.cfg fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.cfg legend { font-weight: 600; margin-bottom: 10px; font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .65em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-size: .93rem; transition: all .2s; user-select: none; }
.chip span:hover { border-color: var(--accent); }
.chip input:checked + span { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip.is-off span { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.cfg-sum { position: sticky; top: 90px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.cfg-label { margin: 0; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.cfg-price { font: 600 clamp(2.4rem, 5vw, 3.2rem)/1 var(--display); margin: 6px 0 8px; color: var(--accent); }
.cfg-price small { font-size: 1rem; color: var(--muted); }
.cfg-notes { font-size: .85rem; color: var(--muted); min-height: 1.3em; }
.cfg-sum label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 12px; }
.cfg-sum input, .cfg-sum textarea { display: block; width: 100%; margin-top: 5px; padding: .7em .9em; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-weight: 400; }
.cfg-sum input:focus, .cfg-sum textarea:focus { outline: none; border-color: var(--accent); }
.cfg-sum .btn { width: 100%; justify-content: center; margin-top: 6px; }
.cfg-fine, .cfg-sent { font-size: .78rem; color: var(--muted); margin: 14px 0 0; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 12px 0 0; }
details p a { color: var(--accent); }

/* Stopka */
footer { padding: 48px 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
footer a { text-decoration: none; }
footer .social { margin-left: 0; gap: 14px; }

/* Inne pakiety (cross-sell) */
.others { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.others a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2; text-decoration: none; color: #fff; }
.others img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.others a:hover img { transform: scale(1.06); }
.others span { position: absolute; inset: auto 0 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-weight: 600; }

/* Animacje wejścia */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* Galeria z panelu admina (galeria.html + zajawka na stronie głównej) */
.gal-grid { columns: 4 240px; column-gap: 18px; }
.gal-grid.teaser { columns: 4 200px; }
.gal-item { break-inside: avoid; margin: 0 0 18px; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: 0 18px 40px -26px rgba(0,0,0,.45); }
.gal-item a { display: block; overflow: hidden; }
.gal-item img { width: 100%; height: auto; transition: transform .6s; }
.gal-item a:hover img { transform: scale(1.04); }
.gal-item figcaption { padding: 12px 16px 14px; font-size: .9rem; }
.gal-item figcaption b { display: block; }
.gal-item figcaption span { color: var(--muted); font-size: .85rem; }
.gal-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 32px; }
.gal-f { padding: .6em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--fg); font: 600 .9rem/1 var(--body); cursor: pointer; transition: all .2s; }
.gal-f small { opacity: .55; font-weight: 400; margin-left: 2px; }
.gal-f:hover { border-color: var(--accent); }
.gal-f.on { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.gal-empty { color: var(--muted); }
dialog.viewer { border: 0; padding: 0; background: none; width: 100vw; height: 100dvh; max-width: none; max-height: none; color: #fff; }
dialog.viewer::backdrop { background: rgba(10,4,8,.92); }
dialog.viewer figure { margin: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 72px 20px; }
dialog.viewer img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; border-radius: 8px; box-shadow: 0 30px 80px -20px #000; }
dialog.viewer figcaption { text-align: center; padding-top: 14px; max-width: 60ch; }
dialog.viewer figcaption small { opacity: .6; }
dialog.viewer figcaption span { display: block; opacity: .75; font-size: .9rem; }
dialog.viewer figcaption em { display: block; opacity: .45; font-size: .8rem; font-style: normal; margin-top: 4px; }
dialog.viewer button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; transition: background .2s; }
dialog.viewer button:hover { background: rgba(255,255,255,.25); }
dialog.viewer [data-close] { top: 16px; right: 16px; }
dialog.viewer [data-step="-1"] { left: 16px; top: 50%; translate: 0 -50%; }
dialog.viewer [data-step="1"] { right: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) { dialog.viewer figure { padding: 64px 12px 84px; } dialog.viewer [data-step] { top: auto; bottom: 16px; translate: none; } }
