@import url("fonts.css");

/* ==========================================================================
   Ścieżka Zdrowia — design system
   Paleta wywiedziona z motywu Nutritist, z wariantami spełniającymi WCAG AA.
   ========================================================================== */

:root {
  /* --- kolory marki (z oryginalnego logo: jabłko #F0505B / limonka #8DB431) --- */
  --brand:        #E8354D;   /* czerwień jabłka — CTA, akcenty */
  --brand-hover:  #F4506A;
  --brand-soft:   #F8C3CB;   /* miękkie obwódki */
  --brand-ink:    #C21F38;   /* czerwień do tekstu i linków — 5.9:1 na bieli */
  --brand-deep:   #93172A;
  --lime:         #8DB431;   /* limonka z logo — drugi kolor marki */
  --lime-hover:   #9DC63E;
  --lime-soft:    #DDEBB4;
  --lime-ink:     #5F7D1D;   /* limonka do tekstu — 5.4:1 na bieli */
  --lime-deep:    #465D14;
  --accent:       var(--lime);
  --accent-hover: var(--lime-hover);
  --danger:       #C21F38;
  --danger-soft:  #F4506A;

  /* --- neutralne (ciepłe) --- */
  --ink:          #2B2126;   /* nagłówki */
  --body:         #52464C;   /* tekst — 8:1 na bieli */
  --muted:        #7A6C72;   /* podpisy, meta */
  --line:         #F1E3E4;
  --line-strong:  #E0C9CC;
  --white:        #ffffff;
  --bg:           #FDF3F1;   /* róż jabłkowy — tła sekcji */
  --bg-2:         #FFF9F7;
  --bg-3:         #F7FAEC;   /* mgiełka limonki */
  --bg-4:         #FFF3F3;

  /* --- typografia --- */
  --font-head: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.86rem, 0.83rem + 0.14vw, 0.94rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.36vw, 1.44rem);
  --step-2:  clamp(1.44rem, 1.3rem + 0.68vw, 1.9rem);
  --step-3:  clamp(1.72rem, 1.48rem + 1.15vw, 2.5rem);
  --step-4:  clamp(2.05rem, 1.63rem + 1.98vw, 3.3rem);
  --step-5:  clamp(2.4rem, 1.7rem + 3.2vw, 4.2rem);

  /* --- rytm --- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;

  --wrap: 1180px;
  --wrap-narrow: 760px;

  --r-sm: 8px;  --r-md: 14px;  --r-lg: 24px;  --r-xl: 32px;  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(43, 33, 38, .06), 0 2px 8px rgba(43, 33, 38, .04);
  --sh-md: 0 4px 12px rgba(43, 33, 38, .06), 0 12px 32px rgba(147, 23, 42, .07);
  --sh-lg: 0 8px 24px rgba(43, 33, 38, .08), 0 24px 64px rgba(147, 23, 42, .10);
  --sh-brand: 0 8px 24px rgba(232, 53, 77, .25);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 220ms;
}

/* ==========================================================================
   Reset / podstawy
   ========================================================================== */

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

html {
  color-scheme: only light;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-4);
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); font-weight: 700; }
h4 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
h5 { font-size: var(--step-0); font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-ink); text-decoration-color: color-mix(in srgb, var(--brand-ink) 35%, transparent); text-underline-offset: 3px; transition: color var(--dur) var(--ease); }
a:hover { color: var(--brand-deep); text-decoration-color: currentColor; }

img, video { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }
/* Ikony inline w tekście — bez jawnych wymiarów dziedziczą rozmiar czcionki */
p > svg, li > svg, span > svg, strong > svg, .notice > svg, .form-note > svg, .breadcrumbs svg {
  width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.15em;
}
strong, b { font-weight: 650; color: var(--ink); }
small { font-size: var(--step--1); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-7) 0; }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.35em; }
li { margin-bottom: var(--sp-2); }
li::marker { color: var(--brand-ink); }

blockquote {
  margin: var(--sp-6) 0;
  padding: var(--sp-5) var(--sp-6);
  border-left: 4px solid var(--brand);
  background: var(--bg-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--step-1);
  color: var(--ink);
  font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: var(--sp-5) 0; font-size: var(--step--1); }
th, td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-head); font-weight: 700; color: var(--ink); background: var(--bg-2); }

code, kbd { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; background: var(--bg); padding: .15em .4em; border-radius: 5px; }

::selection { background: var(--brand); color: #fff; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--white);
  padding: var(--sp-3) var(--sp-5); border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--white); }

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

/* ==========================================================================
   Layout
   ========================================================================== */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--tinted { background: var(--bg); }
.section--tinted-2 { background: var(--bg-2); }
.section--warm { background: var(--bg-3); }

.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.stack > * + * { margin-top: var(--sp-4); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* Nagłówek sekcji */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: var(--sp-3);
}
.section-head { max-width: 46rem; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; }
.section-head p { font-size: var(--step-1); color: var(--muted); margin-bottom: 0; }

.lead { font-size: var(--step-1); color: var(--muted); line-height: 1.65; }

/* ==========================================================================
   Przyciski
   ========================================================================== */

.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-size: var(--step-0); font-weight: 700;
  line-height: 1; text-decoration: none;
  padding: 1em 1.9em;
  border: 2px solid transparent; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  box-shadow: 0 2px 0 rgba(30, 37, 28, .04);
}
.btn:hover { background: var(--brand-hover); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-brand); }
.btn:active { transform: translateY(0); }

.btn--accent { --btn-bg: var(--lime); --btn-fg: #fff; }
.btn--accent:hover { background: var(--lime-hover); color: #fff; }

.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--white); }
.btn--dark:hover { background: var(--brand-deep); color: var(--white); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost { --btn-fg: var(--ink); }
.btn--ghost:hover { background: var(--white); border-color: var(--brand); color: var(--brand-ink); }

.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); }
.btn--light:hover { background: var(--white); color: var(--brand-deep); }

.btn--sm { font-size: var(--step--1); padding: .8em 1.4em; }
.btn--lg { font-size: clamp(1rem, .96rem + .25vw, 1.12rem); padding: 1.05em 1.9em; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.btn-row.center { justify-content: center; }

/* ==========================================================================
   Nagłówek strony
   ========================================================================== */

.topbar {
  background: var(--ink); color: rgba(255, 255, 255, .82);
  font-size: var(--step--1); padding: .55rem 0;
}
.topbar__inner { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); align-items: center; justify-content: space-between; }
.topbar a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.topbar a:hover { color: var(--brand-soft); }
.topbar__items { display: flex; flex-wrap: wrap; gap: var(--sp-5); align-items: center; }
.topbar__item { display: inline-flex; align-items: center; gap: .45em; }
.topbar__item svg { width: 15px; height: 15px; flex: none; color: var(--brand-hover); }

@media (max-width: 780px) {
  .topbar { font-size: .8rem; }
  .topbar__inner { justify-content: center; gap: .3rem 1rem; }
  .topbar__items { gap: 1rem; justify-content: center; }
  .topbar__item--secondary { display: none; }
}

/* UWAGA: żadnego backdrop-filter/filter/transform na nagłówku ani jego
   przodkach — taka właściwość tworzy blok zawierający dla potomków
   `position: fixed`, przez co wysuwane menu mobilne przestaje być
   pozycjonowane względem okna i zostaje przycięte do wysokości nagłówka. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.site-header.is-stuck { background: #fff; }
.site-header.is-stuck { box-shadow: var(--sh-sm); border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: var(--sp-5); min-height: 78px; }

.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; flex: none; }
.logo svg { width: 44px; height: 44px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__img { height: 48px; width: auto; display: block; }
.logo--badge { background: #fff; border-radius: var(--r-md); padding: .7rem 1.1rem; }
.logo--badge .logo__img { height: 44px; }
.logo__name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--lime-ink); letter-spacing: -0.03em; font-style: italic; }
.logo__name em { color: var(--brand-ink); font-style: italic; }
.logo__tag { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; }
.nav__list > li { margin: 0; position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3em;
  font-family: var(--font-head); font-size: .95rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
  padding: .6rem .8rem; border-radius: var(--r-pill);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.nav__link:hover, .nav__link:focus-visible { background: var(--bg); color: var(--brand-deep); }
.nav__link[aria-current="page"], .nav__link.is-active { color: var(--brand-deep); background: var(--bg); }
.nav__link svg { width: 12px; height: 12px; opacity: .55; transition: transform var(--dur) var(--ease); }
.nav__item--has-sub:hover .nav__link svg { transform: rotate(180deg); }

.nav__sub {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 50;
  min-width: 260px; padding: var(--sp-2);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub li { margin: 0; }
.nav__sub a {
  display: block; padding: .6rem .8rem; border-radius: var(--r-sm);
  font-size: .92rem; font-weight: 500; color: var(--body); text-decoration: none;
}
.nav__sub a:hover { background: var(--bg); color: var(--brand-deep); }
.nav__sub a[aria-current="page"] { color: var(--brand-deep); font-weight: 650; }

.header__cta { flex: none; }
.nav-toggle {
  display: none; flex: none;
  width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: background var(--dur) var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header__cta { display: none; }
  /* Panel wysuwany żyje w kontenerze wielkości okna — dzięki temu przesunięty
     poza ekran nie tworzy poziomego paska przewijania i nie trzeba przycinać <html>. */
  .nav-shell {
    position: fixed; inset: 0; z-index: 200; overflow: hidden;
    visibility: hidden; pointer-events: none;
    transition: visibility 300ms;
  }
  .nav-shell.is-open { visibility: visible; pointer-events: auto; }
  .nav {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 400px);
    background: var(--white); padding: 5.5rem var(--sp-5) var(--sp-6);
    overflow-y: auto; box-shadow: var(--sh-lg);
    transform: translateX(100%); transition: transform 300ms var(--ease);
    margin-left: 0;
  }
  .nav-shell.is-open .nav { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: .8rem 1rem; border-radius: var(--r-sm); font-size: 1.05rem; justify-content: space-between; }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin: 0 0 var(--sp-2) 1rem; padding: 0 0 0 var(--sp-2);
    min-width: 0;
    display: none;
  }
  .nav__item--has-sub.is-open .nav__sub { display: block; }
  .nav__item--has-sub.is-open > .nav__link svg { transform: rotate(180deg); }
  .nav__mobile-cta { margin-top: var(--sp-5); }
  /* Tło przyciemniające leży w tym samym kontekście stosu co panel,
     inaczej nagłówek (z-index:100) chowałby się pod nim razem z menu. */
  .nav-backdrop {
    position: absolute; inset: 0; z-index: 0;
    background: rgba(30, 37, 28, .45);
    opacity: 0; transition: opacity 300ms var(--ease);
  }
  .nav-shell.is-open .nav-backdrop { opacity: 1; }
  .nav { z-index: 1; }
  .nav-close { position: absolute; top: 1.2rem; right: 1.2rem; }
}
@media (min-width: 1061px) {
  .nav__mobile-cta, .nav-close, .nav-backdrop { display: none; }
  .nav-shell { display: contents; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(168deg, var(--bg-2) 0%, var(--bg) 62%, #FBE9E6 100%);
  padding-block: clamp(3rem, 1.5rem + 6vw, 6.5rem) clamp(3.5rem, 2rem + 7vw, 7.5rem);
}
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }

.hero h1 { margin-bottom: var(--sp-5); }
.hero__lead { font-size: var(--step-1); color: #445043; max-width: 34rem; margin-bottom: var(--sp-6); }

.hero__media { position: relative; }
.hero__disc {
  position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: var(--white); box-shadow: var(--sh-lg);
  max-width: 520px; margin-inline: auto;
  border: 12px solid rgba(255, 255, 255, .75);
}
.hero__disc img { width: 100%; height: 100%; object-fit: cover; }

.hero__badge {
  position: absolute; display: flex; align-items: center; gap: .7rem;
  background: var(--white); border-radius: var(--r-lg);
  padding: .85rem 1.15rem; box-shadow: var(--sh-md);
  font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--ink);
  animation: float 5s var(--ease) infinite;
}
.hero__badge span { display: block; font-family: var(--font-body); font-weight: 500; font-size: .78rem; color: var(--muted); }
.hero__badge--1 { top: 6%; left: -2%; }
.hero__badge--2 { bottom: 10%; right: -3%; animation-delay: -2.5s; }
.hero__badge-icon {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: var(--bg); display: grid; place-items: center; color: var(--brand-ink);
}
.hero__badge-icon svg { width: 20px; height: 20px; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.decor { position: absolute; pointer-events: none; user-select: none; opacity: .9; z-index: 0; }
.decor--leaf-1 { width: clamp(70px, 9vw, 130px); bottom: 8%; left: 3%; animation: sway 9s ease-in-out infinite; }
.decor--leaf-2 { width: clamp(90px, 11vw, 165px); top: 6%; right: 4%; animation: sway 11s ease-in-out infinite reverse; }
@keyframes sway { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-12px); } }

.hero__trust { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-6); margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgba(44, 110, 73, .14); }
.hero__trust-item { display: flex; align-items: center; gap: .55rem; font-size: var(--step--1); font-weight: 600; color: #3d4a3d; }
.hero__trust-item svg { width: 18px; height: 18px; color: var(--brand-ink); flex: none; }

/* ==========================================================================
   Karty
   ========================================================================== */

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  height: 100%;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--brand-soft); }
.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--muted); }
.card__icon {
  width: 58px; height: 58px; border-radius: var(--r-md);
  background: var(--bg); color: var(--brand-ink);
  display: grid; place-items: center; margin-bottom: var(--sp-5);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.card__icon svg { width: 28px; height: 28px; }
.card:hover .card__icon { background: var(--brand); color: #fff; }
.card__link {
  margin-top: auto; padding-top: var(--sp-4);
  font-family: var(--font-head); font-weight: 700; font-size: .93rem;
  display: inline-flex; align-items: center; gap: .4em; text-decoration: none;
}
.card__link svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }
/* Rozciągnięty link: nakładka musi być pseudoelementem LINKU (nie karty),
   inaczej przykrywa kartę i zjada kliknięcia, niczego nie linkując. */
.card--stretch .card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.card--flat { background: var(--bg-2); border-color: transparent; }
.card--flat:hover { background: var(--white); }

/* Statystyki */
.stats { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.stat { text-align: center; padding: var(--sp-5) var(--sp-4); background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--line); }
.stat__num { font-family: var(--font-head); font-size: var(--step-4); font-weight: 800; color: var(--brand-ink); line-height: 1; letter-spacing: -0.03em; }
.stat__label { font-size: var(--step--1); color: var(--muted); margin-top: var(--sp-2); font-weight: 500; }

/* Kroki */
.steps { counter-reset: step; display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.step { position: relative; padding-top: clamp(3.4rem, 2.8rem + 2vw, 4.2rem); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-head); font-size: var(--step-4); font-weight: 800;
  color: var(--brand); line-height: 1; letter-spacing: -0.02em;
}
/* cyfra kroku wskakuje ze sprężyną, chwilę po karcie (rv-on/rv-in z main.js) */
.rv-on .step::before { opacity: 0; transform: translateY(16px) scale(.55); }
.step.rv-in::before {
  animation: stepnum .75s cubic-bezier(.34, 1.56, .64, 1) forwards;
  animation-delay: calc(var(--rv-d, 0ms) + 180ms);
}
@keyframes stepnum { to { opacity: 1; transform: none; } }
.step h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.step p { color: var(--muted); font-size: var(--step--1); margin-bottom: 0; }

/* ==========================================================================
   Cennik
   ========================================================================== */

.price-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.price {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-6);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.price:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.price--featured { border-color: var(--brand); box-shadow: var(--sh-md); position: relative; }
.price--featured::before {
  content: "Najczęściej wybierany"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 700;
  font-size: .74rem; letter-spacing: .04em; padding: .4em 1em; border-radius: var(--r-pill); white-space: nowrap;
}
.price__name { font-family: var(--font-head); font-weight: 700; font-size: var(--step-1); color: var(--ink); margin-bottom: var(--sp-2); }
.price__amount { font-family: var(--font-head); font-size: var(--step-3); font-weight: 800; color: var(--brand-ink); letter-spacing: -0.03em; line-height: 1; }
.price__amount small { font-family: var(--font-body); font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price__save { display: inline-block; margin-top: var(--sp-2); background: var(--lime); color: #fff; font-size: .78rem; font-weight: 700; padding: .25em .7em; border-radius: var(--r-pill); }
.price__desc { color: var(--muted); font-size: var(--step--1); margin: var(--sp-4) 0; }
.price__list { list-style: none; padding: 0; margin: 0 0 var(--sp-5); font-size: var(--step--1); }
.price__list li { display: flex; gap: .6em; align-items: flex-start; margin-bottom: var(--sp-3); }
.price__list svg { width: 17px; height: 17px; color: var(--brand-ink); flex: none; margin-top: .28em; }
.price .btn { margin-top: auto; }

/* ==========================================================================
   Kalkulatory
   ========================================================================== */

.calc {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--sh-md);
}
.calc__grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }

.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-family: var(--font-head); font-weight: 650; font-size: .92rem; color: var(--ink); }
.field__hint { font-size: .8rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: var(--step-0); color: var(--ink);
  padding: .78rem .95rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--white); width: 100%;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  -moz-appearance: textfield;
}
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 17px;
  padding-right: 2.6rem; cursor: pointer;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-ink);
  box-shadow: 0 0 0 3px rgba(44, 110, 73, .13);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { font-size: .8rem; color: var(--danger); font-weight: 600; min-height: 0; }

.radio-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.radio-chip { position: relative; flex: 1 1 auto; }
.radio-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-chip span {
  display: block; text-align: center; cursor: pointer;
  padding: .72rem .9rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  font-family: var(--font-head); font-weight: 650; font-size: .9rem; color: var(--body);
  transition: all var(--dur) var(--ease); white-space: nowrap;
}
.radio-chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.radio-chip input:focus-visible + span { outline: 3px solid var(--brand-ink); outline-offset: 2px; }
.radio-chip span:hover { border-color: var(--brand); }

.calc__result {
  margin-top: var(--sp-6); padding: var(--sp-6);
  background: linear-gradient(150deg, var(--bg-2), var(--bg));
  border-radius: var(--r-lg);
  border: 1px solid var(--brand-soft);
}
.calc__result[hidden] { display: none; }
.calc__value { font-family: var(--font-head); font-size: var(--step-4); font-weight: 800; color: var(--brand-deep); line-height: 1; letter-spacing: -0.03em; }
.calc__value small { font-size: .42em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.calc__verdict { font-family: var(--font-head); font-weight: 700; font-size: var(--step-1); margin-top: var(--sp-2); }
.calc__note { font-size: var(--step--1); color: var(--muted); margin-top: var(--sp-3); }

.gauge { margin: var(--sp-5) 0 var(--sp-3); }
.gauge__bar { position: relative; height: 14px; border-radius: var(--r-pill); overflow: hidden; display: flex; }
.gauge__seg { height: 100%; }
.gauge__marker {
  position: absolute; top: -6px; width: 4px; height: 26px; border-radius: 3px;
  background: var(--ink); box-shadow: 0 0 0 3px var(--white);
  transform: translateX(-50%); transition: left 700ms var(--ease);
}
.gauge__scale { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); margin-top: .7rem; }

.calc__breakdown { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); margin-top: var(--sp-5); }
.calc__cell { background: var(--white); border-radius: var(--r-md); padding: var(--sp-4); text-align: center; border: 1px solid var(--line); }
.calc__cell dt { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.calc__cell dd { margin: .35rem 0 0; font-family: var(--font-head); font-size: var(--step-1); font-weight: 800; color: var(--ink); }

.calc-index { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.calc-tile {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-5); text-decoration: none; color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.calc-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--brand-soft); color: inherit; }
.calc-tile__icon { width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--bg); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.calc-tile__icon svg { width: 23px; height: 23px; }
.calc-tile strong { display: block; font-family: var(--font-head); font-size: var(--step-0); color: var(--ink); margin-bottom: .2rem; }
.calc-tile span { font-size: var(--step--1); color: var(--muted); line-height: 1.5; display: block; }

/* ==========================================================================
   Blog
   ========================================================================== */

.post-grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.post-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--brand-soft); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .8rem; color: var(--muted); margin-bottom: var(--sp-3); align-items: center; }
.post-card h3 { font-size: var(--step-1); margin-bottom: var(--sp-3); }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--brand-deep); }
.post-card p { font-size: var(--step--1); color: var(--muted); margin-bottom: var(--sp-4); }
.post-card__more { margin-top: auto; font-family: var(--font-head); font-weight: 700; font-size: .88rem; display: inline-flex; align-items: center; gap: .4em; text-decoration: none; }
.post-card__more svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.post-card:hover .post-card__more svg { transform: translateX(4px); }

.chip {
  display: inline-block; font-family: var(--font-head); font-size: .74rem; font-weight: 700;
  letter-spacing: .03em; padding: .3em .8em; border-radius: var(--r-pill);
  background: var(--bg); color: var(--brand-ink); text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
a.chip:hover { background: var(--brand); color: #fff; }
.chip--accent { background: var(--lime); color: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.article-hero { background: var(--bg-2); padding-block: clamp(2rem, 1rem + 4vw, 4rem) clamp(2rem, 1rem + 3vw, 3rem); }
.article-hero h1 { max-width: 24ch; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-5); font-size: var(--step--1); color: var(--muted); }
.article-meta__author { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.article-meta__author img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.article-meta__author svg { width: 17px; height: 17px; flex: none; color: var(--brand-ink); }

.prose { font-size: 1.075rem; line-height: 1.78; }
.prose > * + * { margin-top: 1.35em; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; margin-bottom: .6em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.9em; margin-bottom: .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose img { border-radius: var(--r-md); margin-inline: auto; box-shadow: var(--sh-sm); }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: var(--step--1); color: var(--muted); text-align: center; margin-top: .8em; font-style: italic; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .55em; }
.prose > p:first-of-type { font-size: 1.16rem; color: var(--ink); }
.prose a { font-weight: 550; }
.prose .img-row { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 2em 0; }
.prose .img-row img { margin: 0; width: 100%; }

.callout {
  background: var(--bg-3); border-radius: var(--r-lg); padding: var(--sp-6);
  border: 1px solid var(--lime-soft); margin: 2em 0;
}
.callout__title { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: var(--step-1); margin-bottom: var(--sp-3); display: flex; align-items: center; gap: .5em; }
.callout__title svg { width: 22px; height: 22px; color: var(--lime-ink); flex: none; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout--warm { background: var(--bg); border-color: var(--brand-soft); }

.toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-5); margin-bottom: var(--sp-6); }
.toc strong { display: block; font-family: var(--font-head); margin-bottom: var(--sp-3); color: var(--ink); }
.toc ol { margin: 0; padding-left: 1.2em; font-size: var(--step--1); }
.toc li { margin-bottom: .4em; }

.share { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.share__label { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--ink); }
.share a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); color: var(--brand-deep); transition: all var(--dur) var(--ease);
}
.share a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.share svg { width: 18px; height: 18px; }

.pagination { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; align-items: center; margin-top: var(--sp-8); }
.pagination a, .pagination span {
  min-width: 44px; height: 44px; padding: 0 .8rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 650; font-size: .93rem;
  text-decoration: none; color: var(--ink); background: var(--white);
  transition: all var(--dur) var(--ease);
}
.pagination a:hover { border-color: var(--brand); background: var(--bg); color: var(--brand-deep); }
.pagination [aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .is-disabled { opacity: .38; pointer-events: none; }

.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-7); }

/* ==========================================================================
   Formularze, FAQ, breadcrumbs, stopka
   ========================================================================== */

.form-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.form-grid .field--full { grid-column: 1 / -1; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-status { padding: var(--sp-4); border-radius: var(--r-sm); font-size: var(--step--1); font-weight: 600; }
.form-status--ok { background: var(--bg); color: var(--brand-deep); border: 1px solid var(--brand-soft); }
.form-status--err { background: var(--bg-4); color: var(--danger); border: 1px solid #ffd4d4; }

.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: var(--muted); line-height: 1.55; }
.checkbox input { width: 19px; height: 19px; margin-top: .18em; flex: none; accent-color: var(--brand-ink); }

/* FAQ na <details>/<summary> (patent z Udekorujto) — dwukolumnowe karty,
   natywna klawiatura i dostępność, treść w DOM od startu (FAQPage JSON-LD). */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); align-items: start; }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.faq-item[open] { box-shadow: var(--sh-md); border-color: var(--brand-soft); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 3.4rem 1.15rem 1.4rem; position: relative;
  font-family: var(--font-head); font-weight: 700; color: var(--ink); line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 1.4rem; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--brand-ink); border-bottom: 2px solid var(--brand-ink);
  transform: translateY(-70%) rotate(45deg); transition: transform var(--dur) var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-item summary:hover { color: var(--brand-ink); }
.faq-item__a { padding: 0 1.4rem 1.3rem; color: var(--body); }
.faq-item__a p { margin: 0; color: var(--muted); }
.faq-item__a p + p { margin-top: var(--sp-3); }

.breadcrumbs { font-size: .82rem; color: var(--muted); margin-bottom: var(--sp-4); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: .4rem; }
.breadcrumbs li + li::before { content: "›"; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-deep); }

.cta-band {
  background: linear-gradient(135deg, #7E1224 0%, #A31C33 55%, #C22B44 100%);
  color: rgba(255, 255, 255, .9); border-radius: var(--r-xl);
  padding: clamp(2rem, 1.2rem + 3.5vw, 3.75rem);
  position: relative; overflow: hidden;
}
.cta-band h2 { color: var(--white); }
.cta-band p { font-size: var(--step-1); max-width: 44ch; }
.cta-band .btn { --btn-bg: var(--lime); --btn-fg: #fff; }
.cta-band .btn--ghost { --btn-bg: transparent; --btn-fg: var(--white); border-color: rgba(255, 255, 255, .45); }
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, .12); color: var(--white); border-color: var(--white); }
.cta-band__decor { position: absolute; right: -60px; bottom: -80px; width: 320px; opacity: .13; pointer-events: none; }

.location-card {
  display: flex; flex-direction: column; gap: var(--sp-3);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-6); height: 100%;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.location-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--brand-soft); }
.location-card__city { font-family: var(--font-head); font-size: var(--step-1); font-weight: 800; color: var(--ink); }
.location-card__addr { font-size: var(--step--1); color: var(--muted); line-height: 1.6; }
.location-card__hours { font-size: var(--step--1); display: flex; align-items: center; gap: .5em; color: var(--brand-deep); font-weight: 600; }
.location-card__hours svg { width: 16px; height: 16px; flex: none; }
.location-card .btn { margin-top: auto; }

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding-block: var(--sp-8) var(--sp-6); margin-top: 0; }
.site-footer h4 { color: var(--white); font-size: var(--step-0); margin-bottom: var(--sp-4); letter-spacing: 0; }
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover { color: var(--brand-soft); }
.site-footer__grid { display: grid; gap: var(--sp-7); grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.site-footer__brand { max-width: 25rem; }
.site-footer .logo__name { color: var(--white); }
.site-footer .logo__tag { color: rgba(255, 255, 255, .5); }

.site-footer__desc { font-size: var(--step--1); margin-top: var(--sp-4); line-height: 1.65; }
.site-footer ul { list-style: none; padding: 0; margin: 0; font-size: var(--step--1); }
.site-footer li { margin-bottom: var(--sp-3); }
.site-footer__bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  justify-content: space-between; align-items: center; font-size: .82rem;
}
.social-row { display: flex; gap: var(--sp-2); }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); transition: all var(--dur) var(--ease);
}
.social-row a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; }

.split { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.15fr .85fr; } }
.split__media img { border-radius: var(--r-xl); box-shadow: var(--sh-md); width: 100%; }
.split--reverse .split__media { order: -1; }
@media (min-width: 880px) { .split--reverse .split__media { order: 0; } .split--reverse .split__body { order: 1; } }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: var(--sp-3); }
.check-list svg { width: 21px; height: 21px; color: var(--brand-ink); flex: none; margin-top: .18em; }

.notice { background: var(--bg-3); border: 1px solid var(--lime-soft); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); font-size: var(--step--1); color: var(--lime-deep); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-footer, .topbar, .cta-band, .share, .nav, .btn { display: none !important; }
  body { color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* ==========================================================================
   Scroll-world hero (strona główna)
   Stan domyślny (bez JS / reduced-motion / .is-static) = stan końcowy sceny.
   Klasa .is-live włącza stany startowe animacji — nadaje je wyłącznie JS.
   ========================================================================== */

.sw { position: relative; height: 340vh; background: linear-gradient(172deg, #FFF9F7 0%, #FDF3F1 55%, #FBEAE7 100%); }
.sw__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }

.sw__bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(42vw 42vw at 82% 12%, rgba(141, 180, 49, .10), transparent 65%),
    radial-gradient(50vw 50vw at 12% 88%, rgba(232, 53, 77, .08), transparent 65%);
}

.sw__apple {
  position: absolute; left: 50%; top: 50%; margin: 0;
  width: min(56vh, 78vw); aspect-ratio: 1;
  transform: translate(-50%, -50%) translateY(-31vh) scale(.28);
  will-change: transform; z-index: 3;
  filter: drop-shadow(0 24px 48px rgba(147, 23, 42, .18));
}
.sw__apple svg { width: 100%; height: 100%; }
.is-live .sw__apple { transform: translate(-50%, -50%) scale(1.06); }

.sw__word {
  position: absolute; left: 50%; top: 72%; transform: translate(-50%, 0);
  z-index: 3; opacity: 0; text-align: center; will-change: transform, opacity;
}
.sw__word img { width: clamp(220px, 30vw, 380px); height: auto; display: block; margin-inline: auto; }
.sw__word em { color: var(--brand-ink); font-style: italic; }
.sw__word span { display: block; font-family: var(--font-body); font-style: normal; font-weight: 500;
  font-size: clamp(.72rem, 1.4vw, .95rem); letter-spacing: .34em; text-transform: uppercase;
  color: var(--muted); margin-top: .5rem; }
.is-static .sw__word, .sw:not(.is-live):not(.is-static) .sw__word { display: none; }

.sw__copy {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) translateY(8vh);
  width: min(92vw, 880px); text-align: center; z-index: 4;
}
.is-live .sw__copy { opacity: 0; pointer-events: none; will-change: transform, opacity; }
.sw__copy h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); margin-bottom: var(--sp-4); }
.sw__copy h1 em { font-style: normal; color: var(--brand-ink); }
.sw__lead { font-size: var(--step-1); color: var(--body); max-width: 40rem; margin: 0 auto var(--sp-6); }
.sw__trust { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); justify-content: center;
  margin-top: var(--sp-6); font-size: var(--step--1); font-weight: 600; color: var(--body); }
.sw__trust span { display: inline-flex; align-items: center; gap: .45em; }
.sw__trust svg { width: 17px; height: 17px; color: var(--lime-ink); flex: none; }

.sw__chip {
  position: absolute; z-index: 2; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-lg); border: 5px solid #fff; will-change: transform, opacity;
  animation: sw-float 6.5s ease-in-out infinite;
}
.sw__chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw__chip--1 { left: 5%;  top: 15%;  width: clamp(90px, 12.5vw, 185px); aspect-ratio: 1; animation-delay: -1.2s; }
.sw__chip--2 { right: 4%; top: 13%;  width: clamp(110px, 14vw, 215px); aspect-ratio: 4/3; animation-delay: -3.4s; }
.sw__chip--3 { left: 7%;  bottom: 22%; width: clamp(96px, 12.5vw, 190px); aspect-ratio: 4/3; animation-delay: -2.2s; }
.sw__chip--4 { right: 7%; bottom: 24%; width: clamp(88px, 11.5vw, 175px); aspect-ratio: 1; animation-delay: -4.6s; }
.sw__chip--5 { left: 14%; top: 8%;  width: clamp(64px, 8vw, 118px); aspect-ratio: 1; animation-delay: -0.6s; }
.sw__chip--6 { right: 2.5%; bottom: 3%; width: clamp(64px, 8vw, 124px); aspect-ratio: 1; animation-delay: -5.2s; }
@keyframes sw-float { 0%, 100% { margin-top: 0; } 50% { margin-top: -12px; } }
.is-live .sw__chip { opacity: 0; animation: none; }
.sw--done .sw__chip { animation: sw-float 6.5s ease-in-out infinite; }

.sw__hint {
  position: absolute; left: 50%; bottom: 4vh; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted); z-index: 5;
}
.sw__hint svg { width: 20px; height: 20px; color: var(--brand-ink); animation: sw-bob 1.6s ease-in-out infinite; }
@keyframes sw-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.is-static .sw__hint, .sw:not(.is-live) .sw__hint { display: none; }

.is-static .sw { height: auto; }
.is-static .sw__sticky { height: auto; min-height: 92vh; position: static; padding: 8rem 0 5rem; }

@media (max-width: 720px) {
  .sw { height: 260vh; }
  .sw__apple { width: min(46vh, 88vw); }
  .sw__chip--5, .sw__chip--6 { display: none; }
  .sw__chip { border-width: 3px; }
  .sw__copy { width: 94vw; }
  /* rogi ekranu — z dala od CTA i trust row */
  .sw__chip--1 { left: 3%;  top: 10%; width: clamp(72px, 19vw, 120px); }
  .sw__chip--2 { right: 3%; top: 9%;  width: clamp(80px, 21vw, 132px); }
  .sw__chip--3 { left: 2%;  bottom: 3%; width: clamp(76px, 20vw, 124px); }
  .sw__chip--4 { right: 2%; bottom: 3%; width: clamp(70px, 18vw, 112px); }
}

/* ==========================================================================
   Wybajerzone kalkulatory: animacje wyniku
   ========================================================================== */

.calc__result.is-armed > * { animation: calc-pop 520ms var(--ease) backwards; }
.calc__result.is-armed > *:nth-child(2) { animation-delay: 70ms; }
.calc__result.is-armed > *:nth-child(3) { animation-delay: 140ms; }
.calc__result.is-armed > *:nth-child(4) { animation-delay: 210ms; }
.calc__result.is-armed > *:nth-child(5) { animation-delay: 280ms; }
.calc__result.is-armed > *:nth-child(6) { animation-delay: 350ms; }
@keyframes calc-pop {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.calc__value { font-variant-numeric: tabular-nums; }

.confetti-bit {
  position: absolute; width: 10px; height: 10px; border-radius: 3px;
  pointer-events: none; z-index: 20; top: 0; left: 50%;
  animation: confetti-fall 1.5s cubic-bezier(.2, .6, .4, 1) forwards;
}
@keyframes confetti-fall {
  0%   { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--cx), var(--cy)) rotate(var(--cr)); }
}

@media (prefers-reduced-motion: reduce) {
  .sw__chip, .sw__hint svg { animation: none !important; }
  .calc__result.is-armed > * { animation: none !important; }
}

/* Programowy fokus na wyniku kalkulatora — bez czerwonej obwódki */
.calc__result:focus, .calc__result:focus-visible { outline: none; }

/* ===== Patenty z motywu Nutritist (odtworzone w CSS, bez plików motywu) =====
   P1: promień „płatka" — 3 rogi zaokrąglone, 1 ostry, rotujący między kartami.
   P2: kafelki ikon z cyklem pastelowych akcentów marki.
   P3: pierścienie na pasmie CTA.
   P4: karta cenowa związana jednym akcentem (pasek, checki, tło). */
.grid .card, .calc-tile { border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 0; }
.grid .card:nth-child(4n+2), .calc-tile:nth-child(4n+2) { border-radius: var(--r-lg) var(--r-lg) 0 var(--r-lg); }
.grid .card:nth-child(4n+3), .calc-tile:nth-child(4n+3) { border-radius: var(--r-lg) 0 var(--r-lg) var(--r-lg); }
.grid .card:nth-child(4n), .calc-tile:nth-child(4n) { border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg); }

.card__icon, .calc-tile__icon { border-radius: var(--r-md) var(--r-md) var(--r-md) 0; }
.grid .card:nth-child(3n+1) .card__icon { background: var(--bg-3); color: var(--lime-ink); }
.grid .card:nth-child(3n+2) .card__icon { background: var(--bg); color: var(--brand-ink); }
.grid .card:nth-child(3n) .card__icon { background: #FBF7E2; color: #7A6E1C; }

.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .09; pointer-events: none;
  background:
    repeating-radial-gradient(circle at 90% 8%, transparent 0 30px, #fff 30px 31.5px),
    repeating-radial-gradient(circle at 4% 96%, transparent 0 38px, #fff 38px 39.5px);
}

.price { --acc: var(--lime-ink); border-top: 4px solid var(--acc); }
.price--featured { --acc: var(--brand); }
.price__list svg { color: var(--acc); }
.price__save { background: var(--acc); }

/* Podpis odręczny właścicielki (o-nas) */
.signature { margin-top: var(--sp-5); width: 220px; height: auto; opacity: .85; }

/* Dekoracje sekcji: pływające kółka ze zdjęciami i sygnety z paralaksą.
   z-index -1 w kontekście sekcji (sekcje mają z-index 15) = nad tłem, pod treścią. */
.deco {
  position: absolute; z-index: -1; aspect-ratio: 1;
  pointer-events: none; user-select: none; will-change: transform;
}
.deco img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  box-shadow: var(--sh-lg); display: block; }
.deco svg { width: 100%; height: 100%; display: block; }
/* Wąskie ekrany: kółka ze zdjęciami wjeżdżałyby w tekst — zostają tylko sygnety */
@media (max-width: 780px) { .deco--photo { display: none; } }

/* Ziarno papieru (patent z Jaworzanki/Udekorujto): zdejmuje „cyfrowość" z tł.
   z-index 60 = nad treścią (15) i sceną świata (10), pod headerem (100). */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

/* Marquee — pochylony pas haseł (własny overflow-wrap tnie poziomy scroll) */
.marquee-wrap { overflow: hidden; position: relative; z-index: 15; }
.marquee { background: var(--ink); color: var(--white); overflow: hidden; padding: 14px 0;
  transform: rotate(-.8deg) scale(1.03); }
.marquee__track { display: flex; width: max-content; animation: marq 46s linear infinite; }
.marquee__track span { font-family: var(--font-head); font-size: var(--step-0); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  display: flex; align-items: center; gap: 30px; padding: 0 15px; }
.marquee__track i { font-style: normal; color: var(--lime); font-size: .7em; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none !important; transform: none !important; }
}

/* (girlandy .pathsep usunięte na życzenie — nie pasowały do charakteru) */

/* Szachownica siatki (offset grid) — parzyste kafle zsunięte (marginesem, żeby
   nie kolidować z transformami reveal/hover), hover przechyla w kontrze */
.grid-offset > * { transition: transform .5s var(--ease); }
.grid-offset > *:nth-child(even) { margin-top: 20px; }
.grid-offset > *:hover { transform: translateY(-6px) rotate(-.8deg); }
.grid-offset > *:nth-child(even):hover { transform: translateY(-2px) rotate(.8deg); }
@media (max-width: 600px) { .grid-offset > *:nth-child(even) { margin-top: 0; } }

/* Pierścienie (patent Nutritist) na jasnych sekcjach */
.section--rings::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .05; pointer-events: none;
  background:
    repeating-radial-gradient(circle at 92% 8%, transparent 0 34px, var(--brand) 34px 35.5px),
    repeating-radial-gradient(circle at 6% 94%, transparent 0 42px, var(--lime-ink) 42px 43.5px);
}

/* Opinie z Google */
.review { margin: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.review__stars { color: var(--brand); letter-spacing: .18em; font-size: 1.05rem; }
.review blockquote { margin: 0; color: var(--body); line-height: 1.65; }
.review figcaption { margin-top: auto; padding-top: var(--sp-3); font-size: .85rem; color: var(--muted); font-weight: 600; }

/* Karta Dużej Rodziny — znak partnera programu */
.kdr { display: flex; align-items: center; gap: var(--sp-5); margin-top: var(--sp-5);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5); flex-wrap: wrap; }
.kdr img { width: clamp(200px, 30vw, 280px); height: auto; border-radius: var(--r-sm); flex: none; }
.kdr p { margin: 0; color: var(--muted); font-size: var(--step--1); flex: 1 1 240px; }

/* Pasek informacyjny (urlop itp.) — spokojny, pod headerem, zamykalny */
.notice-band { background: var(--bg-3); border-bottom: 1px solid var(--line);
  position: relative; z-index: 15; }
.notice-band__inner { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; }
.notice-band__inner > svg { width: 18px; height: 18px; color: var(--lime-ink); flex: none; }
.notice-band p { margin: 0; font-size: .9rem; color: var(--body); line-height: 1.5; }
.notice-band strong { color: var(--lime-ink); }
.notice-band__x { background: none; border: 0; cursor: pointer; font-size: 1.35rem;
  color: var(--muted); margin-left: auto; padding: 0 .2rem; line-height: 1; flex: none; }
.notice-band__x:hover { color: var(--ink); }

/* Baner zgody na statystyki */
.consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300;
  max-width: 600px; margin-inline: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: 1rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center;
}
.consent p { margin: 0; font-size: .88rem; color: var(--muted); flex: 1 1 260px; }
.consent a { color: var(--brand-ink); }
.consent__btns { display: flex; gap: .5rem; }

/* Scroll-world (silnik wstrzykuje własny CSS) — motyw pod markę */
.world-mount { --sw-bg: #FDF3F1; --sw-ink: #2B2126; --sw-ink-soft: #7A6C72;
  --sw-accent: #C21F38; --sw-font-display: var(--font-head); --sw-font-body: var(--font-body); }

/* Scroll-world: chowamy chip marki silnika (mamy własny header z logo)
   i malujemy CTA finału na czerwień marki */
.world-mount .sw-brand { display: none !important; }
.world-mount .sw-btn--primary { background: var(--brand) !important; color: #fff !important; }
.world-mount .sw-btn--primary:hover { background: var(--brand-ink) !important; }

/* Topbar musi leżeć nad fixed warstwami silnika (stage z10 – route z40),
   inaczej przy scrollu 0 nad headerem prześwituje pasek wideo. */
.topbar { position: relative; z-index: 90; }

/* Silnik daje html{overflow-x:hidden}, my body{overflow-x:hidden} — razem
   body staje się kontenerem przewijania i sticky header przestaje się kleić
   na stronie głównej. `clip` przycina bez tworzenia scroll containera;
   starsze przeglądarki zignorują i zostaną przy `hidden`. */
html, body { overflow-x: clip; }

/* Za końcem świata (klasa sw-past z silnika) warstwy UI schodzą ze sceny.
   `visibility` musi iść w parze z opacity — kopia finału trzyma inline
   pointer-events:auto, więc samo wygaszenie zostawiłoby niewidzialne,
   klikalne CTA nad treścią strony. Sam kadr filmu (stage) i sky żyją dłużej:
   treść nasuwa się NA nie (sekcje mają z-index 15 > stage 10), a scena
   odjeżdża transformem w silniku — znika dopiero przy sw-gone. */
.world-mount .sw-sky, .world-mount .sw-stage, .world-mount .sw-copylayer,
.world-mount .sw-route, .world-mount .sw-scrollbar, .world-mount .sw-hint {
  transition: opacity .35s ease, visibility 0s 0s;
}
.world-mount.sw-past .sw-copylayer, .world-mount.sw-past .sw-route,
.world-mount.sw-past .sw-scrollbar, .world-mount.sw-past .sw-hint,
.world-mount.sw-gone .sw-sky, .world-mount.sw-gone .sw-stage {
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility 0s .35s;
}

/* Treść strony przykrywa odjeżdżający kadr świata (stage z10, copylayer z20
   jest już schowany przy sw-past, zanim treść tu dojedzie). */
main > .section { position: relative; z-index: 15; }

/* Etykiety przy kropkach trasy świata (Wir/Talerz/Start) — zbędne. */
.world-mount .sw-route__label { display: none !important; }

/* Silnik wstrzykuje swój CSS w @layer sw, więc bezwarstwowy reset
   `img, video { height: auto }` (linia ~115) wygrywa z jego `height: 100%`
   i media kurczyły się do 430x242 px. Przywracamy pełne krycie sceny. */
.world-mount .sw-scene__video,
.world-mount .sw-scene__still { height: 100%; }

/* Rezerwacja miejsca zanim silnik wstrzyknie wysoki track — bez tego treść
   pod światem skacze w górę viewportu przy montowaniu (CLS ~0.14). */
.world-mount { min-height: 100vh; min-height: 100svh; }

/* Telefony pionowe: pełnoekranowy object-fit:cover kroił kadr 16:9 do
   środkowych ~26% szerokości — a scena 1 ma pusty środek (wir), więc ekran
   świecił tłem. Zamiast tego: pasmo medialne u góry (60svh, crop ~45% kadru)
   miękko wtopione w tło + płytsza mgła pod tekstem. */
@media (max-width: 860px) and (orientation: portrait) {
  .world-mount .sw-scene__video,
  .world-mount .sw-scene__still {
    height: 60vh;
    height: 60svh;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 98%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 98%);
  }
  .world-mount .sw-copylayer::before { height: 48%; }
}
