/* ============================================================
   PixelPędzel — arkusz stylów
   Paleta premium: beż / grafit / złoto
   ============================================================ */

:root {
  --beige-50: #faf6ef;
  --beige-100: #f5efe6;
  --beige-200: #ede4d3;
  --beige-300: #e2d5bf;
  --graphite-900: #1e1e1e;
  --graphite-800: #2b2b2b;
  --graphite-700: #3a3a3a;
  --graphite-500: #6b6b6b;
  --gold: #c9a24b;
  --gold-dark: #b8860b;
  --gold-soft: #e8d6a8;
  --white: #ffffff;

  --shadow-sm: 0 2px 8px rgba(30, 30, 30, 0.08);
  --shadow-md: 0 10px 30px rgba(30, 30, 30, 0.12);
  --shadow-lg: 0 24px 60px rgba(30, 30, 30, 0.18);
  --radius: 14px;
  --radius-lg: 22px;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--graphite-800);
  background: var(--beige-50);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; color: var(--graphite-900); }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; }

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

.gold { color: var(--gold-dark); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--gold-dark);
  margin: 0 0 .8rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .95rem 1.8rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: #fff; box-shadow: 0 8px 22px rgba(184, 134, 11, .28); }
.btn--gold:hover { box-shadow: 0 12px 30px rgba(184, 134, 11, .38); }
.btn--ghost { background: transparent; color: var(--graphite-900); border-color: var(--graphite-800); }
.btn--ghost:hover { background: var(--graphite-900); color: #fff; }
.btn--sm { padding: .6rem 1.2rem; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--beige-200);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; color: var(--graphite-900); }
.brand__mark {
  width: 40px; height: 40px;
  background: url("../assets/logo/logo-icon.svg") center/contain no-repeat;
  font-size: 0; color: transparent; /* ukrywa zapasową literę „P" */
  flex: 0 0 auto;
}
.brand--light, .brand--light .brand__name { color: #fff; }
.brand--light .brand__mark { background-image: url("../assets/logo/logo-icon-white.svg"); }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a { font-size: .95rem; font-weight: 400; }
.nav__links a:not(.btn):hover { color: var(--gold-dark); }
.nav__toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--graphite-900); transition: .3s; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero__text .lead { font-size: 1.15rem; max-width: 34ch; color: var(--graphite-700); }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.8rem 0 1.5rem; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; padding: 0; margin: 0; font-size: .88rem; color: var(--graphite-500); }
.hero__badges li { letter-spacing: .02em; }
.hero__badges li::first-letter { color: var(--gold-dark); }

.hero__art { position: relative; height: 520px; }
.hero__frame {
  position: absolute; margin: 0;
  border-radius: 12px; overflow: hidden;
  border: 8px solid #fff;
  box-shadow: var(--shadow-lg);
}
.hero__frame img { height: 100%; width: 100%; object-fit: cover; }
.hero__frame--1 { width: 62%; height: 74%; top: 0; right: 4%; z-index: 3; transform: rotate(2deg); }
.hero__frame--2 { width: 46%; height: 56%; bottom: 4%; left: 0; z-index: 2; transform: rotate(-4deg); }
.hero__frame--3 { width: 40%; height: 46%; bottom: 12%; right: 0; z-index: 1; transform: rotate(5deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { background: var(--beige-100); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.2rem, 4vw, 3.5rem); }
.section__sub { color: var(--graphite-700); font-size: 1.08rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 2rem 1.6rem; box-shadow: var(--shadow-sm); border: 1px solid var(--beige-200); position: relative; }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--beige-200); color: var(--gold-dark); font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.step h3 { font-size: 1.25rem; }
.step p { font-size: .95rem; color: var(--graphite-700); margin: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--beige-200); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__img { aspect-ratio: 3/4; overflow: hidden; background: var(--beige-200); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__img--placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--graphite-800), var(--graphite-700)); }
.card__img--placeholder span { font-family: var(--font-serif); font-size: 2.4rem; letter-spacing: .3em; color: var(--gold); font-weight: 700; }
.card__body { padding: 1.3rem 1.3rem 1.6rem; flex: 1; }
.card__body h3 { font-size: 1.3rem; margin-bottom: .1rem; }
.card__tag { text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; color: var(--gold-dark); margin: 0 0 .7rem; font-weight: 500; }
.card__body p:last-child { font-size: .9rem; color: var(--graphite-700); margin: 0; }
.card--soon { position: relative; }

/* ---------- Konfigurator ---------- */
.config__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: start; }
.field { border: 0; padding: 0; margin: 0 0 2rem; }
.field legend { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--graphite-900); margin-bottom: 1rem; padding: 0; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: .6rem 1.1rem; border: 1.5px solid var(--beige-300); border-radius: 100px; font-size: .9rem; cursor: pointer; transition: .2s; background: #fff; }
.chip input:checked + span { background: var(--graphite-900); color: #fff; border-color: var(--graphite-900); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.sizes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; }
.size span { display: block; }
.size > span:not(:first-of-type) {}
.size { display: block; }
.size input + .size__dim { }
.size__dim, .size__price { display: block; }
.size label, .size { }
.size input ~ .size__dim { }
/* style the label box via the label element */
.size { border: 1.5px solid var(--beige-300); border-radius: var(--radius); padding: 1rem 1.2rem; cursor: pointer; background: #fff; transition: .2s; }
.size:hover { border-color: var(--gold); }
.size__dim { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; color: var(--graphite-900); }
.size__price { font-size: .95rem; color: var(--gold-dark); font-weight: 500; }
.size input:checked ~ .size__dim,
.size:has(input:checked) { border-color: var(--gold-dark); }
.size:has(input:checked) { background: var(--beige-100); box-shadow: 0 0 0 2px var(--gold-soft) inset; }

/* Opcje dodatkowe */
.legend-opt { font-family: var(--font-sans); font-size: .8rem; font-weight: 400; color: var(--graphite-500); letter-spacing: normal; }
.addons { display: flex; flex-direction: column; gap: .7rem; }
.addon { display: flex; align-items: center; gap: 1rem; border: 1.5px solid var(--beige-300); border-radius: var(--radius); padding: .9rem 1.1rem; cursor: pointer; background: #fff; transition: .2s; }
.addon:hover { border-color: var(--gold); }
.addon input { width: 20px; height: 20px; accent-color: var(--gold-dark); flex: 0 0 auto; }
.addon__box { flex: 1; display: flex; flex-direction: column; }
.addon__title { font-weight: 500; color: var(--graphite-900); }
.addon__desc { font-size: .82rem; color: var(--graphite-500); }
.addon__price { font-family: var(--font-serif); font-weight: 600; color: var(--gold-dark); white-space: nowrap; }
.addon:has(input:checked) { border-color: var(--gold-dark); background: var(--beige-100); box-shadow: 0 0 0 2px var(--gold-soft) inset; }

/* Notka pod galerią */
.gallery__more { text-align: center; margin: 2.2rem auto 0; max-width: 640px; color: var(--graphite-700); font-size: .95rem; }
.gallery__more a { color: var(--gold-dark); text-decoration: underline; }

/* Bon podarunkowy + Program poleceń (kafle) */
.feature-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.feature { background: #fff; border: 1px solid var(--beige-200); border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow-sm); }
.feature__icon { font-size: 2rem; margin-bottom: .6rem; }
.feature h3 { font-size: 1.5rem; }
.feature p { color: var(--graphite-700); }
.feature ul { padding-left: 1.1rem; color: var(--graphite-700); margin: .6rem 0 1.2rem; }
.feature li { margin-bottom: .35rem; }
.feature .denoms { display: flex; gap: .5rem; flex-wrap: wrap; margin: .4rem 0 1.2rem; }
.feature .denoms span { border: 1.5px solid var(--beige-300); border-radius: 100px; padding: .35rem .9rem; font-weight: 500; font-family: var(--font-serif); }
@media (max-width: 720px) { .feature-2 { grid-template-columns: 1fr; } }

/* Upload */
.upload { display: block; border: 2px dashed var(--beige-300); border-radius: var(--radius); background: #fff; padding: 2rem; text-align: center; cursor: pointer; transition: .2s; }
.upload:hover { border-color: var(--gold); background: var(--beige-50); }
.upload input { position: absolute; opacity: 0; width: 0; height: 0; }
.upload__inner { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.upload__icon { font-size: 2rem; }
.upload__text { color: var(--graphite-700); font-size: .95rem; }
.upload__text small { color: var(--graphite-500); font-size: .8rem; }
.upload__preview { max-height: 220px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.upload.has-file { border-style: solid; border-color: var(--gold-dark); }
.hint { font-size: .85rem; color: var(--graphite-500); margin-top: .8rem; }

/* Summary */
.card-elevated { background: #fff; border: 1px solid var(--beige-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.summary { padding: 1.8rem; margin-bottom: 1.5rem; }
.summary h3 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.summary__list { margin: 0 0 1.2rem; }
.summary__list > div { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--beige-200); }
.summary__list dt { color: var(--graphite-500); margin: 0; }
.summary__list dd { margin: 0; font-weight: 500; color: var(--graphite-900); text-align: right; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: .4rem; }
.summary__total span { font-family: var(--font-serif); font-size: 1.3rem; }
.summary__total strong { font-family: var(--font-serif); font-size: 2rem; color: var(--gold-dark); }
.summary__note { font-size: .8rem; color: var(--graphite-500); margin: 1rem 0 0; }

.fields-contact { }
.field-row { margin-bottom: 1rem; }
.field-row label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .35rem; color: var(--graphite-700); }
.field-row input, .field-row textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--beige-300); border-radius: 10px;
  font-family: var(--font-sans); font-size: .95rem; background: #fff; transition: .2s; resize: vertical;
}
.field-row input:focus, .field-row textarea:focus { outline: none; border-color: var(--gold-dark); box-shadow: 0 0 0 3px var(--gold-soft); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--graphite-700); margin: .6rem 0 1.2rem; }
.consent input { margin-top: .2rem; }
.consent a { color: var(--gold-dark); text-decoration: underline; }
.form-status { text-align: center; font-size: .9rem; margin: .8rem 0 0; min-height: 1.2em; }
.form-status.ok { color: #2e7d32; }
.form-status.err { color: #c0392b; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.price-card { background: #fff; border: 1px solid var(--beige-200); border-radius: var(--radius); padding: 2rem 1.6rem; text-align: center; box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column; gap: .4rem; }
.price-card--featured { border-color: var(--gold-dark); box-shadow: var(--shadow-md); transform: translateY(-6px); }
.price-card__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold-dark); color: #fff; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .9rem; border-radius: 100px; white-space: nowrap; }
.price-card__price { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 700; color: var(--graphite-900); margin: .3rem 0; }
.price-card__price span { font-size: 1.1rem; color: var(--gold-dark); }
.price-card__desc { font-size: .88rem; color: var(--graphite-500); margin-bottom: 1rem; flex: 1; }
.pricing__foot { text-align: center; margin-top: 2rem; color: var(--graphite-700); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: .8rem; }
.faq__item { background: #fff; border: 1px solid var(--beige-200); border-radius: var(--radius); padding: 0 1.4rem; box-shadow: var(--shadow-sm); }
.faq__item summary { cursor: pointer; padding: 1.2rem 0; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--graphite-900); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--gold-dark); font-size: 1.6rem; transition: transform .2s; line-height: 1; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 1.3rem; margin: 0; color: var(--graphite-700); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--graphite-900); color: #fff; padding: clamp(3rem, 6vw, 5rem) 0; text-align: center; }
.cta-band__inner { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.cta-band h2 { color: #fff; max-width: 20ch; }

/* ---------- Footer ---------- */
.footer { background: var(--graphite-800); color: var(--beige-200); padding: 3.5rem 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__brand p { color: var(--graphite-500); margin-top: .8rem; max-width: 30ch; font-size: .9rem; }
.footer__col h4 { color: #fff; font-family: var(--font-sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 1rem; }
.footer__col a { display: block; color: var(--beige-200); font-size: .92rem; padding: .3rem 0; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid var(--graphite-700); padding: 1.4rem 0; }
.footer__bottom p { margin: 0; font-size: .82rem; color: var(--graphite-500); }

/* ---------- Porównanie „przed → po" (suwak) ---------- */
.compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 900px; margin: 0 auto; }
.compare {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); border: 6px solid #fff; user-select: none; touch-action: none; cursor: ew-resize;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__after { clip-path: inset(0 0 0 50%); } /* prawa część widoczna, sterowana JS */
.compare__label {
  position: absolute; top: 12px; padding: .3rem .8rem; border-radius: 100px;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: rgba(30,30,30,.6); backdrop-filter: blur(4px); pointer-events: none;
}
.compare__label--before { left: 12px; }
.compare__label--after { right: 12px; }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff;
  transform: translateX(-50%); box-shadow: 0 0 8px rgba(0,0,0,.35); pointer-events: none;
}
.compare__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--graphite-900);
  display: grid; place-items: center; box-shadow: var(--shadow-md); font-size: 1.1rem; font-weight: 600;
}
.compare__note { text-align: center; color: var(--graphite-500); font-size: .88rem; margin-top: 1.6rem; }

@media (max-width: 620px) { .compare-grid { grid-template-columns: 1fr; } }

/* ---------- Strony prawne ---------- */
.legal { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.legal .back { display: inline-block; margin-bottom: 1.5rem; color: var(--gold-dark); font-size: .9rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .3rem; }
.legal .updated { color: var(--graphite-500); font-size: .85rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.5rem; margin: 2.2rem 0 .6rem; }
.legal h3 { font-size: 1.15rem; margin: 1.4rem 0 .4rem; }
.legal p, .legal li { color: var(--graphite-700); font-size: .98rem; }
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal li { margin-bottom: .4rem; }
.legal .note { background: var(--beige-100); border-left: 3px solid var(--gold-dark); padding: 1rem 1.2rem; border-radius: 8px; margin: 1.5rem 0; font-size: .9rem; }
.legal .fill { background: #fff4d6; padding: 0 .3em; border-radius: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { height: 400px; max-width: 460px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .config__grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__links { position: fixed; inset: 72px 0 auto; flex-direction: column; background: var(--beige-50); padding: 1.5rem 24px 2rem; gap: 1rem; align-items: stretch; text-align: center; border-bottom: 1px solid var(--beige-200); transform: translateY(-120%); transition: transform .3s; box-shadow: var(--shadow-md); }
  .nav__links.open { transform: translateY(0); }
  .nav__toggle { display: flex; }
}

@media (max-width: 560px) {
  .steps, .gallery, .pricing { grid-template-columns: 1fr; }
  .sizes { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .price-card--featured { transform: none; }
}

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