/* ============================================================
   Spraw Radość — komponenty. Kolory, fonty i geometria: tokens.css.
   Motyw: papier pakowy (pasy --bg-2 z prążkami), wstążki (koral i zieleń),
   metki z dziurką (ceny, odbiorcy), kokardy (okazje).
   Mobile first: progi 640, 900, 1000 px.
   ============================================================ */

/* --------- podstawa --------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg); color-scheme: light; scroll-behavior: smooth;
  scroll-padding-top: 84px; overflow-x: clip; -webkit-text-size-adjust: 100%;
}
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); color: var(--head); line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(32px, 5.2vw, 54px); font-weight: 700; letter-spacing: -.015em; line-height: 1.06; }
h2 { font-size: clamp(25px, 3.1vw, 34px); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 19px; font-weight: 600; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.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 {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--chalk); color: #fff; border-radius: 0 0 10px 10px; font-weight: 700;
}
.skip:focus { top: 0; }

/* linki w tekście */
main p a, main li > a:not([class]), .lead a {
  color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
main p a:hover, main li > a:not([class]):hover { color: var(--accent); text-decoration-thickness: 2.5px; }

/* --------- przyciski --------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--chalk);
  font-weight: 700; font-size: 15.5px; line-height: 1.2; text-align: center; cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px) scale(.98); box-shadow: none; }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-deep); color: var(--accent-ink); border-color: transparent; }
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
  text-decoration: underline; text-underline-offset: 3px;
}

/* --------- nagłówek i menu --------- */
.naglowek {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 246, 238, .93); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.naglowek-wnetrze { display: flex; align-items: center; gap: 10px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.logo-znak {
  width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--accent);
  display: grid; place-items: center; transition: transform .2s ease;
}
.logo-znak svg { width: 24px; height: 24px; }
.logo:hover .logo-znak { transform: rotate(-8deg) scale(1.06); }
.logo-nazwa { font-family: var(--f-display); font-weight: 700; font-size: 21px; color: var(--head); letter-spacing: -.01em; white-space: nowrap; }
.naglowek .naglowek-cta { order: 2; padding: 9px 16px; font-size: 14.5px; min-height: 42px; white-space: nowrap; }
/* na telefonie logo + przycisk + menu nie mieszczą się w wierszu; dobieracz jest tuż pod nagłówkiem */
@media (max-width: 559px) { .naglowek .naglowek-cta { display: none; } }
.menu-mobile { order: 3; }
.menu-mobile > summary {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--card); list-style: none;
  transition: border-color .16s ease, color .16s ease;
}
.menu-mobile > summary:hover { border-color: var(--accent); color: var(--accent-deep); }
.menu-mobile > .menu {
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100dvh - 64px); overflow: auto;
  background: var(--popup); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-up);
  padding: 6px 20px 18px;
}
.menu-item { border-bottom: 1px solid var(--line); }
.menu-item > summary, .menu-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 48px; padding: 10px 2px; font-weight: 700; color: var(--chalk); list-style: none;
}
.menu-item > summary::after {
  content: ""; width: 8px; height: 8px; flex: none; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .18s ease;
}
.menu-item[open] > summary { color: var(--accent-deep); }
.menu-item[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.menu-panel { display: grid; grid-template-columns: 1fr; gap: 2px 8px; padding: 0 0 12px; }
.menu-szeroki .menu-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.menu-panel a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 10px;
  font-weight: 600; font-size: 15.5px; color: var(--ink);
  transition: background-color .14s ease, color .14s ease;
}
.menu-panel a:hover, .menu-link:hover { background: var(--accent-soft); color: var(--accent-deep); }
.menu-panel a[aria-current="page"], .menu-link[aria-current="page"] { color: var(--accent-deep); box-shadow: inset 3px 0 0 var(--accent); }
.menu-data { color: var(--faint); font-weight: 400; margin-left: auto; padding-left: 12px; white-space: nowrap; }
.menu-panel .menu-all { grid-column: 1 / -1; color: var(--accent-2-deep); font-weight: 700; }
.menu-wiek { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 4px 0 8px; }
.menu-wiek-plec { width: 100%; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.menu-wiek a {
  width: 44px; min-height: 44px; padding: 0; justify-content: center; border-radius: 50%;
  background: var(--bg-2); font-weight: 800;
}
.menu-link { border-radius: 10px; }

@media (min-width: 900px) {
  .naglowek-wnetrze { gap: 18px; }
  .logo { margin-right: 0; }
  .menu-mobile { order: 2; flex: 1; }
  .naglowek .naglowek-cta { order: 3; }
  /* skrypt w nagłówku otwiera menu na szerokim ekranie; bez JS zostaje przycisk */
  .menu-mobile[open] > summary { display: none; }
  .menu-mobile > .menu {
    position: static; max-height: none; overflow: visible; padding: 0; border: 0; box-shadow: none;
    background: none; display: flex; align-items: center; justify-content: center; gap: 4px;
  }
  .menu-item { position: relative; border: 0; }
  .menu-item > summary, .menu-link {
    min-height: 40px; padding: 8px 12px; border-radius: 999px; font-size: 15.5px; justify-content: flex-start;
    transition: background-color .14s ease, color .14s ease;
  }
  .menu-item > summary:hover { background: var(--accent-soft); color: var(--accent-deep); }
  .menu-item > summary::after { width: 6px; height: 6px; margin: 0 0 0 2px; }
  .menu-panel {
    position: absolute; top: calc(100% + 12px); left: 0; z-index: 70; min-width: 250px;
    grid-template-columns: 1fr; gap: 2px; padding: 10px;
    background: var(--popup); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-up);
  }
  .menu-szeroki .menu-panel { grid-template-columns: repeat(2, minmax(150px, 1fr)); min-width: 380px; }
  .menu-panel a { min-height: 38px; }
  .menu-panel .menu-all { border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 6px; }
  .menu-wiek a { width: 36px; min-height: 36px; }
}

/* --------- pasy tła: papiery pakowe z falbanką --------- */
.pas { position: relative; padding: 44px 0; }
@media (min-width: 900px) { .pas { padding: 58px 0; } }
.pas-papier { background-color: var(--bg-2); }
.papier-kropki { background-image: radial-gradient(circle, rgba(42, 33, 28, .075) 1.6px, transparent 2.1px); background-size: 18px 18px; }
.papier-paski { background-image: var(--papier); }
.papier-kratka {
  background-image: linear-gradient(rgba(42, 33, 28, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(42, 33, 28, .045) 1px, transparent 1px);
  background-size: 22px 22px;
}
/* brzeg papieru wycięty w półkola (jak nożyczkami z falbanką) */
.pas-papier::before, .pas-papier::after, .hero::after {
  content: ""; position: absolute; left: 0; right: 0; height: 9px; pointer-events: none;
  background-size: 20px 9px; background-repeat: repeat-x; background-position: 50% 0;
}
.pas-papier::before { top: 0; background-image: radial-gradient(circle at 50% 0, var(--bg) 8px, transparent 8.6px); }
.pas-papier::after, .hero::after { bottom: 0; background-image: radial-gradient(circle at 50% 100%, var(--bg) 8px, transparent 8.6px); }
.pas-glowa { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 20px; margin-bottom: 22px; }
.pas h2 { margin-bottom: 18px; }
.pas-glowa h2 { margin-bottom: 0; }
.nadtytul {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-deep);
}
.nadtytul::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--accent); }
.pas-wszystkie { font-weight: 700; color: var(--accent-2-deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; white-space: nowrap; }
.pas-wszystkie:hover { color: var(--accent-deep); text-decoration-thickness: 2.5px; }
.dwie-kolumny { display: grid; gap: 40px; }
@media (min-width: 900px) { .dwie-kolumny { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.drobne { font-size: 14.5px; color: var(--dim); }

/* --------- hero: bilecik-dobieracz i pudełko --------- */
.hero {
  position: relative; padding: 34px 0 44px; background-color: var(--bg-2);
  background-image: radial-gradient(circle, rgba(42, 33, 28, .075) 1.6px, transparent 2.1px); background-size: 18px 18px;
}
.hero-siatka { display: grid; gap: 30px; }
.etykieta {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 16px; padding: 6px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--dim);
}
.etykieta b { color: var(--head); font-weight: 800; }
.etykieta-kropka { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 2px; }
.hero h1 em { position: relative; z-index: 0; font-style: italic; color: var(--accent-deep); white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; z-index: -1; left: -3%; right: -3%; bottom: .06em; height: .2em;
  border-radius: 99px; background: var(--accent-3); opacity: .38; transform: rotate(-1.4deg);
}
.hero-lead { margin-top: 14px; font-size: 18.5px; color: var(--dim); max-width: 54ch; }
.dobieracz {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; padding: 22px 20px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-up);
}
.pole label { display: block; margin-bottom: 5px; font-size: 13.5px; font-weight: 700; color: var(--dim); }
.opcjonalne { font-weight: 400; color: var(--faint); }
.pole select {
  width: 100%; min-height: 50px; padding: 10px 40px 10px 14px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); appearance: none; -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%232a211c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
  font-weight: 600; color: var(--ink); transition: border-color .16s ease, box-shadow .16s ease;
}
.pole select:hover { border-color: var(--accent); }
.pole select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.dobieracz-btn { min-height: 52px; font-size: 17px; }
.hero-skroty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.hero-skroty-opis { font-size: 13.5px; font-weight: 700; color: var(--faint); margin-right: 2px; }
.hero-skroty a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 5px 13px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: 14.5px; font-weight: 700; color: var(--head);
  text-decoration: none; transition: transform .16s ease, border-color .16s ease, color .16s ease;
}
.hero-skroty a b { font-weight: 700; color: var(--faint); font-size: 13px; }
.hero-skroty a:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-deep); text-decoration: none; }
.hero-skroty a:active { transform: scale(.97); }
.noscript { margin-top: 12px; font-size: 15px; color: var(--dim); }
.hero-prawa { position: relative; }
.hero-foto {
  margin: 0; overflow: hidden; aspect-ratio: 16 / 9; border: 7px solid var(--card); border-radius: 20px;
  box-shadow: var(--shadow-up); background: var(--card);
}
.hero-foto img { width: 100%; height: 100%; object-fit: cover; }
.hero-metki { display: none; }
@media (min-width: 640px) {
  .dobieracz { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 26px 24px 22px; }
  .dobieracz-btn { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .hero { padding: 46px 0 58px; }
  .hero-siatka { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: 44px; align-items: center; }
  .hero-prawa { max-width: 430px; margin-inline: auto; padding: 14px 0; }
  .hero-foto { aspect-ratio: 22 / 25; border-width: 9px; border-radius: 26px; transform: rotate(2.2deg); }
  .hero-metki { display: block; }
  /* metki przywiązane do pudełka: trzy żywe przykłady z bazy */
  .metka {
    position: absolute; display: grid; gap: 0; padding: 9px 16px 10px 32px; min-width: 142px;
    background: var(--card); border: 1px solid var(--line); border-radius: 8px 18px 18px 8px; box-shadow: var(--shadow-up);
    color: var(--head); line-height: 1.25; transition: transform .2s ease, border-color .2s ease;
  }
  .metka::before {
    content: ""; position: absolute; left: 11px; top: 13px; width: 10px; height: 10px; border-radius: 50%;
    background: var(--bg-2); box-shadow: inset 0 1px 2px rgba(42, 33, 28, .35);
  }
  .metka-m { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }
  .metka strong { font-family: var(--f-display); font-size: 20px; font-weight: 700; }
  .metka-n { font-size: 13px; font-weight: 600; color: var(--dim); }
  .metka-1 { left: -46px; top: 7%; transform: rotate(-7deg); }
  .metka-2 { right: -34px; top: 44%; transform: rotate(5deg); }
  .metka-3 { left: -30px; bottom: 9%; transform: rotate(-3deg); }
  .metka:hover { transform: rotate(0deg) scale(1.05); border-color: var(--accent); z-index: 2; }
}

/* wyniki dobieracza */
#wyniki:empty { display: none; }
#wyniki { padding: 30px 0 10px; }
.wyniki-naglowek { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 18px; }
.wyniki-naglowek h2 { font-size: clamp(22px, 2.6vw, 28px); }
.wyniki-link { font-weight: 700; color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.wyniki-link:hover { color: var(--accent); }
.wyniki-puste { padding: 22px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--r-md); }
.wyniki-puste p { color: var(--dim); }
.wyniki-akcje { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.wyniki-wiecej { display: flex; justify-content: center; margin-top: 20px; }

/* --------- kalendarz okazji: kartki zrywane --------- */
.kartki { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .kartki { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .kartki { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kartka {
  --wst: var(--accent);
  position: relative; display: grid; justify-items: center; align-content: start; text-align: center; overflow: hidden;
  padding-bottom: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 3px 0 rgba(42, 33, 28, .07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.kartka:nth-child(4n + 2) { --wst: var(--accent-2); }
.kartka:nth-child(4n + 3) { --wst: var(--accent-3); }
.kartka:nth-child(4n + 4) { --wst: var(--accent-4); }
.kartka-mies {
  position: relative; width: 100%; padding: 9px 4px 8px; background: var(--wst); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
/* dwa kółka spinające kartki kalendarza */
.kartka-mies::before, .kartka-mies::after {
  content: ""; position: absolute; top: -4px; width: 9px; height: 13px; border-radius: 5px; background: var(--card);
  box-shadow: inset 0 -2px 0 rgba(42, 33, 28, .22);
}
.kartka-mies::before { left: 26%; }
.kartka-mies::after { right: 26%; }
.kartka-foto { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-2); }
.kartka-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.kartka:hover .kartka-foto img { transform: scale(1.06); }
.kartka-dzien {
  position: absolute; left: 8px; bottom: 8px; min-width: 46px; padding: 5px 9px 4px; border-radius: 11px;
  background: var(--card); box-shadow: 0 2px 6px rgba(42, 33, 28, .22);
  font-family: var(--f-display); font-size: 27px; font-weight: 700; line-height: 1; color: var(--head);
}
.kartka strong { margin-top: 10px; padding: 0 8px; font-size: 15.5px; font-weight: 800; line-height: 1.25; color: var(--head); }
.kartka-ile { margin-top: 8px; padding: 2px 10px; border-radius: 999px; background: var(--bg-2); font-size: 12.5px; font-weight: 700; color: var(--head); }
.kartka-n { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--faint); }
.kartka:hover { transform: translateY(-4px) rotate(-1deg); border-color: var(--wst); box-shadow: 0 5px 0 rgba(42, 33, 28, .09), var(--shadow-up); }
.kartka:active { transform: translateY(0) scale(.98); }

/* --------- odbiorcy: bileciki na sznurku --------- */
.grupa + .grupa, .grupa-pasji + .grupa-pasji { margin-top: 22px; }
.grupa-glowa { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.grupa-glowa h3 { margin-bottom: 0; }
.grupa-foto { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; border: 3px solid var(--card); box-shadow: var(--shadow); }
.grupa h3, .grupa-pasji h3, .hub-sekcja h3 {
  font-family: var(--f-body); font-size: 13px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 6px;
}
/* sznurek biegnie nad każdym wierszem bilecików: wiersz ma stałą wysokość 66 px */
.kafle-odbiorcy {
  display: flex; flex-wrap: wrap; gap: 0 12px; padding: 0 4px;
  background: repeating-linear-gradient(to bottom, var(--sznurek) 0 2px, transparent 2px 66px);
}
.kafel-odbiorca {
  position: relative; display: inline-flex; align-items: center; gap: 9px; height: 44px; margin: 20px 0 2px;
  padding: 0 15px 0 30px; background: var(--card); border: 1px solid var(--line); border-radius: 7px 14px 14px 7px;
  box-shadow: 0 2px 0 rgba(42, 33, 28, .07); font-weight: 700; font-size: 15.5px; color: var(--head);
  transform-origin: 16px 0; transition: transform .2s ease, border-color .16s ease, color .16s ease;
}
.kafel-odbiorca:nth-child(odd) { transform: rotate(-1.6deg); }
.kafel-odbiorca:nth-child(even) { transform: rotate(1.2deg); }
/* dziurka */
.kafel-odbiorca::before {
  content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px;
  border-radius: 50%; background: var(--bg-2); box-shadow: inset 0 1px 2px rgba(42, 33, 28, .4);
}
/* kawałek sznurka od linki do dziurki */
.kafel-odbiorca::after {
  content: ""; position: absolute; left: 14.5px; top: -20px; width: 2px; height: 38px; border-radius: 1px; background: var(--sznurek);
}
.kafel-odbiorca span { font-size: 12.5px; font-weight: 700; color: var(--faint); }
.kafel-odbiorca:hover { transform: rotate(0deg) translateY(2px); border-color: var(--accent); color: var(--accent-deep); }
.kafel-odbiorca:active { transform: rotate(0deg) scale(.97); }

/* --------- dzieci: balony z liczbą lat --------- */
.dzieci-siatka { display: grid; gap: 22px; }
.dzieci-opis p:last-child { color: var(--dim); max-width: 44ch; }
.linia-wieku { display: grid; gap: 8px; padding: 6px 0 2px; }
.linia-plec { font-family: var(--f-display); font-size: 19px; font-weight: 700; color: var(--head); }
.wieki { display: flex; flex-wrap: wrap; gap: 6px 9px; }
.wieki a {
  --balon: var(--accent);
  position: relative; width: 46px; height: 54px; margin-bottom: 26px; display: grid; place-items: center;
  border-radius: 50% 50% 50% 50% / 46% 46% 54% 54%; background: var(--balon); color: #fff;
  font-family: var(--f-display); font-size: 19px; font-weight: 700;
  box-shadow: inset -5px -6px 0 rgba(0, 0, 0, .12), inset 4px 5px 0 rgba(255, 255, 255, .16);
  transition: transform .22s ease;
}
.wieki a:nth-child(4n + 2) { --balon: var(--accent-2); }
.wieki a:nth-child(4n + 3) { --balon: var(--accent-3); }
.wieki a:nth-child(4n + 4) { --balon: var(--accent-4); }
/* supełek i sznurek balonu */
.wieki a::before {
  content: ""; position: absolute; left: 50%; top: 100%; margin: -2px 0 0 -5px;
  border: 5px solid transparent; border-top: 0; border-bottom: 7px solid var(--balon);
}
.wieki a::after {
  content: ""; position: absolute; left: 50%; top: calc(100% + 4px); width: 1.5px; height: 20px; margin-left: -.75px;
  background: var(--sznurek); border-radius: 1px;
}
.wieki a:hover { transform: translateY(-6px) rotate(-3deg); }
.wieki a:active { transform: translateY(-2px) scale(.95); }
.zakresy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.zakresy a, .skroty a, .zobacz li a {
  display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px;
  background: var(--card); border: 1.5px solid var(--line); font-weight: 700; font-size: 15px; color: var(--head);
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, color .16s ease, background-color .16s ease;
}
.zakresy a:hover, .skroty a:hover, .zobacz li a:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-deep); }
.zakresy a:active, .skroty a:active, .zobacz li a:active { transform: scale(.97); }
@media (min-width: 900px) {
  .dzieci-siatka { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 48px; align-items: center; }
}

/* --------- budżet: metki z ceną; zestawienia --------- */
.kafle-budzetu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kafel-budzet {
  --wst: var(--accent-2);
  position: relative; display: grid; gap: 1px; padding: 16px 16px 15px 40px; background: var(--card);
  border: 1px solid var(--line); border-radius: 9px 20px 20px 9px; box-shadow: 0 3px 0 rgba(42, 33, 28, .07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.kafel-budzet:nth-child(2) { --wst: var(--accent-3); }
.kafel-budzet:nth-child(3) { --wst: var(--accent); }
.kafel-budzet:nth-child(4) { --wst: var(--accent-4); }
.kafel-budzet::before {
  content: ""; position: absolute; left: 13px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%;
  background: var(--bg-2); box-shadow: inset 0 0 0 3px var(--wst);
}
.kafel-budzet strong { font-family: var(--f-display); font-size: 26px; font-weight: 700; color: var(--head); line-height: 1.1; }
.kafel-budzet span { font-size: 14px; font-weight: 600; color: var(--dim); }
.kafel-budzet:hover { transform: translateY(-3px) rotate(-1deg); border-color: var(--wst); box-shadow: var(--shadow-up); }
.kafel-budzet:active { transform: scale(.98); }
.zestawienia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.zest {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; align-items: center; padding: 10px 14px 10px 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.zest-ik { grid-row: span 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-2-soft); color: var(--accent-2-deep); }
.zest strong { font-weight: 800; font-size: 15.5px; color: var(--head); line-height: 1.25; }
.zest-n { font-size: 13px; font-weight: 600; color: var(--faint); }
.zest:hover { transform: translateY(-2px); border-color: var(--accent-2); box-shadow: var(--shadow); }
.zest:active { transform: scale(.98); }

/* --------- pasek liczb --------- */
.pas-staty {
  position: relative; padding: 26px 0; color: #fff; background-color: var(--accent-2);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 13px);
  box-shadow: inset 0 5px 0 var(--accent), inset 0 -5px 0 var(--accent);
}
.staty { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.staty p { display: grid; gap: 2px; }
.staty b { font-family: var(--f-display); font-size: 38px; font-weight: 700; line-height: 1; }
.staty span { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
@media (min-width: 760px) { .staty { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* --------- pasje: naklejki --------- */
.pasje-siatka { display: grid; gap: 22px 28px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grupa-pasji + .grupa-pasji { margin-top: 0; }
.chmura { display: flex; flex-wrap: wrap; gap: 8px; }
.chmura a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 11px;
  background: var(--card); border: 1.5px solid rgba(24, 76, 59, .3); color: var(--accent-2-deep); font-weight: 700; font-size: 15px;
  box-shadow: 2px 3px 0 rgba(24, 76, 59, .14); text-decoration: none;
  transition: transform .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.chmura a:nth-child(odd) { transform: rotate(-1.2deg); }
.chmura a:nth-child(even) { transform: rotate(1deg); }
.chmura a:hover { transform: rotate(0deg) translateY(-2px); background: var(--accent-2); color: #fff; box-shadow: 3px 5px 0 rgba(24, 76, 59, .2); }
.chmura a:active { transform: scale(.97); }

/* --------- karta pomysłu --------- */
.karty { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .karty { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .karty { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .karty { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.karta {
  --kat: var(--accent);
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto;
  gap: 14px; padding: 20px 18px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
/* wstążka w kolorze kategorii, zwisająca z górnej krawędzi */
.karta::before {
  content: ""; position: absolute; left: 20px; top: -1px; width: 42px; height: 6px;
  border-radius: 0 0 5px 5px; background: var(--kat);
}
.karta:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); border-color: color-mix(in srgb, var(--kat) 45%, transparent); }
.karta-ikona {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px;
  background: color-mix(in srgb, var(--kat) 12%, #fff); color: var(--kat);
}
.karta-tresc { min-width: 0; }
.karta h3 { font-size: 19.5px; }
.karta h3 a { text-decoration: none; color: var(--head); background: linear-gradient(var(--kat), var(--kat)) no-repeat 0 100% / 0 2px; transition: background-size .2s ease, color .16s ease; }
.karta h3 a:hover { background-size: 100% 2px; }
.karta-czemu { margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--dim); }
.karta-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 11px; }
/* cena jako metka z dziurką */
.cena {
  position: relative; display: inline-flex; align-items: center; padding: 4px 13px 4px 25px;
  border-radius: 6px 999px 999px 6px; background: var(--bg-2);
  font-weight: 800; font-size: 14.5px; color: var(--chalk); white-space: nowrap;
}
.cena::before {
  content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1px rgba(42, 33, 28, .22);
}
.znaczek {
  display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: var(--accent-2-soft); color: var(--accent-2-deep); white-space: nowrap;
}
.karta-sklepy { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
/* etykieta przycisku nie łamie się: gdy dwa nie mieszczą się obok siebie, drugi schodzi pod pierwszy */
.karta-sklep { flex: 1 1 172px; padding: 9px 14px; font-size: 14.5px; white-space: nowrap; }

/* --------- strona listy --------- */
.lista-strona, .pomysl-strona, .hub, .strona-stala { padding-top: 6px; padding-bottom: 72px; }
/* pas nagłówka podstron: papier pakowy z falbanką, okruszki, tytuł i zdjęcie tematu */
.strona-pas { position: relative; padding: 16px 0 34px; }
.strona-foto { margin: 22px 0 0; }
.strona-foto img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--card);
  border: 7px solid var(--card); border-radius: 20px; box-shadow: var(--shadow-up);
}
.strona-foto figcaption { margin-top: 8px; font-size: 12.5px; color: var(--faint); text-align: right; }
@media (min-width: 900px) {
  .strona-pas { padding: 18px 0 44px; }
  .lista-naglowek.z-foto { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 44px; align-items: center; }
  .strona-foto { margin: 0; }
  .strona-foto img { aspect-ratio: 3 / 2; border-width: 8px; transform: rotate(1.6deg); }
}
.okruszki { font-size: 14px; color: var(--faint); }
.okruszki ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.okruszki li + li::before { content: "›"; margin-right: 8px; color: var(--faint); }
.okruszki a { text-decoration: underline; text-underline-offset: 3px; }
.okruszki a:hover { color: var(--accent-deep); }
.lista-naglowek { margin-top: 18px; }
.haslo { font-family: var(--f-display); font-style: italic; font-size: 19px; font-weight: 600; color: var(--accent-deep); margin-bottom: 6px; }
.za-ile { color: var(--accent-2-deep); }
.lead { margin-top: 14px; max-width: 68ch; font-size: 19px; line-height: 1.55; color: var(--dim); }
.skroty { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.info-afil {
  margin: 26px 0 18px; padding: 10px 14px; font-size: 14px; line-height: 1.5; color: var(--dim);
  background: var(--bg-2); border-left: 4px solid var(--accent-2); border-radius: 0 10px 10px 0;
}
.lista-kart h2 { margin: 36px 0 16px; }
.lista-kart > h2:first-child { margin-top: 8px; }
.wiecej { margin-top: 18px; }
.wiecej > summary {
  display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px 22px; list-style: none;
  border-radius: 999px; border: 1.5px dashed rgba(42, 33, 28, .32); background: var(--card);
  font-weight: 700; color: var(--chalk); transition: border-color .16s ease, color .16s ease, transform .16s ease;
}
.wiecej > summary:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-1px); }
.wiecej[open] > summary { display: none; }
.wiecej[open] > .karty { margin-top: 16px; }
.do-dobieracza { margin-top: 20px; text-align: center; font-weight: 700; }
.unikaj, .lista-strona .pytania, .zobacz, .podobne { margin-top: 54px; }
.unikaj h2, .pytania h2, .zobacz h2, .podobne h2 { margin-bottom: 16px; }
.unikaj ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.unikaj li { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--dim); }
.unikaj strong { color: var(--chalk); }
.zobacz ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* pytania (details) */
.pytanie { border-bottom: 1px solid var(--line); }
.pytanie:first-of-type { border-top: 1px solid var(--line); }
.pytanie > summary {
  position: relative; list-style: none; padding: 16px 44px 16px 0; font-weight: 700; font-size: 17.5px; color: var(--chalk);
  transition: color .16s ease;
}
.pytanie > summary:hover { color: var(--accent-deep); }
.pytanie > summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  display: grid; place-items: center; border-radius: 50%; background: var(--card); border: 1px solid var(--line);
  font-size: 20px; font-weight: 400; line-height: 1; color: var(--accent-deep); transition: transform .2s ease;
}
.pytanie[open] > summary::after { transform: rotate(45deg); }
.pytanie > p { padding: 0 44px 18px 0; color: var(--dim); max-width: 72ch; }

/* --------- strona pomysłu --------- */
.pomysl { max-width: 780px; }
.pomysl-kat { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.pomysl-kat .karta-ikona { width: 40px; height: 40px; border-radius: 12px; background: var(--card); }
.pomysl-naglowek h1 { font-size: clamp(30px, 4.6vw, 48px); }
.pomysl-naglowek .karta-meta { margin-top: 14px; }
.pomysl-naglowek .cena { background: var(--card); font-size: 16px; padding-top: 6px; padding-bottom: 6px; }
.pomysl-naglowek .sklepy-przyciski { margin-top: 20px; max-width: 520px; }
.pomysl > section { margin-top: 30px; }
.pomysl > section h2 { font-size: 23px; margin-bottom: 8px; }
.pomysl > section > p { font-size: 18px; color: var(--ink); }
.sklepy { padding: 20px; background-color: var(--bg-2); background-image: var(--papier); border-radius: var(--r-md); border: 1px solid var(--line); }
.sklepy-przyciski { display: flex; flex-wrap: wrap; gap: 10px; }
.sklepy-przyciski .btn { flex: 1 1 200px; min-height: 50px; font-size: 16px; }
.sklepy .info-afil { margin: 14px 0 0; padding: 0; background: none; border: 0; font-size: 13.5px; }
.pomysl-linki { display: grid; gap: 22px; }
.pomysl-linki .skroty { margin-top: 0; }
.pozycja-cenowa { margin-top: 26px; font-weight: 700; color: var(--accent-2-deep); }
.pomysl-stopka { margin-top: 12px; font-size: 14.5px; color: var(--faint); }
@media (min-width: 760px) { .pomysl-linki { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }

/* --------- hub /prezenty --------- */
.hub-sekcja h2 { margin-bottom: 18px; }
.hub-sekcja h3 { margin-top: 26px; }
.hub-lista { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 32px; }
.hub-lista li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.hub-lista li > a { font-weight: 700; color: var(--chalk); text-decoration: none; }
.hub-lista li > a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.ile { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; background: var(--bg-2); font-size: 12.5px; font-weight: 700; color: var(--dim); white-space: nowrap; }
.hub-pod { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 5px; font-size: 14px; }
.hub-pod a { padding: 4px 0; font-weight: 600; color: var(--accent-2-deep); text-decoration: underline; text-decoration-color: rgba(24, 76, 59, .35); text-underline-offset: 3px; }
.hub-pod a:hover { color: var(--accent-deep); text-decoration-color: currentColor; }

/* --------- strony stałe --------- */
.strona-stala { max-width: 800px; }
.strona-stala h2 { margin-top: 34px; font-size: 26px; }
.strona-stala > h2:first-child { margin-top: 22px; }
.strona-stala > p { margin-top: 12px; }
.strona-stala ul, .strona-stala ol { margin-top: 12px; padding-left: 22px; }
.strona-stala li + li { margin-top: 6px; }
.strona-404 { text-align: left; padding-top: 56px; }

/* --------- kroki, outro --------- */
.kroki { list-style: none; padding: 0; counter-reset: krok; display: grid; gap: 10px; margin-bottom: 18px; }
.kroki li {
  counter-increment: krok; position: relative; padding: 14px 16px 14px 64px; min-height: 68px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--dim); font-size: 16px;
}
.kroki li::before {
  content: counter(krok); position: absolute; left: 14px; top: 14px; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 50%; background: var(--accent-2); color: #fff;
  font-family: var(--f-display); font-size: 19px; font-weight: 700;
}
.kroki li:nth-child(2)::before { background: var(--accent-3); }
.kroki li:nth-child(3)::before { background: var(--accent); }
.kroki strong { color: var(--head); }
.outro { text-align: center; }
.outro-wnetrze { display: grid; justify-items: center; gap: 12px; }
.outro-foto {
  width: min(380px, 86%); height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 8px;
  border: 8px solid var(--card); border-radius: 20px; box-shadow: var(--shadow-up); transform: rotate(-2deg);
}
.outro h2 { margin-bottom: 0; }
.outro p { max-width: 56ch; color: var(--dim); }

/* --------- stopka --------- */
.stopka {
  background: var(--stopka); color: rgba(255, 253, 249, .84); padding: 52px 0 26px;
  box-shadow: inset 0 7px 0 var(--accent), inset 0 11px 0 var(--accent-3);
  font-size: 15.5px;
}
.stopka-siatka { display: grid; gap: 30px; }
.stopka-logo { font-family: var(--f-display); font-size: 25px; font-weight: 700; color: #fffdf9; margin-bottom: 8px; }
.stopka-afil { margin-top: 10px; font-size: 14px; color: rgba(255, 253, 249, .7); }
.stopka h2 { font-family: var(--f-body); font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 253, 249, .7); margin-bottom: 10px; }
.stopka ul { list-style: none; padding: 0; }
.stopka li a, .stopka li .link-btn { display: inline-block; padding: 5px 0; color: rgba(255, 253, 249, .9); text-decoration: none; transition: color .14s ease; }
.stopka li a:hover, .stopka li .link-btn:hover, .stopka-dol a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.stopka-dol { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 253, 249, .18); font-size: 14px; color: rgba(255, 253, 249, .7); }
.stopka-dol a { color: rgba(255, 253, 249, .9); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 800px) { .stopka-siatka { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; } }

/* --------- baner cookie (cookie.js z fabryki) --------- */
.cookiebar {
  position: fixed; left: 20px; bottom: 20px; z-index: 1200; width: min(400px, calc(100vw - 40px));
  background: var(--popup); color: var(--ink); padding: 20px; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-up); font-size: 14.5px; line-height: 1.5;
  animation: cookie-in .3s ease both;
}
.cookiebar-h { display: block; font-family: var(--f-display); font-size: 19px; color: var(--chalk); margin-bottom: 6px; }
.cookiebar p { margin: 0; color: var(--dim); }
.cookiebar a { color: var(--accent-deep); text-decoration: underline; font-weight: 700; white-space: nowrap; }
.cookiebar-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.cookiebar-row .btn { padding: 11px 14px; font-size: 14.5px; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 520px) { .cookiebar { left: 12px; right: 12px; bottom: 12px; width: auto; } }

/* --------- wejścia (fx.js dokłada .in) ---------
   Chowamy wyłącznie pod html.js-fx: bez skryptu treść jest widoczna. */
.reveal { opacity: 1; transform: none; }
.js-fx .reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.js-fx .reveal.in { opacity: 1; transform: none; }

/* --------- dotyk i ograniczony ruch --------- */
@media (hover: none) {
  .btn:hover, .karta:hover, .kartka:hover, .zest:hover, .metka:hover, .kafel-odbiorca:hover, .kafel-budzet:hover,
  .wieki a:hover, .chmura a:hover, .zakresy a:hover, .skroty a:hover, .zobacz li a:hover, .wiecej > summary:hover,
  .logo:hover .logo-znak { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js-fx .reveal { opacity: 1; transform: none; }
  .btn:hover, .btn:active, .karta:hover, .kartka:hover, .kartka:active, .zest:hover, .metka:hover, .kafel-odbiorca:hover,
  .kafel-odbiorca:active, .kafel-budzet:hover, .kafel-budzet:active, .wieki a:hover, .wieki a:active,
  .chmura a:hover, .zakresy a:hover, .skroty a:hover, .zobacz li a:hover { transform: none; }
}

/* --------- podstrony: te same motywy co na stronie głównej --------- */
/* metka i kartka przypięte do zdjęcia w nagłówku */
.strona-foto { position: relative; }
.foto-metka {
  position: absolute; left: 10px; bottom: -14px; display: grid; padding: 9px 16px 10px 32px; min-width: 150px;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px 18px 18px 8px; box-shadow: var(--shadow-up);
  color: var(--head); line-height: 1.25; transform: rotate(-3deg);
}
.foto-metka::before {
  content: ""; position: absolute; left: 11px; top: 13px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg-2); box-shadow: inset 0 1px 2px rgba(42, 33, 28, .35);
}
.foto-metka .metka-m { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }
.foto-metka strong { font-family: var(--f-display); font-size: 20px; font-weight: 700; }
.foto-metka .metka-n { font-size: 13px; font-weight: 600; color: var(--dim); }
.foto-kartka {
  --wst: var(--accent);
  position: absolute; right: 12px; top: -16px; width: 78px; display: grid; justify-items: center; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-up); transform: rotate(5deg);
}
.foto-kartka .kartka-mies { font-size: 10.5px; padding: 7px 2px 6px; text-align: center; }
.foto-kartka b { padding: 5px 0 8px; font-family: var(--f-display); font-size: 34px; font-weight: 700; line-height: 1; color: var(--head); }
@media (min-width: 900px) {
  .foto-metka { left: -18px; bottom: -18px; }
  .foto-kartka { right: -12px; top: -20px; }
}

/* skróty jako bileciki z dziurką */
.skroty a { position: relative; padding-left: 30px; border-radius: 7px 14px 14px 7px; border-width: 1px; box-shadow: 0 2px 0 rgba(42, 33, 28, .07); }
.skroty a::before {
  content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%;
  background: var(--bg-2); box-shadow: inset 0 1px 2px rgba(42, 33, 28, .4);
}

/* sekcje pod listą leżą na pasach jak na stronie głównej */
.lista-strona { padding-bottom: 46px; }
.pas .unikaj, .pas .pytania, .pas.zobacz, .pas.podobne { margin-top: 0; }
.pas .unikaj h2, .pas .pytania h2 { margin-bottom: 16px; }
.zobacz .kafel-odbiorca { height: auto; min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.outro .btn { margin-top: 4px; }

/* balon bieżącego wieku */
.wieki a[aria-current="page"] {
  transform: translateY(-5px) scale(1.14);
  box-shadow: inset -5px -6px 0 rgba(0, 0, 0, .12), inset 4px 5px 0 rgba(255, 255, 255, .16), 0 0 0 3px var(--bg), 0 0 0 6px var(--head);
}

/* strona pomysłu: treść i boczna metka „gdzie kupić” */
.pomysl-siatka { display: grid; gap: 34px; padding-top: 30px; padding-bottom: 56px; }
.pomysl > section:first-child { margin-top: 0; }
.pomysl-bok { display: grid; gap: 22px; align-content: start; }
.bok-metka {
  position: relative; padding: 22px 20px 20px; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px 26px 26px 26px; box-shadow: var(--shadow-up);
}
.bok-cena { margin: 0 0 14px; font-family: var(--f-display); font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--head); }
.bok-metka .sklepy-przyciski { display: grid; gap: 8px; }
.bok-metka .sklepy-przyciski .btn { min-height: 50px; font-size: 16px; }
.bok-metka .info-afil { margin: 14px 0 0; padding: 0; background: none; border: 0; font-size: 13px; }
.bok-blok h2 { font-size: 19px; margin-bottom: 10px; }
.bok-blok .skroty { margin-top: 0; }
@media (min-width: 1000px) {
  .pomysl-siatka { grid-template-columns: minmax(0, 1fr) 380px; gap: 60px; align-items: start; }
  .pomysl-bok { position: sticky; top: 88px; }
}

/* spis wszystkich list */
.hub-sekcja .hub-lista { margin-top: 4px; }
.hub-sekcja .kartki + .hub-lista, .hub-sekcja .balony + .hub-lista { margin-top: 28px; }
.hub-sekcja .grupa + .grupa, .hub-sekcja .grupa-pasji + .grupa-pasji { margin-top: 28px; }
.hub-sekcja .grupa-pasji h3 { margin-bottom: 4px; }

/* nagłówek pomysłu: szybkie przyciski z informacją afiliacyjną tylko na wąskim ekranie */
.naglowek-sklepy .info-afil { margin: 10px 0 0; padding: 0; max-width: 520px; background: none; border: 0; font-size: 13px; }
@media (min-width: 1000px) { .naglowek-sklepy { display: none; } }

/* hub: nazwa okazji bez linku, gdy link ma już kartka kalendarza */
.hub-nazwa { font-weight: 700; color: var(--head); }
