/* ============================================================
   kurniki.online — strona „Jak działają kurniki”
   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 .jd- , żeby nic nie kolidowało
   ze stroną główną ani z warstwą .f- strony „Funkcje”.

   Zamysł: strona pokazuje prawdziwe pola aplikacji, więc karty
   udające interfejs mają te same krawędzie, promienie i wagi co
   panel — bursztyn zostaje wyłącznie dla akcji i liczb.
   ============================================================ */

:root {
  --jd-section-y: clamp(4rem, 10vh, 7rem);
  /* Wysokość sceny jest stała, żeby przełączanie etapów nie przesuwało
     treści pod spodem. Cztery karty mają różną liczbę pól — ta wartość
     jest zmierzona na najwyższej z nich (etap „Stado”) plus zapas. */
  --jd-stage-h: 464px;
}

.jd-num,
.jd-input,
.jd-result__value,
.jd-tile strong,
.jd-big {
  font-variant-numeric: tabular-nums;
}

/* ---------- wspólne elementy sekcji ---------- */
.jd-section { padding-block: var(--jd-section-y); position: relative; }
.jd-section--tint { background: var(--brand-50); border-block: 1px solid var(--brand-100); }

.jd-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);
}
.jd-kicker::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-500);
}

.jd-h2 {
  margin-top: 0.85rem;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.jd-lead {
  margin-top: 1rem;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--stone-600);
  max-width: 62ch;
  text-wrap: pretty;
}

.jd-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.jd-link:hover { color: var(--brand-800); }
.jd-link span { transition: transform 0.2s var(--ease-out); }
.jd-link:hover span { transform: translate(2px, -2px); }

.jd-check {
  color: var(--brand-600);
  font-weight: 700;
}

/* ---------- hero ---------- */
.jd-hero__copy h1 {
  margin-top: 1rem;
  font-size: clamp(2.3rem, 4.4vw, 3.2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}
.jd-hero__copy h1 .jd-accent { color: var(--brand-600); }

.jd-reassurance {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: var(--stone-500);
}
.jd-reassurance a { text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* Ścieżka 01–03: ta sama typografia numeru co w krokach na stronie głównej. */
.jd-path {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--stone-200);
  font-size: 0.82rem;
  color: var(--stone-500);
}
.jd-path span { display: inline-flex; align-items: baseline; gap: 0.45rem; }
.jd-path b {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--brand-600);
  font-variant-numeric: tabular-nums;
}

/* ---------- animowany onboarding w hero ---------- */
.jd-tour {
  position: relative;
  background: linear-gradient(135deg, var(--brand-50), #fff 62%);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.4vw, 1.5rem);
  box-shadow: var(--shadow-soft);
}
.jd-tour__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.jd-tour__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--stone-800);
}
.jd-tour__control {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--stone-600);
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.jd-tour__control:hover { color: var(--stone-900); border-color: var(--stone-300); }
.jd-tour__control:active { transform: translateY(1px) scale(0.98); }
.jd-tour__control:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.jd-tour__symbol { font-size: 0.7rem; line-height: 1; color: var(--brand-600); }

.jd-tour__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}
.jd-tab {
  display: grid;
  gap: 0.2rem;
  padding: 0.5rem 0.55rem 0.6rem;
  text-align: left;
  font-family: var(--font-sans);
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.jd-tab__n {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--stone-400);
  font-variant-numeric: tabular-nums;
}
.jd-tab__label {
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--stone-500);
}
.jd-tab:hover { border-color: var(--stone-300); }
.jd-tab.is-done .jd-tab__n { color: var(--brand-400); }
.jd-tab[aria-selected="true"] {
  background: #fff;
  border-color: var(--brand-200);
  box-shadow: 0 0 0 1px var(--brand-200), var(--shadow-soft);
}
.jd-tab[aria-selected="true"] .jd-tab__n { color: var(--brand-600); }
.jd-tab[aria-selected="true"] .jd-tab__label { color: var(--stone-800); font-weight: 600; }
.jd-tab:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }

.jd-tour__stage {
  height: var(--jd-stage-h);
  display: grid;
  place-items: center;
}

/* Karta udająca ekran aplikacji: te same promienie i cień co panel. */
.jd-card {
  width: 100%;
  max-width: 24rem;
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  box-shadow: var(--shadow-lifted);
  padding: 1.15rem 1.25rem 1.25rem;
  text-align: left;
}
.jd-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--stone-900);
}
.jd-card__intro {
  margin-top: 0.2rem;
  margin-bottom: 0.9rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--stone-500);
}
.jd-card .btn { width: 100%; margin-top: 0.85rem; }
.jd-card__foot {
  margin-top: 0.7rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--stone-400);
}
.jd-card__foot span { color: var(--brand-700); font-weight: 600; }

.jd-field { margin-bottom: 0.5rem; }
.jd-field__label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--stone-600);
}
.jd-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  height: 34px;
  padding: 0 0.6rem;
  font-size: 0.82rem;
  color: var(--stone-800);
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
  white-space: nowrap;
}
.jd-input.is-focused {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgb(245 158 11 / 0.15);
}
.jd-input .jd-caret { color: var(--stone-400); font-size: 0.7rem; }

.jd-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

.jd-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 0.9rem;
}
.jd-dots span {
  width: 20px;
  height: 4px;
  border-radius: 999px;
  background: var(--stone-200);
}
.jd-dots span.is-active { background: var(--brand-500); width: 28px; }

.jd-appicon {
  width: 46px;
  height: 46px;
  margin: 0 auto 0.75rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 14px;
  font-variant-numeric: tabular-nums;
}
.jd-appicon--ok { color: #047857; background: #ecfdf5; border-color: #d1fae5; }

.jd-card--success { text-align: center; }
.jd-card--success h3 { text-align: center; }
.jd-big {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brand-600);
}
.jd-card--success .jd-card__intro { margin-bottom: 0.5rem; }
.jd-note {
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--stone-600);
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-sm);
}

.jd-tour__caption {
  margin-top: 0.9rem;
  min-height: 2.8rem;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--stone-600);
  text-wrap: balance;
}
.jd-tour__demo {
  margin-top: 0.4rem;
  text-align: center;
  font-size: 0.7rem;
  color: var(--stone-400);
}

/* ---------- sekcja: dzienny wpis ---------- */
.jd-daily__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.jd-daily__demo { position: sticky; top: 96px; }

.jd-demo-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  color: var(--stone-500);
}
.jd-pill {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-800);
  background: var(--brand-100);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
}

.jd-form {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lifted);
  padding: clamp(1.2rem, 2.6vw, 1.75rem);
}
.jd-form h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; }
.jd-form__intro { margin-top: 0.2rem; font-size: 0.85rem; color: var(--stone-500); }

.jd-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--stone-700);
}
.jd-form label .jd-opt { font-weight: 400; color: var(--stone-400); }
.jd-form input,
.jd-form select {
  width: 100%;
  height: 40px;
  padding: 0 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--stone-900);
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.jd-form input[type="number"] {
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.jd-form input[type="date"] { font-variant-numeric: tabular-nums; }
.jd-form input:focus,
.jd-form select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgb(245 158 11 / 0.18);
}
.jd-form input:disabled { background: var(--stone-100); color: var(--stone-400); }
.jd-form__block { margin-top: 1.1rem; }
.jd-form__row { margin-top: 0.8rem; }

/* Podtytuł sekcji formularza z kafelkiem ikony — jak w aplikacji. */
.jd-form__sub {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--stone-700);
}
.jd-form__sub small { font-weight: 400; color: var(--stone-400); }
.jd-form__icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 0.72rem;
}
.jd-egg {
  width: 11px;
  height: 14px;
  border: 1.6px solid currentColor;
  border-radius: 50% 50% 48% 48% / 62% 62% 38% 38%;
}

.jd-triple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.jd-double { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

.jd-error {
  margin-top: 0.9rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
}
.jd-form__actions { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.jd-form__actions .btn { flex: 1; }
.jd-form__help { margin-top: 0.7rem; font-size: 0.76rem; color: var(--stone-400); }

/* Wynik pod formularzem: pola uzupełniają się po zapisaniu dnia. */
.jd-result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.jd-tile {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.jd-tile strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--stone-300);
  transition: color 0.3s var(--ease-out);
}
.jd-tile span { font-size: 0.7rem; color: var(--stone-500); }
.jd-result.is-saved .jd-tile { border-color: var(--brand-200); background: var(--brand-50); }
.jd-result.is-saved .jd-tile strong { color: var(--brand-700); }

.jd-status {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--stone-400);
}
.jd-status.is-confirmed { color: #047857; font-weight: 500; }

/* kroki po prawej stronie sekcji */
.jd-steps {
  margin-top: 2.2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.6rem;
  counter-reset: jd-step;
}
.jd-steps li {
  counter-increment: jd-step;
  position: relative;
  padding-top: 1.3rem;
  border-top: 2px solid var(--stone-200);
}
.jd-steps li::before {
  content: counter(jd-step, decimal-leading-zero);
  position: absolute;
  top: -0.85rem;
  left: 0;
  background: var(--bg);
  padding-right: 0.7rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--brand-600);
  font-variant-numeric: tabular-nums;
}
.jd-steps strong { font-size: 1rem; font-weight: 600; color: var(--stone-900); }
.jd-steps p { margin-top: 0.35rem; font-size: 0.95rem; color: var(--muted); }

.jd-try {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, var(--brand-50), #fff 70%);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius);
}
.jd-try b { display: block; font-size: 0.95rem; color: var(--stone-900); }
.jd-try span { display: block; margin-top: 0.3rem; font-size: 0.88rem; line-height: 1.55; color: var(--stone-600); }

/* ---------- sekcja: dowód, zrzut konta demo ---------- */
.jd-proof__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.jd-benefits {
  margin-top: 1.6rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.jd-benefits li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.97rem;
  color: var(--stone-700);
}

/* Ramka przeglądarki — ten sam detal co .preview na stronie głównej. */
.jd-frame {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lifted);
  overflow: hidden;
  transform: rotate(0.4deg);
}
.jd-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--stone-100);
  background: var(--stone-50);
}
.jd-frame__dots { display: flex; gap: 6px; }
.jd-frame__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--stone-300); }
.jd-frame__url {
  margin-inline: auto;
  font-size: 0.72rem;
  color: var(--stone-400);
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  padding: 0.15rem 0.9rem;
}
.jd-frame__tag {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-800);
  background: var(--brand-100);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.jd-shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: zoom-in;
}
.jd-shot img { width: 100%; height: auto; }
.jd-shot__zoom {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--stone-800);
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(6px);
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s var(--ease-out), background 0.2s;
}
.jd-shot:hover .jd-shot__zoom { transform: translateY(-2px); background: #fff; }
.jd-shot:active .jd-shot__zoom { transform: translateY(1px) scale(0.98); }
.jd-shot:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 3px; }

.jd-proof__caption {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--stone-500);
}
.jd-proof__caption a { text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* ---------- podgląd pełnego zrzutu ---------- */
.jd-dialog {
  padding: 0;
  /* style.css ma w resecie `* { margin: 0 }`, co kasuje domyślne
     `margin: auto` elementu <dialog> i przykleja go do lewego górnego
     rogu. Przywracamy wyśrodkowanie jawnie. */
  margin: auto;
  width: min(1040px, 94vw);
  max-width: none;
  max-height: 92vh;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lifted);
  background: #fff;
  color: var(--text);
  overflow: hidden;
}
.jd-dialog::backdrop { background: rgb(28 25 23 / 0.55); backdrop-filter: blur(3px); }
.jd-dialog__top {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: #fff;
  border-bottom: 1px solid var(--stone-200);
}
.jd-dialog__top strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.jd-dialog__close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--stone-600);
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.jd-dialog__close:hover { background: var(--stone-100); color: var(--stone-900); }
.jd-dialog__close:active { transform: scale(0.94); }
.jd-dialog__close:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.jd-dialog__body {
  padding: 1.1rem;
  max-height: calc(92vh - 60px);
  overflow: auto;
  background: var(--stone-50);
}
.jd-dialog__body p {
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--stone-500);
}
.jd-dialog__body img {
  width: 100%;
  height: auto;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-sm);
  background: #fff;
}

/* ---------- domknięcie ---------- */
.jd-final { text-align: center; }
.jd-final__inner { max-width: 44rem; margin-inline: auto; }
.jd-final h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 650; letter-spacing: -0.025em; }
.jd-final p { margin-top: 0.9rem; font-size: 1.06rem; color: var(--muted); }
.jd-final__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.8rem;
}
.jd-final .jd-reassurance { margin-top: 1.2rem; }
.jd-final__under { margin-top: 0.6rem; font-size: 0.8rem; color: var(--stone-400); }

.jd-noscript {
  margin-block: 2rem;
  padding: 1rem 1.15rem;
  font-size: 0.92rem;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius);
}

/* ---------- ruch ---------- */
@media (prefers-reduced-motion: no-preference) {
  .jd-card { animation: jd-card-in 0.45s var(--ease-out) both; }
  @keyframes jd-card-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }

  /* Pisanie w polach: maska przesuwa się po tekście, nic nie zmienia układu. */
  .jd-typing {
    display: inline-block;
    animation: jd-typing 1.1s steps(20, end) both;
  }
  @keyframes jd-typing {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
  }
  .jd-tour.is-paused .jd-typing,
  .jd-tour.is-paused .jd-card { animation: none; }
}

/* ---------- responsywność ---------- */
@media (max-width: 1023px) {
  .jd-daily__demo { position: static; }
}
@media (max-width: 900px) {
  .jd-daily__grid,
  .jd-proof__grid { grid-template-columns: 1fr; }
  .jd-daily__demo { order: 2; }
  .jd-daily__copy { order: 1; }
  .jd-proof__media { max-width: 640px; }
  .jd-tour { max-width: 640px; }
}
@media (max-width: 640px) {
  .jd-tour__tabs { grid-template-columns: repeat(2, 1fr); }
  .jd-tab__label { font-size: 0.7rem; }
  .jd-result { grid-template-columns: 1fr; }
  .jd-triple { grid-template-columns: 1fr; }
  .jd-double { grid-template-columns: 1fr; }
  .jd-form__actions { flex-direction: column; }
  .jd-final__ctas .btn { width: 100%; }
  .jd-frame { transform: none; }
  .jd-path { gap: 0.9rem 1.1rem; }
  /* Węższa karta = wyższa karta: etap „Stado” mierzy tu 467 px. */
  :root { --jd-stage-h: 484px; }

  /* Zrzut pulpitu ma 1440 px szerokości. Wciśnięty w 313 px jest tylko
     plamą, więc na telefonie okno zajmuje cały ekran, a obraz zostaje
     w czytelnej skali i przewija się w poziomie. */
  .jd-dialog {
    width: 100vw;
    max-height: 100vh;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .jd-dialog__body {
    max-height: calc(100vh - 58px);
    overflow: auto;
    overscroll-behavior: contain;
  }
  .jd-dialog__body img { width: 760px; max-width: none; }
}
