/* ————— Chrupkie — układ 1:1 wg crumblcookies.com ————— */

:root {
  --primary: #ffb9cd;        /* róż marki */
  --primary-wcag: #f79db7;   /* róż hoverów tekstowych */
  --primary-light: #ffe6e5;
  --secondary: #fcebd9;      /* krem */
  --nilla: #fef9f3;          /* tło sekcji */
  --ink: #1c1a19;
  --white: #fff;

  --font: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  --radius-card: 40px;
  --radius-card-sm: 16px;
  --pill: 999px;

  --bleed: -325px;           /* karta wystaje poza ekran */
  --bleed-sm: -112px;

  --t-fast: 0.3s ease-in;    /* przyciski, hover */
}

@keyframes fadeIn { 0% { opacity: 0; } to { opacity: 1; } }

* { box-sizing: border-box; }

/* atrybut hidden zawsze ukrywa (nawet gdy element ma display: flex/grid) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

section[id], [id] { scroll-margin-top: 92px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
p { margin: 0; }
a { color: inherit; }

h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(44px, 7.5vw, 100px);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

/* ————— Przyciski (pigułki jak u Crumbla) ————— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 12px 30px;
  border-radius: var(--pill);
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--t-fast);
}

.btn-black { background: var(--ink); color: var(--white); }
.btn-black:hover { background: #000; }

:focus-visible {
  outline: 2.5px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ————— Nagłówek ————— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
}

.header-inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo-dot { color: var(--primary-wcag); }

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color var(--t-fast);
}
.main-nav a:hover { color: var(--primary-wcag); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 30px; }

.signin {
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: color var(--t-fast);
}
.signin:hover { color: var(--primary-wcag); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2.5px; border-radius: 2px; background: var(--ink); }

/* ————— Mobilny drawer (transform 300ms jak u Crumbla) ————— */

.drawer {
  position: fixed;
  z-index: 60;
  inset: 0 auto 0 0;
  width: min(340px, 85vw);
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 70px 30px 30px;
  gap: 8px;
  overflow-x: hidden;
}
.drawer.open { transform: translateX(0); }
.drawer a {
  text-decoration: none;
  font-weight: 800;
  font-size: 28px;
  line-height: 32px;
  padding: 10px 0;
  transition: color var(--t-fast);
}
.drawer a:hover { color: var(--primary-wcag); }
.drawer .drawer-signin { margin-top: auto; font-size: 18px; font-weight: 600; }
.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
}
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgb(0 0 0 / 0.35);
  animation: fadeIn 0.33s ease-in-out;
}

/* ————— Hero — różowa karuzela 80svh ————— */

.hero {
  position: relative;
  background: var(--ink);
  height: 80svh;
  min-height: 520px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.66s ease-in-out;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(10 6 4 / 0.62) 0%, rgb(10 6 4 / 0.32) 45%, rgb(10 6 4 / 0.05) 75%),
              linear-gradient(0deg, rgb(10 6 4 / 0.35) 0%, transparent 30%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 1560px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 30px 0 clamp(30px, 7vw, 100px);
  color: var(--white);
}
.hero-slide.active .hero-copy { animation: fadeIn 0.66s ease-in-out; }

.hero-kicker {
  display: inline-block;
  background: var(--primary);
  color: var(--ink);
  border-radius: 7.5px;
  padding: 3px 18px;
  font-size: 16px;
  line-height: 26px;
  margin-bottom: 20px;
}

.hero-name {
  margin: 0;
  max-width: 12ch;
  font-weight: 800;
  font-size: clamp(44px, 6.5vw, 90px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.hero-desc {
  margin-top: 20px;
  font-size: 18px;
  line-height: 24px;
  max-width: 46ch;
}

.hero-ctas { display: flex; gap: 20px; margin-top: 35px; align-items: center; }

.btn-hero-order { background: var(--white); color: var(--ink); }
.btn-hero-order:hover { background: var(--primary); }
.btn-hero-more { background: transparent; color: var(--white); padding: 12px 25px; }
.btn-hero-more:hover { box-shadow: inset 0 0 0 1.5px var(--white); padding: 12px 30px; }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.85);
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  padding-bottom: 4px;
  cursor: pointer;
  transition: background-color var(--t-fast), transform var(--t-fast);
}
.hero-arrow:hover { background: var(--primary); transform: translateY(-50%) scale(1.06); }
.hero-arrow.prev { left: 22px; }
.hero-arrow.next { right: 22px; }

.hero-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgb(255 255 255 / 0.55);
  transition: all var(--t-fast);
}
.hero-dots button[aria-selected="true"] { background: var(--ink); width: 26px; border-radius: var(--pill); }

/* ————— Sekcje smaków ————— */

.flavors {
  background: var(--nilla);
  overflow-x: clip;
  padding: 100px 30px;
}

.classics-section { background: var(--white); }

.flavors-head {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-bottom: 16px;
}

.date-pill {
  align-self: flex-start;
  background: var(--primary);
  border-radius: 7.5px;
  padding: 3px 18px;
  font-size: 21px;
  line-height: 30px;
}

.flavors-sub { font-size: 18px; line-height: 22px; }

/* wiersz smaku — naprzemienny zygzak wystający poza ekran */

.btn-order:hover { opacity: 0.92; }

/* ————— Stopka ————— */

.site-footer { border-top: 1px solid var(--primary); background: var(--white); }

.footer-nav {
  max-width: 1560px;
  margin: 0 auto;
  padding: 50px 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.logo-footer { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.footer-tag { margin: 0; font-size: 15px; line-height: 22px; color: #6d5c58; }

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
}
.footer-col a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--primary-wcag); }
.soc a { display: flex; align-items: center; gap: 10px; }
.soc svg { width: 18px; height: 18px; flex-shrink: 0; }

.footer-legal {
  border-top: 1px solid var(--secondary);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}
.footer-legal a { text-decoration: none; margin-left: 24px; }
.footer-legal a:first-child { margin-left: 0; }
.footer-legal a:hover { color: var(--primary-wcag); }

/* ————— Wesela ————— */

.wedding {
  background: var(--primary-light);
  padding: 100px 30px;
  overflow: clip;
}
.wedding-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.wedding-pill { background: var(--white); }
.wedding h1 { margin-top: 8px; font-size: clamp(44px, 6vw, 84px); }
.wedding-lead {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 19px;
  line-height: 27px;
}

.wedding-offers {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.wedding-offers li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}
.offer-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
}
.wedding-offers strong { display: block; font-size: 19px; font-weight: 800; }
.wedding-offers p { margin-top: 3px; font-size: 15px; line-height: 21px; color: #7a5860; }

.wedding-ctas { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.wedding-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.wedding-ghost:hover { background: var(--white); }

.wedding-media { position: relative; }
.wedding-photo {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgb(60 20 30 / 0.4);
}
.wedding-photo.main { rotate: 1.5deg; }
.wedding-photo.main img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.wedding-photo.detail {
  position: absolute;
  right: -14px;
  bottom: -26px;
  width: 44%;
  rotate: -3deg;
  border: 6px solid var(--primary-light);
  border-radius: calc(var(--radius-card) - 8px);
}
.wedding-photo.detail img { width: 100%; aspect-ratio: 1; object-fit: cover; }

@media (max-width: 980px) {
  .wedding-inner { grid-template-columns: 1fr; }
  .wedding-media { max-width: 460px; margin: 0 auto; }
}

/* ————— Strona zamówienia ————— */

.order-page { background: var(--nilla); }

.order-mode-chip {
  background: var(--primary);
  border-radius: var(--pill);
  padding: 8px 18px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.order-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 50px 30px 100px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px 50px;
  align-items: start;
}

.order-head { grid-column: 1 / -1; }

.order-flow { display: flex; flex-direction: column; min-width: 0; }
.order-head h1 { font-size: clamp(40px, 5vw, 72px); }
.order-head .flavors-sub { margin-top: 10px; }

.status-banner {
  grid-column: 1 / -1;
  border-radius: var(--radius-card-sm);
  padding: 16px 20px;
  font-weight: 600;
}
.status-banner.ok { background: #dcf1de; color: #1d4a22; }
.status-banner.warn { background: var(--secondary); color: #6b4a1f; }

.order-step { margin-bottom: 40px; }
.order-step h2 {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.step-no {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
/* Smaki po sztuce — duże paski, zawsze widoczne */
.flavor-strips {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.flavor-strip {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius-card-sm);
  padding: 18px 22px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.flavor-strip.has-qty { border-color: var(--primary); }
.flavor-strip img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.flavor-strip-info { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; min-width: 0; }
.flavor-strip-info strong { font-size: 23px; line-height: 1.15; }
.flavor-strip-tag { font-size: 13px; color: #6d625c; text-transform: uppercase; letter-spacing: 0.04em; }
.flavor-strip-price { font-size: 17px; font-weight: 800; margin-top: 2px; }
.flavor-strip-stepper button { width: 46px; height: 46px; font-size: 22px; }
.flavor-strip-stepper span { min-width: 36px; font-size: 20px; }
@media (max-width: 560px) {
  .flavor-strip { gap: 14px; padding: 14px 16px; }
  .flavor-strip img { width: 78px; height: 78px; }
  .flavor-strip-info strong { font-size: 19px; }
  .flavor-strip-stepper button { width: 40px; height: 40px; }
}

.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--white);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--t-fast);
}
.stepper button:hover:not(:disabled) { background: var(--primary); }
.stepper button:disabled { opacity: 0.25; cursor: default; }
.stepper span { min-width: 28px; text-align: center; font-weight: 800; font-size: 17px; }

/* Modal potwierdzenia zmiany statusu w panelu admina (reużywa .gate-modal/.gate-card).
   Selektory scalone z .gate-card, bo `.gate-card label` (0,1,1) bije samo `.notify-check` (0,1,0)
   i rozjeżdżało układ — to nie jest ozdobnik, tylko wymóg kaskady. */
.gate-card .notify-check {
  display: flex; flex-direction: row; align-items: flex-start; gap: 10px; margin: 4px 0 0;
  background: var(--nilla); border-radius: var(--radius-card-sm); padding: 12px 14px;
  font-size: 15px; line-height: 20px; cursor: pointer; text-align: left; font-weight: 400;
}
.gate-card .notify-check.is-off { opacity: 0.55; cursor: default; }
.gate-card .notify-check input {
  width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--ink);
  border-radius: 4px; border: 1.5px solid #d8cabc; padding: 0;
}
.gate-card .notify-check em { font-style: normal; color: #6d625c; }
.gate-card .notify-why { margin: 8px 0 0; font-size: 13px; line-height: 18px; color: #8a7d78; }
.gate-card .gate-actions { display: flex; gap: 10px; margin-top: 18px; }
.gate-card .gate-actions .btn { flex: 1; }

.admin-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 60; max-width: min(520px, calc(100vw - 32px));
  background: var(--ink); color: var(--white); border-radius: var(--pill);
  padding: 12px 20px; font-size: 14px; font-weight: 600; text-align: center;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
}
.admin-toast.err { background: #b3261e; }
@media (prefers-reduced-motion: no-preference) {
  .admin-toast { animation: fadeIn 0.3s ease-in-out; }
}

.delivery-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.delivery-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}
.delivery-form .wide { grid-column: 1 / -1; }
.delivery-form input {
  font-family: var(--font);
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #e2d9d2;
  background: var(--white);
  transition: border-color var(--t-fast);
}
.delivery-form input:focus { outline: none; border-color: var(--ink); }

.cart {
  position: sticky;
  top: 92px;
  background: var(--white);
  border-radius: var(--radius-card-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart h2 { margin: 0; font-size: 22px; font-weight: 800; }
.cart-empty { color: #6d625c; font-size: 15px; }

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--secondary);
}
.cart-item strong { display: block; font-size: 15px; }
.cart-flavors { font-size: 13px; line-height: 17px; color: #6d625c; display: block; margin-top: 3px; }
.cart-item-right { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; white-space: nowrap; }
.cart-remove {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  color: #6d625c;
}
.cart-remove:hover { color: var(--error, #db4156); }

.cart-sums { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cart-sums div { display: flex; justify-content: space-between; }
.cart-sums dt { font-size: 14px; color: #6d625c; }
.cart-sums dd { margin: 0; font-weight: 600; }
.cart-total { border-top: 1.5px solid var(--ink); padding-top: 10px; }
.cart-total dt, .cart-total dd { font-weight: 800; font-size: 18px; color: var(--ink); }

.btn-pay:disabled { opacity: 0.45; cursor: default; }
.pay-hint { font-size: 12.5px; line-height: 17px; color: #6d625c; }

.step-note { margin: -8px 0 18px; font-size: 15px; line-height: 21px; color: #6d5c58; }
.step-note strong { color: var(--ink); }

/* zestawy */
/* 5 zestawów: 3 w rzędzie, 2 wyśrodkowane niżej. Kolumny stałej szerokości
   (auto-fit), więc na wąskich widokach (np. Arc) degradują się czysto do 2+2+1. */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 210px);
  justify-content: center;
  gap: 18px;
  max-width: 690px;
  margin-inline: auto;
}
.bundle-card { min-width: 0; }
.bundle-card {
  background: var(--white);
  border-radius: var(--radius-card-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bundle-photo { margin: 0; position: relative; }
.bundle-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.bundle-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: var(--ink);
  border-radius: var(--pill); padding: 5px 12px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
.bundle-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.bundle-body h3 { margin: 0; font-size: 19px; font-weight: 800; }
.bundle-count { font-size: 13px; font-weight: 700; color: var(--primary-wcag); text-transform: uppercase; letter-spacing: 0.03em; }
.bundle-desc { font-size: 14px; line-height: 20px; color: #6d5c58; }
.bundle-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bundle-price { font-size: 20px; font-weight: 800; }

/* ikona koszyka + licznik */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  text-decoration: none;
  color: var(--ink);
  transition: background-color var(--t-fast);
}
.cart-btn:hover { background: var(--primary-light); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute;
  top: 1px;
  right: -1px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-badge.empty { display: none; }
.cart-badge.bump { animation: cartBump 0.32s ease; }
@keyframes cartBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* popover logowania */
.auth-pop {
  position: fixed;
  top: 74px;
  right: 16px;
  z-index: 70;
  width: 264px;
  max-width: calc(100vw - 32px);
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 24px 55px -22px rgb(60 20 30 / 0.45);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeIn 0.2s ease-in-out;
}
.auth-pop form { display: flex; flex-direction: column; gap: 14px; }
.auth-pop label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.auth-pop input {
  font-family: var(--font);
  font-size: 16px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1.5px solid #e2d9d2;
}
.auth-pop input:focus { outline: none; border-color: var(--ink); }
.auth-pop .btn { justify-content: center; }
.auth-hi { font-size: 15px; line-height: 21px; }
.auth-meta { font-size: 13px; color: #6d5c58; margin-top: -6px; }
.signin.is-user, .drawer-signin.is-user { font-weight: 700; color: var(--primary-wcag); }

/* modal logowania z kodem SMS */
.gate-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.gate-scrim {
  position: absolute;
  inset: 0;
  background: rgb(10 6 4 / 0.5);
  animation: fadeIn 0.2s ease;
}
.gate-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: clamp(26px, 4vw, 40px);
  width: min(420px, 100%);
  max-height: 90svh;
  overflow-y: auto;
  box-shadow: 0 40px 80px -30px rgb(30 10 15 / 0.5);
  animation: fadeIn 0.22s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.gate-card .date-pill { align-self: flex-start; }
.gate-card h2 { margin: 10px 0 0; font-size: clamp(26px, 4vw, 36px); font-weight: 800; line-height: 1.1; }
.gate-card .login-sub { margin: 12px 0 18px; }
.gate-card form { display: flex; flex-direction: column; gap: 14px; }
.gate-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.gate-card input {
  font-family: var(--font);
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #e2d9d2;
}
.gate-card input:focus { outline: none; border-color: var(--ink); }
.gate-card input[name="code"] {
  letter-spacing: 0.5em;
  font-weight: 800;
  font-size: 24px;
  text-align: center;
  padding-left: 0.5em;
}
.gate-card .btn { justify-content: center; }
.gate-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  color: #6d5c58;
  padding: 6px;
}
.gate-close:hover { color: var(--ink); }
.gate-hint {
  margin-top: 14px;
  font-size: 13px;
  background: var(--secondary);
  border-radius: 10px;
  padding: 10px 12px;
}
.gate-error { color: #db4156; font-size: 14px; font-weight: 600; margin: -4px 0 0; }
.gate-resend {
  margin-top: 8px;
  background: none;
  border: 0;
  color: var(--primary-wcag);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
  font-family: var(--font);
}
.gate-resend:hover { text-decoration: underline; }
.login-fine a { color: var(--primary-wcag); font-weight: 600; }

/* strona konta / logowania */
.login-main {
  min-height: calc(100svh - 150px);
  display: grid;
  place-items: center;
  padding: 40px 20px 80px;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: clamp(28px, 5vw, 48px);
  width: min(460px, 100%);
  box-shadow: 0 30px 60px -30px rgb(60 20 30 / 0.3);
}
.login-card h1 { margin-top: 8px; font-size: clamp(32px, 5vw, 52px); }
.login-sub { margin: 14px 0 24px; color: #6d5c58; font-size: 16px; line-height: 23px; }
.login-card form { display: flex; flex-direction: column; gap: 16px; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.login-card input {
  font-family: var(--font);
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #e2d9d2;
}
.login-card input:focus { outline: none; border-color: var(--ink); }
.login-card .btn { justify-content: center; margin-top: 4px; }
.login-fine { margin-top: 16px; font-size: 12.5px; line-height: 17px; color: #8a7d78; }

/* pozycja pojedynczego smaku w koszyku (ze steperem) */
.cart-item-single { align-items: center; gap: 12px; }
.cart-item-single img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cart-single-main { flex-grow: 1; min-width: 0; }
.cart-stepper button { width: 30px; height: 30px; font-size: 16px; }
.cart-stepper span { min-width: 22px; font-size: 15px; }

@media (max-width: 980px) {
  /* minmax(0,1fr) jak na desktopie — gołe 1fr = minmax(auto,1fr), więc szeroka treść
     (paski smaków) rozpychała kolumnę poza kontener (4px poziomego scrolla na 375px). */
  .order-main { grid-template-columns: minmax(0, 1fr); }
  .cart { position: static; }
}

/* ————— Kalendarz smaków ————— */

.calendar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 30px 100px;
}
.cal-head { margin-bottom: 40px; }
.cal-head h1 { font-size: clamp(36px, 5vw, 64px); }
.cal-head .flavors-sub { margin-top: 10px; }

.cal-weeks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.cal-week {
  background: var(--nilla);
  border-radius: var(--radius-card);
  padding: 28px;
}
.cal-week:first-child { background: var(--primary-light); }

.cal-week-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.cal-week-label { font-size: 22px; font-weight: 800; }
.cal-week-range { font-size: 15px; color: #6d5c58; margin-top: 2px; }
.cal-week-count {
  background: var(--white);
  border-radius: var(--pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 22px;
}
.cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0;
  border-radius: 12px;
  background: var(--white);
}
.cal-dow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #6d5c58; }
.cal-date { font-size: 17px; font-weight: 800; }
.cal-day.today { background: var(--ink); }
.cal-day.today .cal-dow, .cal-day.today .cal-date { color: var(--white); }
.cal-day.past { opacity: 0.4; }

.cal-lineup {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cal-flavor {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: 12px;
  padding: 8px 12px;
}
.cal-flavor img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cal-flavor-name { font-weight: 700; font-size: 16px; flex-grow: 1; }
.cal-new {
  background: var(--primary);
  color: var(--ink);
  border-radius: var(--pill);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 860px) {
  .cal-weeks { grid-template-columns: 1fr; }
  .calendar { padding: 0 16px 60px; }
  .cal-week { padding: 20px; }
}

/* ————— Podstrona: Wesela ————— */

.subpage { background: var(--nilla); }

.wp-hero {
  background: var(--primary-light);
  padding: 70px 30px 90px;
}
.wp-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.wp-hero h1 { margin-top: 8px; font-size: clamp(44px, 6.5vw, 88px); }
.wp-hero-lead { margin-top: 18px; max-width: 46ch; font-size: 19px; line-height: 27px; }
.wp-hero-ctas { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.wp-hero-photo {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  rotate: 1.5deg;
  box-shadow: 0 30px 60px -30px rgb(60 20 30 / 0.4);
}
.wp-hero-photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }

.wp-section { max-width: 1240px; margin: 0 auto; padding: 90px 30px; }
.wp-section > h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
}
.wp-section > .wp-sub { margin-bottom: 44px; font-size: 18px; color: #6d5c58; max-width: 52ch; }

.wp-packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.wp-pack {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.wp-pack-photo { margin: 0; }
.wp-pack-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.wp-pack-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.wp-pack-body h3 { margin: 0; font-size: 24px; font-weight: 800; }
.wp-pack-price { font-weight: 800; font-size: 17px; color: var(--primary-wcag); }
.wp-pack-body p { font-size: 15px; line-height: 21px; color: #6d5c58; }
.wp-pack-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wp-pack-list li { font-size: 15px; padding-left: 26px; position: relative; }
.wp-pack-list li::before { content: "🍪"; position: absolute; left: 0; font-size: 14px; }

.wp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.wp-step { display: flex; flex-direction: column; gap: 10px; }
.wp-step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
}
.wp-step h3 { margin: 0; font-size: 19px; font-weight: 800; }
.wp-step p { margin: 0; font-size: 15px; line-height: 21px; color: #6d5c58; }

.wp-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.wp-gallery figure { margin: 0; border-radius: var(--radius-card-sm); overflow: hidden; }
.wp-gallery img { width: 100%; height: 100%; object-fit: cover; transition: scale var(--t-fast); }
.wp-gallery figure:hover img { scale: 1.05; }
.wp-gallery .tall { grid-row: span 2; }
.wp-gallery .wide { grid-column: span 2; }

.wp-form-wrap { background: var(--primary-light); }
.wp-form-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 30px;
}
.wp-form-inner h2 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 48px); font-weight: 800; }
.wp-form-inner .wp-sub { margin-bottom: 32px; font-size: 18px; color: #6d5c58; }
.wp-form {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.wp-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.wp-form .wide { grid-column: 1 / -1; }
.wp-form input, .wp-form textarea, .wp-form select {
  font-family: var(--font);
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #e2d9d2;
  background: var(--white);
  transition: border-color var(--t-fast);
}
.wp-form textarea { resize: vertical; min-height: 90px; }
.wp-form input:focus, .wp-form textarea:focus, .wp-form select:focus { outline: none; border-color: var(--ink); }
.wp-form .wp-submit { grid-column: 1 / -1; }
.wp-form-ok {
  grid-column: 1 / -1;
  background: #dcf1de;
  color: #1d4a22;
  border-radius: var(--radius-card-sm);
  padding: 18px 20px;
  font-weight: 600;
}

.wp-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.wp-faq details {
  background: var(--white);
  border-radius: var(--radius-card-sm);
  padding: 18px 22px;
}
.wp-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.wp-faq summary::-webkit-details-marker { display: none; }
.wp-faq summary::after { content: "+"; font-size: 24px; color: var(--primary-wcag); transition: transform var(--t-fast); }
.wp-faq details[open] summary::after { transform: rotate(45deg); }
.wp-faq p { margin: 14px 0 0; font-size: 16px; line-height: 24px; color: #6d5c58; }

/* ————— Podstrona: Karty podarunkowe ————— */

.gc-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 50px 30px 100px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 30px 50px;
  align-items: start;
}
.gc-head { grid-column: 1 / -1; }
.gc-head h1 { font-size: clamp(40px, 5vw, 72px); }
.gc-head .flavors-sub { margin-top: 10px; }
.gc-badge {
  display: inline-block;
  margin-top: 14px;
  background: var(--secondary);
  border-radius: var(--pill);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
}

.gc-builder { display: flex; flex-direction: column; min-width: 0; }
.gc-step { margin-bottom: 36px; }
.gc-step h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gc-amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.gc-amount {
  font-family: var(--font);
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius-card-sm);
  padding: 18px;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.gc-amount:hover { transform: translateY(-2px); border-color: var(--primary); }
.gc-amount.selected { border-color: var(--ink); }
.gc-custom-wrap { margin-top: 12px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.gc-custom-wrap input {
  font-family: var(--font);
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #e2d9d2;
  width: 140px;
}
.gc-custom-wrap input:focus { outline: none; border-color: var(--ink); }

.gc-themes { display: flex; gap: 12px; flex-wrap: wrap; }
.gc-theme {
  width: 66px; height: 44px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform var(--t-fast);
}
.gc-theme:hover { transform: translateY(-2px); }
.gc-theme.selected { border-color: var(--ink); }

.gc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gc-fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.gc-fields .wide { grid-column: 1 / -1; }
.gc-fields input, .gc-fields textarea {
  font-family: var(--font);
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #e2d9d2;
  background: var(--white);
  transition: border-color var(--t-fast);
}
.gc-fields textarea { resize: vertical; min-height: 70px; }
.gc-fields input:focus, .gc-fields textarea:focus { outline: none; border-color: var(--ink); }

.gc-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }

.gc-preview {
  border-radius: 20px;
  padding: 26px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  box-shadow: 0 20px 40px -24px rgb(60 20 30 / 0.5);
  position: relative;
  overflow: hidden;
}
.gc-preview .gc-logo { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.gc-preview .gc-amt { margin-top: auto; font-weight: 800; font-size: 44px; line-height: 1; }
.gc-preview .gc-msg { margin-top: 12px; font-size: 14px; line-height: 19px; min-height: 19px; opacity: 0.85; }
.gc-preview .gc-to { margin-top: 10px; font-size: 13px; font-weight: 600; }
.gc-preview .gc-chip {
  position: absolute; top: 22px; right: 24px;
  font-size: 12px; font-weight: 700;
  background: rgb(255 255 255 / 0.6); border-radius: var(--pill); padding: 4px 12px;
}

.gc-summary {
  background: var(--white);
  border-radius: var(--radius-card-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gc-summary .gc-row { display: flex; justify-content: space-between; font-size: 15px; }
.gc-summary .gc-total { border-top: 1.5px solid var(--ink); padding-top: 12px; font-weight: 800; font-size: 18px; }
.gc-summary .btn-pay:disabled { opacity: 0.45; cursor: default; }
.gc-pay-hint { font-size: 12.5px; line-height: 17px; color: #6d5c58; }

@media (max-width: 980px) {
  .wp-hero-inner { grid-template-columns: 1fr; }
  .wp-hero-photo { max-width: 480px; margin: 0 auto; }
  .wp-packages { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .wp-steps { grid-template-columns: 1fr 1fr; }
  .wp-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .wp-form { grid-template-columns: 1fr; }
  .gc-main { grid-template-columns: 1fr; }
  .gc-side { position: static; }
}

/* ————— Responsywność ————— */

@media (max-width: 860px) {
  .main-nav, .signin, .hide-narrow { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { gap: 16px; padding: 12px 20px; }
  .header-actions { gap: 12px; }
  .logo { font-size: 26px; }

  .hero { height: auto; min-height: 80svh; }
  .hero-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    padding: 40px 24px 70px;
    gap: 10px;
  }
  .hero-media { order: -1; height: clamp(220px, 38svh, 320px); }
  .hero-media img {
    right: 50%;
    transform: translate(50%, -50%);
    width: clamp(220px, 60vw, 300px);
    height: clamp(220px, 60vw, 300px);
  }
  .hero-name { font-size: clamp(36px, 9vw, 55px); }
  .hero-ctas { flex-wrap: wrap; }

  .flavors { padding: 60px 16px; }
  .wedding { padding: 60px 16px; }
  .wp-hero { padding: 50px 16px 60px; }
  .wp-section { padding: 56px 16px; }
  .wp-form-inner { padding: 56px 16px; }
  .wp-form { padding: 22px; }
  .gc-main { padding: 40px 16px 80px; }
  .date-pill { font-size: 16px; line-height: 26px; }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { flex-direction: column; }
}

/* ————— Logowanie social + e-mail ————— */
.oauth-row { display: flex; flex-direction: column; gap: 10px; }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; border-radius: 12px;
  border: 1.5px solid #e2d9d2; background: var(--white);
  font-family: var(--font); font-weight: 700; font-size: 15px; cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.oauth-btn:hover { background: var(--nilla); border-color: var(--ink); transform: translateY(-1px); }
.oauth-btn::before { font-weight: 800; font-size: 16px; }
.oauth-google::before { content: "G"; color: #4285f4; }
.oauth-facebook::before { content: "f"; color: #1877f2; }
.oauth-github::before { content: "\25CF"; color: #1a1a1a; }
.oauth-apple::before { content: "\F8FF"; }
.oauth-sep { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #8a7d78; font-size: 13px; }
.oauth-sep::before, .oauth-sep::after { content: ""; flex: 1; height: 1px; background: #eadfd7; }

/* konto: punkty w popoverze */
.auth-pop .btn { justify-content: center; }
.auth-points {
  background: var(--primary-light);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 2px 0;
}
.auth-points-val { font-weight: 800; font-size: 22px; }
.auth-points-sub { display: block; font-size: 12px; color: #6d5c58; margin-top: 2px; }
.auth-logout {
  background: none; border: 0; color: #8a7d78; font-weight: 600;
  cursor: pointer; font-family: var(--font); padding: 6px; text-decoration: underline;
}
.btn-admin { background: var(--secondary); color: var(--ink); }
.btn-admin:hover { background: var(--primary); }

/* ————— Statusy zamówień (chip) ————— */
.status-chip { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: var(--pill); white-space: nowrap; }
.st-new    { background: #ece7e3; color: #5c534e; }
.st-wait   { background: #fde8c8; color: #8a5a1a; }
.st-paid   { background: #dbeafe; color: #1e4fa3; }
.st-prep   { background: #fce0ec; color: #9a2b52; }
.st-ship   { background: #e6e0ff; color: #4b3aa3; }
.st-done   { background: #dcf1de; color: #1d4a22; }
.st-cancel { background: #f5d9dd; color: #8a2230; }

/* ————— Profil klienta ————— */
.profile-main { max-width: 1100px; margin: 0 auto; padding: 40px 30px 90px; }
.profile-head h1 { font-size: clamp(34px, 5vw, 60px); }
.profile-head .flavors-sub { margin-top: 8px; }
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; margin-top: 30px; }
.points-card {
  background: var(--ink); color: var(--white);
  border-radius: var(--radius-card); padding: 28px;
  position: sticky; top: 92px;
}
.eyebrow-points { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin: 0; }
.points-big { font-size: 56px; font-weight: 800; line-height: 1; margin: 8px 0 14px; }
.points-bar { height: 10px; border-radius: var(--pill); background: rgb(255 255 255 / 0.15); overflow: hidden; }
.points-bar-fill { height: 100%; background: var(--primary); border-radius: var(--pill); transition: width 0.5s ease; }
.points-hint { margin-top: 12px; font-size: 14px; color: oklch(0.85 0.03 70); line-height: 20px; }
.orders-panel h2 { font-size: 26px; font-weight: 800; margin: 0 0 18px; }
.order-row { background: var(--white); border-radius: var(--radius-card-sm); padding: 18px 20px; margin-bottom: 12px; }
.order-row-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.order-date { font-size: 13px; color: #6d5c58; }
.order-items { margin: 10px 0; font-size: 15px; line-height: 21px; }
.order-row-bottom { display: flex; justify-content: space-between; align-items: center; }
.order-total { font-weight: 800; font-size: 17px; }
.order-points { font-size: 13px; font-weight: 700; color: var(--primary-wcag); }
.orders-empty { background: var(--white); border-radius: var(--radius-card); padding: 40px; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }

/* ————— Panel admina ————— */
.admin-main { max-width: 1120px; margin: 0 auto; padding: 40px 30px 90px; }
.admin-head h1 { font-size: clamp(30px, 4vw, 48px); }
.admin-tabs { display: flex; gap: 10px; margin-top: 20px; }
.admin-tab {
  font-family: var(--font); font-weight: 700; font-size: 15px;
  padding: 10px 18px; border-radius: var(--pill);
  border: 1.5px solid #e2d9d2; background: var(--white); cursor: pointer;
}
.admin-tab.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tab-count { opacity: 0.65; margin-left: 4px; }
.admin-tabpanel { margin-top: 26px; }
.admin-toolbar { display: flex; gap: 14px; align-items: end; margin-bottom: 18px; flex-wrap: wrap; }
.admin-toolbar label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; }
.admin-toolbar select, .admin-toolbar input {
  font-family: var(--font); font-size: 15px; padding: 10px 12px;
  border-radius: 10px; border: 1.5px solid #e2d9d2; background: var(--white);
}
.btn-ghost-sm { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); height: auto; padding: 10px 16px; }
.btn-ghost-sm:hover { background: var(--nilla); }
.admin-list { display: flex; flex-direction: column; gap: 12px; }
.admin-card { background: var(--white); border-radius: var(--radius-card-sm); padding: 18px 20px; display: flex; justify-content: space-between; gap: 18px; align-items: center; flex-wrap: wrap; }
.admin-card-main { min-width: 0; flex: 1 1 320px; }
.admin-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-card-sub { font-size: 13px; color: #6d5c58; }
.admin-items { margin: 6px 0; font-size: 14px; line-height: 20px; }
.admin-card-meta { font-size: 13px; color: #6d5c58; margin: 2px 0 0; }
.admin-card-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.admin-card-actions select { font-family: var(--font); padding: 8px 10px; border-radius: 8px; border: 1.5px solid #e2d9d2; }
.admin-badge { background: var(--primary); color: var(--ink); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--pill); text-transform: uppercase; }
.points-editor { align-items: center; flex-direction: row; gap: 12px; }
.user-points { font-size: 15px; }
.points-btns { display: flex; gap: 6px; }
.points-btns button { width: 46px; height: 34px; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--white); font-weight: 700; cursor: pointer; font-family: var(--font); }
.points-btns button:hover:not(:disabled) { background: var(--primary); }
.admin-denied { max-width: 460px; margin: 80px auto; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }

/* Panel zamówień — czytelny dla osoby nietechnicznej */
.admin-hint { background: var(--primary-light); border-radius: var(--radius-card-sm); padding: 14px 18px; font-size: 15px; line-height: 21px; margin: 0 0 18px; }
.order-card { flex-direction: column; align-items: stretch; gap: 12px; padding: 20px 22px; }
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.order-name { font-size: 20px; }
.status-chip.big { font-size: 14px; padding: 7px 16px; }
.order-contact { margin: 0; font-size: 15px; color: #3a332f; }
.order-contact a { color: var(--primary-wcag); font-weight: 700; text-decoration: none; }
.order-card .admin-items { font-size: 15px; margin: 2px 0; }
.order-steps { border-top: 1px solid var(--secondary); padding-top: 14px; margin-top: 2px; }
.order-steps-label { display: block; font-size: 13px; font-weight: 600; color: #6d5c58; margin-bottom: 10px; }
.step-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.step-pill {
  font-family: var(--font); font-size: 15px; font-weight: 700;
  padding: 12px 18px; border-radius: var(--pill);
  border: 1.5px solid #e2d9d2; background: var(--white); color: var(--ink); cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.step-pill:hover:not(:disabled) { border-color: var(--ink); background: var(--nilla); }
.step-pill.is-current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.step-pill.is-done { background: #dcf1de; border-color: #bfe3c4; color: #1d4a22; }
.step-pill:disabled { opacity: 0.6; cursor: default; }
.order-cancel {
  margin-top: 12px; background: none; border: 0; cursor: pointer;
  font-family: var(--font); font-size: 14px; font-weight: 600; color: #b23a4a; text-decoration: underline; padding: 4px 0;
}
.order-cancel.is-cancelled { color: #8a7d78; text-decoration: none; cursor: default; }

@media (max-width: 860px) {
  .profile-grid { grid-template-columns: 1fr; }
  .points-card { position: static; }
  .admin-card { flex-direction: column; align-items: stretch; }
  .admin-card-actions { align-items: stretch; }
  .points-editor { justify-content: space-between; }
}

/* ————— Strony prawne ————— */
.legal-main { max-width: 760px; margin: 0 auto; padding: 50px 24px 90px; }
.legal-main h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 8px; }
.legal-updated { color: #8a7d78; font-size: 14px; margin-bottom: 10px; }
.legal-note { background: var(--secondary); border-radius: var(--radius-card-sm); padding: 14px 18px; font-size: 14px; line-height: 20px; margin-bottom: 32px; }
.legal-main h2 { font-size: 22px; font-weight: 800; margin: 34px 0 10px; }
.legal-main h3 { font-size: 17px; font-weight: 700; margin: 20px 0 6px; }
.legal-main p, .legal-main li { font-size: 16px; line-height: 25px; color: #3a332f; }
.legal-main ul, .legal-main ol { padding-left: 22px; margin: 8px 0; }
.legal-main li { margin: 4px 0; }
.legal-main a { color: var(--primary-wcag); font-weight: 600; }

/* Baner zgód cookies */
.cookie-bar {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px;
  max-width: 560px; margin: 0 auto;
  background: var(--white); color: var(--ink);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 60px -20px rgb(30 10 15 / 0.45);
  animation: fadeIn 0.3s ease;
}
.cookie-bar-head strong { font-size: 16px; }
.cookie-bar-head p { margin: 6px 0 0; font-size: 13px; line-height: 18px; color: #6d5c58; }
.cookie-bar-head a { color: var(--primary-wcag); font-weight: 600; }
.cookie-cats { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 16px 0; }
.cookie-cat { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.cookie-cat input { width: 18px; height: 18px; accent-color: var(--primary-wcag); }
.cookie-cat input:disabled { accent-color: #cbbfb9; cursor: default; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { height: 44px; flex: 1 1 auto; padding: 10px 16px; }
.cookie-save { background: var(--secondary); color: var(--ink); }
.cookie-save:hover { background: var(--caramel-tint, #f4e3d2); }
.cookie-accept { background: var(--ink); color: #fff; }
.cookie-accept:hover { background: #000; }
.btn-ghost-pink { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost-pink:hover { background: var(--nilla); }
@media (max-width: 520px) {
  .cookie-cats { grid-template-columns: 1fr; }
  .cookie-actions .btn { flex-basis: 100%; }
}

/* ————— Podstrona: Kalendarz ————— */
.kal-hero { background: var(--primary-light); padding: 60px 30px 50px; }
.kal-hero-inner { max-width: 1240px; margin: 0 auto; }
.kal-hero h1 { margin-top: 8px; font-size: clamp(40px, 6vw, 80px); }
.kal-lead { margin-top: 14px; max-width: 60ch; font-size: 19px; line-height: 27px; }

.kal-how { background: var(--nilla); }
.kal-how-inner { max-width: 1240px; margin: 0 auto; padding: 60px 30px; }
.kal-how h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 0 0 30px; }
.kal-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kal-step { display: flex; flex-direction: column; gap: 10px; }
.kal-step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.kal-step h3 { margin: 0; font-size: 19px; font-weight: 800; }
.kal-step p { margin: 0; font-size: 15px; line-height: 21px; color: #6d5c58; }

.kal-cal { max-width: 1240px; margin: 0 auto; padding: 60px 30px 90px; }
.cal-week-big { padding: 32px; }
.cal-week-big .cal-week-label { font-size: 26px; }
.cal-week-big .cal-flavor { padding: 12px 14px; }
.cal-week-big .cal-flavor img { width: 52px; height: 52px; }
.cal-week-big .cal-flavor-name { font-size: 17px; }
.kal-note { margin-top: 24px; font-size: 15px; line-height: 22px; color: #6d5c58; background: var(--secondary); border-radius: var(--radius-card-sm); padding: 16px 20px; }
.kal-cta { margin-top: 30px; text-align: center; }
.btn-lg { height: auto; padding: 16px 34px; font-size: 1.05rem; }

@media (max-width: 760px) {
  .kal-steps { grid-template-columns: 1fr; }
  .kal-hero { padding: 44px 16px 40px; }
  .kal-how-inner { padding: 44px 16px; }
  .kal-cal { padding: 44px 16px 70px; }
}

/* ————— Nasza historia ————— */
.story-hero { background: var(--primary-light); padding: 60px 30px 70px; }
.story-hero-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.story-copy h1 { margin-top: 8px; font-size: clamp(38px, 6vw, 76px); }
.story-lead { margin-top: 16px; max-width: 44ch; font-size: 19px; line-height: 27px; }
.story-media { position: relative; }
.story-photo { margin: 0; border-radius: var(--radius-card); overflow: hidden; box-shadow: 0 30px 60px -30px rgb(60 20 30 / 0.4); }
.story-photo.main { rotate: 1.5deg; }
.story-photo.main img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.story-photo.detail { position: absolute; right: -14px; bottom: -26px; width: 44%; rotate: -3deg; border: 6px solid var(--primary-light); border-radius: calc(var(--radius-card) - 8px); }
.story-photo.detail img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.story-body { max-width: 720px; margin: 0 auto; padding: 70px 24px 90px; }
.story-body p { font-size: 18px; line-height: 28px; margin: 0 0 20px; color: #3a332f; }
.story-quote { margin: 28px 0; padding: 20px 24px; background: var(--primary-light); border-radius: var(--radius-card-sm); font-size: 20px; line-height: 28px; font-weight: 700; font-style: italic; }
.story-cta { margin-top: 30px; }
@media (max-width: 860px) { .story-hero-inner { grid-template-columns: 1fr; } .story-media { max-width: 480px; } }

/* ————— Blog / przepisy ————— */
.blog-main { max-width: 1240px; margin: 0 auto; padding: 50px 30px 90px; }
.blog-head { margin-bottom: 40px; }
.blog-head h1 { margin-top: 8px; font-size: clamp(36px, 5vw, 64px); }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.recipe-card { background: var(--white); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; }
.recipe-card figure { margin: 0; }
.recipe-card figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.recipe-body { padding: 22px 24px 26px; }
.recipe-body h2 { margin: 0; font-size: 24px; font-weight: 800; }
.recipe-meta { font-size: 13px; color: #8a7d78; margin: 6px 0 10px; }
.recipe-body > p { font-size: 15px; line-height: 22px; color: #6d5c58; }
.recipe-card details { margin-top: 14px; border-top: 1px solid var(--secondary); padding-top: 12px; }
.recipe-card summary { cursor: pointer; font-weight: 700; color: var(--primary-wcag); list-style: none; }
.recipe-card summary::-webkit-details-marker { display: none; }
.recipe-card summary::after { content: " +"; }
.recipe-card details[open] summary::after { content: " −"; }
.recipe-card h3 { font-size: 15px; font-weight: 800; margin: 14px 0 6px; }
.recipe-card ul, .recipe-card ol { padding-left: 20px; margin: 0; font-size: 14px; line-height: 22px; color: #3a332f; }

/* ————— Wartości odżywcze ————— */
.nutri-main { max-width: 820px; }
.nutri-wrap { overflow-x: auto; margin: 10px 0; }
.nutri-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.nutri-table th, .nutri-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--secondary); white-space: nowrap; }
.nutri-table th { font-weight: 800; background: var(--nilla); }
.nutri-table td:first-child, .nutri-table th:first-child { white-space: normal; }
.nutri-table td:nth-child(2) { font-weight: 800; }
.nutri-table tbody tr:hover { background: var(--nilla); }

/* ————— Okruszki ————— */
.okr-hero { background: var(--primary-light); padding: 60px 30px; text-align: center; }
.okr-hero-inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.okr-hero h1 { margin-top: 8px; font-size: clamp(44px, 7vw, 84px); }
.okr-lead { margin: 16px 0 28px; font-size: 19px; line-height: 27px; }
.okr-section { max-width: 1100px; margin: 0 auto; padding: 60px 30px; }
.okr-section h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 0 0 8px; }
.okr-earn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
.okr-earn-card { background: var(--white); border-radius: var(--radius-card); padding: 26px; box-shadow: 0 16px 40px -20px rgb(60 20 30 / 0.18); }
.okr-earn-ico { font-size: 34px; }
.okr-earn-card strong { display: block; font-size: 19px; margin: 10px 0 6px; }
.okr-earn-card p { margin: 0; font-size: 15px; line-height: 21px; color: #6d5c58; }
.okr-rewards-wrap { background: var(--nilla); max-width: none; }
.okr-rewards-wrap > * { max-width: 1100px; margin-inline: auto; }
.okr-rewards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 26px auto; }
.okr-reward { background: var(--white); border-radius: var(--radius-card); padding: 26px 20px; text-align: center; }
.okr-reward.highlight { background: var(--ink); color: var(--white); }
.okr-pts { display: block; font-size: 40px; font-weight: 800; color: var(--primary-wcag); line-height: 1; }
.okr-reward.highlight .okr-pts { color: var(--primary); }
.okr-pts-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #8a7d78; }
.okr-reward.highlight .okr-pts-label { color: oklch(0.8 0.03 70); }
.okr-reward p { margin: 12px 0 0; font-size: 15px; line-height: 20px; }
.okr-note { font-size: 14px; color: #6d5c58; }
@media (max-width: 860px) { .okr-earn { grid-template-columns: 1fr; } .okr-rewards { grid-template-columns: 1fr 1fr; } }

/* ————— Ikonki w stopce ————— */
.footer-col.ico a, .footer-col.soc a { display: flex; align-items: center; gap: 10px; }
.footer-col.ico svg, .footer-col.soc svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--primary-wcag); }

/* ————— Kody rabatowe ————— */
.btn-sm { height: 42px; padding: 8px 18px; font-size: 0.9rem; }
.btn-secondary { background: var(--secondary); color: var(--ink); }
.btn-secondary:hover { background: var(--primary); }

.promo-box { margin: 14px 0 4px; }
.promo-form { display: flex; gap: 8px; }
.promo-form input {
  flex: 1; min-width: 0; font-family: var(--font); font-size: 15px;
  padding: 11px 12px; border-radius: 10px; border: 1.5px solid #e2d9d2;
  text-transform: uppercase;
}
.promo-form input::placeholder { text-transform: none; }
.promo-form input:focus { outline: none; border-color: var(--ink); }
.promo-msg { margin: 8px 0 0; font-size: 13px; font-weight: 600; }
.promo-msg.ok { color: #1d7a2e; }
.promo-msg.err { color: #db4156; }
.cart-discount dt { color: #1d7a2e; }
.cart-discount dd { color: #1d7a2e; font-weight: 700; }

.promo-create {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; align-items: end;
  background: var(--white); border-radius: var(--radius-card-sm); padding: 18px; margin-bottom: 18px;
}
.promo-create label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; }
.promo-create input, .promo-create select {
  font-family: var(--font); font-size: 15px; padding: 9px 11px; border-radius: 9px; border: 1.5px solid #e2d9d2;
}
.promo-create input:focus, .promo-create select:focus { outline: none; border-color: var(--ink); }
.promo-create button { height: 44px; }

/* ————— Weryfikacja telefonu / e-maila ————— */
.verify-card {
  max-width: 1100px; margin: 24px auto 0; padding: 24px 26px;
  background: var(--primary-light); border-radius: var(--radius-card);
}
.verify-card h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.verify-lead { margin: 0 0 16px; font-size: 15px; line-height: 21px; color: #6d5c58; }
.verify-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--white); border-radius: var(--radius-card-sm); padding: 14px 18px; margin-top: 10px;
}
.verify-row.done { background: #dcf1de; }
.verify-row-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.verify-row-info strong { font-size: 15px; }
.verify-row-info span { font-size: 13px; color: #6d5c58; }
.verify-ok { font-weight: 700; color: #1d4a22; }
.verify-row-val { font-size: 13px; color: #6d5c58; }
.verify-demo { color: var(--primary-wcag); font-weight: 600; }
.verify-err { color: #db4156; font-weight: 600; }
.verify-confirm { display: flex; gap: 8px; }
.verify-confirm input {
  width: 84px; text-align: center; letter-spacing: 0.35em; font-weight: 800; font-size: 18px;
  font-family: var(--font); padding: 8px 6px; border-radius: 10px; border: 1.5px solid #e2d9d2;
}
.verify-confirm input:focus { outline: none; border-color: var(--ink); }

.points-card.locked .points-big { opacity: 0.5; }
.points-card.locked .points-bar-fill { background: #8a7d78; }
.auth-points.locked .auth-points-val { opacity: 0.55; }

/* ————— Ciastka: wystają zza krawędzi, na hover wjeżdżają z obrotem ————— */
.cookie-row {
  --bg: var(--secondary);
  --on: #1f2410;
  --disc: clamp(360px, 46vw, 660px);   /* wspólny rozmiar dla ciastka i karty podświetlenia */
  position: relative;
  min-height: clamp(420px, 48vw, 640px);
  display: flex;
  align-items: center;
  /* pełny bleed do krawędzi ekranu (wychodzi poza padding sekcji .flavors) */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: clip;               /* ciastko schodzi za samą krawędź, bez poziomego scrolla */
  transition: background-color 0.4s ease, color 0.4s ease;
}
.cookie-row:not([data-flip]) { justify-content: flex-end; }
.cookie-row[data-flip] { justify-content: flex-start; }
.cookie-info { width: min(46%, 520px); padding: 0 clamp(24px, 5vw, 72px); position: relative; z-index: 2; }
/* przysuń tekst bliżej ciastka (nie na samą krawędź) */
.cookie-row:not([data-flip]) .cookie-info { margin-right: clamp(16px, 11vw, 190px); }
.cookie-row[data-flip] .cookie-info { margin-left: clamp(16px, 11vw, 190px); }

/* podświetlenie smaku — zaokrąglona karta w tle (styl Crumbl), wjeżdża na hover */
.cookie-row::before {
  content: "";
  position: absolute;
  top: 50%;
  height: calc(var(--disc) * 0.855);   /* równo z górnym i dolnym punktem ciastka */
  transform: translateY(-50%);
  /* końce eliptyczne, minimalnie węższe niż ciastko — ciastko przykrywa róg
     karty, więc kolor kończy się równiutko na krawędzi ciastka (bez wystawania).
     Oba końce identyczne. */
  border-radius: calc(var(--disc) * 0.40) / calc(var(--disc) * 0.4275);
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 0;
  pointer-events: none;
}
/* karta zaczyna się w poziomym środku ciastka; jej półokrągły koniec pokrywa się
   z okręgiem ciastka — ciastko staje się zaokrąglonym końcem podświetlenia */
.cookie-row:not([data-flip])::before { left: calc(var(--disc) * 0.055); right: clamp(24px, 3vw, 56px); }
.cookie-row[data-flip]::before       { right: calc(var(--disc) * 0.055); left: clamp(24px, 3vw, 56px); }
.cookie-disc {
  position: absolute; top: 50%; margin: 0;
  width: var(--disc); aspect-ratio: 1;
  transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
  pointer-events: none;           /* duże ciastko nie zasłania przycisku po drugiej stronie */
  z-index: 2;                     /* ciastko nad kartą podświetlenia */
}
.cookie-disc img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  filter: drop-shadow(0 18px 30px rgb(60 20 30 / 0.32));
  transition: filter 0.4s ease;
}
.cookie-row:not([data-flip]) .cookie-disc { left: 0;  transform: translate(-34%, -50%) rotate(-135deg); }
.cookie-row[data-flip]       .cookie-disc { right: 0; transform: translate(34%, -50%) rotate(135deg); }
.cookie-row.soon .cookie-disc img {
  filter: drop-shadow(0 18px 30px rgb(60 20 30 / 0.24)) saturate(0.82) brightness(0.99);
  opacity: 0.9;
}

/* podświetlenie zapala się gdy wiersz wjedzie w kadr (klasa .lit) — i zostaje
   do odświeżenia strony. Na desktopie działa też zwykły hover przed zapaleniem. */
.cookie-row.lit::before { opacity: 1; }
.cookie-row.lit .cookie-info,
.cookie-row.lit .cookie-soon-note { color: var(--on); }
.cookie-row.lit:not([data-flip]) .cookie-disc { transform: translate(-4%, -50%) rotate(0deg) scale(1.04); }
.cookie-row.lit[data-flip]       .cookie-disc { transform: translate(4%, -50%) rotate(0deg) scale(1.04); }
.cookie-row.soon.lit .cookie-disc img { filter: drop-shadow(0 18px 30px rgb(60 20 30 / 0.32)); opacity: 1; }

@media (hover: hover) {
  .cookie-row:hover::before { opacity: 1; }
  .cookie-row:hover .cookie-info,
  .cookie-row:hover .cookie-soon-note { color: var(--on); }
  .cookie-row:not([data-flip]):hover .cookie-disc { transform: translate(-4%, -50%) rotate(0deg) scale(1.04); }
  .cookie-row[data-flip]:hover       .cookie-disc { transform: translate(4%, -50%) rotate(0deg) scale(1.04); }
  .cookie-row.soon:hover .cookie-disc img { filter: drop-shadow(0 18px 30px rgb(60 20 30 / 0.32)); opacity: 1; }
}

.cookie-badge {
  display: inline-block; background: var(--primary); color: var(--ink);
  border-radius: var(--pill); padding: 6px 16px;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
}
.cookie-badge.later { background: var(--secondary); }
.cookie-name { margin: 14px 0 12px; font-size: clamp(30px, 4.2vw, 54px); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; }
.cookie-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 24px; }
.cookie-tag {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid currentColor; border-radius: var(--pill);
  padding: 7px 15px; font-size: 14px; font-weight: 700; line-height: 1;
}
.cookie-tag-ic { font-size: 16px; line-height: 1; }
.cookie-soon-note { display: inline-block; font-weight: 700; color: var(--primary-wcag); }

@media (max-width: 860px) {
  .cookie-row, .cookie-row[data-flip] {
    flex-direction: column; justify-content: center; text-align: center;
    min-height: 0; padding: 34px 0; gap: 0;
  }
  .cookie-row::before { display: none; }   /* pozioma pigułka jest tylko na desktopie */

  /* bez drop-shadow na mobile — na obróconym ciastku dawał kwadratowy cień */
  .cookie-disc img { filter: none; }
  .cookie-row.soon .cookie-disc img { filter: saturate(0.82) brightness(0.99); }
  .cookie-row.soon.lit .cookie-disc img { filter: none; }

  /* ciastko: przy wjeździe w kadr obraca się do pionu i rośnie (bez znikania) */
  .cookie-disc { position: static; order: 1; z-index: 3; width: min(76vw, 360px); margin: 0 auto; }
  .cookie-row:not([data-flip]) .cookie-disc { transform: rotate(-120deg) scale(0.86); }
  .cookie-row[data-flip] .cookie-disc { transform: rotate(120deg) scale(0.86); }
  .cookie-row.lit:not([data-flip]) .cookie-disc,
  .cookie-row.lit[data-flip] .cookie-disc { transform: rotate(0deg) scale(1); }

  /* tekst na zaokrąglonej karcie w kolorze smaku; ciastko nachodzi na jej górę */
  .cookie-tags { justify-content: center; }
  .cookie-row:not([data-flip]) .cookie-info,
  .cookie-row[data-flip] .cookie-info {
    order: 2; width: min(90vw, 460px); margin: -34px auto 0; z-index: 1;
    padding: 52px clamp(20px, 6vw, 34px) clamp(28px, 6vw, 38px);
    border-radius: 34px; background: transparent;
    transition: background-color 0.5s ease, color 0.5s ease;
  }
  .cookie-row.lit .cookie-info { background: var(--bg); }
}

/* Wstążka środowiska testowego */
.env-ribbon {
  position: fixed; z-index: 100; top: 18px; left: -46px;
  transform: rotate(-45deg);
  background: #db4156; color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  padding: 6px 60px; box-shadow: 0 6px 16px -6px rgb(0 0 0 / 0.4);
  pointer-events: none;
}

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

/* ————— Poprawki mobile (audyt 2026-07-20) — tylko media queries, desktop bez zmian ————— */

/* Formularze 2-kolumnowe rozpychały stronę: input ma wrodzoną szerokość minimalną
   (~200px), więc grid 1fr 1fr na wąskim ekranie wychodził poza viewport
   (zamow: 461px, karty: 447px na 375px ekranu → poziomy scroll). */
@media (max-width: 560px) {
  .delivery-form, .gc-fields { grid-template-columns: 1fr; }
  .delivery-form input, .gc-fields input, .gc-fields textarea { width: 100%; min-width: 0; }
}

/* Strzałki karuzeli hero nachodziły na CTA („Zamów teraz") na wąskich ekranach.
   Nawigacja zostaje: swipe + kropki. */
@media (max-width: 640px) {
  .hero-arrow { display: none; }
}
