/* ============================================================
   kurniki.online — strona „Funkcje”
   Warstwa na css/style.css: korzysta z jego tokenów, nawigacji,
   przycisków i stopki. Tutaj są wyłącznie sekcje tej strony,
   wszystkie z przedrostkiem .f- , żeby nic nie kolidowało
   z klasami strony głównej.
   ============================================================ */

:root {
  /* semantyka statusów — te same barwy co w aplikacji */
  --ok-50: #ecfdf5;
  --ok-100: #d1fae5;
  --ok-500: #10b981;
  --ok-600: #059669;
  --ok-700: #047857;
  --ok-900: #064e3b;
  --bad-50: #fef2f2;
  --bad-600: #dc2626;
  --bad-700: #b91c1c;

  /* ziarno: rozbija cyfrową płaskość dużych, pustych płaszczyzn */
  --grain: 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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");

  --section-y: clamp(4rem, 10vh, 7.5rem);
}

/* Liczby w danych zawsze w jednakowej szerokości znaku. */
.f-num,
.f-kpi__value,
.f-calc__big,
.f-plan__amount,
.f-norm__val,
.f-dm td,
.f-dm__val {
  font-variant-numeric: tabular-nums;
}

/* ---------- wspólne elementy sekcji ---------- */
.f-section { padding-block: var(--section-y); position: relative; }
.f-section--tint { background: var(--stone-50); }
.f-section--white { background: #fff; }

.f-head { max-width: 44rem; }
.f-head--center { margin-inline: auto; text-align: center; }

.f-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-700);
}
.f-kicker::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-500);
}
.f-head--center .f-kicker::before { display: none; }

.f-h2 {
  margin-top: 0.85rem;
  font-size: clamp(1.95rem, 4.2vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.f-lead {
  margin-top: 1rem;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--stone-600);
  max-width: 62ch;
  text-wrap: pretty;
}
.f-head--center .f-lead { margin-inline: auto; }

.f-note {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--stone-500);
  max-width: 64ch;
}

.f-accent { color: var(--brand-700); }
.f-hl {
  background: linear-gradient(transparent 62%, var(--brand-200) 62%);
  padding-inline: 0.06em;
}

/* ============================================================
   1. HERO
   ============================================================ */
.f-hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vh, 4.5rem) clamp(3.5rem, 9vh, 6rem);
  overflow: hidden;
}
.f-hero__glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(70rem, 110%);
  height: 42rem;
  background:
    radial-gradient(45% 55% at 72% 30%, rgb(245 158 11 / 0.18), transparent 70%),
    radial-gradient(38% 46% at 92% 8%, rgb(217 119 6 / 0.13), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.f-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.f-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.55rem;
  border: 1px solid var(--brand-200);
  background: var(--brand-50);
  color: var(--brand-800);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 550;
}
.f-badge__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 3px rgb(245 158 11 / 0.22);
}
.f-hero h1 {
  margin-top: 1.4rem;
  font-size: clamp(2.4rem, 5.3vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.032em;
  line-height: 1.03;
}
.f-hero h1 span { color: var(--brand-700); display: block; }
.f-hero__sub {
  margin-top: 1.3rem;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.62;
  color: var(--stone-600);
  max-width: 34rem;
  text-wrap: pretty;
}
.f-hero__ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.f-hero__note {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--stone-500);
}
.f-hero__note strong { color: var(--stone-800); font-weight: 600; }

/* --- podgląd panelu w hero --- */
.f-preview {
  position: relative;
  margin-inline-end: clamp(0rem, -2vw + 1rem, 0rem);
}
/* karta-cień pod spodem: głębia bez sztucznego 3D */
.f-preview::before {
  content: "";
  position: absolute;
  inset: 1.4rem -1.1rem -1.4rem 1.1rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--stone-200);
  opacity: 0.55;
  transform: rotate(1.6deg);
}
.f-preview__card {
  position: relative;
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 20px;
  padding: 1.15rem;
  box-shadow: 0 2px 4px rgb(28 25 23 / 0.05), 0 26px 60px -18px rgb(120 53 15 / 0.22);
  display: grid;
  gap: 0.85rem;
}
.f-preview__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.f-preview__title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.f-preview__sub { font-size: 0.76rem; color: var(--stone-500); margin-top: 0.15rem; }
.f-streak {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--ok-50);
  color: var(--ok-700);
  border: 1px solid var(--ok-100);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.f-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.f-kpi {
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  padding: 0.6rem 0.65rem;
}
.f-kpi--hi { background: var(--brand-50); border-color: var(--brand-200); }
.f-kpi__label { font-size: 0.66rem; font-weight: 500; color: var(--stone-500); }
.f-kpi__value {
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.f-kpi__value small { font-size: 0.7em; font-weight: 550; color: var(--stone-500); }
.f-kpi__hint { margin-top: 0.15rem; font-size: 0.66rem; color: var(--stone-500); }
.f-kpi__hint--up { color: var(--ok-600); }

.f-preview__chart {
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  padding: 0.75rem 0.8rem 0.5rem;
}
.f-preview__chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.f-preview__chart-head span { color: var(--stone-500); font-weight: 500; }
.f-preview__chart svg { width: 100%; height: 84px; display: block; }
.f-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.64rem;
  color: var(--stone-400);
  margin-top: 0.3rem;
}

.f-normline + .f-normline { margin-top: 0.6rem; }
.f-normline__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.76rem;
  gap: 0.75rem;
}
.f-normline__head b { font-weight: 600; }
.f-normline__head span { color: var(--stone-500); }
.f-minibar {
  margin-top: 0.3rem;
  height: 6px;
  border-radius: 999px;
  background: var(--stone-200);
  overflow: hidden;
}
.f-minibar span { display: block; height: 100%; border-radius: 999px; background: var(--ok-500); }
.f-minibar span.is-warn { background: var(--brand-400); }

/* ============================================================
   2. CZTERY RZECZY — lista redakcyjna, nie kafelki
   ============================================================ */
.f-why__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.f-why__aside { position: sticky; top: 6.5rem; }
.f-why__foot {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--stone-200);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--stone-600);
}
.f-why__foot strong { color: var(--stone-900); font-weight: 600; }

.f-why__list { display: grid; }
.f-why__item {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0 1.2rem;
  padding-block: 1.8rem;
  border-top: 1px solid var(--stone-200);
}
.f-why__item:first-child { border-top: 0; padding-top: 0; }
.f-why__idx {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 650;
  line-height: 1;
  color: var(--stone-300);
  letter-spacing: -0.04em;
}
.f-why__item h3 {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.f-why__item p {
  margin-top: 0.5rem;
  color: var(--stone-600);
  line-height: 1.62;
  max-width: 48ch;
}
.f-why__ex {
  margin-top: 0.9rem;
  padding: 0.7rem 0 0.7rem 1rem;
  border-left: 2px solid var(--brand-400);
  background: linear-gradient(90deg, var(--brand-50), transparent 70%);
  border-radius: 0 8px 8px 0;
  font-size: 0.94rem;
  color: var(--stone-700);
  max-width: 52ch;
}
.f-why__ex strong { font-weight: 600; color: var(--stone-900); }

/* ============================================================
   3. PROBLEM — zdjęcie + przełączana lista
   ============================================================ */
.f-problem__grid {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
}
.f-shot {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--stone-100);
  border: 1px solid var(--stone-200);
  box-shadow: 0 3px 6px rgb(28 25 23 / 0.05), 0 30px 60px -24px rgb(120 53 15 / 0.28);
}
.f-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s var(--ease-out), transform 1.4s var(--ease-out);
}
.f-shot img.is-visible { opacity: 1; transform: none; }

.f-swap { display: grid; gap: 0.4rem; }
.f-swap__item {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  position: relative;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.f-swap__item:hover { background: #fff; border-color: var(--stone-200); }
.f-swap__item:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.f-swap__item.is-active {
  background: #fff;
  border-color: var(--brand-200);
  box-shadow: var(--shadow-soft);
}
.f-swap__icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--stone-100);
  color: var(--stone-500);
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.f-swap__item.is-active .f-swap__icon { background: var(--brand-100); color: var(--brand-700); }
.f-swap__icon svg { width: 1.15rem; height: 1.15rem; }
.f-swap__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.f-swap__desc { display: block; margin-top: 0.2rem; font-size: 0.92rem; color: var(--stone-600); line-height: 1.55; }
.f-swap__bar {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 0.5rem;
  height: 2px;
  border-radius: 2px;
  background: var(--stone-200);
  opacity: 0;
}
.f-swap__item.is-active .f-swap__bar { opacity: 1; }
.f-swap__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: var(--brand-500);
}

/* ============================================================
   4. TRZY KROKI — schodkowa oś, echo strony głównej
   ============================================================ */
.f-steps { margin-top: 3rem; display: grid; gap: 1rem; }
.f-step {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1.6rem 1.8rem;
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  max-width: 58rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.f-step:hover { transform: translateY(-2px); box-shadow: var(--shadow-lifted); }
.f-step:nth-child(2) { margin-left: clamp(0rem, 7vw, 6rem); }
.f-step:nth-child(3) { margin-left: clamp(0rem, 14vw, 12rem); }
.f-step__num {
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  color: var(--brand-700);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 650;
}
.f-step h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; }
.f-step p { margin-top: 0.5rem; color: var(--stone-600); line-height: 1.62; max-width: 54ch; }

/* ============================================================
   5. DASHBOARD — wierna miniatura panelu
   ============================================================ */
.f-dm {
  margin-top: 2.8rem;
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 3px 6px rgb(28 25 23 / 0.05), 0 34px 70px -30px rgb(120 53 15 / 0.26);
  font-size: 0.8rem;
}
.f-dm__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--stone-200);
  background: var(--stone-50);
}
.f-dm__title { font-family: var(--font-display); font-weight: 650; font-size: 1rem; }
.f-dm__sub { font-size: 0.72rem; color: var(--stone-500); margin-top: 0.1rem; }
.f-dm__tools { display: flex; align-items: center; gap: 0.55rem; font-size: 0.72rem; color: var(--stone-500); }
.f-dm__btn {
  background: var(--brand-600);
  color: #fff;
  padding: 0.35rem 0.7rem;
  border-radius: 9px;
  font-weight: 600;
}
.f-dm__avatar {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-100);
  color: var(--brand-800);
  font-weight: 650;
  font-size: 0.68rem;
}
.f-dm__body { padding: 1.1rem; display: grid; gap: 0.8rem; }
.f-dm__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.f-dm__panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.7rem; }
.f-dm__panel {
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
}
.f-dm__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.f-dm__panel-title { font-weight: 600; font-size: 0.82rem; }
.f-dm__panel-meta { font-size: 0.68rem; color: var(--stone-400); }
.f-dm__chart svg { width: 100%; height: 96px; display: block; }

.f-norm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 0.75rem;
  align-items: center;
  padding-block: 0.35rem;
}
.f-norm-row + .f-norm-row { border-top: 1px dashed var(--stone-200); }
.f-norm-row__name { font-size: 0.76rem; font-weight: 550; color: var(--stone-700); }
.f-norm-row__val { font-size: 0.72rem; color: var(--stone-500); }
.f-track {
  grid-column: 1 / -1;
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: var(--stone-200);
  overflow: visible;
}
.f-track__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: var(--ok-500);
  transition: width 1.1s var(--ease-out);
}
.f-track__fill--warn { background: var(--brand-400); }
.f-track__mark {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  border-radius: 2px;
  background: var(--stone-700);
}
.f-dm__hint { margin-top: 0.55rem; font-size: 0.68rem; color: var(--stone-400); }

.f-feed { display: grid; gap: 0.55rem; }
.f-feed__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 0.75rem; }
.f-feed__name { font-size: 0.76rem; font-weight: 550; color: var(--stone-700); }
.f-feed__days { font-size: 0.72rem; color: var(--stone-500); }
.f-feed__days b { color: var(--stone-900); font-weight: 600; }

.f-annot {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--stone-200);
}
.f-annot__item { padding: 1.5rem 1.6rem 0; }
.f-annot__item + .f-annot__item { border-left: 1px solid var(--stone-200); }
.f-annot__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone-400);
}
.f-annot__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--brand-400); }
.f-annot__dot--ok { background: var(--ok-500); }
.f-annot__dot--stone { background: var(--stone-400); }
.f-annot__item h3 { margin-top: 0.55rem; font-size: 1.02rem; font-weight: 600; }
.f-annot__item p { margin-top: 0.4rem; font-size: 0.92rem; color: var(--stone-600); line-height: 1.6; }

/* ============================================================
   6. DZIEŃ ANNY — tablet + sceny
   ============================================================ */
.f-anna__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.f-tablet { position: relative; max-width: 26rem; margin-inline: auto; width: 100%; }
.f-tablet__body {
  position: relative;
  background: linear-gradient(155deg, var(--stone-700), var(--stone-900));
  border-radius: 28px;
  padding: 0.9rem;
  box-shadow: 0 4px 8px rgb(28 25 23 / 0.1), 0 40px 70px -28px rgb(28 25 23 / 0.45);
}
.f-tablet__cam {
  position: absolute;
  top: 0.42rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--stone-600);
}
.f-tablet__screen {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--stone-100);
  aspect-ratio: 3 / 4;
}
.f-tablet__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.55s var(--ease-out);
}
.f-tablet__screen img.is-active { opacity: 1; }
.f-tablet__badge {
  position: absolute;
  z-index: 2;
  top: 0.6rem;
  right: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 7px;
  background: rgb(28 25 23 / 0.82);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}
.f-tablet__badge i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--ok-500);
}
.f-tablet__dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 1rem; }
.f-tablet__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--stone-300);
  cursor: pointer;
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.f-tablet__dot.is-active { background: var(--brand-600); transform: scale(1.25); }
.f-tablet__dot:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 3px; }

.f-scenes { display: grid; gap: 0.4rem; }
.f-scene {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.3rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.f-scene:hover { background: #fff; border-color: var(--stone-200); }
.f-scene:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.f-scene.is-active { background: #fff; border-color: var(--brand-200); box-shadow: var(--shadow-soft); }
.f-scene__time {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-400);
}
.f-scene.is-active .f-scene__time { color: var(--brand-700); }
.f-scene__title {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.f-scene__desc { display: block; margin-top: 0.35rem; font-size: 0.93rem; color: var(--stone-600); line-height: 1.58; }
.f-scene__bar {
  position: absolute;
  left: 1.3rem;
  right: 1.3rem;
  bottom: 0.6rem;
  height: 2px;
  border-radius: 2px;
  background: var(--stone-200);
  opacity: 0;
}
.f-scene.is-active .f-scene__bar { opacity: 1; }
.f-scene__bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--brand-500); }

/* ============================================================
   7. SIEDEM RZECZY — bento
   ============================================================ */
.f-bento {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}
.f-cell {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 20px;
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.f-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-lifted); }
.f-cell h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.012em; }
.f-cell > p { margin-top: 0.45rem; font-size: 0.93rem; color: var(--stone-600); line-height: 1.55; }
.f-cell--3 { grid-column: span 3; }
.f-cell--2 { grid-column: span 2; }

.f-cell__viz { margin-top: auto; padding-top: 1.2rem; position: relative; }
.f-cell__viz svg { width: 100%; height: 92px; display: block; }
.f-chip {
  position: absolute;
  top: 0.6rem;
  right: 0;
  padding: 0.24rem 0.6rem;
  border-radius: 8px;
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  color: var(--brand-800);
  font-size: 0.7rem;
  font-weight: 600;
}
.f-groups { margin-top: auto; padding-top: 1.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.f-group {
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: var(--stone-50);
}
.f-group__label { font-size: 0.68rem; color: var(--stone-500); font-weight: 500; }
.f-group__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.f-group__sub { font-size: 0.68rem; color: var(--stone-500); }

.f-cell--amber { background: var(--brand-50); border-color: var(--brand-200); }
.f-stat {
  margin-top: auto;
  padding-top: 1.2rem;
}
.f-stat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.f-stat__val { font-family: var(--font-display); font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; }
.f-stat__lbl { font-size: 0.72rem; color: var(--brand-800); }
.f-stat__bar { margin-top: 0.5rem; height: 7px; border-radius: 999px; background: rgb(180 83 9 / 0.16); overflow: hidden; }
.f-stat__bar span { display: block; height: 100%; border-radius: 999px; background: var(--brand-600); }

/* Zdjęcie wypełnia kartę, a nie dyktuje wysokość całego rzędu bento. */
.f-cell--photo {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 15rem;
  justify-content: flex-end;
  border-color: transparent;
}
.f-cell--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.f-cell--photo .f-cell__copy {
  position: relative;
  padding: 2.5rem 1.4rem 1.4rem;
  background: linear-gradient(to top, rgb(28 25 23 / 0.9), rgb(28 25 23 / 0.74) 52%, rgb(28 25 23 / 0) 100%);
}
.f-cell--photo h3 { font-size: 1.05rem; color: #fff; }
.f-cell--photo .f-cell__copy p {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.84);
}

.f-flow { margin-top: auto; padding-top: 1.2rem; display: grid; gap: 0.3rem; }
.f-flow span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 9px;
  background: var(--stone-100);
  color: var(--stone-600);
  font-size: 0.78rem;
  font-weight: 550;
}
.f-flow span::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--stone-300);
}
.f-flow span.is-done { background: var(--ok-50); color: var(--ok-700); }
.f-flow span.is-done::before { background: var(--ok-500); }

.f-price-lockup { margin-top: auto; padding-top: 1.2rem; display: flex; align-items: baseline; gap: 0.6rem; }
.f-price-lockup b {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}
.f-price-lockup span { font-size: 0.8rem; color: var(--stone-500); }
.f-modes { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.f-modes span {
  padding: 0.28rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--stone-200);
  font-size: 0.72rem;
  color: var(--stone-600);
}
.f-modes span:first-child { background: var(--stone-900); border-color: var(--stone-900); color: var(--stone-50); }

.f-cell--dark {
  position: relative;
  border-color: transparent;
  color: var(--stone-100);
  background-color: var(--stone-900);
  background-image:
    linear-gradient(100deg, rgb(28 25 23 / 0.94) 0%, rgb(28 25 23 / 0.78) 48%, rgb(28 25 23 / 0.5) 100%),
    url("../img/funkcje/raport-hero.webp");
  background-size: cover;
  background-position: center right;
  justify-content: space-between;
  gap: 1.4rem;
}
.f-cell--dark h3 { color: #fff; }
.f-cell--dark > p { color: var(--stone-300); }
.f-docs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.f-doc {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.16);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.f-doc svg { width: 0.95rem; height: 0.95rem; }

/* ============================================================
   8. KALKULATOR
   ============================================================ */
.f-calc {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.f-calc__panel {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 20px;
  padding: 1.7rem 1.8rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1.35rem;
}
.f-field { display: grid; gap: 0.5rem; }
.f-field__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.f-field__label { font-size: 0.88rem; font-weight: 550; color: var(--stone-700); }
.f-field__out {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--brand-800);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  border-radius: 9px;
  padding: 0.1rem 0.5rem;
  white-space: nowrap;
}

input[type="range"].f-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
input[type="range"].f-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--brand-500) 0 var(--fill, 50%),
    var(--stone-200) var(--fill, 50%) 100%
  );
}
input[type="range"].f-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--stone-200);
}
input[type="range"].f-range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--brand-500);
}
input[type="range"].f-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand-600);
  box-shadow: 0 1px 4px rgb(120 53 15 / 0.28);
  transition: transform 0.15s var(--ease-out);
}
input[type="range"].f-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand-600);
  box-shadow: 0 1px 4px rgb(120 53 15 / 0.28);
}
input[type="range"].f-range:active::-webkit-slider-thumb { transform: scale(0.92); }
input[type="range"].f-range:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 4px; border-radius: 999px; }
.f-field__hint { font-size: 0.76rem; color: var(--stone-400); }

.f-calc__result {
  position: sticky;
  top: 6.5rem;
  border-radius: 20px;
  padding: 1.8rem;
  color: var(--stone-100);
  background: linear-gradient(165deg, var(--stone-800), var(--stone-950));
  box-shadow: 0 3px 6px rgb(28 25 23 / 0.08), 0 30px 60px -26px rgb(28 25 23 / 0.5);
  overflow: hidden;
  position: relative;
}
.f-calc__result::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.035;
  pointer-events: none;
}
.f-calc__label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-400);
}
.f-calc__big {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 3.8rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #fff;
}
.f-calc__sub { margin-top: 0.7rem; font-size: 0.92rem; color: var(--stone-300); }
.f-calc__sub b { color: var(--ok-500); font-weight: 650; }
.f-calc__rows { margin-top: 1.5rem; display: grid; gap: 0.1rem; }
.f-calc__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid rgb(255 255 255 / 0.09);
  font-size: 0.88rem;
}
.f-calc__row span:first-child { color: var(--stone-400); }
.f-calc__row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.f-calc__row--ok span:last-child { color: var(--ok-500); }

/* ============================================================
   9. MOSTEK
   ============================================================ */
.f-bridge { padding-block: var(--section-y); }
.f-bridge__panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(2.4rem, 6vw, 4.2rem);
  background:
    radial-gradient(60% 90% at 8% 0%, rgb(253 230 138 / 0.55), transparent 62%),
    radial-gradient(50% 80% at 100% 100%, rgb(251 191 36 / 0.32), transparent 60%),
    var(--brand-50);
  border: 1px solid var(--brand-200);
  text-align: center;
}
.f-bridge__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  pointer-events: none;
}
.f-bridge__inner { position: relative; z-index: 1; max-width: 46rem; margin-inline: auto; }
.f-bridge h2 {
  margin-top: 0.9rem;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 650;
  letter-spacing: -0.028em;
  line-height: 1.1;
}
.f-strike { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--stone-500); }
.f-bridge p { margin-top: 1.1rem; font-size: 1.02rem; line-height: 1.65; color: var(--stone-700); }
.f-bridge__cases { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.55rem; justify-content: center; }
.f-case {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--brand-200);
  font-size: 0.9rem;
  color: var(--stone-700);
  box-shadow: var(--shadow-soft);
}
.f-case b { font-family: var(--font-display); font-weight: 650; color: var(--brand-800); font-variant-numeric: tabular-nums; }
.f-bridge__manifest { margin-top: 1.6rem; font-size: 1.08rem; font-weight: 600; color: var(--stone-900); }
.f-bridge .btn { margin-top: 1.6rem; }
.f-checks {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--stone-600);
}
.f-checks span { display: inline-flex; align-items: center; gap: 0.4rem; }
.f-checks svg { width: 0.95rem; height: 0.95rem; color: var(--ok-600); }

/* ============================================================
   10. NORMA RASY
   ============================================================ */
.f-norms { margin-top: 2.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.f-norm {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
}
.f-norm__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.f-norm__name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; }
.f-norm__meta { font-size: 0.78rem; color: var(--stone-500); font-variant-numeric: tabular-nums; white-space: nowrap; }
.f-norm .f-track { margin-top: 1.3rem; height: 10px; }
.f-norm .f-track__mark { top: -6px; bottom: -6px; }
.f-norm__legend {
  position: relative;
  height: 1.2rem;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  color: var(--stone-400);
}
.f-norm__legend span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.f-norm__foot {
  margin-top: 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--stone-600);
}
.f-norm__val { font-family: var(--font-display); font-size: 1.4rem; font-weight: 650; letter-spacing: -0.02em; }
.f-norm__val--ok { color: var(--ok-700); }
.f-norm__val--warn { color: var(--brand-700); }

/* ============================================================
   11. CYTAT
   ============================================================ */
.f-quote { padding-block: var(--section-y); }
.f-quote__inner { max-width: 46rem; margin-inline: auto; text-align: center; position: relative; }
.f-quote__mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--brand-200);
  display: block;
}
.f-quote p {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--stone-800);
  text-wrap: pretty;
}
.f-quote footer { margin-top: 1.4rem; font-size: 0.9rem; color: var(--stone-500); }
.f-quote footer b { display: block; color: var(--stone-800); font-weight: 600; margin-top: 0.2rem; }

/* ============================================================
   12. RZECZY, KTÓRE OSZCZĘDZAJĄ WIECZÓR
   ============================================================ */
.f-perks {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 5vw, 4rem);
}
.f-perk {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--stone-200);
}
.f-perks .f-perk:nth-child(1),
.f-perks .f-perk:nth-child(2) { border-top: 0; padding-top: 0; }
.f-perk__icon {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
}
.f-perk__icon svg { width: 1.1rem; height: 1.1rem; }
.f-perk h3 { font-size: 1.02rem; font-weight: 600; }
.f-perk p { margin-top: 0.3rem; font-size: 0.93rem; color: var(--stone-600); line-height: 1.58; }

/* ============================================================
   13. CENNIK
   ============================================================ */
.f-toggle-wrap { display: flex; justify-content: center; margin-top: 2rem; }
.f-toggle {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.25rem;
  border-radius: 12px;
  background: var(--stone-100);
  border: 1px solid var(--stone-200);
}
.f-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--stone-600);
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.f-toggle button.is-active { background: #fff; color: var(--stone-900); box-shadow: var(--shadow-soft); }
.f-toggle button:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.f-toggle .f-save {
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: var(--ok-100);
  color: var(--ok-700);
  font-size: 0.7rem;
  font-weight: 650;
}

.f-plans {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.f-plan {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto auto;
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 20px;
  padding: 1.7rem 1.7rem 1.5rem;
  box-shadow: var(--shadow-soft);
}
.f-plan--pro {
  border-color: var(--brand-400);
  background: linear-gradient(180deg, var(--brand-50), #fff 42%);
  box-shadow: 0 2px 4px rgb(28 25 23 / 0.05), 0 22px 50px -20px rgb(180 83 9 / 0.3);
}
.f-plan__flag {
  position: absolute;
  top: -0.72rem;
  left: 1.7rem;
  padding: 0.28rem 0.7rem;
  border-radius: 8px;
  background: var(--brand-600);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.f-plan h3 { font-size: 1.22rem; font-weight: 650; letter-spacing: -0.015em; }
.f-plan__for { margin-top: 0.45rem; min-height: 3.2em; font-size: 0.9rem; color: var(--stone-600); line-height: 1.5; }
.f-plan__price { margin-top: 0.9rem; display: flex; align-items: baseline; gap: 0.4rem; }
.f-plan__amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
}
.f-plan__per { font-size: 0.92rem; color: var(--stone-500); }
.f-plan__year { margin-top: 0.4rem; min-height: 1.5em; font-size: 0.84rem; color: var(--ok-700); font-weight: 550; }
.f-plan__list { margin-top: 1.2rem; display: grid; gap: 0.55rem; list-style: none; padding: 0; }
.f-plan__list li {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--stone-700);
  line-height: 1.5;
}
.f-plan__list li::before {
  content: "";
  margin-top: 0.42em;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  border: 2px solid var(--brand-400);
}
.f-plan__list b { font-weight: 650; color: var(--stone-900); }
.f-plan .btn { margin-top: 1.5rem; width: 100%; }
.f-plan__foot { margin-top: 0.75rem; text-align: center; font-size: 0.78rem; color: var(--stone-400); }
.f-pricing__note { margin-top: 2rem; margin-inline: auto; text-align: center; }
.f-pricing__note b { color: var(--stone-800); font-weight: 600; }

/* ============================================================
   14. FAQ
   ============================================================ */
.f-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.f-faq__aside { position: sticky; top: 6.5rem; }
.f-faq__list { border-top: 1px solid var(--stone-200); }
.f-faq__item { border-bottom: 1px solid var(--stone-200); }
.f-faq__item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.5rem;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--stone-800);
  transition: color 0.2s var(--ease-out);
}
.f-faq__item summary::-webkit-details-marker { display: none; }
.f-faq__item summary:hover { color: var(--brand-700); }
.f-faq__item summary:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 3px; border-radius: 6px; }
.f-faq__sign {
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--stone-300);
  color: var(--stone-500);
  transition: transform 0.3s var(--ease-out), background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.f-faq__sign svg { width: 0.7rem; height: 0.7rem; }
.f-faq__item[open] .f-faq__sign {
  transform: rotate(180deg);
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}
.f-faq__answer { padding-bottom: 1.3rem; }
.f-faq__answer p { font-size: 0.97rem; line-height: 1.65; color: var(--stone-600); max-width: 66ch; }

/* ============================================================
   15. FINAŁOWE CTA
   ============================================================ */
.f-final { padding-block: 0 var(--section-y); }
.f-final__panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(70% 120% at 15% 0%, rgb(245 158 11 / 0.42), transparent 60%),
    radial-gradient(60% 110% at 95% 100%, rgb(180 83 9 / 0.45), transparent 62%),
    var(--stone-900);
}
.f-final__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  pointer-events: none;
}
.f-final__inner { position: relative; z-index: 1; max-width: 40rem; margin-inline: auto; }
.f-final h2 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.f-final p { margin-top: 1rem; font-size: 1.05rem; color: var(--stone-300); line-height: 1.6; }
.f-final__ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.f-final .btn--inverse { background: #fff; color: var(--stone-900); }
.f-final .btn--inverse:hover { background: var(--brand-50); }
.f-final .btn--outline { border-color: rgb(255 255 255 / 0.32); color: #fff; background: transparent; }
.f-final .btn--outline:hover { border-color: #fff; background: rgb(255 255 255 / 0.08); }

/* ============================================================
   RUCH
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .js .f-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
  }
  .js .f-reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .f-reveal, .js .f-reveal { opacity: 1; transform: none; transition: none; }
  .f-shot img, .f-tablet__screen img { transition: none; }
}

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 1023px) {
  .f-hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .f-preview { max-width: 34rem; }
  .f-preview::before { display: none; }
  .f-why__grid,
  .f-faq__grid { grid-template-columns: 1fr; }
  .f-why__aside,
  .f-faq__aside,
  .f-calc__result { position: static; }
  .f-anna__grid { grid-template-columns: 1fr; }
  .f-calc { grid-template-columns: 1fr; }
  .f-cell--3, .f-cell--2 { grid-column: span 3; }
  .f-annot { grid-template-columns: 1fr; }
  .f-annot__item { padding-inline: 0; }
  .f-annot__item + .f-annot__item { border-left: 0; border-top: 1px solid var(--stone-200); margin-top: 1.4rem; }
}
@media (max-width: 900px) {
  .f-problem__grid { grid-template-columns: 1fr; }
  /* margin-inline:auto zdejmuje z elementu siatki rozciąganie, a wszystkie
     zdjęcia w środku są pozycjonowane absolutnie: bez width kadr miałby 0 px. */
  .f-shot { width: 100%; max-width: 30rem; justify-self: center; }
  .f-dm__panels { grid-template-columns: 1fr; }
  .f-plans { grid-template-columns: minmax(0, 26rem); justify-content: center; }
  .f-plan--pro { order: -1; }
  .f-norms { grid-template-columns: 1fr; }
  .f-perks { grid-template-columns: 1fr; }
  .f-perks .f-perk:nth-child(2) { border-top: 1px solid var(--stone-200); padding-top: 1.5rem; }
  .f-step:nth-child(2), .f-step:nth-child(3) { margin-left: 0; }
}
@media (max-width: 640px) {
  .f-hero__ctas .btn,
  .f-final__ctas .btn { width: 100%; }
  .f-kpis, .f-dm__kpis { grid-template-columns: 1fr 1fr; }
  .f-cell--3, .f-cell--2 { grid-column: span 6; }
  .f-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .f-groups { grid-template-columns: 1fr; }
  .f-why__item { grid-template-columns: 1fr; gap: 0.5rem; }
  .f-why__idx { font-size: 1.5rem; }
  .f-step { grid-template-columns: 1fr; gap: 0.9rem; padding: 1.3rem 1.3rem 1.5rem; }
  .f-step__num { width: 3rem; height: 3rem; font-size: 1.3rem; }
  .f-calc__panel { padding: 1.3rem; }
  .f-plan { padding: 1.4rem 1.4rem 1.3rem; }
  .f-quote__mark { font-size: 3.5rem; }
}
