/* ROUMO: style strony publicznej.
   System kształtów: przyciski i chipy = pigułka (999px), karty i zdjęcia = 20px, pola formularzy = 12px. */

@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Kolory z szyldu kiosku przy Królewskiej: głęboka zieleń + róż z logo. */
  --bg: #0e2619;
  --bg-2: #123020;
  --surface: #173a28;
  --surface-2: #1d4631;
  --ink: #f3f1ec;
  --ink-soft: #c9d5cc;
  --muted: #9fb3a6;
  --line: #24412f;
  --line-strong: #36584a;
  --pink: #f2a7c3;
  --pink-strong: #f58fb8;
  --pink-ink: #0e2619;
  --pink-tint: #3b2a35;
  --green-logo: #00582e;
  --danger: #ff9b8f;
  /* Zaznaczenie aktywnego pola: neutralna jasna ramka, żeby nie kojarzyła się z błędem (czerwień). */
  --focus: #f3f1ec;
  --focus-ring: #3d6b52;
  --ok: #9fe0b5;
  --shadow: 0 24px 60px -24px rgb(3 14 8 / 0.7);

  --radius-card: 20px;
  --radius-field: 12px;
  --radius-pill: 999px;

  --font-display: "Bricolage", "Geist", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  /* warstwy */
  --z-nav: 20;
  --z-fab: 25;
  --z-overlay: 40;
  --z-toast: 60;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--pink);
  color: var(--pink-ink);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

.lead {
  color: var(--ink-soft);
  font-size: 1.075rem;
  max-width: 60ch;
}

/* ---------- przyciski ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0 1.4em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}
.btn-primary {
  background: var(--pink);
  color: var(--pink-ink);
}
.btn-primary:hover {
  background: var(--pink-strong);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--pink);
  color: var(--pink);
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-sm {
  min-height: 38px;
  padding: 0 1em;
  font-size: 0.9rem;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.icon-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
}
.icon-btn:active {
  transform: scale(0.94);
}

/* ---------- pasek demo / komunikat ---------- */

.notice-bar {
  background: var(--pink);
  color: var(--pink-ink);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  padding: 8px var(--gutter);
}
.notice-bar[hidden] {
  display: none;
}

/* ---------- nawigacja ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--surface);
}
.nav-order {
  margin-left: 8px;
}
/* przełącznik języka: na desktopie kompaktowe "PL | EN", w menu mobilnym wiersz "Język" */
.menu-sheet-head {
  display: none;
}
.lang-item {
  display: flex;
  align-items: center;
  margin-left: 10px;
}
.lang-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.lang-options {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
}
.nav-links .lang-options a {
  padding: 6px 10px;
  border: 0;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: none;
}
.nav-links .lang-options a + a {
  border-left: 1px solid var(--line-strong);
}
.nav-links .lang-options a[aria-current="true"] {
  background: var(--ink);
  color: var(--bg);
}
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
}
.cart-btn {
  position: relative;
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--pink);
  color: var(--pink-ink);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.cart-count[hidden] {
  display: none;
}
.bump {
  animation: bump 0.45s var(--ease);
}
@keyframes bump {
  40% {
    transform: scale(1.25);
  }
}
.menu-toggle {
  display: none;
}

@media (max-width: 900px) {
  /* Otwarte menu to pełnoekranowa warstwa z własnym paskiem (logo + zamknij).
     Nie zależy od przyklejonego nagłówka, więc działa tak samo na iOS i Androidzie. */
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-overlay) + 10);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom));
    background: var(--bg);
    transform: translateY(-12px);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav-links.open {
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: transform 0.25s var(--ease), visibility 0s;
  }
  .menu-sheet-head {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    margin: 0 calc(var(--gutter) * -1) 4px;
    padding: env(safe-area-inset-top) var(--gutter) 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav-links .menu-sheet-head .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    font-size: 1.35rem;
    color: var(--ink);
  }
  body.menu-open .cart-fab {
    display: none !important;
  }
  .nav-links a {
    padding: 14px 4px;
    font-size: 1.1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a[aria-current="page"] {
    background: none;
    color: var(--ink);
    font-weight: 700;
  }
  .lang-item {
    justify-content: space-between;
    margin: 0;
    padding: 16px 4px 4px;
  }
  .lang-label {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    color: var(--ink-soft);
    font-size: 1.1rem;
  }
  .nav-links .lang-options a {
    padding: 9px 18px;
    font-size: 0.95rem;
    border-bottom: 0;
  }
  .menu-toggle {
    display: inline-grid;
  }
  .nav-order {
    margin-left: auto;
  }
  .site-nav .wrap {
    gap: 10px;
  }
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 96px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
.status-chip.is-open .status-dot {
  background: var(--ok);
}
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--pink);
}
.hero .lead {
  margin: 22px 0 32px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  max-width: 44ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-media {
  position: relative;
  aspect-ratio: 4 / 4.4;
}
.hero-media .photo {
  position: absolute;
  inset: 0 0 0 12%;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-media .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media .stamp {
  position: absolute;
  left: 0;
  bottom: 10%;
  width: clamp(96px, 13vw, 150px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 6px solid var(--bg);
  box-shadow: var(--shadow);
  rotate: -8deg;
}
.hero-media .hanzi {
  position: absolute;
  right: -6px;
  top: 18px;
  writing-mode: vertical-rl;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  letter-spacing: 0.15em;
  color: var(--pink);
  background: var(--bg);
  padding: 14px 8px;
  border-radius: var(--radius-pill);
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-media {
    aspect-ratio: 16 / 11;
  }
  .hero-media .photo {
    inset: 0;
  }
  .hero-media .stamp {
    left: 14px;
    bottom: -22px;
    width: 88px;
  }
}

/* ---------- sekcje ---------- */

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}
.section-head {
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head .lead {
  margin-top: 14px;
}

/* ---------- promocje ---------- */

.promos {
  padding-bottom: clamp(24px, 4vw, 48px);
}
.promo-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.promo {
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38%;
  min-height: 200px;
  border-radius: var(--radius-card);
  background: var(--surface-2);
  color: var(--ink);
  overflow: hidden;
}
.promo-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding: 26px 28px;
}
.promo h3 {
  font-size: 1.45rem;
}
.promo p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.promo-visual {
  position: relative;
  background: var(--surface);
}
.promo-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo-visual.badge-block {
  display: grid;
  place-items: center;
  background: var(--pink);
  color: var(--pink-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  padding: 16px;
  text-align: center;
}
.promo-chip {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--pink);
  color: var(--pink-ink);
  font-weight: 700;
  font-size: 0.82rem;
}
@media (max-width: 560px) {
  .promo {
    grid-template-columns: 1fr;
  }
  .promo-visual {
    order: -1;
    aspect-ratio: 16 / 7;
  }
  .promo-content {
    padding: 20px 22px 22px;
  }
}
.promo-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px dashed currentColor;
  background: transparent;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}

/* ---------- nagłówki podstron ---------- */

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(24px, 3vw, 36px);
}
.page-head h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.035em;
}
.page-head .lead {
  margin: 10px 0 0;
}
.section-head.inline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- kafelki menu ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 20px;
}
.tiles-home {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .tiles-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .tiles,
  .tiles-home {
    grid-template-columns: 1fr;
  }
}
.tile {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.tile:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.tile-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  overflow: hidden;
}
.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.tile:hover .tile-media img {
  transform: scale(1.04);
}
.placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--surface-2);
  background: var(--surface);
}
.tile-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 14px;
  flex: 1;
}
.tile h3 {
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile .desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}
.tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}
.price {
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.in-cart {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pink);
  margin-right: auto;
  margin-left: 10px;
}
.add-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--pink);
  color: var(--pink-ink);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.add-btn:hover {
  background: var(--pink-strong);
}
.add-btn:active {
  transform: scale(0.92);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 600;
}
.tag .icon {
  width: 1em;
  height: 1em;
  color: var(--pink);
}
.allergens {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.allergen-note {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 70ch;
}
.ssr-cat ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}

/* ---------- układ sklepu: /menu i /zamow ---------- */

.shop {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 96px;
}
.shop.with-panel {
  grid-template-columns: 180px minmax(0, 1fr) 360px;
  gap: 32px;
}
.cat-nav {
  position: sticky;
  top: 92px;
  display: grid;
  border-left: 1px solid var(--line);
}
.cat-nav a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-left: -1px;
  padding: 9px 0 9px 16px;
  border-left: 3px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
}
.cat-nav a small {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cat-nav a:hover {
  color: var(--ink);
}
.cat-nav a[aria-current="true"] {
  color: var(--ink);
  font-weight: 700;
  border-left-color: var(--pink);
}
.shop-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  margin-bottom: 28px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--muted);
}
.shop-search:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.shop-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  min-height: 46px;
  color: var(--ink);
}
.shop-cat {
  margin-bottom: 48px;
  scroll-margin-top: 92px;
}
.shop-cat > header {
  margin-bottom: 18px;
}
.shop-cat h2 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}
.shop-cat > header p {
  margin: 6px 0 0;
  color: var(--muted);
}
.no-results {
  color: var(--muted);
  padding: 24px 0;
}

/* wiersze na stronie zamówienia */
.rows {
  display: grid;
  gap: 12px;
}
.row-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--bg-2);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.25s var(--ease);
}
.row-item:hover {
  border-color: var(--line-strong);
}
.row-item .row-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.row-item h3 {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.row-item .desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.row-item .tile-foot {
  padding-top: 4px;
}
.row-thumb {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.row-thumb .placeholder {
  font-size: 1.3rem;
}

/* panel zamówienia */
.order-panel {
  position: sticky;
  top: 92px;
  max-height: calc(100dvh - 112px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.panel-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  font-size: 1.3rem;
}
.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 20px 16px;
  overscroll-behavior: contain;
}
.panel-foot {
  padding: 16px 20px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.panel-foot:empty {
  display: none;
}
.upsell {
  margin-top: 18px;
}
.upsell h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.upsell-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.upsell-list button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.upsell-list button:hover {
  border-color: var(--pink);
  color: var(--pink);
}
.upsell-list .icon {
  width: 1em;
  height: 1em;
  color: var(--pink);
}

@media (max-width: 1140px) {
  .shop.with-panel {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .order-panel {
    display: none;
  }
}
@media (max-width: 860px) {
  .shop,
  .shop.with-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .cat-nav {
    top: 68px;
    z-index: 5;
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1) 16px;
    padding: 0 var(--gutter);
    background: var(--bg);
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .cat-nav::-webkit-scrollbar {
    display: none;
  }
  .cat-nav a {
    flex: none;
    margin: 0 0 -1px;
    padding: 14px 0 11px;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }
  .cat-nav a small {
    display: none;
  }
  .cat-nav a[aria-current="true"] {
    border-bottom-color: var(--pink);
  }
  .shop-cat {
    scroll-margin-top: 136px;
  }
}
@media (max-width: 480px) {
  .row-item {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 14px;
    padding: 14px;
  }
  .row-thumb {
    width: 88px;
    height: 88px;
  }
}

/* ---------- czym jest roujiamo ---------- */

.explainer {
  background: var(--pink);
  color: var(--pink-ink);
}
.explainer .wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
}
.explainer .hanzi-big {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  font-size: clamp(5rem, 15vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.explainer .hanzi-big small {
  display: block;
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.explainer h2 {
  max-width: 16ch;
}
.explainer p {
  max-width: 58ch;
  font-size: 1.08rem;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
  margin: 28px 0 0;
}
.facts dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.facts dd {
  margin: 4px 0 0;
  color: #3a2430;
}
@media (max-width: 760px) {
  .explainer .wrap {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: 1fr;
  }
}

/* ---------- o mnie: zajawka na stronie głównej ---------- */

.about-teaser .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
}
.about-teaser-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
}
.about-teaser-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-teaser-copy .lead {
  margin: 16px 0 28px;
}
@media (max-width: 760px) {
  .about-teaser .wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- o mnie: podstrona ---------- */

.about-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: clamp(56px, 8vw, 104px);
}
.about-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.about-body p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 58ch;
}
.about-body {
  margin-bottom: 24px;
}
.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 860px) {
  .about-hero {
    grid-template-columns: 1fr;
  }
  .about-photo {
    aspect-ratio: 4 / 3;
    order: -1;
  }
}
.story {
  max-width: 760px;
}
.story h2 {
  margin-bottom: 28px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line-strong);
}
.timeline li {
  position: relative;
  padding: 0 0 28px 52px;
}
.timeline li::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 2px solid var(--pink);
  color: var(--pink);
  font-size: 0.8rem;
  font-weight: 700;
}
.timeline li:last-child::before {
  background: var(--pink);
  color: var(--pink-ink);
}
.timeline h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  padding-top: 4px;
}
.timeline p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- aktualności ---------- */

.news-teaser,
.news-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.news-index {
  padding-bottom: 96px;
}
.news-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.news-card:hover {
  border-color: var(--pink);
  transform: translateY(-2px);
}
.news-card .media {
  aspect-ratio: 16 / 10;
  background: var(--surface);
  overflow: hidden;
}
.news-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card .body {
  padding: 18px 20px 22px;
}
.news-card time {
  font-size: 0.84rem;
  color: var(--muted);
}
.news-card h2,
.news-card h3 {
  font-size: 1.25rem;
  margin: 6px 0 8px;
  line-height: 1.2;
}
.news-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 900px) {
  .news-teaser,
  .news-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .news-teaser,
  .news-index {
    grid-template-columns: 1fr;
  }
}

/* ---------- kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
}
.contact-list {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-list .icon {
  color: var(--pink);
  margin-top: 3px;
}
.contact-list a {
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.hours {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  font-variant-numeric: tabular-nums;
}
.hours th,
.hours td {
  text-align: left;
  padding: 8px 0;
  font-weight: 400;
}
.hours td {
  text-align: right;
  color: var(--ink-soft);
}
.hours tr + tr {
  border-top: 1px solid var(--line);
}
.hours tr.today th,
.hours tr.today td {
  color: var(--pink);
  font-weight: 600;
}
.map-box {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 24px;
}
.map-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}
.map-card .map-pin {
  width: 40px;
  height: 40px;
  color: var(--pink);
}
.map-card strong {
  font-size: 1.1rem;
}
.map-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}
/* Mapa leży nad kartą, ale pokazujemy ją dopiero po wczytaniu. */
.map-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  visibility: hidden;
}
.map-box.map-ready iframe {
  visibility: visible;
}
.socials {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- stopka ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 110px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}
.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  margin-bottom: 10px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--pink);
}
.site-footer address {
  font-style: normal;
}
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- pływający koszyk (mobile) ---------- */

.cart-fab {
  border: 0;
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 3.5px var(--pink),
    var(--shadow);
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: var(--z-fab);
  display: none;
  justify-content: space-between;
}
.cart-fab.show {
  display: flex;
}
@media (min-width: 901px) {
  .cart-fab.show {
    display: none;
  }
}
@media (max-width: 1140px) {
  body.has-panel .cart-fab.show {
    display: flex;
  }
}

/* ---------- warstwy: szuflada i okna ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgb(4 14 9 / 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: calc(var(--z-overlay) + 1);
  width: min(460px, 100%);
  background: var(--bg);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.drawer.open {
  transform: none;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 {
  font-size: 1.5rem;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  overscroll-behavior: contain;
}
.drawer-foot {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.modal {
  position: fixed;
  z-index: calc(var(--z-overlay) + 2);
  left: 50%;
  top: 50%;
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translate(-50%, -46%) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}
.modal.open {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
[data-item-modal] {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.modal-media {
  aspect-ratio: 16 / 9;
  max-height: 32dvh;
  width: 100%;
  background: var(--surface);
  flex: none;
}
.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg);
}
.modal-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.modal-body h2 {
  font-size: 1.8rem;
}
.modal-body > p {
  color: var(--ink-soft);
}
.modal-foot {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
@media (max-width: 560px) {
  .modal {
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: 92dvh;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    transform: translate(-50%, 24px);
  }
  .modal.open {
    transform: translate(-50%, 0);
  }
}

/* ---------- opcje i ilość ---------- */

.opt-group {
  border: 0;
  padding: 0;
  margin: 22px 0 0;
}
.opt-group legend {
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.opt-group legend small {
  color: var(--muted);
  font-weight: 400;
}
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.opt:has(input:checked) {
  border-color: var(--ink-soft);
}
.opt input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg) center / 14px no-repeat;
  transition: background-color 0.15s, border-color 0.15s;
  cursor: pointer;
}
.opt input[type="checkbox"] {
  border-radius: 6px;
}
.opt input:checked {
  border-color: var(--pink);
  background-color: var(--pink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%230e2619' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.opt input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.opt.removable:has(input:not(:checked)) span {
  text-decoration: line-through;
  color: var(--muted);
}
.opt span {
  flex: 1;
}
.opt em {
  font-style: normal;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
}
.qty button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-pill);
}
.qty button:hover {
  color: var(--pink);
}
.qty output {
  min-width: 26px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.qty.sm button {
  width: 32px;
  height: 32px;
}

/* ---------- koszyk ---------- */

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}
.cart-line .opts {
  grid-column: 1;
  font-size: 0.85rem;
  color: var(--muted);
}
.cart-line .controls {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.link-btn {
  background: none;
  border: 0;
  padding: 4px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 0.875rem;
}
.link-btn:hover {
  color: var(--danger);
}
.link-btn.edit:hover {
  color: var(--pink);
}
.line-actions {
  display: inline-flex;
  gap: 6px;
}
.empty-state {
  text-align: center;
  padding: 48px 12px;
  color: var(--ink-soft);
}
.empty-state .icon {
  width: 48px;
  height: 48px;
  color: var(--pink);
  margin: 0 auto 14px;
}
.totals {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  font-variant-numeric: tabular-nums;
}
.totals div {
  display: flex;
  justify-content: space-between;
}
.totals .grand {
  font-size: 1.2rem;
  font-weight: 700;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.totals .discount {
  color: var(--pink);
}

/* ---------- formularze ---------- */

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}
.field label,
.field .label {
  font-weight: 500;
  font-size: 0.92rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-field);
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--ink);
  transition: border-color 0.2s;
}
.field textarea {
  min-height: 84px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.field .hint {
  font-size: 0.82rem;
  color: var(--muted);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.seg label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-field);
  cursor: pointer;
  font-weight: 500;
  transition: border-color 0.2s, background-color 0.2s;
}
.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg label:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.seg label:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.seg label:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}
.pay-list .opt small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 4px 0 14px;
}
.check input {
  accent-color: var(--pink);
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
}
.check a {
  color: var(--pink);
}
.promo-row {
  display: flex;
  gap: 8px;
}
.promo-row input {
  text-transform: uppercase;
}
.form-error {
  color: var(--danger);
  font-size: 0.9rem;
  margin: 0 0 12px;
}
.form-error:empty {
  display: none;
}
.form-ok {
  color: var(--ok);
  font-size: 0.88rem;
}
.hp {
  position: absolute;
  left: -9999px;
}
.fine {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 10px 0 0;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: var(--z-toast);
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
  max-width: calc(100% - 32px);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* Gdy widoczny jest pływający koszyk, powiadomienie pojawia się nad nim. */
@media (max-width: 900px) {
  body:has(.cart-fab.show) .toast {
    bottom: 92px;
  }
}
@media (max-width: 1140px) {
  body.has-panel:has(.cart-fab.show) .toast {
    bottom: 92px;
  }
}

/* ---------- skeleton ---------- */

.skeleton {
  background: linear-gradient(90deg, var(--bg-2) 0%, var(--surface) 50%, var(--bg-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: var(--radius-card);
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ---------- podstrony (dokumenty, aktualności, status zamówienia) ---------- */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) 0 80px;
}
.doc h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 28px;
}
.doc h2 {
  font-size: 1.4rem;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}
.doc p,
.doc li {
  color: var(--ink-soft);
}
.doc ol,
.doc ul {
  padding-left: 1.3em;
}
.doc li {
  margin-bottom: 6px;
}
.doc-meta {
  color: var(--muted);
  margin: 0 0 10px;
}
.doc-hero {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-card);
  margin: 0 0 28px;
}

.status-steps {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.status-steps li {
  padding-top: 14px;
  border-top: 4px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.status-steps li.done {
  border-color: var(--pink);
  color: var(--ink);
}
.status-steps li.current {
  border-color: var(--pink);
  color: var(--pink);
}
.status-card {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: var(--radius-card);
  padding: 22px;
  margin-bottom: 18px;
}
.status-card h2 {
  margin-top: 0;
}
.pay-demo {
  border: 2px dashed var(--pink);
  background: var(--pink-tint);
}
@media (max-width: 560px) {
  .status-steps {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- animacje wejścia ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
  .hero-copy > * {
    animation: rise 0.9s var(--ease) both;
  }
  .hero-copy > *:nth-child(2) {
    animation-delay: 0.08s;
  }
  .hero-copy > *:nth-child(3) {
    animation-delay: 0.16s;
  }
  .hero-copy > *:nth-child(4) {
    animation-delay: 0.24s;
  }
  .hero-media {
    animation: rise 1.1s var(--ease) 0.1s both;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
