/* =========================================================
   STUDIO AI — szybkie sesje noworodkowe AI
   Estetyka: fine-art newborn, ciepła kremowo-beżowa paleta,
   eleganckie szeryfy + czysty sans. Oryginalny layout.
   ========================================================= */

:root {
  --cream:   #FBF7F1;
  --cream-2: #F4ECE1;
  --sand:    #EADDCB;
  --taupe:   #C9B6A0;
  --sage:    #8E9C82;
  --sage-d:  #6F7D63;
  --rose:    #D8B3A4;
  --ink:     #3B352F;
  --muted:   #8C8378;
  --line:    #E3D7C8;
  --white:   #FFFFFF;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans:  "Manrope", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1200px;
  --promo-h: 42px;
  --r: 14px;
  --shadow: 0 18px 50px -22px rgba(59, 53, 47, .35);
  --shadow-sm: 0 8px 24px -14px rgba(59, 53, 47, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(78px + var(--promo-h)); }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: .2px; }

a { color: inherit; text-decoration: none; }

.container { width: 92%; max-width: var(--maxw); margin-inline: auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sage-d);
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--sage-d); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--taupe); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------- Navbar ---------- */
/* ---------- Nagłówek (promo + nav jako jeden blok) ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; }

/* ---------- Pasek promocji ---------- */
.promo-bar {
  position: relative;
  height: var(--promo-h);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(90deg, var(--sage-d), #b07d6b, var(--rose));
  background-size: 200% 100%; animation: promoShift 8s ease-in-out infinite;
  color: #fff; box-shadow: 0 2px 14px -6px rgba(59,53,47,.5);
}
@keyframes promoShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.promo-inner { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; white-space: nowrap; justify-content: center; width: 100%; padding: 0 14px; font-size: 14px; line-height: var(--promo-h); }
.promo-emoji { font-size: 17px; }
.promo-text b { font-weight: 800; }
.promo-timer { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); padding: 3px 10px; border-radius: 999px; font-size: 13px; line-height: 1.2; }
.promo-timer b { font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: .5px; }
@media (max-width: 760px) { .promo-timer { display: none; } }
@media (max-width: 600px) {
  :root { --promo-h: 36px; }
  .promo-inner { gap: 8px; font-size: 12.5px; padding: 0 10px; }
  .promo-emoji { font-size: 14px; }
  .promo-hide-sm { display: none; }
}

.nav {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 92%; }
.nav.scrolled { background: rgba(251, 247, 241, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); padding: 10px 0; }
.brand { font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.brand span { color: var(--sage-d); }
.brand small { display:block; font-family: var(--sans); font-size: 9.5px; letter-spacing: .42em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--ink); position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px;
  background: var(--sage-d); transition: width .3s ease;
}
.nav-links a:not(.btn):hover::after { width: 100%; }
/* Przycisk „Zamów" w menu — widoczny tekst + delikatne mienienie */
.nav-links a.btn-primary {
  color: #fff !important; background: var(--sage-d) !important; border-color: var(--sage-d);
  position: relative; overflow: hidden; box-shadow: 0 6px 18px -8px rgba(111,125,99,.7);
}
.nav-links a.btn-primary span { position: relative; z-index: 2; color: #fff; }
.nav-links a.btn-primary:hover { background: var(--ink) !important; border-color: var(--ink); }
.nav-links a.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -160%; width: 55%; height: 100%; z-index: 1;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.4) 50%, transparent 100%);
  transform: skewX(-18deg); animation: navShimmer 3.6s ease-in-out infinite; pointer-events: none;
}
@keyframes navShimmer { 0% { left: -160%; } 55%, 100% { left: 160%; } }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 26px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--promo-h) + 96px) 0 60px;
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(216,179,164,.18), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 18px; display: inline-block; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--sage-d); }
.hero-lead { font-size: 19px; color: var(--muted); max-width: 30em; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-urgency { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; color: var(--sage-d); font-weight: 600; background: rgba(142,156,130,.12); border: 1px solid rgba(142,156,130,.3); padding: 8px 14px; border-radius: 999px; margin-bottom: 30px; }
.hero-urgency b { color: var(--ink); }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-family: var(--serif); font-size: 30px; color: var(--ink); line-height: 1; }
.hero-stats .stat span { font-size: 13px; color: var(--muted); letter-spacing: .04em; }

/* Hero photo cluster — 4 zdjęcia w przesuniętym gridzie 2x2 */
.hero-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.hero-photos .ph {
  position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); background: var(--sand);
}
.hero-photos .ph img { width: 100%; height: 100%; object-fit: cover; }
/* prawa kolumna delikatnie przesunięta w dół (dynamiczny układ) */
.hero-photos .ph-b, .hero-photos .ph-d { transform: translateY(30px); }
.hero-badge {
  position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); bottom: 8px;
  background: var(--white); border-radius: 999px; padding: 10px 18px;
  box-shadow: var(--shadow); font-size: 13px; font-weight: 700; color: var(--sage-d);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }

/* ---------- Marquee (przewijany pasek zdjęć) ---------- */
.marquee { padding: 26px 0; background: var(--ink); overflow: hidden; }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: slide 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 130px; width: 104px; object-fit: cover; border-radius: 8px; opacity: .92; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Section base ---------- */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow { margin-bottom: 14px; display: inline-block; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 18px; }
.section-alt { background: var(--cream-2); }

/* ---------- Kafelki / Jak to działa ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 32px 26px; transition: transform .3s ease, box-shadow .3s ease;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tile .step { font-family: var(--serif); font-size: 44px; color: var(--sand); line-height: 1; margin-bottom: 12px; }
.tile h3 { font-size: 22px; margin-bottom: 8px; }
.tile p { font-size: 15px; color: var(--muted); }

/* ---------- Galeria ---------- */
.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 38px; }
.filter {
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .25s ease;
}
.filter:hover { border-color: var(--taupe); }
.filter.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.gallery figure {
  margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4;
  position: relative; cursor: zoom-in; background: var(--sand); box-shadow: var(--shadow-sm);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 22px 14px 12px; color: var(--white);
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
  background: linear-gradient(180deg, transparent, rgba(40,36,32,.78));
  opacity: 0; transform: translateY(8px); transition: all .3s ease;
}
.gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(34, 30, 26, .92); align-items: center; justify-content: center; padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox .lb-close, .lightbox .lb-nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 24px;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.lightbox .lb-close:hover, .lightbox .lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- Cennik ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 38px 30px; display: flex; flex-direction: column; position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan.featured { border-color: var(--sage); box-shadow: var(--shadow); }
.plan .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--sage); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 16px; border-radius: 999px;
}
.plan h3 { font-size: 26px; margin-bottom: 6px; }
.plan .price { font-family: var(--serif); font-size: 52px; color: var(--ink); line-height: 1; margin: 14px 0 4px; }
.plan .price span { font-size: 18px; color: var(--muted); font-family: var(--sans); }
.plan .price-old { display: block; font-family: var(--sans); font-size: 17px; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--rose); margin-bottom: 2px; letter-spacing: .3px; }
.plan .ribbon {
  position: absolute; top: 16px; right: -4px;
  background: var(--rose); color: #fff; font-family: var(--sans); font-weight: 800;
  font-size: 13px; letter-spacing: .04em; padding: 6px 12px; border-radius: 8px 0 0 8px;
  box-shadow: 0 6px 16px -8px rgba(59,53,47,.6);
}
.plan .ribbon::after { content: ""; position: absolute; top: 100%; right: 0; border: 5px solid transparent; border-top-color: #b07d6b; border-right-width: 0; }
.plan .desc { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.plan ul { list-style: none; margin-bottom: 28px; flex: 1; }
.plan li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--sage-d); font-weight: 800; }
.plan li:last-child { border-bottom: 0; }
.plan .btn { width: 100%; justify-content: center; }
.pricing-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.contact-info p { color: var(--muted); margin-bottom: 26px; }
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list .ico { width: 42px; height: 42px; border-radius: 50%; background: var(--cream-2); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.contact-list b { display: block; font-size: 15px; }
.contact-list span { font-size: 14px; color: var(--muted); }

.form { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow-sm); }
.form label { display: block; font-size: 13.5px; font-weight: 700; margin: 0 0 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: 15px; margin-bottom: 18px; background: var(--cream);
  color: var(--ink); transition: border .2s ease;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sage); }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }
.form .consent input { width: auto; margin: 3px 0 0; }
.form .btn { width: 100%; justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #D9D0C5; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .brand { color: var(--cream); }
.footer h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); margin-bottom: 16px; }
.footer a { color: #D9D0C5; font-size: 14.5px; display: block; padding: 5px 0; transition: color .2s ease; }
.footer a:hover { color: var(--cream); }
.footer p { font-size: 14px; color: #B6ABA0; max-width: 30em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #9C9288; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: calc(var(--promo-h) + 84px); }
  /* na telefonie zdjęcia jako pierwsze, zaraz po wejściu */
  .hero-photos { order: -1; height: auto; max-width: 420px; width: 100%; margin-inline: auto; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0;
    height: 100vh; height: 100dvh; width: min(82vw, 330px);
    background: var(--cream); opacity: 1;
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: calc(var(--promo-h) + 84px) 30px 32px; gap: 6px; overflow-y: auto;
    transform: translateX(100%); transition: transform .35s ease;
    box-shadow: -14px 0 44px -12px rgba(40, 36, 32, .45);
    z-index: 55;
  }
  .nav-links a { width: 100%; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav-links a.btn { border-bottom: 0; margin-top: 14px; justify-content: center; padding: 14px 22px; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; z-index: 60; position: relative; }
  /* przyciemnienie tła pod otwartym menu */
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(40, 36, 32, .45);
    opacity: 0; visibility: hidden; transition: opacity .3s ease; z-index: 54;
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
  .tiles { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}

/* =========================================================
   Pasek zaufania (gwarancja + stały kontakt)
   ========================================================= */
.trustbar { background: var(--white); border-bottom: 1px solid var(--line); }
.trustbar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 24px 0; }
.trust { display: flex; gap: 13px; align-items: center; }
.trust .t-ico {
  font-size: 21px; width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  background: var(--cream-2); display: flex; align-items: center; justify-content: center;
}
.trust b { display: block; font-size: 15px; line-height: 1.2; }
.trust span { font-size: 13px; color: var(--muted); }
@media (max-width: 880px) { .trustbar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .trustbar-grid { grid-template-columns: 1fr; gap: 16px; } }

.cart-reassure { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.5; }

/* =========================================================
   Wybór zdjęć + personalizacja (koszyk)
   ========================================================= */

/* przycisk „serce" na kafelku */
.gallery figure .sel-btn {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.85); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; line-height: 1; color: var(--muted);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, background .2s ease, color .2s ease;
  opacity: 0; transform: translateY(-4px);
}
.gallery figure:hover .sel-btn,
.gallery figure.selected .sel-btn { opacity: 1; transform: none; }
.gallery figure .sel-btn:hover { transform: scale(1.12); }
.gallery figure.selected .sel-btn { background: var(--rose); color: #fff; }
.gallery figure.selected { outline: 3px solid var(--sage); outline-offset: -3px; }
.gallery figure.selected::after {
  content: "✓ Wybrane"; position: absolute; top: 10px; left: 10px; z-index: 3;
  background: var(--sage-d); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .02em;
}

/* pasek koszyka (sticky, dół ekranu) */
.cart-bar {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 150%);
  z-index: 70; background: var(--ink); color: var(--cream);
  border-radius: 999px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 18px; padding: 10px 10px 10px 24px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  max-width: 92vw;
}
.cart-bar.show { transform: translate(-50%, 0); }
.cart-bar .cart-count { font-size: 15px; font-weight: 600; white-space: nowrap; }
.cart-bar .cart-count strong { color: var(--rose); }
.cart-bar .btn { padding: 12px 22px; }

/* modal koszyka / personalizacji */
.cart-modal {
  position: fixed; inset: 0; z-index: 110; display: none;
  background: rgba(34,30,26,.6); backdrop-filter: blur(3px);
  align-items: flex-start; justify-content: center; padding: 5vh 16px;
  overflow-y: auto;
}
.cart-modal.open { display: flex; }
.cart-panel {
  background: var(--cream); border-radius: 20px; width: 100%; max-width: 720px;
  padding: 34px; position: relative; box-shadow: var(--shadow);
}
.cart-panel h3 { font-size: 30px; margin-bottom: 6px; }
.cart-panel .cart-sub { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.cart-close {
  position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 18px; color: var(--ink);
}
.cart-close:hover { background: var(--cream-2); }
.cart-empty { color: var(--muted); padding: 18px 0 24px; }

.cart-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.cart-item { display: grid; grid-template-columns: 78px 1fr; gap: 14px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.cart-item img { width: 78px; height: 100px; object-fit: cover; border-radius: 8px; }
.cart-item .ci-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.cart-item .ci-title { font-weight: 700; font-size: 15px; }
.cart-item .ci-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.cart-item .ci-remove:hover { color: #b4493a; }
.cart-item textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px;
  font-family: var(--sans); font-size: 14px; background: var(--cream); resize: vertical; min-height: 44px;
}
.cart-item textarea:focus { outline: none; border-color: var(--sage); }

.cart-form { border-top: 1px solid var(--line); padding-top: 22px; }
.cart-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cart-form label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 5px; }
.cart-form input, .cart-form select {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: 15px; margin-bottom: 16px; background: var(--white); color: var(--ink);
}
.cart-form input:focus, .cart-form select:focus { outline: none; border-color: var(--sage); }
.cart-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.cart-form .consent input { width: auto; margin: 3px 0 0; }
.cart-form .btn { width: 100%; justify-content: center; }

/* upload zdjęć + podpowiedzi w formularzu zamówienia */
.cart-form .field-hint { font-size: 12.5px; color: var(--muted); margin: -8px 0 16px; line-height: 1.45; }
.file-drop {
  display: flex; align-items: center; gap: 13px; cursor: pointer;
  border: 1.5px dashed var(--taupe); border-radius: 12px; padding: 16px 18px;
  background: var(--white); margin-bottom: 8px; transition: border-color .2s ease, background .2s ease;
}
.file-drop:hover { border-color: var(--sage); background: var(--cream-2); }
.file-drop .file-ico { font-size: 22px; flex: 0 0 auto; }
.file-drop .file-text { font-size: 14px; color: var(--muted); }
.file-drop.has-file { border-style: solid; border-color: var(--sage); background: var(--cream-2); }
.file-drop.has-file .file-text { color: var(--ink); font-weight: 600; }
.cart-form textarea {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: 15px; margin-bottom: 16px; background: var(--white);
  color: var(--ink); resize: vertical; min-height: 46px;
}
.cart-form textarea:focus { outline: none; border-color: var(--sage); }

/* Sekcja „Obróbka zdjęć" */
.edit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.edit-ico { width: 54px; height: 54px; border-radius: 14px; background: var(--cream-2); color: var(--sage-d);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.edit-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile:hover .edit-ico { background: var(--sage); color: #fff; transition: background .3s ease, color .3s ease; }
.edit-cta { text-align: center; margin-top: 38px; }
.edit-cta p { font-size: 14px; color: var(--muted); margin-top: 12px; }
@media (max-width: 880px) { .edit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .edit-grid { grid-template-columns: 1fr; } }

@media (max-width: 560px) {
  .cart-panel { padding: 26px 18px; }
  .cart-form .row { grid-template-columns: 1fr; }
  .cart-bar { padding: 8px 8px 8px 18px; gap: 12px; bottom: 14px; }
  .cart-bar .cart-count { font-size: 14px; }
}

/* =========================================================
   Przed / Po (suwak)
   ========================================================= */
.ba-cost { max-width: 720px; margin: 14px auto 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.ba-cost strong { color: var(--ink); }
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 230px)); gap: 18px; justify-content: center; max-width: 980px; margin-inline: auto; }
.ba { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); user-select: none; touch-action: pan-y; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.ba-divider::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 14px; box-shadow: var(--shadow-sm); }
.ba-tag { position: absolute; bottom: 12px; font-size: 11px; font-weight: 700; letter-spacing: .12em; padding: 5px 10px; border-radius: 999px; color: #fff; background: rgba(40,36,32,.55); pointer-events: none; }
.ba-tag-before { left: 12px; } .ba-tag-after { right: 12px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; touch-action: pan-y; }
@media (max-width: 560px) { .ba-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* =========================================================
   Opinie
   ========================================================= */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease; overflow: hidden;
}
.review:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.review::before {
  content: "\201C"; position: absolute; top: 6px; right: 22px;
  font-family: var(--serif); font-size: 84px; line-height: 1; color: var(--sand); z-index: 0;
}
.review .stars { color: #E6A93B; letter-spacing: 3px; margin-bottom: 14px; font-size: 15px; position: relative; z-index: 1; }
.review blockquote { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.5; color: var(--ink); margin-bottom: 22px; position: relative; z-index: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review .avatar { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 17px; background: var(--sage); }
.review:nth-child(2) .avatar { background: var(--rose); }
.review:nth-child(3) .avatar { background: var(--taupe); }
.review:nth-child(4) .avatar { background: var(--sage-d); }
.review:nth-child(5) .avatar { background: #C49A6C; }
.review:nth-child(6) .avatar { background: #B08B9E; }
.review .who { display: flex; flex-direction: column; line-height: 1.25; }
.review .who b { font-size: 15px; }
.review .who small { font-size: 12.5px; color: var(--muted); }
.reviews-note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 22px; font-style: italic; }
@media (max-width: 880px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reviews { grid-template-columns: 1fr; } }

/* =========================================================
   Zgoda „zaznacz wszystkie" + badge'y płatności
   ========================================================= */
.consent-all { background: var(--cream-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0 4px; }
.pay-badge { font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.pay-badge.pay-blik { background: #000; color: #fff; border-color: #000; }

/* =========================================================
   Baner cookies
   ========================================================= */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 760px; margin-inline: auto;
  background: var(--ink); color: var(--cream); border-radius: 14px; box-shadow: var(--shadow);
  padding: 18px 20px; display: none; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cookie.show { display: flex; }
.cookie p { font-size: 13.5px; line-height: 1.5; flex: 1 1 320px; margin: 0; }
.cookie p a { color: var(--cream); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-btns .btn { padding: 11px 20px; font-size: 14px; }
.cookie-btns .btn-ghost { color: var(--cream); border-color: rgba(255,255,255,.4); background: transparent; }
.cookie-btns .btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--cream); }
/* wyróżniony przycisk „Akceptuję wszystkie" */
.cookie-btns .btn-primary { background: var(--sage); color: #fff; border-color: var(--sage); font-weight: 700;
  box-shadow: 0 0 0 3px rgba(142, 156, 130, .35); animation: cookiePulse 2.4s ease-in-out infinite; }
.cookie-btns .btn-primary:hover { background: var(--sage-d); border-color: var(--sage-d); transform: translateY(-1px); animation: none; }
@keyframes cookiePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(142, 156, 130, .30); }
  50% { box-shadow: 0 0 0 6px rgba(142, 156, 130, .15); }
}

/* =========================================================
   Strony prawne
   ========================================================= */
.legal { max-width: 820px; margin: 0 auto; padding: 120px 0 80px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 30px 0 10px; }
.legal p, .legal li { font-size: 15.5px; color: var(--ink); line-height: 1.7; }
.legal ul { margin: 8px 0 8px 22px; }
.legal a.back { display: inline-block; margin-top: 36px; font-weight: 600; color: var(--sage-d); }
.legal .placeholder { background: #FBEFD8; border: 1px dashed #E0A93B; border-radius: 8px; padding: 10px 14px; font-size: 13.5px; color: #7a5a18; }

/* =========================================================
   Kafelki wyboru pakietu (okno zamówienia)
   ========================================================= */
.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.plan-opt { display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 8px;
  font-family: var(--sans); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.plan-opt:hover { border-color: var(--taupe); }
.plan-opt b { font-size: 15px; color: var(--ink); }
.plan-opt span { font-size: 12px; color: var(--muted); }
.plan-opt em { font-style: normal; font-weight: 700; font-size: 14px; color: var(--sage-d); margin-top: 2px; }
.plan-opt.is-active { border-color: var(--sage); background: var(--cream-2); box-shadow: 0 0 0 3px rgba(142,156,130,.25); }
.plan-counter { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.plan-counter strong { color: var(--ink); }
@media (max-width: 560px) { .plan-opt { padding: 12px 5px; } .plan-opt b { font-size: 14px; } .plan-opt span { font-size: 11px; } }

/* =========================================================
   Toast (eleganckie powiadomienia) + okno potwierdzenia
   ========================================================= */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 24px);
  z-index: 200; background: var(--ink); color: var(--cream);
  padding: 13px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); max-width: 90vw; text-align: center;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.done-modal {
  position: fixed; inset: 0; z-index: 210; display: none;
  background: rgba(34,30,26,.6); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 6vh 18px;
}
.done-modal.open { display: flex; }
.done-card {
  background: var(--cream); border-radius: 20px; max-width: 440px; width: 100%;
  padding: 36px 30px; text-align: center; box-shadow: var(--shadow);
}
.done-ico {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--sage); color: #fff; font-size: 32px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.done-card h3 { font-size: 28px; margin-bottom: 10px; }
.done-card > p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.done-sum { list-style: none; text-align: left; max-width: 280px; margin: 0 auto 24px; }
.done-sum li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--ink); }
.done-sum li:last-child { border-bottom: 0; }
.done-card .btn { width: 100%; justify-content: center; }
.done-card .btn + .btn { margin-top: 10px; }
.done-note { font-size: 12px; color: var(--muted); margin-top: 14px; }

/* ---------- Nakładka postępu wysyłki ---------- */
.up-overlay {
  position: fixed; inset: 0; z-index: 120; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(40, 36, 32, .55); backdrop-filter: blur(3px);
}
.up-overlay.show { display: flex; }
.up-card {
  background: var(--white); border-radius: 18px; padding: 30px 28px;
  width: min(360px, 92vw); text-align: center; box-shadow: var(--shadow);
}
.up-spin {
  width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--sage-d);
  animation: upspin .8s linear infinite;
}
@keyframes upspin { to { transform: rotate(360deg); } }
.up-text { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.up-bar { height: 9px; border-radius: 999px; background: var(--cream-2); overflow: hidden; }
.up-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--sage), var(--sage-d)); transition: width .35s ease;
}
.up-fill.indeterminate { width: 40%; animation: upind 1.1s ease-in-out infinite; }
@keyframes upind { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }

/* Retusz / przeróbka własnego zdjęcia (w oknie zamówienia) */
.retouch-box { background: var(--cream-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 14px; margin-bottom: 20px; }
.retouch-box h4 { font-family: var(--serif); font-size: 21px; margin-bottom: 6px; color: var(--ink); }
.retouch-box .retouch-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
.retouch-box .file-drop { background: var(--white); }
.retouch-box label { margin-top: 4px; }
