:root {
  --tlo: #FDF6EE;
  --tlo-karta: #fffdfb;
  --tekst: #1E2A4A;
  --tekst-jasny: #5b6786;
  --szalwia: #A7B89F;
  --szalwia-ciemna: #8a9c81;
  --lawenda: #DDC4EE;
  --bordo: #9F0000;
  --bordo-ciemne: #7a0000;
  --terakota: #c98a5e;
  --zloto: #b8933f;
  --linia: #ece2cd;
  --promien: 14px;

  /* Kolor akcentu - przyciski, ceny, hasło */
  --akcent: #9F0000;
  --akcent-ciemny: #7a0000;
  --akcent-wygaszony: #d99a9a;

  /* Jasny odcień granatu - tła podsumowań, wypełnienia */
  --granat-jasny: #e4e8f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--tekst);
  font-family: 'Nunito Sans', sans-serif;
  line-height: 1.5;
  /* Kremowe tło marki + przewijające się w dół strony chmurki */
  background-color: var(--tlo);
  background-image: url('images/tlo.png');
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 100% auto;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; margin: 0; color: var(--tekst); }

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

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 13px 28px;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary { background: var(--akcent); color: #FFFFFF; }
.btn-primary:hover { background: var(--akcent-ciemny); }
.btn-primary:disabled { background: var(--akcent-wygaszony); cursor: not-allowed; }
.btn-ze-strzalka { display: inline-flex; align-items: center; gap: 10px; }
.btn-granat {
  background: var(--tekst);
  color: var(--tlo);
  padding: 16px 34px;
  font-size: 16px;
}
.btn-granat:hover { background: #142038; }
.btn-outline {
  background: transparent;
  color: var(--tekst);
  border: 1.5px solid var(--tekst);
}
.btn-outline:hover { background: rgba(221, 196, 238, 0.28); }
.btn:active { transform: scale(0.97); }

/* ===== HEADER: logo lewo, wyśrodkowane zakładki, koszyk prawo ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 48px;
  background: var(--tlo);
}
.logo-link { justify-self: start; }
.logo-img { height: 100px; width: auto; }
.site-header nav {
  justify-self: center;
  display: flex;
  gap: 34px;
}
.site-header nav a {
  color: var(--tekst);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.site-header nav a:hover { color: var(--akcent); }
.header-akcje { justify-self: end; display: flex; align-items: center; gap: 18px; }
.cart-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tekst);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tekst);
  padding: 4px;
}
#cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bordo);
  color: #fff;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: 700;
}

/* ===== HERO ===== */
.hero {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 36px 48px 90px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-text { flex: 1; min-width: 280px; }
.hero-text h1 { font-size: 46px; line-height: 1.14; margin-bottom: 18px; color: var(--tekst); }
.hero-text h1 .motto-serduszko { vertical-align: middle; margin-left: 4px; }
.hero-text p { color: var(--tekst); font-size: 17px; max-width: 400px; margin-bottom: 26px; font-family: 'Nunito Sans', sans-serif; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-image {
  flex: 1;
  min-width: 360px;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image img { width: 100%; height: auto; display: block; }
@media (min-width: 1200px) {
  .hero-image {
    justify-content: flex-end;
    margin-right: calc((100vw - 1200px) / -2);
  }
}

/* ===== CECHY ===== */
.cechy {
  max-width: 1100px;
  margin: 0 auto 90px;
  padding: 36px 48px;
  background: var(--tlo-karta);
  border-radius: var(--promien);
  border: 1px solid var(--linia);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  text-align: center;
}
.cecha { display: flex; flex-direction: column; align-items: center; }
.cecha-ikona {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
}
.cecha-ikona img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cecha p { font-size: 14px; font-weight: 600; color: var(--tekst); margin: 0; line-height: 1.4; }

/* ===== PRODUKTY ===== */
.produkty { padding: 20px 48px 90px; max-width: 1200px; margin: 0 auto; }
.produkty h2 { text-align: center; font-size: 32px; margin-bottom: 44px; }
.produkty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.produkty-cta { text-align: center; margin-top: 44px; }
.produkt-karta {
  background: var(--tlo-karta);
  border-radius: var(--promien);
  padding: 22px;
  border: 1px solid var(--linia);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.produkt-karta.powiekszona {
  transform: scale(1.045);
  box-shadow: 0 26px 60px rgba(60, 54, 44, 0.18);
  z-index: 5;
}
.produkt-miniatura {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #eee6d6;
}
.produkt-miniatura img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.produkt-karta h3 { font-size: 19px; margin-bottom: 4px; }
.produkt-cena { font-weight: 700; font-size: 16px; color: var(--akcent); margin-bottom: 10px; }
.produkt-opis { color: var(--tekst-jasny); font-size: 13.5px; margin-bottom: 14px; }

/* Kafelki cech (Twarda oprawa, 24 strony, itd.) */
.cechy-tagi {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.tag-cecha {
  border: none;
  color: var(--akcent);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 700;
  background: #f6dede;
}

.produkt-karta .btn { width: 100%; }

/* ===== STRONA KATALOGU (Książeczki / Kolorowanki) - produkty w wierszach ===== */
.produkty-strona { padding: 48px 48px 90px; max-width: 900px; margin: 0 auto; }
.produkty-strona h1 { font-size: 34px; margin-bottom: 12px; text-align: center; }
.produkty-strona-lead { color: var(--tekst-jasny); text-align: center; max-width: 560px; margin: 0 auto 44px; }
.produkty-lista { display: flex; flex-direction: column; gap: 28px; }
.produkt-wiersz {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--tlo-karta);
  border-radius: var(--promien);
  border: 1px solid var(--linia);
  padding: 24px;
}
.produkt-wiersz-miniatura {
  flex: 0 0 220px;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #eee6d6;
}
.produkt-wiersz-miniatura img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.produkt-wiersz-tresc { flex: 1; min-width: 0; }
.produkt-wiersz-tresc h2 { font-size: 21px; margin-bottom: 6px; }
.produkt-wiersz-tresc .produkt-opis { font-size: 14px; margin-bottom: 14px; }
.produkt-wiersz-tresc .cechy-tagi { margin-bottom: 16px; }
.produkt-wiersz-tresc .produkt-cena { font-size: 18px; margin-bottom: 14px; }
.produkt-wiersz-tresc .btn { width: auto; padding: 12px 30px; }
/* ===== DŁUGIE DOKUMENTY PRAWNE (Polityka prywatności, Regulamin) ===== */
.dokument-prawny {
  max-width: 760px;
  margin: 24px auto 0;
  text-align: left;
  color: var(--tekst);
  font-size: 15px;
  line-height: 1.7;
}
.dokument-prawny h2 {
  font-size: 21px;
  margin: 38px 0 14px;
}
.dokument-prawny h2:first-of-type { margin-top: 26px; }
.dokument-prawny h3 {
  font-size: 16px;
  margin: 22px 0 10px;
  color: var(--akcent);
}
.dokument-prawny p { margin: 0 0 14px; }
.dokument-prawny ul { margin: 0 0 14px; padding-left: 22px; }
.dokument-prawny li { margin-bottom: 10px; }
.dokument-prawny strong { color: var(--tekst); }
.do-uzupelnienia {
  background: #f6dede;
  color: var(--akcent);
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}
.dokument-data {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--linia);
  font-size: 13px;
  color: var(--tekst-jasny);
  font-style: italic;
}

.produkty-strona-wkrotce {
  text-align: center;
  color: var(--tekst-jasny);
  background: var(--tlo-karta);
  border: 1px solid var(--linia);
  border-radius: var(--promien);
  padding: 60px 24px;
  font-size: 16px;
}

/* ===== JAK TO DZIAŁA ===== */
.jak-to-dziala {
  background: var(--tlo-karta);
  padding: 70px 48px;
  border-top: 1px solid var(--linia);
  border-bottom: 1px solid var(--linia);
}
.jak-to-dziala h2 { text-align: center; font-size: 30px; margin-bottom: 40px; }
.kroki {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.krok { position: relative; }
.krok-ikona { position: relative; display: inline-block; margin-bottom: 10px; }
.krok-ikona img { width: 90px; height: 90px; display: block; }
.krok:not(:last-child) .krok-ikona::after {
  content: '';
  position: absolute;
  top: 54.5%;
  left: 125%;
  width: 105px;
  border-top: 2px dashed var(--tekst);
  opacity: 0.45;
  transform: translateY(-50%);
}
.krok p { font-size: 14.5px; color: var(--tekst-jasny); }
.krok p strong { color: var(--tekst); }

/* ===== OPINIE ===== */
.opinie { padding: 80px 48px; max-width: 1200px; margin: 0 auto; }
.opinie h2 { text-align: center; font-size: 32px; margin-bottom: 44px; }
.opinie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.opinia-karta {
  background: var(--tlo-karta);
  border-radius: var(--promien);
  border: 1px solid var(--linia);
  padding: 26px 24px;
}
.cudzyslow {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  color: var(--zloto);
  line-height: 1;
}
.opinia-karta p { font-size: 14.5px; color: var(--tekst); font-style: italic; margin: 8px 0 18px; }
.opinia-autor { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.gwiazdki { color: var(--zloto); letter-spacing: 1px; }

/* ===== FAQ ===== */
.faq {
  background: var(--tlo-karta);
  padding: 80px 48px;
  border-top: 1px solid var(--linia);
  border-bottom: 1px solid var(--linia);
}
.faq h2 { text-align: center; font-size: 30px; margin-bottom: 44px; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.faq-karta {
  background: rgba(221, 196, 238, 0.5);
  border-radius: var(--promien);
  padding: 22px 24px;
}
.faq-karta h4 { font-size: 16px; margin-bottom: 10px; }
.faq-karta p { font-size: 13.5px; color: var(--tekst); margin: 0; }
.faq-karta--pelna { grid-column: 1 / -1; }

/* ===== STOPKA ===== */
footer#kontakt {
  padding: 90px 64px 60px;
  margin-top: 0px;
  min-height: 340px;
  background: var(--tlo-karta) url('images/stopka-tlo.png') no-repeat left center / cover;
  border-top: 1px solid var(--linia);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.footer-ilustracja-mobilna { display: none; }
.footer-top {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.footer-logo { height: 114px; width: auto; margin: 0 0 12px; }
.footer-linki {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.footer-linki span:not(.footer-separator) { color: var(--tekst); font-weight: 600; }
.footer-linki a { color: var(--tekst); text-decoration: none; font-weight: 600; }
.footer-linki a:hover { color: var(--bordo); }
.footer-separator { color: var(--tekst-jasny); }

/* ===== MODAL (wspólne dla personalizacji i danych zamawiającego) ===== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(60, 54, 44, 0.45);
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay.otwarty { display: flex; }
.modal {
  background: var(--tlo-karta);
  border-radius: var(--promien);
  max-width: 720px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}
.modal-zamknij {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--tekst-jasny);
  line-height: 1;
}
.modal h3 { font-size: 24px; margin-bottom: 20px; }
.modal-body { display: flex; gap: 32px; flex-wrap: wrap; }
#personalizacja-form {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#personalizacja-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tekst);
}
#personalizacja-form input,
#personalizacja-form select {
  border: 1.5px solid var(--tekst);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--tekst);
  background: #fff;
}
#personalizacja-form input:focus,
#personalizacja-form select:focus { outline: none; border-color: var(--akcent); }
#personalizacja-form textarea {
  border: 1.5px solid var(--tekst);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--tekst);
  background: #fff;
  resize: vertical;
  min-height: 60px;
}
#personalizacja-form textarea:focus { outline: none; border-color: var(--akcent); }

/* ===== PODGLĄD WGRANEGO ZDJĘCIA (z przyciskiem "x" na hover) ===== */
.zdjecie-podglad-wrapper {
  position: relative;
  display: inline-block;
  width: 110px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--linia);
}
.zdjecie-podglad-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.zdjecie-usun-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s ease, background .15s ease;
}
.zdjecie-podglad-wrapper:hover .zdjecie-usun-btn { opacity: 1; }
.zdjecie-usun-btn:hover { background: #c0392b; }
.modal-podglad {
  flex: 1;
  min-width: 220px;
  /* display: flex; */ /* WYŁĄCZONE na życzenie klienta - podgląd okładki na razie się nie wyświetla (ani dla książeczek, ani kolorowanek). Przywrócenie: zamień poniższe "display: none;" na odkomentowaną linię wyżej. */
  display: none;
  flex-direction: column;
  align-items: center;
}

/* Formularz personalizacji kolorowanki - tylko imię, płeć i zdjęcie, bez
   podglądu okładki. Selektor musi zawierać #personalizacja-form, inaczej
   przegrywa specyficznością z regułą "#personalizacja-form label" powyżej. */
.modal-kolorowanka #personalizacja-form .pole-tylko-ksiazeczka {
  display: none;
}
.podglad-etykieta { font-size: 13px; font-weight: 700; color: var(--tekst-jasny); margin-bottom: 10px; }
#podglad-canvas { width: 100%; max-width: 300px; aspect-ratio: 1; border-radius: 10px; background: #eee6d6; }

/* ===== FORMULARZ DANYCH ZAMAWIAJĄCEGO ===== */
.dane-podtytul { color: var(--tekst-jasny); font-size: 14px; margin: -8px 0 18px; }
.dane-form { display: flex; flex-direction: column; gap: 14px; }
.dane-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tekst);
}
.dane-form input {
  border: 1.5px solid var(--tekst);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--tekst);
}
.dane-form input:focus { outline: none; border-color: var(--akcent); }
.dane-form textarea {
  border: 1.5px solid var(--tekst);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--tekst);
  resize: vertical;
  min-height: 60px;
}
.dane-form textarea:focus { outline: none; border-color: var(--akcent); }
.dane-form select {
  border: 1.5px solid var(--tekst);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--tekst);
  background: #fff;
}
.dane-form select:focus { outline: none; border-color: var(--akcent); }
.dane-wiersz { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dane-wiersz-telefon { grid-template-columns: 130px 1fr; }
.pole-opcjonalne { font-weight: 400; color: var(--tekst-jasny); font-size: 12px; }
.pole-blad { color: #c0392b; font-size: 12px; font-weight: 600; min-height: 14px; }

/* Czerwona obwódka pól niewypełnionych/niepoprawnych - działa w każdym formularzu */
input.pole-niepoprawne,
select.pole-niepoprawne,
textarea.pole-niepoprawne {
  border-color: #c0392b !important;
}

/* Przycisk "wygaszony" - wygląda na nieaktywny (przygaszone bordo), ale
   pozostaje klikalny, żeby kliknięcie w niego mogło podświetlić na czerwono
   niewypełnione pola. Po uzupełnieniu wszystkich wymaganych pól klasa jest
   usuwana i przycisk wraca do pełnego koloru bordowego (.btn-primary). */
.btn-primary.wyszarzony,
.btn-primary.wyszarzony:hover {
  background: var(--akcent-wygaszony);
}

.dane-podsumowanie {
  background: var(--granat-jasny);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tekst);
}
.regulamin-info {
  font-size: 12px;
  color: var(--tekst-jasny);
  line-height: 1.5;
  margin: -4px 0 0;
}
.regulamin-info a { color: var(--tekst); text-decoration: underline; }
.pole-podpowiedz {
  font-size: 12px;
  color: var(--tekst-jasny);
  margin: -8px 0 0;
  line-height: 1.4;
}

/* ===== WYBÓR DOSTAWY ===== */
.dostawa-opcje { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.dostawa-opcja {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--linia);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .15s ease;
}
.dostawa-opcja:has(input:checked) { border-color: var(--akcent); background: #fdf8f0; }
.dostawa-opcja input { margin: 0; }
.dostawa-nazwa { font-weight: 700; flex: 1; }
.dostawa-cena { font-weight: 700; color: var(--akcent); }
#geowidget-wrapper { margin-bottom: 18px; }
.paczkomat-szukaj-wiersz { display: flex; gap: 10px; margin-bottom: 12px; }
.paczkomat-szukaj-wiersz input {
  flex: 1;
  border: 1.5px solid var(--linia);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
}
.paczkomat-szukaj-wiersz input:focus { outline: none; border-color: var(--akcent); }
.paczkomat-szukaj-wiersz .btn { padding: 10px 20px; white-space: nowrap; }
#paczkomat-wyniki { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.paczkomat-wynik {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 2px;
  border: 1.5px solid var(--linia);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
  font-family: 'Nunito Sans', sans-serif;
}
.paczkomat-wynik span { font-size: 12.5px; color: var(--tekst-jasny); }
.paczkomat-wynik:hover { border-color: var(--akcent); }
.paczkomat-wynik.wybrany { border-color: var(--akcent); background: #fdf8f0; }
.paczkomat-status { font-size: 13.5px; color: var(--tekst-jasny); }
.wybrany-paczkomat {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--szalwia-ciemna);
}

/* ===== KOSZYK ===== */
.cart-backdrop { display: none; position: fixed; inset: 0; background: rgba(60, 54, 44, 0.35); z-index: 90; }
.cart-backdrop.otwarty { display: block; }
.cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 400px;
  max-width: 92vw;
  height: 100%;
  background: var(--tlo-karta);
  z-index: 95;
  display: flex;
  flex-direction: column;
  transition: right .25s ease;
  box-shadow: -12px 0 40px rgba(0,0,0,0.15);
}
.cart-drawer.otwarty { right: 0; }
.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--linia);
}
.cart-drawer-header button { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--tekst-jasny); }
#cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: flex; gap: 12px; border-bottom: 1px solid var(--linia); padding-bottom: 16px; }
.cart-item img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #eee6d6; }
.cart-item-info { flex: 1; }
.cart-item-info .nazwa { font-weight: 700; font-size: 14.5px; }
.cart-item-info .szczegoly { font-size: 13px; color: var(--tekst-jasny); }
.cart-item-akcje { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; }
.cart-item-ilosc { color: var(--tekst-jasny); }
.cart-item-usun {
  background: var(--granat-jasny);
  border: 1px solid var(--tekst);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--tekst);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-left: auto;
}
.cart-item-usun:hover { background: var(--tekst); color: #fff; border-color: var(--tekst); }
.pusty-koszyk { color: var(--tekst-jasny); text-align: center; margin-top: 40px; font-size: 14px; }
.cart-drawer-footer { padding: 20px 24px; border-top: 1px solid var(--linia); }
.cart-suma { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.cart-drawer-footer .btn { width: 100%; }
.cart-info { font-size: 12px; color: var(--tekst-jasny); text-align: center; margin-top: 10px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--tlo-karta);
    border-bottom: 1px solid var(--linia);
    box-shadow: 0 16px 30px rgba(60, 54, 44, 0.12);
    z-index: 80;
    padding: 8px 0;
  }
  .site-header nav.otwarte { display: flex; }
  .site-header nav a { padding: 14px 24px; text-align: center; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .hero { flex-direction: column; text-align: center; padding: 32px 32px 60px; }
  .hero-text { min-width: 0; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-image { width: 100%; min-width: 0; max-width: 420px; margin: 0 auto; }

  .footer-top { max-width: none; }
  .produkt-wiersz { flex-direction: column; }
  .produkt-wiersz-miniatura { flex: none; width: 100%; max-width: 260px; margin: 0 auto; }
  .krok:not(:last-child) .krok-ikona::after { display: none; }
}

@media (max-width: 640px) {
  body { background-attachment: scroll; }
  .site-header { padding: 14px 20px; }
  .logo-img { height: 56px; }
  .header-akcje { gap: 12px; }

  .hero { padding: 20px 20px 56px; }
  .hero-text h1 { font-size: 30px; }
  .hero-image { max-width: 305px; }

  .produkty, .jak-to-dziala, .opinie, .faq, .produkty-strona { padding-left: 20px; padding-right: 20px; }
  .produkty h2, .jak-to-dziala h2, .opinie h2, .faq h2 { font-size: 26px; }
  .produkty-strona h1 { font-size: 27px; }
  .dokument-prawny { font-size: 14px; }
  .dokument-prawny h2 { font-size: 18px; margin: 28px 0 10px; }
  .dokument-prawny h3 { font-size: 15px; }
  .faq-grid { grid-template-columns: 1fr; }
  .dane-wiersz { grid-template-columns: 1fr; }

  footer#kontakt {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-image: none;
    padding: 0 24px 32px;
    min-height: 0;
  }
  .footer-ilustracja-mobilna {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 1;
    background: url('images/stopka-tlo.png') no-repeat left center / cover;
    margin-bottom: 22px;
    border-radius: 0 0 var(--promien) var(--promien);
  }
  .footer-top { align-items: center; text-align: center; }
  .footer-linki { justify-content: center; }
  .footer-logo { height: 84px; margin: 0 0 12px; }

  .modal-overlay { padding: 12px; }
  .modal { padding: 22px; }
  .modal-body { gap: 20px; }
  .modal h3 { font-size: 20px; }

  .cart-drawer { width: 100%; max-width: 100vw; right: -100%; }
  .cart-drawer-header, .cart-drawer-footer { padding: 16px 18px; }
  #cart-items { padding: 12px 18px; }
}

