/* Wczasujemy.pl — wheel-first picker
   Brand palette from cartoon logo: deep blue, sun yellow, teal waves */

:root {
  --blue-deep: #142a48;
  --blue-mid: #1e4a7a;
  --blue-bright: #2f6db5;
  --yellow: #ffc700;
  --yellow-hot: #ffb000;
  --yellow-deep: #e89400;
  --teal: #00b5cc;
  --teal-deep: #008fa3;
  --coral: #ff6b4a;
  --foam: #eef9fd;
  --ink: #102038;
  --muted: #3d5570;
  --white: #ffffff;
  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --max: 1240px;
  --wheel-size: min(72vw, 360px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(165deg, #7ec8e8 0%, #b8e4f5 28%, #e8f6fb 55%, #fff3c9 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: var(--blue-mid);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal-deep);
}

.visually-hidden {
  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: -9999px;
  top: 0;
  background: var(--yellow);
  color: var(--blue-deep);
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Atmosphere blobs */
.sky-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.blob-sun {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: -8%;
  right: -6%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.55) 0%, rgba(255, 199, 0, 0.18) 45%, transparent 70%);
  animation: sun-pulse 6s ease-in-out infinite;
}

.blob-wave {
  width: 70vw;
  height: 40vh;
  bottom: -12%;
  left: -10%;
  background: radial-gradient(ellipse, rgba(0, 181, 204, 0.28) 0%, transparent 65%);
  animation: wave-drift 10s ease-in-out infinite;
}

.blob-sky {
  width: 40vw;
  height: 40vw;
  top: 35%;
  left: 5%;
  background: radial-gradient(circle, rgba(47, 109, 181, 0.12) 0%, transparent 60%);
}

.site-header,
.hero,
.site-footer,
.page {
  position: relative;
  z-index: 1;
}

/* —— Header —— */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  /* Extra breathing room so full wordmark (j descender + waves) never clips */
  padding: 1.15rem 1.25rem 1.05rem;
  overflow: visible;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  overflow: visible;
  text-decoration: none;
  line-height: 0;
}

.brand-logo-sm {
  /* Wordmark (no character): wide mark for header/nav — full W/J + waves */
  width: clamp(168px, 26vw, 240px);
  height: auto;
  max-height: none;
  display: block;
  object-fit: contain;
  object-position: left center;
  overflow: visible;
  filter: drop-shadow(0 3px 8px rgba(20, 42, 72, 0.12));
}

.brand-logo-footer {
  /* Footer: full logo lockup (mascot + wordmark) */
  width: min(100%, 220px);
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 0.98;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a {
  color: var(--blue-deep);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.55);
  color: var(--teal-deep);
}

/* —— Hero: stage (brand|wheel|filters) · Inspiruj pod spodem —— */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  /* Top pad clears header + floaty(-10px) so hero .pl never peeks under nav */
  padding: 0.85rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  min-height: calc(100svh - 5.25rem);
  overflow: visible;
}

/* Ciasny rząd: równy gap lewy/prawy względem koła — bez rozpychania przez Inspiruj */
.hero-stage {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  max-width: 100%;
  margin-inline: auto;
  align-self: center;
}

.hero-brand {
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  margin: 0;
  margin-inline: 0;
  padding-right: 0;
  animation: rise-in 0.75s ease-out both;
}

/* One white capsule: logo + lead — keep smaller than the wheel */
.hero-brand-capsule {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  width: 16.5rem;
  max-width: 100%;
  margin-left: 0;
  padding: 0.55rem 0.65rem 0.6rem;
  background: #fff;
  border-radius: 1.35rem;
  box-shadow: 0 12px 28px rgba(20, 42, 72, 0.12);
  animation: floaty 4.8s ease-in-out infinite;
}

.brand-logo-hero {
  /* Transparent “Wylosuj wczasy” mark on capsule */
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0.95rem;
  display: block;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  line-height: 1.05;
  color: var(--blue-deep);
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
}

.hero-lead {
  font-size: clamp(0.92rem, 1.6vw, 1rem);
  font-weight: 500;
  color: var(--muted);
  margin: 0 auto;
  max-width: 22ch;
  padding: 0.05rem 0.35rem 0.1rem;
  /* Center under the “Wylosuj wczasy” wordmark in the logo */
  text-align: center;
  line-height: 1.3;
}

/* —— Hero: Inspiruj się preview (pod kołem, pełna szerokość) —— */
.hero-inspiruj {
  width: 100%;
  max-width: none;
  margin-top: 0.15rem;
  animation: rise-in 0.75s ease-out 0.22s both;
}

.hero-inspiruj-panel {
  /* Bez białej obwoluty — mniej ciężkości, koło zostaje focusem */
  padding: 0.15rem 0 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.hero-inspiruj-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.15;
  color: var(--blue-deep);
  margin: 0 0 0.15rem;
  letter-spacing: -0.01em;
}

.hero-inspiruj-lead {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.hero-inspiruj-list {
  list-style: none;
  margin: 0;
  padding: 0;
  /* Desktop bottom strip: 3 cards in a row when space allows */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.hero-inspiruj-list a {
  display: block;
  padding: 0.55rem 0.6rem;
  border-radius: 0.75rem;
  background: rgba(238, 249, 253, 0.85);
  text-decoration: none;
  color: var(--blue-deep);
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero-inspiruj-list a:hover {
  background: rgba(0, 181, 204, 0.14);
  transform: translateY(-1px);
}

.hero-inspiruj-link-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.25;
}

.hero-inspiruj-link-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: lowercase;
}

.hero-inspiruj-more {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal-deep);
  text-decoration: none;
}

.hero-inspiruj-more:hover {
  text-decoration: underline;
}

/* —— Wheel stage (primary, center) —— */
.wheel-stage {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin: 0;
  width: var(--wheel-size);
  height: calc(var(--wheel-size) + 28px);
  animation: rise-in 0.75s ease-out 0.1s both;
}

.wheel-glow {
  position: absolute;
  inset: 8% 4% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 199, 0, 0.45) 0%, rgba(0, 181, 204, 0.2) 45%, transparent 70%);
  filter: blur(8px);
  animation: glow-breathe 3.5s ease-in-out infinite;
  /* dekoracja — nie przechwytuj klików w hub „Kręć” */
  pointer-events: none;
}

.wheel-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 5;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 28px solid var(--coral);
  transform: translateX(-50%);
  filter: drop-shadow(0 3px 4px rgba(20, 42, 72, 0.35));
  pointer-events: none;
}

.wheel-pointer::after {
  content: "";
  position: absolute;
  top: -28px;
  left: -6px;
  width: 12px;
  height: 12px;
  background: var(--yellow);
  border: 2px solid var(--blue-deep);
  border-radius: 50%;
}

.wheel-wrap {
  position: relative;
  width: var(--wheel-size);
  height: var(--wheel-size);
  margin-top: 18px;
}

.spin-wheel {
  --spin-ms: 3200ms;
  --spin-easing: cubic-bezier(0.18, 0.55, 0.12, 1);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  /* Transform target = HTML div (desktop-safe). SVG inside does not get CSS rotate. */
  transform-origin: 50% 50%;
  transition: none;
  will-change: transform;
  pointer-events: none;
}

.spin-wheel-svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: drop-shadow(0 16px 32px rgba(20, 42, 72, 0.28));
  pointer-events: none;
}

/* Class kept for status — motion is rAF-driven in JS (desktop-safe) */
.spin-wheel.is-spinning {
  will-change: transform;
}

/* Win flash after spin stops — pointer + glow pulse (modal still closed) */
.wheel-stage.is-win .wheel-pointer {
  animation: pointer-win 0.65s ease-out both;
}

.wheel-stage.is-win .wheel-glow {
  animation: glow-win 0.65s ease-out both;
}

.wheel-stage.is-win .wheel-wrap {
  animation: wheel-win-pulse 0.65s ease-out both;
}

@keyframes pointer-win {
  0% {
    transform: translateX(-50%) scale(1);
    filter: drop-shadow(0 3px 4px rgba(20, 42, 72, 0.35));
  }
  35% {
    transform: translateX(-50%) scale(1.28) translateY(2px);
    filter: drop-shadow(0 0 14px rgba(255, 199, 0, 0.95));
  }
  70% {
    transform: translateX(-50%) scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 107, 74, 0.75));
  }
  100% {
    transform: translateX(-50%) scale(1);
    filter: drop-shadow(0 3px 4px rgba(20, 42, 72, 0.35));
  }
}

@keyframes glow-win {
  0% {
    opacity: 1;
    filter: blur(8px);
  }
  40% {
    opacity: 1;
    filter: blur(2px);
    background: radial-gradient(
      circle,
      rgba(255, 199, 0, 0.85) 0%,
      rgba(255, 107, 74, 0.35) 45%,
      transparent 70%
    );
  }
  100% {
    opacity: 1;
    filter: blur(8px);
  }
}

@keyframes wheel-win-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.045);
  }
  70% {
    transform: scale(1.02);
  }
}

.wheel-hub {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 22%;
  aspect-ratio: 1;
  min-width: 72px;
  border: 4px solid var(--blue-deep);
  border-radius: 50%;
  background: linear-gradient(160deg, var(--yellow) 0%, var(--yellow-hot) 55%, var(--yellow-deep) 100%);
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  cursor: pointer;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.55),
    0 8px 18px rgba(20, 42, 72, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  padding: 0;
}

.wheel-hub:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow:
    0 0 0 7px rgba(255, 255, 255, 0.65),
    0 10px 22px rgba(20, 42, 72, 0.32);
}

.wheel-hub:active {
  transform: translate(-50%, -50%) scale(0.96);
}

.wheel-hub:disabled {
  cursor: wait;
  opacity: 0.85;
}

.wheel-hub.is-spinning {
  animation: hub-pulse 0.5s ease-in-out infinite;
}

.wheel-hub-label {
  display: block;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* —— Filtry: prawa kolumna (desktop), panel pionowy —— */
.filters-bar {
  flex: 0 0 auto;
  width: 17.5rem;
  max-width: 100%;
  margin: 0;
  margin-inline: 0;
  padding-left: 0;
  text-align: left;
  animation: rise-in 0.7s ease-out 0.16s both;
}

.filters-panel {
  padding: 0.85rem 0.95rem 0.9rem;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 1.25rem;
  box-shadow: 0 10px 24px rgba(20, 42, 72, 0.1);
}

.filters-label {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-mid);
  opacity: 0.85;
}

/* Shared filter control chrome (hero + katalog Odkrywaj) */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.55rem;
}

.filters label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-mid);
  background: rgba(255, 255, 255, 0.35);
  border: 1.5px solid rgba(20, 42, 72, 0.1);
  border-radius: 999px;
  padding: 0.25rem 0.35rem 0.25rem 0.75rem;
}

.filters label span {
  white-space: nowrap;
}

.filters select {
  appearance: none;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath fill='%23142a48' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") right 0.65rem center / 10px no-repeat;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.8rem 0.45rem 0.7rem;
  cursor: pointer;
  min-width: 9.5rem;
}

.filters select:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

/* Hero right column: stack filters vertically in the panel */
.filters-bar .filters {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.filters-bar .filters label {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: rgba(238, 249, 253, 0.85);
  border-color: rgba(20, 42, 72, 0.08);
  border-radius: 0.85rem;
  padding: 0.35rem 0.4rem 0.35rem 0.7rem;
}

.filters-bar .filters label span {
  flex: 0 0 auto;
}

.filters-bar .filters select {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
}

.filters-bar .status {
  margin: 0.55rem 0 0;
  text-align: left;
}

.status {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.3em;
}

.status.error {
  color: #b33a2b;
  font-weight: 700;
}

/* —— Buttons —— */
.btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.55);
  color: var(--blue-deep);
  border: 2px solid rgba(20, 42, 72, 0.18);
  font-size: 1rem;
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.btn-affiliate {
  width: 100%;
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: var(--white);
  font-size: 1.3rem;
  box-shadow: 0 8px 0 #006f80, 0 14px 28px rgba(0, 181, 204, 0.35);
}

.btn-affiliate:hover {
  transform: translateY(-2px);
  color: var(--white);
  box-shadow: 0 10px 0 #006f80, 0 18px 32px rgba(0, 181, 204, 0.45);
}

/* —— Offer result modal (overlay; wheel stays dimmed underneath) —— */
.offer-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overscroll-behavior: contain;
}

.offer-modal[hidden] {
  display: none;
}

.offer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 32, 56, 0.58);
  backdrop-filter: blur(2px);
  animation: fade-in 0.25s ease both;
}

.offer-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  overscroll-behavior: contain;
  /* Top padding leaves room for the absolute X on offer view */
  padding: 2.7rem 0.75rem 0.75rem;
  border-radius: 26px;
  background: rgba(238, 249, 253, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 28px 64px rgba(16, 32, 56, 0.35);
  animation: card-reveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.offer-modal-close {
  position: absolute;
  top: 0.4rem;
  right: 0.45rem;
  z-index: 3;
  width: 2.55rem;
  height: 2.55rem;
  border: none;
  border-radius: 999px;
  background: var(--blue-deep);
  color: var(--white);
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(20, 42, 72, 0.28);
  transition: background 0.2s ease, transform 0.15s ease;
}

/* display:inline-flex powyżej inaczej przebija natywny [hidden] */
.offer-modal-close[hidden] {
  display: none;
}

.offer-modal-close:hover {
  background: var(--teal-deep);
  transform: scale(1.05);
}

.offer-modal-close:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

body.modal-open {
  overflow: hidden;
}

.offer-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(20, 42, 72, 0.12);
  border: 2px solid rgba(20, 42, 72, 0.06);
}

.offer-card:focus {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.offer-card:focus:not(:focus-visible) {
  outline: none;
}

.offer-media {
  position: relative;
  min-height: 300px;
  background: linear-gradient(135deg, #b8e4f5, #fff3c9);
  overflow: hidden;
}

.offer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  animation: image-zoom 0.9s ease-out both;
}

.offer-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--yellow);
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(20, 42, 72, 0.15);
}

.offer-body {
  padding: 1.55rem 1.7rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.offer-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-deep);
}

.offer-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  margin: 0 0 0.3rem;
  color: var(--blue-deep);
  line-height: 1.15;
}

.offer-place {
  margin: 0 0 0.85rem;
  font-weight: 700;
  color: var(--blue-mid);
}

.offer-blurb {
  margin: 0 0 1rem;
  color: var(--muted);
  flex: 1;
}

.offer-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--blue-deep);
  margin: 0 0 1.15rem;
}

.disclosure {
  margin: 0.95rem 0 0;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  background: rgba(238, 249, 253, 0.9);
  border-radius: 10px;
  border: 1px solid rgba(0, 181, 204, 0.22);
}

/* Remont w urlop — żartowy wynik ze sklepami budowlanymi */
.offer-media--remont {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 300px;
  padding: 1.4rem 1.35rem 1.55rem;
  background:
    linear-gradient(to top, rgba(10, 14, 22, 0.94) 0%, rgba(10, 14, 22, 0.72) 28%, rgba(10, 14, 22, 0) 58%),
    url("/assets/img/remont-tools.webp") center top / cover no-repeat,
    #1a1a1a;
}

.remont-media-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.offer-badge--remont {
  position: static;
  margin-bottom: 0.85rem;
  background: #111;
  color: #ffc700;
  border: 1px solid rgba(255, 199, 0, 0.45);
  box-shadow: none;
}

.remont-shops {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0 0 0.25rem;
}

.remont-shop-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  line-height: 1.25;
  white-space: normal;
}

.remont-shop-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

.remont-shop-blurb {
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.9;
}

.offer-card--remont .offer-blurb {
  margin-bottom: 1.1rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0 0.15rem;
  align-items: center;
  justify-content: center;
}

/* Stałe pole reklamy pod kołem (nad Inspiruj się). Wysokość zarezerwowana — bez skoku układu. */
.home-ad {
  width: 100%;
  max-width: 728px;
  margin: 0.1rem auto 0.15rem;
  box-sizing: border-box;
}

.home-ad-label {
  margin: 0 0 0.28rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-ad-frame {
  width: 100%;
  min-height: 100px;
  box-sizing: border-box;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(20, 42, 72, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-ad-frame .adsbygoogle {
  display: block;
  width: 100%;
  min-height: 100px;
}

.content-ad {
  margin: 2rem auto 1.5rem;
}

.offer-card[hidden],
.result-actions[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .home-ad {
    max-width: 100%;
  }

  .home-ad {
    max-width: 340px;
  }

  .home-ad-label {
    margin-bottom: 0.15rem;
    font-size: 0.6rem;
  }

  .home-ad-frame,
  .home-ad-frame .adsbygoogle {
    min-height: 50px;
  }
}

/* —— Content pages (Odkrywaj / Inspiruj się) —— */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

/* Odkrywaj — katalog ofert (szerszy niż blog) */
.page-catalog {
  max-width: min(1080px, 100%);
}

/* Inspiruj się — siatka wpisów ze zdjęciami */
.page-inspiruj {
  max-width: min(1080px, 100%);
}

.inspiruj-toolbar {
  margin: 0 0 1.35rem;
  animation: rise-in 0.55s ease both;
}

.inspiruj-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
}

.inspiruj-chip {
  appearance: none;
  border: 2px solid rgba(20, 42, 72, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--blue-deep);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.55rem 1rem;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(20, 42, 72, 0.06);
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.inspiruj-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 181, 204, 0.45);
  color: var(--teal-deep);
}

.inspiruj-chip:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.inspiruj-chip.is-active {
  background: linear-gradient(165deg, var(--teal) 0%, #0097ad 100%);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 6px 0 #006f80, 0 10px 18px rgba(0, 181, 204, 0.28);
}

.inspiruj-chip.is-active:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.inspiruj-toolbar .status {
  margin: 0;
  min-height: 1.4em;
}

.inspiruj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
  margin: 0 0 1.5rem;
  min-height: 4rem;
}

.inspiruj-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(20, 42, 72, 0.06);
  box-shadow: 0 10px 28px rgba(20, 42, 72, 0.1);
  animation: fade-in 0.45s ease both;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.inspiruj-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(20, 42, 72, 0.14);
}

.inspiruj-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.inspiruj-card-link:hover {
  color: inherit;
}

.inspiruj-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #b8e4f5, #fff3c9);
  overflow: hidden;
}

.inspiruj-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.inspiruj-card:hover .inspiruj-card-media img {
  transform: scale(1.04);
}

.inspiruj-card-badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(20, 42, 72, 0.08);
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(20, 42, 72, 0.12);
}

.inspiruj-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
}

.inspiruj-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1.25;
}

.inspiruj-card-link:hover .inspiruj-card-title {
  color: var(--teal-deep);
}

.inspiruj-card-meta {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.inspiruj-card-blurb {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inspiruj-card-cta {
  margin-top: 0.55rem;
  font-weight: 700;
  color: var(--teal-deep);
  font-size: 0.95rem;
}

.inspiruj-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  border: 2px dashed rgba(20, 42, 72, 0.12);
}

.post-category {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: rgba(0, 181, 204, 0.12);
  border: 1px solid rgba(0, 181, 204, 0.28);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
}

.post-category:hover {
  color: var(--blue-deep);
  background: rgba(0, 181, 204, 0.2);
}

.page-subhead {
  font-family: var(--font-display);
  color: var(--blue-deep);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 2.5rem 0 0.35rem;
}

.page-lead-tight {
  margin-bottom: 1rem;
}

.catalog-toolbar {
  margin: 0 0 1.5rem;
  animation: rise-in 0.55s ease both;
}

.catalog-search {
  display: block;
  margin: 0 0 0.85rem;
}

.catalog-search input[type="search"] {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(20, 42, 72, 0.12);
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 8px 22px rgba(20, 42, 72, 0.06);
}

.catalog-search input[type="search"]::placeholder {
  color: var(--muted);
  opacity: 0.85;
}

.catalog-search input[type="search"]:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-color: rgba(0, 181, 204, 0.45);
}

.catalog-filters {
  justify-content: flex-start;
}

.catalog-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 0.75rem;
  min-height: 2.4rem;
}

.catalog-toolbar-meta .status {
  margin: 0;
  flex: 1 1 auto;
}

.catalog-reset {
  font-size: 0.9rem;
  padding: 0.45rem 0.95rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
  margin: 0 0 1.5rem;
  min-height: 4rem;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(20, 42, 72, 0.06);
  box-shadow: 0 10px 28px rgba(20, 42, 72, 0.1);
  animation: fade-in 0.45s ease both;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.catalog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(20, 42, 72, 0.14);
}

.catalog-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #b8e4f5, #fff3c9);
  overflow: hidden;
}

.catalog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
}

.catalog-card-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-deep);
}

.catalog-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1.25;
}

.catalog-card-place {
  margin: 0;
  font-weight: 600;
  color: var(--blue-mid);
  font-size: 0.95rem;
}

.catalog-card-blurb {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-card-price {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-deep);
}

.catalog-card-cta {
  margin-top: 0.65rem;
  width: 100%;
  font-size: 1.05rem;
  padding: 0.7rem 1rem;
  box-shadow: 0 5px 0 #006f80, 0 10px 18px rgba(0, 181, 204, 0.28);
}

.catalog-card-cta:hover {
  box-shadow: 0 7px 0 #006f80, 0 14px 22px rgba(0, 181, 204, 0.38);
}

.catalog-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  border: 2px dashed rgba(20, 42, 72, 0.12);
}

/* —— Paginacja (Odkrywaj / Inspiruj się) —— */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.65rem;
  margin: 0 0 1.75rem;
  padding: 0.35rem 0 0.15rem;
  scroll-margin-top: 5.5rem;
}

.pagination[hidden] {
  display: none !important;
}

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-btn {
  appearance: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(20, 42, 72, 0.12);
  border-radius: 14px;
  padding: 0.5rem 0.9rem;
  min-width: 2.6rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(20, 42, 72, 0.06);
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.pagination-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(0, 181, 204, 0.45);
  color: var(--teal-deep);
}

.pagination-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.pagination-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.pagination-btn.is-active {
  background: linear-gradient(165deg, var(--teal) 0%, #0097ad 100%);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 6px 0 #006f80, 0 10px 18px rgba(0, 181, 204, 0.28);
}

.pagination-btn.is-active:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.pagination-prev,
.pagination-next {
  padding-inline: 1rem;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  color: var(--muted);
  font-weight: 700;
  user-select: none;
}

.catalog-grid,
.inspiruj-grid {
  scroll-margin-top: 5.5rem;
}

.page:has(.about-crew) {
  max-width: 920px;
}

/* O nas: body under crew uses full page width (not blog 58ch column) */
.page:has(.about-crew) .page-lead,
.page:has(.about-crew) .post-body p,
.page:has(.about-crew) .post-body li,
.page:has(.about-crew) .post-body ol,
.page:has(.about-crew) .post-body ul {
  max-width: none;
}

.page h1 {
  font-family: var(--font-display);
  color: var(--blue-deep);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
}

.page-lead {
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

/* Policz — półka na kalkulatory i narzędzia */
.tool-shelf-empty {
  margin: 0;
  padding: 1.35rem 1.4rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 2px dashed rgba(0, 181, 204, 0.45);
  color: var(--muted);
  font-size: 1.05rem;
}

/* —— O nas: Łojciec & Synuś —— */
.about-crew {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.35rem 2rem;
  align-items: center;
  margin: 0 0 2.75rem;
  animation: fade-in 0.55s ease both;
}

.about-crew-figure {
  margin: 0;
}

.about-crew-photo {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
  border-radius: 22px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 14px 36px rgba(20, 42, 72, 0.16),
    0 0 0 1px rgba(0, 181, 204, 0.12);
  animation: about-photo-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.about-crew-caption {
  margin: 0 0 0.85rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2rem);
  font-weight: 800;
  color: var(--blue-deep);
  letter-spacing: 0.01em;
  line-height: 1.15;
  animation: fade-in 0.5s ease 0.15s both;
}

.about-crew-copy {
  color: var(--ink);
  font-size: 1.05rem;
  animation: fade-in 0.55s ease 0.22s both;
}

.about-crew-copy p {
  margin: 0 0 1.05rem;
  max-width: 58ch;
}

.about-crew-thanks {
  color: var(--muted);
}

.about-crew-actions {
  margin: 1.25rem 0 0;
}

.about-crew-actions .btn {
  display: inline-flex;
}

@keyframes about-photo-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 820px) {
  .about-crew {
    grid-template-columns: minmax(240px, 0.92fr) minmax(280px, 1.08fr);
    gap: 1.75rem 2.5rem;
  }

  .about-crew-photo {
    max-width: none;
    margin: 0;
  }

  .about-crew-copy {
    padding-top: 0.15rem;
  }
}

@media (max-width: 560px) {
  .about-crew-photo {
    max-width: min(100%, 340px);
    border-radius: 18px;
  }

  .about-crew-caption {
    text-align: center;
  }

  .about-crew-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  padding: 1.1rem 0;
  border-bottom: 2px solid rgba(0, 181, 204, 0.22);
}

.post-list a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-deep);
  text-decoration: none;
}

.post-list a:hover {
  color: var(--teal-deep);
}

.creator-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.creator-list li {
  padding: 1.25rem 0;
  border-bottom: 2px solid rgba(0, 181, 204, 0.22);
}

.creator-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin: 0 0 0.35rem;
}

.creator-blurb {
  margin: 0 0 0.5rem;
  color: var(--muted);
  max-width: 58ch;
}

.creator-links {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.creator-links a {
  text-decoration: none;
}

.creator-links a:hover {
  color: var(--teal-deep);
  text-decoration: underline;
}

.post-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.post-meta-top {
  margin-bottom: 0.75rem;
}

.post-meta-top a {
  font-weight: 700;
  text-decoration: none;
}

.post-body {
  color: var(--ink);
  font-size: 1.05rem;
}

.post-body p,
.post-body li {
  margin: 0 0 1.1rem;
  max-width: 58ch;
}

.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin: 1.75rem 0 0.65rem;
}

.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--blue-mid);
  margin: 1.35rem 0 0.5rem;
}

.post-body ol,
.post-body ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  max-width: 58ch;
}

.post-body li {
  margin-bottom: 0.65rem;
}

.post-body .btn {
  margin-top: 0.5rem;
  display: inline-flex;
}

.post-figure {
  margin: 1.35rem 0 1.6rem;
  max-width: min(100%, 40rem);
}

.post-figure img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 28px rgba(20, 42, 72, 0.12);
}

.post-figure-portrait {
  max-width: min(100%, 22rem);
}

.post-figure figcaption {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 58ch;
}

/* Official Instagram / YouTube embeds in Inspiruj posts */
.post-embed {
  margin: 1.5rem 0 1.75rem;
  max-width: min(100%, 40rem);
}

.post-embed iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.post-embed--instagram iframe {
  min-height: 680px;
  max-height: 900px;
}

.post-embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 28px rgba(20, 42, 72, 0.12);
}

.post-embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.post-embed figcaption {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 58ch;
}

.calendar-hint {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.month-calendar {
  margin: 0 0 1.75rem;
  max-width: min(100%, 40rem);
}

.month-calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

@media (min-width: 640px) {
  .month-calendar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.month-btn {
  appearance: none;
  border: 2px solid rgba(30, 74, 122, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue-deep);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 0.4rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.month-btn:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.month-btn[aria-selected="true"] {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  color: var(--white);
}

.month-calendar-panel {
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(30, 74, 122, 0.12);
  border-radius: 12px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 58ch;
}

/* —— Cross-promo: Tysfera.pl + Remigius.pl (przed stopką) —— */
.cross-promo {
  --tysfera: #008fcf;
  --tysfera-ink: #1e3a54;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 1.25rem 0.25rem;
  position: relative;
  z-index: 1;
}

.cross-promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .cross-promo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.cross-promo-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.05rem 1.15rem 1.15rem;
  border-radius: 14px;
  border: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cross-promo-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.cross-promo-card:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.cross-promo-card--tysfera {
  background: linear-gradient(155deg, rgba(0, 143, 207, 0.12) 0%, rgba(30, 58, 84, 0.08) 100%);
  border-color: rgba(0, 143, 207, 0.35);
  box-shadow: 0 8px 22px rgba(30, 58, 84, 0.08);
}

.cross-promo-card--tysfera:hover {
  border-color: var(--tysfera);
  box-shadow: 0 12px 28px rgba(0, 143, 207, 0.18);
}

.cross-promo-card--remigius {
  background: linear-gradient(155deg, rgba(30, 74, 122, 0.1) 0%, rgba(20, 42, 72, 0.06) 100%);
  border-color: rgba(30, 74, 122, 0.28);
  box-shadow: 0 8px 22px rgba(20, 42, 72, 0.08);
}

.cross-promo-card--remigius:hover {
  border-color: var(--blue-mid);
  box-shadow: 0 12px 28px rgba(30, 74, 122, 0.16);
}

.cross-promo-brand {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cross-promo-card--tysfera .cross-promo-brand {
  color: var(--tysfera);
}

.cross-promo-card--remigius .cross-promo-brand {
  color: var(--blue-mid);
}

.cross-promo-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue-deep);
}

.cross-promo-card--tysfera .cross-promo-title {
  color: var(--tysfera-ink);
}

.cross-promo-text {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}

.cross-promo-cta {
  margin: 0.25rem 0 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cross-promo-card--tysfera .cross-promo-cta {
  color: var(--tysfera-ink);
}

.cross-promo-card--remigius .cross-promo-cta {
  color: var(--blue-deep);
}

.page .cross-promo {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-top: 1.75rem;
  margin-bottom: 0.25rem;
}

/* —— Footer —— */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
  justify-content: center;
  text-align: center;
  border-top: 2px solid rgba(20, 42, 72, 0.08);
}

.site-footer p {
  margin: 0;
  max-width: min(100%, 36rem);
}

.site-footer a {
  color: var(--blue-mid);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--teal-deep);
}

.site-footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.site-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.55rem;
  color: var(--blue-mid);
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid rgba(30, 74, 122, 0.18);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.site-footer-social-link:hover {
  color: var(--teal-deep);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 143, 163, 0.35);
  transform: translateY(-1px);
}

.site-footer-social-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.site-footer-nav {
  line-height: 1.9;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.site-footer-nav a {
  white-space: nowrap;
}

@media (max-width: 520px) {
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .site-footer-social {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .site-footer-nav {
    max-width: 22rem;
  }
}

/* —— Back to top —— */
.back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.7rem 1rem;
  border: 2px solid rgba(20, 42, 72, 0.12);
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-hot) 100%);
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(232, 148, 0, 0.55), 0 12px 24px rgba(20, 42, 72, 0.18);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.15s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  box-shadow: 0 8px 0 rgba(232, 148, 0, 0.55), 0 16px 28px rgba(20, 42, 72, 0.22);
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: translateY(1px);
  box-shadow: 0 3px 0 rgba(232, 148, 0, 0.55), 0 8px 16px rgba(20, 42, 72, 0.16);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.back-to-top-icon {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.back-to-top[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .back-to-top {
    right: 0.75rem;
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    min-height: 44px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* Stopka: miejsce, żeby przycisk „W górę” nie zasłaniał treści na dole strony */
.site-footer {
  padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px));
}

/* —— Animations —— */
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(-0.5deg);
  }
  50% {
    transform: translateY(-6px) rotate(0.5deg);
  }
}

@keyframes sun-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.06);
  }
}

@keyframes wave-drift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4%);
  }
}

@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-reveal {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes image-zoom {
  from {
    transform: scale(1.08);
    opacity: 0.6;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hub-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 6px rgba(255, 255, 255, 0.55),
      0 8px 18px rgba(20, 42, 72, 0.28);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(255, 199, 0, 0.45),
      0 8px 22px rgba(20, 42, 72, 0.35);
  }
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero {
    /* Keep brand + wheel in first viewport on phones */
    min-height: calc(100svh - 4.25rem);
    gap: 0.45rem;
    padding: 0 1rem 1rem;
    text-align: center;
    justify-content: flex-start;
  }

  .hero-stage {
    display: contents;
  }

  /* Telefon: logo, koło, lekkie filtry, reklama, Inspiruj się. Desktop zostaje w rzędzie. */

  .hero-brand {
    order: 1;
  }

  .wheel-stage {
    order: 2;
  }

  .filters-bar {
    order: 3;
  }

  .home-ad {
    order: 4;
  }

  .hero-inspiruj {
    order: 5;
  }

  .hero-brand {
    padding-top: 0.15rem;
    padding-right: 0;
    display: flex;
    justify-content: center;
  }

  .hero-brand-capsule {
    width: min(72vw, 14.5rem);
    padding: 0.5rem 0.55rem 0.55rem;
    border-radius: 1.2rem;
  }

  .brand-logo-hero {
    width: 100%;
    border-radius: 0.85rem;
  }

  .hero-lead {
    font-size: 0.9rem;
    text-align: center;
  }

  .wheel-stage {
    width: var(--wheel-size);
  }

  .filters-bar {
    justify-self: center;
    width: min(100%, 22rem);
    margin-top: 0;
    text-align: left;
  }

  .hero-inspiruj {
    justify-self: center;
    width: min(100%, 22rem);
    margin-top: 0.35rem;
    text-align: left;
  }

  .hero-inspiruj-list {
    grid-template-columns: 1fr;
  }

  .offer-modal {
    padding: 0.65rem;
    align-items: flex-start;
    padding-top: max(0.65rem, env(safe-area-inset-top));
  }

  .offer-modal-panel {
    max-height: min(94vh, 100%);
    padding: 2.45rem 0.55rem 0.55rem;
    border-radius: 20px;
  }

  .offer-modal-close {
    top: 0.3rem;
    right: 0.35rem;
    width: 2.35rem;
    height: 2.35rem;
  }

  .offer-card {
    grid-template-columns: 1fr;
  }

  .offer-media {
    min-height: 200px;
  }

  .offer-media--remont {
    min-height: 180px;
  }

  .offer-body {
    padding: 1.25rem 1.2rem 1.4rem;
  }

  .nav {
    font-size: 0.82rem;
    gap: 0.15rem;
  }

  .nav a {
    padding: 0.35rem 0.55rem;
  }
}

@media (max-width: 520px) {
  :root {
    --wheel-size: min(72vw, 280px);
  }

  .site-header {
    padding: 0.85rem 0.9rem 0.75rem;
    overflow: visible;
  }

  .nav {
    font-size: 0.72rem;
    max-width: min(100%, 18.5rem);
  }

  .brand-logo-sm {
    width: min(48vw, 180px);
    height: auto;
    object-fit: contain;
  }

  .brand-logo-footer {
    width: min(56vw, 180px);
  }

  .hero-brand-capsule {
    width: min(68vw, 13rem);
    padding: 0.45rem 0.5rem 0.5rem;
    border-radius: 1.1rem;
  }

  .brand-logo-hero {
    border-radius: 0.75rem;
  }

  .hero {
    gap: 0.35rem;
    padding-bottom: 0.75rem;
  }

  .hero-lead {
    font-size: 0.92rem;
  }

  .filters label {
    width: 100%;
    justify-content: space-between;
  }

  .filters select {
    min-width: 0;
    flex: 1;
  }

  .result-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-affiliate {
    font-size: 1.2rem;
    padding: 0.95rem 1.25rem;
  }
}

/* Short phones: prioritize wheel over large brand art */
@media (max-width: 520px) and (max-height: 740px) {
  .hero-brand-capsule {
    width: min(58vw, 11rem);
    padding: 0.35rem 0.4rem 0.4rem;
  }

  .hero-lead {
    display: none;
  }

  :root {
    --wheel-size: min(68vw, 260px);
  }
}

/* Mid widths: keep 3 columns readable */
@media (max-width: 1100px) and (min-width: 901px) {
  :root {
    --wheel-size: min(52vw, 300px);
  }

  .hero-brand-capsule {
    width: min(100%, 13.5rem);
  }

  .filters-bar {
    width: min(100%, 15rem);
  }

  .hero-inspiruj {
    width: min(100%, 36rem);
  }

  .hero-inspiruj-link-title {
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .wheel-stage.is-win .wheel-pointer,
  .wheel-stage.is-win .wheel-glow,
  .wheel-stage.is-win .wheel-wrap {
    animation: none !important;
  }
}

/* —— Policz: kafelki i kalkulatory —— */
.tool-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tool-card { display: block; height: 100%; padding: 1.2rem 1.3rem; border-radius: 22px; background: rgba(255, 255, 255, 0.78); border: 2px solid rgba(20, 42, 72, 0.1); color: var(--ink); text-decoration: none; box-shadow: 0 8px 22px rgba(20, 42, 72, 0.06); transition: transform 0.15s ease, border-color 0.15s ease; }
.tool-card:hover, .tool-card:focus-visible { transform: translateY(-2px); border-color: var(--teal); }
.tool-card h2 { font-family: var(--font-display); color: var(--blue-deep); font-size: 1.3rem; margin: 0 0 0.3rem; }
.tool-card p { margin: 0; color: var(--muted); }
.calc { display: grid; gap: 1.25rem; padding: 1.25rem; border-radius: 22px; background: rgba(255, 255, 255, 0.78); border: 2px solid rgba(20, 42, 72, 0.1); box-shadow: 0 8px 22px rgba(20, 42, 72, 0.06); margin-bottom: 2rem; }
.calc fieldset { border: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .calc fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.calc legend { font-family: var(--font-display); font-weight: 700; color: var(--blue-deep); font-size: 1.15rem; margin-bottom: 0.4rem; }
.calc label { display: grid; gap: 0.3rem; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.calc label.calc-check { display: flex; align-items: center; gap: 0.5rem; }
.calc input[type="number"], .calc input[type="text"], .calc input[type="date"], .calc select { width: 100%; font: inherit; font-weight: 500; color: var(--ink); background: rgba(255, 255, 255, 0.95); border: 2px solid rgba(20, 42, 72, 0.12); border-radius: 14px; padding: 0.65rem 0.85rem; min-height: 44px; }
.calc input:focus, .calc select:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: rgba(0, 181, 204, 0.45); }
.calc input[type="checkbox"] { width: 1.2rem; height: 1.2rem; accent-color: var(--teal-deep); }
.calc-out { padding: 1rem 1.1rem; border-radius: 16px; background: var(--foam); border: 2px solid rgba(0, 181, 204, 0.3); }
.calc-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px dashed rgba(20, 42, 72, 0.12); }
.calc-row:last-child { border-bottom: none; }
.calc-row-total strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--blue-deep); }
.calc-note, .calc-hint { color: var(--muted); font-size: 0.92rem; margin: 0; }
.calc-list { margin: 0.4rem 0 0; padding-left: 1.3rem; display: grid; gap: 0.6rem; }
.calc-list .is-past { opacity: 0.55; }
.calc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.calc-rows li { display: flex; gap: 0.5rem; align-items: center; }
.calc-rows li label { flex: 1 1 0; min-width: 0; }
.calc-del { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 999px; border: 2px solid rgba(20, 42, 72, 0.15); background: #fff; color: var(--coral); font-size: 1.4rem; cursor: pointer; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.calc-faq h2 { font-family: var(--font-display); color: var(--blue-deep); font-size: 1.4rem; }
.calc-faq details { padding: 0.75rem 0; border-bottom: 1px solid rgba(20, 42, 72, 0.12); }
.calc-faq summary { font-weight: 700; cursor: pointer; color: var(--blue-deep); }
.calc-faq details p { margin: 0.5rem 0 0; color: var(--muted); }
.calc-back { margin-top: 2rem; }
@media (max-width: 559px) { #s-expenses li { flex-wrap: wrap; } #s-expenses li label:first-child { flex-basis: 100%; } }

/* —— Baner zgód (cookies) —— */
.cookie-banner {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 9000;
  max-width: 34rem;
  margin: 0 auto;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--blue-deep);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(16, 32, 56, 0.25);
  font-family: var(--font-body);
}
.cookie-banner-inner {
  padding: 1rem 1.1rem;
  max-height: 70vh;
  overflow-y: auto;
}
.cookie-banner-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--blue-deep);
}
.cookie-banner-text {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}
.cookie-banner-text a {
  color: var(--blue-bright);
}
.cookie-banner-settings {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}
.cookie-banner-settings[hidden] {
  display: none;
}
.cookie-toggle {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  cursor: pointer;
}
.cookie-toggle input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  accent-color: var(--teal-deep);
  flex: none;
}
.cookie-banner-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.cookie-btn {
  font: 600 0.95rem/1.2 var(--font-body);
  padding: 0.7rem 0.8rem;
  min-height: 44px;
  border-radius: 999px;
  border: 2px solid var(--blue-deep);
  background: var(--yellow);
  color: var(--blue-deep);
  cursor: pointer;
}
.cookie-btn:hover {
  background: var(--yellow-hot);
}
.cookie-btn:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
.cookie-btn[hidden] {
  display: none;
}
.cookie-btn-link {
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
  grid-column: 1 / -1;
}
.cookie-btn-link:hover {
  background: var(--foam);
}
.cookie-btn[data-action="save"] {
  grid-column: 1 / -1;
}
@media (min-width: 640px) {
  .cookie-banner {
    left: 1.25rem;
    right: auto;
    bottom: 1.25rem;
  }
}

.offer-image-credit {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 2;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.4;
  text-decoration: none;
}

.offer-image-credit:hover,
.offer-image-credit:focus-visible {
  text-decoration: underline;
  color: #fff;
}

/* „Kręć jeszcze raz” — obok X, w prawym górnym rogu okna wyniku */
.offer-modal-panel .result-actions {
  position: absolute;
  top: 0.4rem;
  right: 3.45rem;
  z-index: 3;
  margin: 0;
  padding: 0;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
}

.offer-modal-panel .result-actions .btn {
  height: 2.55rem;
  padding: 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .offer-modal-panel .result-actions {
    top: 0.3rem;
    right: 3.1rem;
    flex-direction: row;
    align-items: center;
  }

  .offer-modal-panel .result-actions .btn {
    height: 2.35rem;
    padding: 0 0.85rem;
    font-size: 0.88rem;
  }
}

.disclosure a {
  color: var(--teal-deep);
  font-weight: 700;
  text-decoration: underline;
}

.site-footer-coffee {
  margin: 0.2rem 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.site-footer-coffee a {
  color: var(--blue-deep);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}

.site-footer-coffee a:hover {
  color: var(--teal-deep);
}

/* Odkrywaj na telefonie: filtry w dwóch kolumnach, nazwa nad polem (krótsza lista) */
@media (max-width: 640px) {
  .catalog-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  .catalog-filters label {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    width: auto;
    min-width: 0;
    padding: 0.35rem 0.4rem 0.4rem;
    border-radius: 14px;
  }

  .catalog-filters label span {
    padding-left: 0.4rem;
    font-size: 0.7rem;
  }

  .catalog-filters select {
    width: 100%;
    min-width: 0;
    flex: none;
    padding: 0.4rem 1.6rem 0.4rem 0.6rem;
    font-size: 0.85rem;
    text-overflow: ellipsis;
  }

  .catalog-toolbar-meta {
    margin-top: 0.5rem;
    min-height: 0;
  }
}
