/* ============================================================
   CHLEBOWNIA ONLINE — Design System
   Cormorant Garamond + Inter | cream / brown / gold
   Mobile-first, breakpoint 768px
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --cream:       #F5EFE0;
  --cream-dark:  #E8DECA;
  --warm-white:  #FDFAF4;
  --brown-dark:  #3D2B1F;
  --brown-mid:   #7A4F3A;
  --brown-light: #C4956A;
  --gold:        #D4A853;
  --charcoal:    #1A1A1A;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;
  --space-2xl: 10rem;

  --max-width: 1200px;
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.7;
  color: var(--brown-dark);
  background-color: var(--cream);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Global Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.15;
  color: var(--brown-dark);
}

h1 {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--brown-mid);
}

/* Italic accent in headlines — handcrafted SVG underline via CSS */
h1 em,
h2 em {
  font-style: italic;
  color: var(--brown-mid);
  position: relative;
  display: inline;
}

h1 em::after,
h2 em::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2,7 C55,1 120,9 185,5 C245,1 282,8 298,6' stroke='%23D4A853' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Grain texture overlay — subtle paper feel */
body::before {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.032;
  pointer-events: none;
  z-index: 9998;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  /* Fluid: marginesy boczne skalują się płynnie (bez skoku 1.5→3rem na 768) */
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 3px;
  padding: 16px 40px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

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

.btn--primary {
  background-color: var(--gold);
  color: var(--brown-dark);
  border-color: var(--gold);
}

.btn--primary:hover {
  background-color: #c89940;
  border-color: #c89940;
  transform: translateY(-2px);
}

.btn--secondary {
  background-color: transparent;
  color: var(--brown-dark);
  border-color: var(--brown-dark);
}

.btn--secondary:hover {
  background-color: var(--brown-dark);
  color: var(--cream);
  transform: translateY(-2px);
}

/* FIX #3C: min tap target 44px — było 32px */
.btn--nav {
  padding: 12px 24px;
  font-size: 0.75rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.btn--large {
  padding: 20px 52px;
  font-size: 0.875rem;
}

.btn--sticky {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px;
}

/* ---- Section Dividers ---- */
.section-divider {
  line-height: 0;
  overflow: hidden;
}

.section-divider svg {
  width: 100%;
  display: block;
}

/* ---- Scroll Reveal ---- */
.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 1.25rem;
  transition: background-color 0.4s ease, box-shadow 0.4s ease,
              padding-block 0.4s ease;
}

/* Whisper scrim — keeps the floating links legible over the hero photo
   WITHOUT a visible bar. Reads as transparent; fades out once the
   cream glass takes over on scroll. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(26, 15, 8, 0.28) 0%,
    rgba(26, 15, 8, 0.10) 45%,
    rgba(26, 15, 8, 0.0) 78%
  );
  opacity: 1;
  transition: opacity 0.4s ease;
}

.site-header.is-scrolled::before {
  opacity: 0;
}

/* Scrolled → solid cream bar.
   Near-opaque on purpose: a translucent bar picked up the colour of whatever
   section scrolled behind it, tinting dark and killing text contrast. */
.site-header.is-scrolled {
  background-color: rgba(245, 239, 224, 0.97);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: 0 1px 0 rgba(61, 43, 31, 0.08),
              0 8px 24px rgba(61, 43, 31, 0.06);
  padding-block: 0.85rem;
}

/* Older browsers without backdrop-filter → fully opaque so text stays legible */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled {
    background-color: var(--cream);
  }
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.9vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--warm-white);
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(26, 15, 8, 0.35);
  flex-shrink: 0;
  transition: color 0.3s ease, text-shadow 0.3s ease, opacity var(--transition-fast);
}

/* Handcrafted flourish — a small gold seed dot after the wordmark,
   like a full stop set by hand. Nods to the grain/organic system. */
.nav__logo::after {
  content: '';
  align-self: center;
  width: 5px;
  height: 5px;
  margin-left: 0.32em;
  border-radius: 50%;
  background-color: var(--gold);
  box-shadow: 0 1px 6px rgba(26, 15, 8, 0.3);
  transition: transform var(--transition-base), box-shadow 0.3s ease;
}

.nav__logo:hover {
  opacity: 0.9;
}

.nav__logo:hover::after {
  transform: scale(1.35);
}

.site-header.is-scrolled .nav__logo {
  color: var(--brown-dark);
  text-shadow: none;
}

.site-header.is-scrolled .nav__logo::after {
  box-shadow: none;
}

/* --- Menu wrapper (links + CTA) --- */
.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
  margin: 0;
}

.nav__link {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--warm-white);
  text-shadow: 0 1px 8px rgba(26, 15, 8, 0.3);
  opacity: 0.9;
  padding-block: 4px;
  transition: color 0.3s ease, opacity var(--transition-fast),
              text-shadow 0.3s ease;
}

/* Handcrafted underline grows from left on hover (not a generic full bar) */
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.nav__link:hover {
  opacity: 1;
}

.nav__link:hover::after {
  transform: scaleX(1);
}

/* Scrolled → dark ink links on the cream bar (full opacity = full contrast) */
.site-header.is-scrolled .nav__link {
  color: var(--brown-dark);
  text-shadow: none;
  opacity: 1;
}

.site-header.is-scrolled .nav__link:hover {
  color: var(--brown-mid);
  opacity: 1;
}

/* --- CTA over the hero photo: warm gold-outlined pill with real presence
   (not a thin white ghost). Fills solid gold on hover and on scroll. --- */
.site-header .nav__actions .btn--nav {
  background-color: rgba(212, 168, 83, 0.16);
  border-color: var(--gold);
  color: var(--warm-white);
  letter-spacing: 0.11em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 14px rgba(26, 15, 8, 0.28),
              inset 0 0 0 1px rgba(212, 168, 83, 0.35);
}

.site-header .nav__actions .btn--nav:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--brown-dark);
  box-shadow: 0 6px 18px rgba(212, 168, 83, 0.4);
  transform: translateY(-2px);
}

.site-header.is-scrolled .nav__actions .btn--nav {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--brown-dark);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header.is-scrolled .nav__actions .btn--nav:hover {
  background-color: #c89940;
  border-color: #c89940;
}

/* --- Hamburger toggle (mobile only) --- */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin: -10px -10px -10px 0; /* 44px tap target, no layout shift */
}

.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--warm-white);
  box-shadow: 0 1px 4px rgba(26, 15, 8, 0.3);
  transition: transform var(--transition-base), opacity var(--transition-fast),
              background-color 0.3s ease;
}

/* Dark bars once on the cream glass */
.site-header.is-scrolled .nav__toggle-bar {
  background-color: var(--brown-dark);
  box-shadow: none;
}

/* --- Mobile: collapse menu into a dropdown --- */
@media (max-width: 767px) {
  .nav__toggle {
    display: inline-flex;
  }

  /* Hamburger → X */
  .site-header.is-menu-open .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-header.is-menu-open .nav__toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .site-header.is-menu-open .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-xs) var(--space-md) var(--space-md);
    background-color: rgba(245, 239, 224, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px rgba(61, 43, 31, 0.14);
    /* hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--transition-base),
                transform var(--transition-base),
                visibility var(--transition-base);
  }

  .site-header.is-menu-open .nav__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  /* Inside the cream dropdown the links must be dark ink again */
  .nav__link {
    padding-block: var(--space-sm);
    font-size: 1.05rem;
    color: var(--brown-dark);
    text-shadow: none;
    opacity: 1;
    border-bottom: 1px solid var(--color-border);
  }

  .nav__link::after {
    display: none;
  }

  .nav__actions {
    margin-top: var(--space-sm);
  }

  .nav__actions .btn {
    display: block;
    width: 100%;
  }

  /* Full solid-gold CTA inside the dropdown (not the glass ghost pill) */
  .site-header .nav__actions .btn--nav {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--brown-dark);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    text-align: center;
  }
}

/* UWAGA: usunięto regułę @media (prefers-color-scheme: dark) { .nav__menu { background: dark } }.
   Nie była ograniczona do mobile (max-width:767px), więc na DESKTOPIE w trybie ciemnym
   systemu malowała ciemny prostokąt za linkami — to był zgłaszany „brzydki ciemny pasek".
   Strona jest celowo jasna (ciepłe tła) niezależnie od motywu OS; nawigacja też. Mobilne
   rozwijane menu ma kremowe tło z reguły w @media (max-width:767px) — czytelne w obu trybach. */

/* ============================================================
   1. HERO
   ============================================================ */

.hero {
  position: relative;
  background-color: var(--cream);
  padding-top: clamp(6rem, 11vw, 9rem);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero__kicker {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brown-mid);
  opacity: 0;
  animation: fadeIn 0.5s var(--ease-out) 0.1s forwards;
}

/* LCP element — never starts hidden */
.hero__headline {
  color: var(--brown-dark);
  max-width: 14ch;
}

.hero__sub {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.75;
  color: var(--brown-dark);
  max-width: 50ch;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.25s forwards;
}

.hero__guarantee {
  font-size: 0.8rem;
  color: var(--brown-mid);
  opacity: 0;
  animation: fadeIn 0.6s var(--ease-out) 0.5s forwards;
}

.hero__content .btn {
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.38s forwards;
}

/* FIX #9: overflow — margin-right: -1.5rem powodował overflow masking.
   Zamiast negatywnego marginesu — clip-path lub prawidłowy bleed przez padding. */
.hero__visual {
  position: relative;
  align-self: flex-start;
  width: 90%;
  max-width: 480px;
  margin-left: auto;
  margin-right: 0;
}

/* LCP image — never lazy, always eager */
.hero__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: rotate(1.5deg);
  transform-origin: bottom center;
  background-color: var(--brown-light);
  min-height: 280px;
}

.hero__blob {
  position: absolute;
  top: -12%;
  right: -20%;
  width: 105%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 0.2s forwards;
}

@media (min-width: 768px) {
  .hero__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
    padding-bottom: var(--space-xl);
  }

  .hero__content {
    flex: 0 0 54%;
    padding-top: var(--space-md);
    gap: var(--space-md);
  }

  .hero__visual {
    flex: 0 0 46%;
    width: auto;
    max-width: none;
    margin: 0;
    margin-top: -3rem;
  }

  .hero__blob {
    top: -15%;
    right: -25%;
    width: 110%;
  }
}

@media (min-width: 1024px) {
  .hero__content { padding-top: var(--space-lg); }
  .hero__visual  { margin-top: -5rem; }
}

/* ============================================================
   2. SOCIAL PROOF BAR
   ============================================================ */

.social-proof-bar {
  background-color: var(--warm-white);
  padding-block: clamp(3rem, 7vw, var(--space-lg));
}

.social-proof-bar__kicker {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--brown-mid);
  text-align: center;
  margin-bottom: var(--space-md);
}

.social-proof-bar__heading {
  text-align: center;
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: var(--space-md);
  color: var(--brown-dark);
}

.social-proof-bar__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem) 1rem;
  border: 1px solid var(--cream-dark);
  border-radius: 4px;
  background-color: var(--cream);
}

.stat {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: clamp(1rem, 3vw, 2rem);
  position: relative;
}

/* organiczna przegroda między statami */
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--brown-light) 30%,
    var(--brown-light) 70%,
    transparent
  );
  opacity: 0.5;
}

.stat__number {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums;
}

.stat__number--word {
  font-style: italic;
  font-weight: 600;
}

.stat__plus,
.stat__unit {
  font-size: 0.55em;
  color: var(--brown-mid);
  margin-left: 0.05em;
  vertical-align: baseline;
}

.stat__underline {
  width: clamp(56px, 40%, 96px);
  height: auto;
  margin-top: 0.5rem;
  color: var(--brown-light);
}

.stat__label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.5;
  color: var(--brown-dark);
  margin-top: 0.7rem;
  max-width: 16ch;
}

@media (max-width: 640px) {
  .stat {
    flex-basis: 100%;
    padding-block: 1.25rem;
  }
  .stat + .stat::before {
    left: 15%;
    right: 15%;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      var(--brown-light) 30%,
      var(--brown-light) 70%,
      transparent
    );
  }
  .stat__label {
    max-width: none;
  }
}

/* Marquee */
.dm-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.dm-marquee__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  /* 21 kafelków (×2 dla pętli) → dłuższy tor, dłuższy czas dla tego samego,
     spokojnego tempa (~50px/s) i płynnej pętli bez zacięć. */
  animation: marquee-scroll 120s linear infinite;
}

.dm-marquee:hover .dm-marquee__track {
  animation-play-state: paused;
}

.dm-screenshot {
  border-radius: 6px;
  flex-shrink: 0;
  background-color: var(--cream-dark);
  min-height: 100px;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   3. PROBLEM
   ============================================================ */

.problem {
  background-color: var(--cream);
  padding-block: clamp(3rem, 7vw, var(--space-lg));
}

.problem__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.problem__visual img {
  width: 100%;
  max-width: 420px;
  transform: rotate(-1deg);
  background-color: var(--cream-dark);
  min-height: 220px;
}

.problem__headline {
  color: var(--brown-dark);
  margin-bottom: 1.5rem;
}

.problem__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.problem__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: var(--brown-dark);
}

.problem__list li::before {
  content: '\00D7';
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brown-light);
  line-height: 1.4;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .problem__inner {
    flex-direction: row;
    align-items: center;
    gap: 5rem;
  }

  .problem__visual { flex: 0 0 42%; }
  .problem__content { flex: 1; }
}

/* Copy Ani — akapity wprowadzające problem + zajawka listy błędów */
.problem__text {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--brown-dark);
  margin-bottom: 1.25rem;
  max-width: 54ch;
}

.problem__list-intro {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  color: var(--brown-mid);
  margin-bottom: 1.25rem;
}

/* ============================================================
   4. REFRAME — dark section, "to nie Twoja wina"
   ============================================================ */

.reframe {
  background-color: var(--brown-dark);
  padding-block: var(--space-xl);
}

.reframe__inner {
  max-width: 780px;
}

.reframe__headline {
  color: var(--cream);
  margin-bottom: 2rem;
}

.reframe__body {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.8;
  color: rgba(245, 239, 224, 0.82);
  margin-bottom: 1.25rem;
  max-width: 60ch;
}

.reframe__body strong {
  color: var(--gold);
  font-weight: 700;
}

.reframe__body:last-child {
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
}

@media (min-width: 768px) {
  .reframe__inner { margin-left: 8%; }
}

/* ============================================================
   5. SOLUTION — System Zakwasowej Kontroli
   ============================================================ */

.solution {
  background-color: var(--cream);
  padding-block: clamp(3rem, 7vw, var(--space-lg));
}

/* Uwaga: style .solution__inner/__kicker/__headline/__intro/__benefits/__visual
   usunięte — stary blok „Naucz się czytać swój zakwas" zastąpiono manifestem
   (.manifesto__*). Klasa .solution pozostaje jako wrapper sekcji #rozwiazanie. */

/* ============================================================
   6. ABOUT
   ============================================================ */

.about {
  background-color: var(--warm-white);
  padding-block: clamp(3rem, 7vw, var(--space-lg));
}

.about__inner {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
}

/* --- Kolaż zdjęć Ani: czyste, osobne kadry — każde zdjęcie w całości,
   bez nachodzenia i bez kadrowania (naturalne proporcje). --- */
.about__collage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 1.6rem);
}

/* Rząd = trzy zdjęcia o tej samej wysokości, naturalne szerokości */
.about__row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(0.8rem, 1.8vw, 1.3rem);
  flex-wrap: wrap;
}

.about__photo {
  margin: 0;
  height: clamp(160px, 15.5vw, 235px);   /* niższe → trzy polaroidy mieszczą się w rzędzie */
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--cream-dark);
  border: 5px solid var(--warm-white);   /* biała ramka „polaroid" */
  box-shadow: 0 12px 30px rgba(61, 43, 31, 0.16);
  flex: 0 0 auto;
}

.about__photo img {
  display: block;
  height: 100%;
  width: auto;        /* naturalne proporcje → całe zdjęcie, zero kadrowania */
  max-width: 100%;
}

/* Delikatny „handcrafted" obrót — naprzemiennie, na tyle mały, że nic nie nachodzi */
.about__row .about__photo:nth-child(1) { transform: rotate(-2deg); }
.about__row .about__photo:nth-child(2) { transform: rotate(1.5deg); }
.about__row .about__photo:nth-child(3) { transform: rotate(-1.5deg); }

.about__headline { margin-bottom: 1.5rem; }

.about__body {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.8;
  color: var(--brown-dark);
  max-width: 54ch;
  margin-bottom: 2.5rem;
}

.about__numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.about__number-item {
  display: flex;
  flex-direction: column;
}

.about__number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--brown-mid);
}

.about__number-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brown-mid);
  margin-top: 0.4rem;
}

/* Mobile: rzędy rozkładają się w pion → wszystkie 4 zdjęcia jedno pod drugim,
   każde w pełnej szerokości (naturalna wysokość), bez overflow. */
@media (max-width: 640px) {
  .about__row {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .about__photo {
    height: auto;
    width: min(100%, 300px);
  }

  .about__photo img {
    width: 100%;
    height: auto;
  }
}

/* Desktop: kolaż obok tekstu (2 kolumny). Zdjęcia dalej w czystych rzędach. */
@media (min-width: 880px) {
  .about__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(3rem, 6vw, 5.5rem);
    align-items: center;
  }

  .about__content { padding-top: var(--space-md); }
}

.about__disclosure {
  margin-top: 1.2rem;
  max-width: 380px;
  border: 1px solid var(--brown-light);
  border-radius: 6px;
  overflow: hidden;
  background: var(--warm-white);
  box-shadow: 0 8px 22px rgba(61, 43, 31, 0.12);
}

/* Podłużny przycisk = nagłówek sekcji na całą szerokość */
.about__pin {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 15px 22px;
  border: none;
  background: var(--gold);
  color: var(--brown-dark);
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.about__pin:hover,
.about__pin:focus-visible {
  background: var(--brown-light);
  outline: none;
}

.about__pin-label { flex: 1; }

/* Ikona "+" po lewej — zmienia się w "×" po otwarciu */
.about__pin-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.about__pin-icon::before,
.about__pin-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--brown-dark);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.about__pin-icon::before { width: 14px; height: 2.5px; }
.about__pin-icon::after  { width: 2.5px; height: 14px; }
.about__pin[aria-expanded="true"] .about__pin-icon::before { transform: translate(-50%, -50%) rotate(45deg); }
.about__pin[aria-expanded="true"] .about__pin-icon::after  { transform: translate(-50%, -50%) rotate(135deg); }

/* Rozwijana treść — w tym samym boksie co przycisk */
.about__annotation {
  padding: 1.4rem 1.6rem 1.5rem;
  border-top: 1px solid var(--brown-light);
}

.about__annotation[hidden] { display: none; }

.about__annotation-eyebrow {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brown-light);
  margin-bottom: 0.55rem;
}

.about__annotation-text {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--brown-dark);
  margin: 0;
}

.about__annotation-text em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--brown-mid);
}

/* ============================================================
   7. PLATFORM — dark section
   ============================================================ */

.platform {
  background-color: var(--brown-dark);
  padding-block: var(--space-xl);
}

.platform__headline {
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.platform__sub {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: rgba(245, 239, 224, 0.65);
  margin-bottom: var(--space-lg);
  max-width: 50ch;
}

.platform__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .platform__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .platform__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: start;
  }

  /* Alternating vertical offset for handcrafted feel */
  .platform__card:nth-child(2),
  .platform__card:nth-child(4) {
    margin-top: 2.5rem;
  }
}

/* Strefa = zwijany dymek (<details>/<summary>). Domyślnie widać tylko tytuł. */
.platform__card {
  padding: 0;
  border-top: none;
  background-color: transparent;
  align-self: start;
}

/* Dymek/chmurka — klikalny nagłówek */
.platform__summary {
  list-style: none;                /* usuń domyślny trójkąt */
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;                /* touch target ≥44px */
  padding: 0.8rem 1.15rem;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(196, 149, 106, 0.35);
  background-color: rgba(253, 250, 244, 0.05);
  color: var(--cream);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.platform__summary::-webkit-details-marker { display: none; } /* Safari */

.platform__summary:hover,
.platform__card[open] > .platform__summary {
  background-color: rgba(253, 250, 244, 0.1);
  border-color: rgba(212, 168, 83, 0.6);
}

.platform__summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.platform__summary-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.platform__summary-title {
  flex: 1;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 600;
  line-height: 1.2;
}

/* Wskaźnik rozwinięcia: „+" → obrót do „×" po otwarciu */
.platform__summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--brown-light);
  transition: transform 0.3s var(--ease-out), color 0.2s ease;
}

.platform__card[open] > .platform__summary::after {
  transform: rotate(45deg);
  color: var(--gold);
}

/* Opis — po rozwinięciu, subtelna animacja pojawienia */
.platform__card > .platform__card-body {
  padding-inline: 1.15rem;
}

.platform__card[open] > .platform__card-body:first-of-type {
  margin-top: 0.9rem;
}

.platform__card[open] > .platform__card-body {
  animation: platform-reveal 0.28s var(--ease-out) both;
}

@keyframes platform-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.platform__card-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.platform__card-title {
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.platform__card-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(245, 239, 224, 0.68);
}

/* ============================================================
   8. TESTIMONIALS
   ============================================================ */

.testimonials {
  background-color: var(--cream);
  padding-block: clamp(3rem, 7vw, var(--space-lg));
}

.testimonials__headline {
  margin-bottom: var(--space-lg);
  max-width: 20ch;
}

/* FIX #11: mobile scroll carousel z scroll-snap */
.testimonials__grid {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.25rem;
  padding-bottom: 1rem;
  /* Ukryj scrollbar wizualnie, zachowaj funkcjonalność */
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Extend do krawędzi viewportu — negatywne marginesy + padding kompensujący */
  margin-inline: -1.5rem;
  padding-inline: 1.5rem;
}

.testimonials__grid::-webkit-scrollbar {
  display: none;
}

.testimonials__grid .testimonial {
  flex: 0 0 85vw;
  max-width: 360px;
  scroll-snap-align: start;
}

/* Wskaźnik scroll na mobile */
.testimonials__grid::after {
  content: '';
  flex: 0 0 1.5rem;
  height: 1px;
}

@media (min-width: 768px) {
  /* Desktop: powrót do siatki */
  .testimonials__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    align-items: start;
    overflow-x: visible;
    scroll-snap-type: none;
    margin-inline: 0;
    padding-inline: 0;
    padding-bottom: 0;
  }

  .testimonials__grid .testimonial {
    flex: unset;
    max-width: none;
    scroll-snap-align: none;
  }

  .testimonials__grid::after {
    display: none;
  }

  .testimonials__grid .testimonial:nth-child(odd) {
    margin-top: 2rem;
  }
}

.testimonial {
  padding: 2rem 1.75rem;
  border-left: 3px solid var(--brown-light);
  background-color: var(--warm-white);
}

.testimonial--screenshot {
  border-left: none;
  padding: 0;
  background-color: transparent;
}

.testimonial--screenshot img {
  width: 100%;
  border-radius: 4px;
  background-color: var(--cream-dark);
  min-height: 140px;
}

.testimonial__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.65;
  color: var(--brown-dark);
  margin-bottom: 1.5rem;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--cream-dark);
  flex-shrink: 0;
}

.testimonial__name {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown-mid);
}

/* ============================================================
   9. PRICING
   ============================================================ */

.pricing {
  background-color: var(--warm-white);
  padding-block: clamp(3rem, 7vw, var(--space-lg));
}

.pricing__headline { margin-bottom: 0.75rem; }

.pricing__sub {
  color: var(--brown-mid);
  margin-bottom: var(--space-lg);
  font-size: 1rem;
}

.pricing__cards {
  display: grid;
  /* Fluid: karty same przechodzą 3→2→1 wg dostępnej szerokości (bez skoku na 768).
     min(100%,270px) chroni przed overflow na bardzo wąskich ekranach. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  align-items: stretch; /* równa wysokość kart w rzędzie */
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

.pricing__card {
  padding: 2.25rem 2rem;
  background-color: var(--cream);
  border-top: 3px solid var(--brown-light);
  position: relative;
  display: flex;
  flex-direction: column;
  /* KLUCZOWE: bez tego kolumna 1fr nie zejdzie poniżej min-content (nowrap CTA),
     przez co 3. karta „ucieka" poza kontener na desktopie. */
  min-width: 0;
}

/* Wyróżnienie środkowego planu — TYLKO kolor/akcent, bez zmiany wymiarów */
.pricing__card--featured {
  background-color: var(--brown-dark);
  border-top-color: var(--gold);
}

.pricing__badge {
  position: absolute;
  top: -1px;
  right: 2rem;
  background-color: var(--gold);
  color: var(--brown-dark);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
}

.pricing__plan {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brown-light);
  margin-bottom: 1.25rem;
}

.pricing__card--featured .pricing__plan {
  color: rgba(196, 149, 106, 0.75);
}

.pricing__amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  margin-bottom: 0.4rem;
  /* baza em dla ceny: .pricing__price = 1em (100%), .pricing__old = 0.7em (~70%) */
  font-size: clamp(2.4rem, 4vw, 3.2rem);
}

.pricing__price {
  font-family: var(--font-sans);
  font-size: 1em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--brown-dark);
}

.pricing__card--featured .pricing__price { color: var(--cream); }

.pricing__old {
  font-family: var(--font-sans);
  font-size: 0.7em; /* ~70% wielkości nowej ceny (baza em na .pricing__amount) */
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--brown-mid);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  opacity: 0.75;
}

.pricing__card--featured .pricing__old { color: rgba(245, 239, 224, 0.55); }

.pricing__period {
  font-size: 0.85rem;
  color: var(--brown-mid);
}

.pricing__card--featured .pricing__period {
  color: rgba(245, 239, 224, 0.6);
}

.pricing__daily {
  font-size: 0.82rem;
  color: var(--brown-light);
  margin-bottom: 1.75rem;
  font-style: italic;
}

.pricing__card--featured .pricing__daily {
  color: rgba(196, 149, 106, 0.85);
}

.pricing__features {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pricing__features li {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--brown-dark);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.pricing__features li::before {
  content: '\00B7';
  color: var(--brown-light);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
  flex-shrink: 0;
}

.pricing__card--featured .pricing__features li {
  color: rgba(245, 239, 224, 0.82);
}

.pricing__card--featured .pricing__features li::before {
  color: var(--gold);
}

.pricing__card .btn {
  width: 100%;
  text-align: center;
  margin-top: auto; /* CTA przy dolnej krawędzi → równy rząd mimo różnej liczby cech */
  /* Długi tekst CTA zawija się w obrębie karty zamiast rozpychać kolumnę */
  white-space: normal;
  overflow-wrap: break-word;
}

/* Wstążka „Najczęściej wybierany" — pełna szerokość górą wyróżnionej karty.
   Wyłamana z paddingu karty; nie zmienia szerokości/pozycji kart w rzędzie. */
.pricing__ribbon {
  display: block;
  margin: -2.25rem -2rem 1.5rem;
  padding: 9px 14px;
  background-color: var(--gold);
  color: var(--brown-dark);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
}

/* Na wyróżnionej karcie badge „oszczędzasz…" schodzi pod wstążkę */
.pricing__card--featured .pricing__badge {
  top: 2.6rem;
}

/* Secondary on dark card looks like outlined cream */
.pricing__card--featured .btn--secondary {
  border-color: rgba(245, 239, 224, 0.5);
  color: var(--cream);
}

.pricing__card--featured .btn--secondary:hover {
  background-color: var(--cream);
  color: var(--brown-dark);
  border-color: var(--cream);
}

.pricing__compare {
  margin-top: var(--space-md);
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-style: italic;
  color: var(--brown-mid);
  text-align: center;
}

.payment-section {
  padding-block: var(--space-md);
}

.payment-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  align-items: center;
  font-size: 0.82rem;
  color: var(--brown-mid);
  text-align: center;
}

/* ============================================================
   PAYMENT STATUS BANNER — pojawia sie po powrocie ze Stripe
   ============================================================ */

.payment-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.payment-banner[hidden] { display: none; }

.payment-banner--success {
  background: #2d6a4f;
  color: #fff;
}

.payment-banner--canceled {
  background: #7d3c27;
  color: #fff;
}

/* FIX #3A: tap target — było ~22px, teraz 44×44px */
.payment-banner__close {
  background: none;
  border: none;
  color: currentColor;
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
  flex-shrink: 0;
}

.payment-banner__close:hover { opacity: 1; }

/* ============================================================
   FOCUS STYLES (accessibility)
   ============================================================ */

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

/* ============================================================
   10. FAQ
   ============================================================ */

.faq {
  background-color: var(--cream);
  padding-block: clamp(3rem, 7vw, var(--space-lg));
}

.faq__inner { max-width: 820px; }

.faq__headline { margin-bottom: var(--space-lg); }

.faq__list {
  display: flex;
  flex-direction: column;
}

.faq__item {
  border-bottom: 1px solid rgba(122, 79, 58, 0.18);
}

.faq__item:first-child {
  border-top: 1px solid rgba(122, 79, 58, 0.18);
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 600;
  color: var(--brown-dark);
  cursor: pointer;
  list-style: none;
  gap: 1rem;
  transition: color 0.2s ease;
}

.faq__question::-webkit-details-marker { display: none; }

.faq__question::after {
  content: '+';
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--brown-light);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
  line-height: 1;
}

.faq__item[open] .faq__question { color: var(--brown-mid); }

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding-bottom: 1.75rem;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.75;
  color: var(--brown-dark);
  max-width: 62ch;
}

/* Usunięto martwe reguły .final-cta* — sekcję „Gotowa…" wycięto z HTML. */

/* ============================================================
   12. FOOTER
   ============================================================ */

.site-footer {
  background-color: var(--charcoal);
  padding-block: 2.5rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 600px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer__brand {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: rgba(245, 239, 224, 0.45);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

/* FIX #3B: tap target — było ~12px, teraz 44px pionowo */
.site-footer__nav a {
  font-size: 0.75rem;
  color: rgba(245, 239, 224, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
  padding-block: 14px;
  display: inline-block;
}

.site-footer__nav a:hover {
  color: rgba(245, 239, 224, 0.82);
}

/* ============================================================
   STICKY CTA — mobile only
   ============================================================ */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.75rem 1rem;
  background-color: rgba(245, 239, 224, 0.97);
  border-top: 1px solid rgba(196, 149, 106, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .sticky-cta { display: none; }
}

/* ============================================================
   KEYFRAMES
   ============================================================ */

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   PREFERS REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero__kicker,
  .hero__sub,
  .hero__guarantee,
  .hero__content .btn,
  .hero__blob {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .dm-marquee__track {
    animation-duration: 200s;
  }
}

/* ============================================================
   CURTAIN OVERLAY — page entrance animation
   LCP-safe: image loads under the curtain.
   GSAP animates clip-path from full coverage → no coverage.
   ============================================================ */

.curtain-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--cream);
  z-index: 9999;
  pointer-events: none;
  will-change: clip-path;
}

/* ============================================================
   HERO — Editorial Full-Bleed (Option A)
   Full-viewport image, text panel with gradient overlay
   ============================================================ */

.hero--editorial {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  overflow: hidden;
  padding-top: 0;
  background-color: var(--brown-dark);
}

/* Image fills entire hero */
.hero--editorial .hero__visual {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero--editorial .hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transform: none;
  will-change: transform;
  min-height: 100vh;
}

/* Cinemagraph — overlays the LCP poster img, fades in on canplay.
   Absolute → no layout shift. object-position matches the img exactly. */
.hero--editorial .hero__video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.hero--editorial .hero__video.is-playing {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero--editorial .hero__video { display: none; }
}

/* Text panel sits in grid, gradient overlay for legibility */
.hero__editorial-panel {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1.25rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 5rem);
  padding-top: clamp(6rem, 14vw, 10rem);
  background: linear-gradient(
    to top,
    rgba(26, 15, 8, 0.92) 0%,
    rgba(26, 15, 8, 0.62) 38%,
    rgba(26, 15, 8, 0.0)  68%
  );
}

.hero--editorial .hero__kicker {
  animation: none;
}

.hero--editorial .hero__headline {
  color: var(--cream);
  max-width: 17ch;
  animation: none;
}

.hero--editorial .hero__headline em {
  color: var(--gold);
}

.hero--editorial .hero__sub {
  color: rgba(245, 239, 224, 0.88);
  max-width: 46ch;
  animation: none;
}

.hero--editorial .hero__guarantee {
  color: rgba(196, 149, 106, 0.88);
  animation: none;
}

/* Rotating arc text badge */
.hero__arc-text {
  position: absolute;
  bottom: 3.5rem;
  right: 1.5rem;
  width: clamp(90px, 14vw, 160px);
  height: auto;
  z-index: 3;
  pointer-events: none;
  opacity: 0.8;
  transform-origin: center center;
}

@keyframes arc-spin {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__arc-text { animation: none !important; }
  .hero__scroll-line { animation: none; opacity: 1; }
}

/* Animated scroll indicator */
.hero__scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: none;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(212, 168, 83, 0.85));
}

@keyframes scroll-pulse {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@media (min-width: 768px) {
  .hero__editorial-panel {
    width: 60%;
    background: linear-gradient(
      to right,
      rgba(26, 15, 8, 0.90) 0%,
      rgba(26, 15, 8, 0.65) 62%,
      rgba(26, 15, 8, 0.0)  100%
    );
    justify-content: center;
    padding-top: clamp(6rem, 10vw, 8rem);
  }

  .hero__arc-text {
    bottom: 5.5rem;
    right: 4%;
  }

  .hero__scroll-cue {
    display: flex;
  }

  .hero__scroll-line {
    animation: scroll-pulse 2.2s ease-in-out infinite;
  }
}

/* MOBILE HERO — nagłówek + CTA muszą być w pierwszym ekranie (above the fold).
   Treść „przyklejona" do góry (pod nav), zwarstwa czytelności ciemna u góry,
   zwarta typografia. LCP (hero__img eager+preload) bez zmian — to tylko layout. */
@media (max-width: 767px) {
  .hero--editorial {
    min-height: 100svh; /* najmniejszy widoczny viewport → gwarancja above-the-fold */
  }

  .hero__editorial-panel {
    justify-content: flex-start;   /* treść od góry, nie od dołu */
    padding: 4.75rem 1.4rem 1.75rem; /* top: prześwit pod stały nav */
    gap: 0.7rem;
    background: linear-gradient(
      to bottom,
      rgba(26, 15, 8, 0.90) 0%,
      rgba(26, 15, 8, 0.60) 50%,
      rgba(26, 15, 8, 0.15) 82%,
      rgba(26, 15, 8, 0.0)  100%
    );
  }

  .hero--editorial .hero__headline {
    font-size: clamp(1.8rem, 7.4vw, 2.5rem);
    line-height: 1.12;
    max-width: none;
    margin-bottom: 0.1rem;
  }

  .hero--editorial .hero__sub {
    font-size: 0.9rem;
    line-height: 1.42;
    max-width: none;
  }
}

/* ============================================================
   DIAGONAL CLIP-PATH SECTION DIVIDERS
   Replaces SVG wave dividers — GPU-composited, no DOM element
   ============================================================ */

/* Reframe: dark cuts diagonally into cream above */
.reframe.section-diagonal-start {
  clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%);
  margin-top: -5vw;
  padding-top: calc(var(--space-xl) + 5vw);
}

/* Platform: dark parallelogram island — diagonal top and bottom */
.platform.section-diagonal-both {
  clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%);
  margin-top: -5vw;
  margin-bottom: -5vw;
  padding-top: calc(var(--space-xl) + 5vw);
  padding-bottom: calc(var(--space-xl) + 5vw);
}

/* ============================================================
   FLOUR DUSTING TEXTURE
   Soft flour powder simulation using layered radial gradients
   ============================================================ */

.flour-dust {
  position: relative;
}

.flour-dust > * {
  position: relative;
  z-index: 1;
}

.flour-dust::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 42% 18% at 78% 10%, rgba(253, 250, 244, 0.10) 0%, transparent 100%),
    radial-gradient(ellipse 25% 14% at 12% 62%, rgba(253, 250, 244, 0.08) 0%, transparent 100%),
    radial-gradient(ellipse  9%  7% at 50%  8%, rgba(253, 250, 244, 0.16) 0%, transparent 100%),
    radial-gradient(ellipse 32%  6% at 28% 88%, rgba(253, 250, 244, 0.07) 0%, transparent 100%),
    radial-gradient(ellipse  6%  9% at 88% 42%, rgba(253, 250, 244, 0.12) 0%, transparent 100%);
}

/* ============================================================
   SCORING ORNAMENT — bread lame-cut lines, decorative
   ============================================================ */

.scoring-ornament {
  display: block;
  width: 56px;
  height: 30px;
  margin-bottom: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 30'%3E%3Cg stroke='%23C4956A' stroke-width='1' fill='none' stroke-linecap='round' opacity='0.6'%3E%3Cpath d='M 6 26 Q 10 13 16 3'/%3E%3Cpath d='M 22 28 Q 26 15 32 3'/%3E%3Cpath d='M 38 28 Q 42 15 48 3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Light variant — for dark background sections */
.scoring-ornament--light {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 30'%3E%3Cg stroke='%23D4A853' stroke-width='1' fill='none' stroke-linecap='round' opacity='0.55'%3E%3Cpath d='M 6 26 Q 10 13 16 3'/%3E%3Cpath d='M 22 28 Q 26 15 32 3'/%3E%3Cpath d='M 38 28 Q 42 15 48 3'/%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================================
   PRICING — Receipt / Invoice aesthetic
   Completely unique — no competitor has this
   ============================================================ */

.pricing-receipt {
  position: relative;
  max-width: 640px;
  margin-inline: auto;
  background-color: var(--warm-white);
  /* Stacked paper edge illusion */
  box-shadow:
    0 1px 0 rgba(61, 43, 31, 0.08),
    0 2px 0 rgba(253, 250, 244, 1),
    0 3px 0 rgba(61, 43, 31, 0.06),
    0 4px 0 rgba(253, 250, 244, 1),
    0 5px 0 rgba(61, 43, 31, 0.04),
    0 12px 36px rgba(61, 43, 31, 0.14);
  padding: 2.5rem;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.receipt-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  color: var(--brown-dark);
}

.receipt-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 0.68rem;
  color: var(--brown-mid);
  letter-spacing: 0.04em;
}

/* Dashed rule */
.receipt-divider {
  border: none;
  border-top: 1px dashed rgba(122, 79, 58, 0.3);
  margin-block: 1.25rem;
}

/* Perforated tear-off edge */
.receipt-divider--torn {
  border: none;
  height: 10px;
  margin-block: 1.5rem;
  background-image: radial-gradient(
    circle at 50% 0%,
    transparent 5px,
    rgba(122, 79, 58, 0.2) 5px,
    rgba(122, 79, 58, 0.2) 6px,
    transparent 6px
  );
  background-size: 16px 6px;
  background-repeat: repeat-x;
  background-position: 0 top;
}

.receipt-divider--bottom {
  background-position: 0 bottom;
}

.receipt-body { font-family: var(--font-sans); }

.receipt-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.4rem 1.25rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid rgba(122, 79, 58, 0.08);
  align-items: center;
}

.receipt-row--header {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brown-mid);
  padding-bottom: 0.5rem;
}

.receipt-row--item strong {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown-dark);
  display: block;
  margin-bottom: 0.1rem;
}

.receipt-row--item small {
  font-size: 0.7rem;
  color: var(--brown-mid);
  display: block;
}

.receipt-col--price {
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brown-dark);
  white-space: nowrap;
}

.receipt-old {
  color: var(--brown-mid);
  font-weight: 400;
  opacity: 0.7;
  text-decoration-thickness: 1px;
  margin-right: 0.15em;
}

.receipt-col--saving {
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--brown-mid);
  white-space: nowrap;
  min-width: 5ch;
  text-align: right;
}

/* Featured / recommended row */
.receipt-row--selected {
  background-color: rgba(212, 168, 83, 0.09);
  margin-inline: -1.25rem;
  padding-inline: 1.25rem;
  border-bottom-color: rgba(212, 168, 83, 0.32);
}

.receipt-saving--highlight {
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brown-dark);
  background-color: var(--gold);
  padding: 2px 6px;
  white-space: nowrap;
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brown-mid);
  margin-block: 0.5rem;
}

.receipt-total__amount {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--brown-dark);
  letter-spacing: -0.02em;
  line-height: 1;
}

.receipt-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (min-width: 560px) {
  .receipt-actions {
    flex-direction: row;
    justify-content: center;
  }

  .receipt-btn { flex: 1; }
}

.receipt-btn { text-align: center; }

.receipt-note {
  font-size: 0.7rem;
  color: var(--brown-mid);
  text-align: center;
  margin-top: 1.25rem;
  line-height: 1.6;
}

/* Diagonal stamp badge */
.receipt-stamp {
  position: absolute;
  top: 2rem;
  right: -0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  font-family: var(--font-serif);
  font-size: 0.62rem;
  font-weight: 700;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.06em;
  color: var(--gold);
  line-height: 1.4;
  transform: rotate(14deg);
  opacity: 0.88;
}

@media (max-width: 500px) {
  .pricing-receipt { padding: 1.5rem 1.25rem; }
  .receipt-row { grid-template-columns: 1fr auto; }
  .receipt-col--saving { display: none; }
  .receipt-saving--highlight { display: none; }
  .receipt-stamp { display: none; }
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 10000;
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--brown-light), var(--gold));
  transition: width 0.1s linear;
  will-change: width;
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-switcher__opt {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.lang-switcher__opt:hover { color: var(--brown-dark); }

.lang-switcher__opt--active { color: var(--brown-dark); }

.lang-switcher__sep {
  font-size: 0.65rem;
  color: var(--brown-light);
}

/* Usunięto martwe reguły .countdown-widget* (licznik zdjęty wcześniej)
   oraz .trust-badges/.trust-badge (brak takich elementów w HTML). */

/* ============================================================
   CAROUSEL DOTS — mobile testimonials
   ============================================================ */

.carousel-dots {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 767px) {
  .carousel-dots { display: flex; }
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: var(--cream-dark);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.carousel-dot--active {
  background: var(--brown-light);
  transform: scale(1.4);
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */

.back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(122, 79, 58, 0.22);
  background: var(--warm-white);
  color: var(--brown-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(61, 43, 31, 0.12);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}

.back-to-top:hover {
  background: var(--cream);
  transform: translateY(-2px);
}

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

@media (min-width: 768px) {
  .back-to-top { bottom: 2rem; }
}

/* ============================================================
   COOKIE CONSENT BAR — GDPR
   ============================================================ */

.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  background: var(--brown-dark);
  color: var(--cream);
  padding: 1rem clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  border-top: 1px solid rgba(196, 149, 106, 0.2);
}

.cookie-bar[hidden] { display: none; }

.cookie-bar__text {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(245, 239, 224, 0.82);
  flex: 1;
  min-width: 200px;
}

.cookie-bar__actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-bar__btn {
  padding: 8px 18px;
  font-size: 0.72rem;
}

/* ============================================================
   SOCIAL PROOF TOAST
   ============================================================ */

.sp-toast {
  position: fixed;
  bottom: 5rem;
  left: 1.25rem;
  z-index: 4000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: var(--warm-white);
  border: 1px solid rgba(122, 79, 58, 0.15);
  border-left: 3px solid var(--brown-light);
  box-shadow: 0 4px 20px rgba(61, 43, 31, 0.14);
  border-radius: 4px;
  max-width: 280px;
  animation: toast-slide-in 0.4s ease-out both;
}

.sp-toast[hidden] { display: none; }

@keyframes toast-slide-in {
  from { transform: translateX(-110%); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

.sp-toast__emoji {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.sp-toast__text {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--brown-dark);
  flex: 1;
}

.sp-toast__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brown-mid);
  font-size: 1.1rem;
  line-height: 1;
  /* Touch target ≥44px (bez zmiany wyglądu — ujemny margines kompensuje layout) */
  min-width: 44px;
  min-height: 44px;
  margin: -12px -10px -12px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.sp-toast__close:hover { opacity: 1; }

@media (min-width: 768px) {
  .sp-toast { bottom: 2rem; }
}

/* ============================================================
   PAYMENT STATUS BANNER (Stripe redirect)
   ============================================================ */

.payment-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
}

.payment-banner[hidden] { display: none; }

.payment-banner--success {
  background: #1a6b3a;
  color: #fff;
}

.payment-banner--canceled {
  background: #7a4f3a;
  color: var(--cream);
}

.payment-banner__close {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: 1.2rem;
  opacity: 0.7;
  flex-shrink: 0;
  padding: 0;
}

.payment-banner__close:hover { opacity: 1; }


/* ============================================================
   REBUILD ADD-ONS — galeria, ikony SVG, kickery
   (dodane przy pełnej przebudowie treści)
   ============================================================ */

/* Social-proof marquee: realne zdjęcia bochenków (4:3) */
.dm-screenshot {
  /* Kafelki pionowe (portret 4:5) — wyższe niż szersze */
  height: clamp(200px, 32vw, 320px);
  width: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  min-height: 0;
}

/* Reframe kicker */
.reframe__kicker {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

/* Platform: ikony SVG w kolorze gold, wyrównane */
.platform__card-icon {
  color: var(--gold);
  display: flex;
  align-items: center;
  min-height: 32px;
}

.platform__card-icon svg {
  width: 32px;
  height: 32px;
}

/* Testimonials kicker odstęp */
.testimonials .kicker {
  display: block;
  margin-bottom: 0.75rem;
}


/* ============================================================
   NEWSLETTER — sekcja dolna, formularz wspólny, pop-up
   ============================================================ */

.newsletter {
  background-color: var(--warm-white);
  padding-block: clamp(3rem, 7vw, var(--space-lg));
}

.newsletter__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .newsletter__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
  }
  .newsletter__text { flex: 1 1 55%; }
  .nl-form--inline  { flex: 0 0 auto; }
}

.newsletter__headline { margin: 0.25rem 0 0.5rem; }
.newsletter__sub { color: var(--brown-mid); margin: 0; }

/* --- Formularz wspólny (sekcja + pop-up) --- */
.nl-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  width: 100%;
}

.nl-form--inline { max-width: 480px; }

.nl-form__input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 15px 18px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--cream);
  border: 1.5px solid var(--color-border-accent);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.nl-form__input::placeholder { color: var(--brown-light); }

.nl-form__input:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.28);
}

.nl-form__btn { flex: 0 0 auto; }
.nl-form__btn:disabled { opacity: 0.6; cursor: wait; }

.nl-form__msg {
  flex-basis: 100%;
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  min-height: 1.1em;
  color: var(--brown-mid);
}
.nl-form__msg.is-error   { color: #b3402e; }
.nl-form__msg.is-success { color: #3f7d3f; }

/* --- Pop-up --- */
.nl-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
}
.nl-popup[hidden] { display: none; }

.nl-popup__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(26, 15, 8, 0.62);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nl-popup.is-open .nl-popup__backdrop { opacity: 1; }

.nl-popup__card {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: min(440px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: clamp(1.75rem, 5vw, 2.75rem);
  background-color: var(--cream);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(26, 15, 8, 0.35);
  text-align: center;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s var(--ease-out), opacity 0.35s ease;
}
.nl-popup.is-open .nl-popup__card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.nl-popup__close {
  position: absolute;
  top: 0.2rem;
  right: 0.35rem;
  /* Touch target ≥44px */
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--brown-mid);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.nl-popup__close:hover { color: var(--brown-dark); }

.nl-popup__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.nl-popup__title { margin-bottom: 0.75rem; }

.nl-popup__text {
  color: var(--brown-mid);
  margin: 0 auto 1.5rem;
  max-width: 34ch;
}

.nl-popup .nl-form { justify-content: center; }

.nl-popup__fine {
  font-size: 0.78rem;
  color: var(--brown-light);
  margin: 1rem 0 0;
}

@media (prefers-color-scheme: dark) {
  .nl-popup__card  { background-color: var(--color-bg-alt); }
  .nl-form__input  { background-color: var(--color-bg); }
}

@media (prefers-reduced-motion: reduce) {
  .nl-popup__backdrop,
  .nl-popup__card { transition: opacity 0.01ms; transform: none; }
}

/* ============================================================
   3b. DOMKNIĘCIE PROBLEMU — "ruletka" (krótka, wyśrodkowana)
   ============================================================ */

.problem-close {
  background-color: var(--warm-white);
  padding-block: clamp(3rem, 7vw, var(--space-lg));
}

.problem-close__inner {
  max-width: 34ch;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

/* Dwa krótkie zdania jako rytmiczne serifowe wersy */
.problem-close__line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.2;
  color: var(--brown-mid);
}

.problem-close__line + .problem-close__line {
  color: var(--brown-dark);
}

.problem-close__lead {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--brown-dark);
  margin-top: 1rem;
  margin-bottom: 1.75rem;
}

/* ============================================================
   3c. NIE LUBIĘ WYRZUCAĆ CHLEBA DO KOSZA
   ============================================================ */

.waste {
  background-color: var(--cream);
  padding-block: clamp(3rem, 7vw, var(--space-lg));
}

.waste__inner {
  max-width: 62ch;
  margin-inline: auto;
}

.waste__headline {
  color: var(--brown-dark);
  margin-bottom: 1.5rem;
}

.waste__body {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.8;
  color: var(--brown-dark);
  margin-bottom: 1.6rem;
}

/* Wyróżniony cytat — spójny z .testimonial (lewy akcent + serif italic) */
.waste__quote {
  margin: 2rem 0;
  padding: 1.75rem 2rem;
  border-left: 3px solid var(--brown-light);
  background-color: var(--warm-white);
}

.waste__quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.65;
  color: var(--brown-dark);
}

.waste__quote-author {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown-mid);
}

.waste .btn { margin-top: 0.5rem; }

/* ============================================================
   5b. SPOŁECZNOŚĆ (community)
   ============================================================ */

.community {
  background-color: var(--cream);
  padding-block: clamp(3rem, 7vw, var(--space-lg));
}

.community__inner {
  max-width: 64ch;
  margin-inline: auto;
  text-align: center;
}

/* Opinia — spójna z pozostałymi cytatami (serif italic + lewy akcent) */
.community__quote {
  margin: 0 auto 2.5rem;
  padding: 1.75rem 2rem;
  border-left: 3px solid var(--brown-light);
  background-color: var(--warm-white);
  text-align: left;
}

.community__quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.6;
  color: var(--brown-dark);
}

.community__quote-author,
.opinie__quote-author {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown-mid);
}

.community__body {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--brown-dark);
  margin-bottom: 1.5rem;
}

/* Pytania jako organiczne „dymki" rozmowy */
.community__questions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin: 0 0 1.75rem;
}

.community__bubble {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--brown-mid);
  background-color: var(--warm-white);
  border: 1px solid var(--cream-dark);
  border-radius: 18px 18px 18px 4px;
  padding: 0.7rem 1.25rem;
  box-shadow: 0 2px 10px rgba(61, 43, 31, 0.05);
}

/* Lekki, ręczny obrót — naprzemiennie, dla organicznego rytmu */
.community__bubble:nth-child(even) { transform: rotate(1.2deg); border-radius: 18px 18px 4px 18px; }
.community__bubble:nth-child(odd)  { transform: rotate(-1deg); }

/* ============================================================
   6b. OPINIE — kotwica #opinie (cel wszystkich CTA)
   ============================================================ */

#opinie { scroll-margin-top: 6rem; }

.opinie {
  background-color: var(--cream);
  padding-block: clamp(3rem, 7vw, var(--space-lg));
}

.opinie__headline {
  text-align: center;
  max-width: 24ch;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  color: var(--brown-dark);
}

.opinie__quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
  max-width: 900px;
  margin-inline: auto;
}

.opinie__quote { min-width: 0; }

.opinie__quote {
  padding: 1.75rem 2rem;
  border-left: 3px solid var(--brown-light);
  background-color: var(--warm-white);
}

.opinie__quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--brown-dark);
}

/* Galeria PRZED / PO — autentyczne zdjęcia uczestniczek */
.prepost-gallery__caption {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--brown-mid);
  margin: var(--space-lg) 0 var(--space-md);
}

.prepost-gallery {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

/* Jedna para = zdjęcie „przed" obok „po" */
.prepost-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.6rem, 2vw, 1.25rem);
  align-items: start;
}

.prepost-item {
  position: relative;
  transform: rotate(-0.6deg);
}

.prepost-item + .prepost-item { transform: rotate(0.8deg); }

.prepost-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  background-color: var(--cream-dark);
  box-shadow: 0 6px 20px rgba(61, 43, 31, 0.1);
}

/* Znaczniki „przed" / „po" — rzemieślnicze etykietki w rogu */
.prepost-item__tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 2px;
  color: var(--warm-white);
  background-color: rgba(61, 43, 31, 0.82);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.prepost-item__tag--after {
  color: var(--brown-dark);
  background-color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .prepost-item,
  .prepost-item + .prepost-item { transform: none; }
}

/* ============================================================
   7b. PLATFORMA — strefy (Batch 4)
   ============================================================ */

/* Elastyczna siatka: auto-fit → schodzi do 1 kolumny na mobile,
   bez sztywnych 4 kolumn niezależnie od liczby kart. */
.platform__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  align-items: start;
}

/* Nowy, gęstszy layout — wyłącz stary handcrafted offset kart */
@media (min-width: 1024px) {
  .platform__card:nth-child(2),
  .platform__card:nth-child(4) { margin-top: 0; }
}

/* Wiele akapitów w jednej karcie */
.platform__card-body + .platform__card-body { margin-top: 0.85rem; }

/* Fundament — wyróżniony dymek ze złotym akcentem (też zwijany) */
.platform__card--featured > .platform__summary {
  border-color: var(--gold);
  background-color: rgba(212, 168, 83, 0.14);
}

.platform__card--featured > .platform__summary .platform__summary-title { color: var(--gold); }
.platform__card--featured > .platform__summary::after { color: var(--gold); }

/* Podgrupa: 🥖 Strefy chleba */
.platform__group { margin-bottom: var(--space-lg); }

.platform__group-title {
  color: var(--cream);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(196, 149, 106, 0.3);
}

.platform__group-emoji { margin-right: 0.45rem; }

/* Bloki opisowe ✨ (nie karty) */
.platform__notes {
  margin-top: var(--space-lg);
  display: grid;
  gap: var(--space-md);
}

.platform__note {
  border-left: 3px solid var(--gold);
  padding-left: clamp(1rem, 3vw, 1.75rem);
}

.platform__note-title {
  color: var(--cream);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 1rem;
}

.platform__note-emoji { margin-right: 0.45rem; }

.platform__note p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(245, 239, 224, 0.72);
  max-width: 68ch;
}

.platform__note p + p { margin-top: 0.85rem; }

/* ============================================================
   9b. CENNIK — intro (opinia + koszt PREMIERY) — Batch 5
   ============================================================ */

.pricing__intro {
  max-width: 760px;
  margin: 0 auto var(--space-lg);
}

/* Opinia jako lead — spójna z pozostałymi cytatami na stronie */
.pricing__lead-quote {
  margin: 0 0 var(--space-lg);
  padding: 1.75rem 2rem;
  border-left: 3px solid var(--brown-light);
  background-color: var(--cream);
}

.pricing__lead-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--brown-dark);
}

.pricing__lead-author {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown-mid);
}

.pricing__intro-headline {
  text-align: center;
  margin-bottom: var(--space-md);
  color: var(--brown-dark);
}

/* Rozkład kosztów — mały, czytelny „paragon" */
.cost-breakdown {
  max-width: 46ch;
  margin: 0 auto var(--space-md);
  padding: 1.5rem 1.75rem;
  background-color: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: 4px;
  text-align: center;
}

.cost-breakdown__line {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.65;
  color: var(--brown-dark);
}

.cost-breakdown__line + .cost-breakdown__line,
.cost-breakdown__line + .cost-breakdown__total {
  margin-top: 0.5rem;
}

.cost-breakdown__total {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--brown-light);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: var(--brown-dark);
}

.cost-breakdown__total + .cost-breakdown__line { margin-top: 0.85rem; }

.cost-breakdown__total strong {
  color: var(--gold);
  font-weight: 700;
}

/* Zdanie akcentowe (odpowiednik „orange" z oferty) */
.pricing__accent {
  text-align: center;
  max-width: 34ch;
  margin: 0 auto var(--space-md);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  color: var(--brown-mid);
}

.pricing__intro-body {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.75;
  color: var(--brown-dark);
  margin-bottom: 1.25rem;
}

.pricing__urgency {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--brown-mid);
  padding: 1rem 1.25rem;
  background-color: rgba(212, 168, 83, 0.1);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
}

/* ============================================================
   5. MANIFEST (#rozwiazanie) — dlaczego powstała Chlebownia
   ============================================================ */

.manifesto__inner {
  max-width: 760px;
  margin-inline: auto;
}

/* Nagłówki pod-sekcji manifestu — oddech między blokami myśli */
.manifesto__headline {
  color: var(--brown-dark);
  margin-bottom: 1.5rem;
}

.manifesto__headline:not(:first-child) {
  margin-top: var(--space-lg);
}

.manifesto__text {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.8;
  color: var(--brown-dark);
  margin-bottom: 1.7rem;
}

/* Akapit z ❌ — lekki wcisk, żeby znak oddychał od tekstu */
.manifesto__text--mark {
  text-indent: -1.6em;
  padding-left: 1.6em;
}

/* Wprowadzenia do list — serif italic, spójne z resztą strony */
.manifesto__list-intro {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  color: var(--brown-mid);
  margin: var(--space-md) 0 1rem;
}

/* Listy „ptaszek" — ten sam znak i kolor co w benefitach solution */
.manifesto__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
}

.manifesto__list li {
  position: relative;
  padding-left: 1.9rem;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.65;
  color: var(--brown-dark);
}

.manifesto__list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--gold);
}

/* Foto-akcent — lekko obrócone, jak w innych sekcjach */
.manifesto__figure {
  margin: var(--space-md) auto;
  max-width: 460px;
}

.manifesto__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  transform: rotate(-1.2deg);
  background-color: var(--cream-dark);
  box-shadow: 0 10px 30px rgba(61, 43, 31, 0.12);
}

/* Pullquote — wyróżniona myśl przewodnia */
.manifesto__pullquote {
  margin: var(--space-lg) 0;
  padding: 1.5rem 0 1.5rem 1.75rem;
  border-left: 4px solid var(--gold);
}

.manifesto__pullquote p {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.3;
  color: var(--brown-dark);
}

/* ============================================================
   10b. CLOSING — tekst domykający po FAQ
   ============================================================ */

.closing {
  background-color: var(--warm-white);
  padding-block: clamp(3rem, 7vw, var(--space-lg));
}

.closing__inner {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.closing__text {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.8;
  color: var(--brown-dark);
  margin-bottom: 1.35rem;
}

/* Zdanie-punchline przed CTA — serif, cieplejszy akcent */
.closing__lead {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--brown-mid);
  margin: var(--space-md) auto 1.75rem;
  max-width: 22ch;
}

/* ============================================================
   MOBILE FIX — długie przyciski CTA nie mogą wychodzić poza ekran.
   Na wąskich ekranach pozwalamy zawinąć tekst zamiast przycinać go
   (np. „Chcę piec chleb, który wychodzi", „Wybieram subskrypcję na 6 miesięcy").
   ============================================================ */
@media (max-width: 480px) {
  .btn {
    white-space: normal;
    text-align: center;
  }
}

/* ============================================================
   OBRAZKI — zdjęcie przy opinii Ewy + galeria portretów w „O mnie"
   ============================================================ */

/* Bochenek przy opinii Ewy (sekcja .community) */
.community__photo {
  margin: 0 auto 1.75rem;
  max-width: 320px;
}

.community__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  transform: rotate(-1.2deg);
  background-color: var(--cream-dark);
  box-shadow: 0 10px 30px rgba(61, 43, 31, 0.12);
}

/* ============================================================
   COMMUNITY — galeria 3 chlebów pod opinią Ewy
   ============================================================ */
.community__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: clamp(0.5rem, 1.6vw, 0.75rem);
  margin: 0 auto 1.75rem;
}

.community__gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  background-color: var(--cream-dark);
}

/* auto-fit sam schodzi 3→2→1; osobny media query zbędny */

/* ============================================================
   MANIFEST — wyróżniony ŚRODKOWY blok listy („To miejsce dla kobiet…")
   ============================================================ */
.manifesto__group-card {
  background-color: var(--warm-white);
  border: 1px solid var(--brown-light);
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin: var(--space-md) 0;
}

/* Reset marginesów krawędziowych, żeby ładnie siedziały w padding karty */
.manifesto__group-card .manifesto__list-intro { margin-top: 0; }
.manifesto__group-card .manifesto__list { margin-bottom: 0; }

/* ============================================================
   MARK — wyróżnienie fraz: GRUBY tekst + ozdobne klamry ∫ (całka)
   po obu stronach. Bez tła. Spójne z „handcrafted" (serif, ciepłe kolory).
   ============================================================ */

.mark,
.mark--strong {
  font-family: var(--font-serif);
  font-weight: 700;          /* wyraźnie grubszy, cięższy od otoczenia */
  font-style: normal;
  font-size: 1.14em;
  color: var(--brown-mid);
}

/* „mocniej" — ciemniejszy tekst, klamry w złocie */
.mark--strong {
  color: var(--brown-dark);
}

/* Ozdobne klamry ∫ — smukłe, większe od tekstu, wyśrodkowane, lekko odsunięte */
.mark::before,
.mark::after,
.mark--strong::before,
.mark--strong::after {
  content: "∫";
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;        /* smuklejsza, elegancka całka */
  font-size: 1.7em;
  line-height: 0;            /* nie rozpycha wysokości wiersza (ładny wrap) */
  vertical-align: -0.34em;   /* wyśrodkowanie względem frazy */
  color: var(--brown-light);
}

.mark::before,
.mark--strong::before { margin-right: 0.12em; }

/* Prawa klamra = lustrzane ∫ (swash zamykający) */
.mark::after,
.mark--strong::after {
  margin-left: 0.12em;
  display: inline-block;
  transform: scaleX(-1);
}

.mark--strong::before,
.mark--strong::after {
  color: var(--gold);
}
