/* AquaJoy v2, base: reset, pismo, kontener, siatki, proza, dokumenty prawne, ruch.
   Tylko tokeny z tokens.css. Komponenty (przyciski, karty, sekcje) są w components.css. */

/* ---------- Reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
  background: var(--c-bg);
  font-family: var(--f-sans);
  font-feature-settings: var(--f-features);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Kotwice (#zapis, #par-3) lądują pod przyklejonym nagłówkiem, nie za nim. */
  scroll-padding-top: calc(var(--header-h) + var(--s-6));
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--c-bg);
  color: var(--c-fg);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  /* clip, nie hidden: hidden robi z body kontener przewijania i psuje sticky. */
  overflow-x: clip;
}

html.aj-menu-open,
body.aj-no-scroll {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--s-4);
  color: var(--c-fg);
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-h1);
  line-height: 1.04;
  letter-spacing: var(--tr-display);
}

h2 {
  font-size: var(--t-h2);
  line-height: var(--lh-head);
  letter-spacing: var(--tr-h2);
}

h3 {
  font-size: var(--t-h3);
  font-weight: 500;
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-h3);
}

h4 {
  font-size: var(--t-body);
  line-height: 1.4;
  letter-spacing: var(--tr-ui);
}

h5,
h6 {
  font-size: var(--t-ui);
  line-height: 1.4;
}

p {
  margin: 0 0 var(--s-4);
  text-wrap: pretty;
}

ul,
ol {
  margin: 0 0 var(--s-4);
  padding-left: 1.25em;
}

dl,
dd,
blockquote,
figure,
pre {
  margin: 0;
}

:where(p, ul, ol, dl):last-child {
  margin-bottom: 0;
}

strong,
b {
  font-weight: 600;
}

small {
  font-size: var(--t-sm);
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* Link wewnątrz zdania musi wyglądać jak link, inaczej numer telefonu w notce
   czyta się jak zwykły tekst. Linki w interfejsie (menu, karty) mają klasę. */
:where(p, dd, td, figcaption, blockquote) a:not([class]) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--c-line-field);
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--d-fast) var(--e-std);
}

:where(p, dd, td, figcaption, blockquote) a:not([class]):hover {
  text-decoration-color: currentColor;
}

img,
svg,
video,
canvas,
picture {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

svg {
  flex: none;
}

hr {
  height: 1px;
  margin: var(--s-10) 0;
  border: 0;
  background: var(--c-line);
}

table {
  width: 100%;
  border-collapse: collapse;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button,
[role="button"],
summary {
  cursor: pointer;
}

.aj-tnum,
time {
  font-variant-numeric: tabular-nums;
}

::selection {
  background: var(--c-brand-aqua);
  color: #111111;
}

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

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

/* ---------- Dostępność ---------- */

.aj-skip {
  position: fixed;
  top: var(--s-3);
  left: var(--s-4);
  z-index: var(--z-toast);
  padding: 10px var(--s-4);
  border-radius: var(--r-sm);
  background: var(--c-fg);
  color: var(--c-inverse);
  font-size: var(--t-ui);
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform var(--d-fast) var(--e-out);
}

.aj-skip:focus {
  transform: none;
}

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

/* Bąbelki z poprzedniej wersji: skrypt, który je generował, już nie istnieje. */
.aj-bubbles {
  display: none;
}

/* Bez JS przycisk pauzy nie ma czego zatrzymać, bo film się nie ładuje. */
html:not(.js) [data-aj-vpause] {
  display: none;
}

/* ---------- Kontener i siatki ---------- */

.aj-wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.aj-wrap--wide {
  max-width: calc(1400px + 2 * var(--gutter));
}

/* Wąska kolumna (.aj-wrap--narrow) i siatki (.aj-grid) mają jedno źródło:
   components.css (miara, podział od 1100 px, kolumny). Tu zostaje tylko
   wyśrodkowanie dzieci wąskiej kolumny z .aj-center, którego tam nie ma. */
.aj-wrap--narrow.aj-center > * {
  margin-inline: auto;
}

.aj-stack > * + * {
  margin-top: var(--s-4);
}

.aj-center {
  text-align: center;
}

.aj-flow-narrow {
  max-width: 60ch;
}

.aj-center .aj-flow-narrow {
  margin-inline: auto;
}

/* WP Rocket wstrzykuje content-visibility:auto bez rozmiaru zastępczego; bez
   tego scrollHeight i pasek przewijania kłamią o pół strony. */
[data-wpr-lazyrender] {
  contain-intrinsic-size: auto 900px;
}

@media (min-width: 1024px) {
  [data-wpr-lazyrender] {
    contain-intrinsic-size: auto 700px;
  }
}

/* ---------- Proza ---------- */

/* Miara w rem, nie w ch: ch liczy się czcionką bloku, więc ramki "Po ludzku" i
   stopka dokumentu (15 px) kończyły się 84 px przed tekstem prozy (17 px). */
.aj-prose {
  --measure: 45rem;
  color: var(--c-fg-2);
  font-size: var(--t-body);
  line-height: 1.65;
}

.aj-prose > * {
  max-width: var(--measure);
}

.aj-prose p,
.aj-prose ul,
.aj-prose ol {
  margin: 0 0 1em;
}

.aj-prose > :last-child {
  margin-bottom: 0;
}

.aj-prose li {
  padding-left: 0.25em;
}

.aj-prose li + li,
.aj-prose li > ul,
.aj-prose li > ol {
  margin-top: 0.5em;
}

.aj-prose li > ul,
.aj-prose li > ol,
.aj-prose li > p {
  margin-bottom: 0;
}

.aj-prose li > p {
  margin-top: 0.75em;
}

.aj-prose li::marker {
  color: var(--c-fg-3);
  font-variant-numeric: tabular-nums;
}

.aj-prose ul ul,
.aj-prose ol ul {
  list-style-type: disc;
}

/* Numery "10." do "13." wystawały 12 px poza lewą krawędź kolumny (na telefonie
   dotykały brzegu ekranu): lista z dwucyfrowymi numerami dostaje szerszy margines. */
.aj-prose ol:has(> li:nth-child(10)) {
  padding-left: 2em;
}

.aj-prose ol ol {
  padding-left: 1.5em;
}

/* Numer telefonu nie łamie się w środku ("+48" na końcu wiersza). */
.aj-prose a[href^="tel:"] {
  white-space: nowrap;
}

.aj-prose strong,
.aj-prose b {
  color: var(--c-fg);
}

.aj-prose a:not([class]) {
  color: var(--c-fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--c-line-field);
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--d-fast) var(--e-std);
}

.aj-prose a:not([class]):hover {
  text-decoration-color: currentColor;
}

.aj-prose h2 {
  margin: var(--s-12) 0 var(--s-4);
  font-size: clamp(1.375rem, 1.3rem + 0.35vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.aj-prose h3 {
  margin: var(--s-8) 0 var(--s-3);
  font-size: var(--t-h3);
  font-weight: 600;
}

.aj-prose h4 {
  margin: var(--s-6) 0 var(--s-2);
}

.aj-prose > :first-child {
  margin-top: 0;
}

.aj-prose blockquote {
  margin: 0 0 1em;
  padding-left: var(--s-4);
  border-left: 2px solid var(--c-line);
  color: var(--c-fg);
}

/* "Po ludzku": klasę aj-human nadaje aj_doc_parse() tylko akapitom, które tak
   się zaczynają. Inne notki kursywą ("Niepotrzebne skreślić") zostają tekstem. */
.aj-prose .aj-human {
  position: relative;
  width: auto;
  margin-block: var(--s-6);
  padding: var(--s-4) var(--s-5) var(--s-4) calc(var(--s-5) + 26px);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-bg-2);
  color: var(--c-fg);
  font-size: var(--t-ui);
  line-height: 1.55;
}

li.aj-human {
  list-style: none;
}

.aj-prose .aj-human::before {
  content: "";
  position: absolute;
  top: calc(var(--s-4) + 2px);
  left: var(--s-5);
  width: 18px;
  height: 18px;
  background: var(--c-fg-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 7.8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 7.8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.aj-prose .aj-human > em {
  font-style: normal;
}

/* Pozostałe notki złożone z samej kursywy: ciszej, bez ramki. */
.aj-prose p > em:only-child {
  color: var(--c-fg-3);
}

.aj-prose .aj-human > em:only-child {
  color: inherit;
}

/* Tabele w treści (aj_wrap_tables dokłada opakowanie i data-label). */
.aj-prose .aj-table-scroll {
  max-width: none;
  margin: var(--s-6) 0;
}

.aj-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}

.aj-table-wrap table {
  min-width: 32rem;
  font-size: var(--t-ui);
  line-height: 1.5;
}

.aj-table-wrap th,
.aj-table-wrap td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  vertical-align: top;
}

.aj-table-wrap th {
  background: var(--c-bg-2);
  border-bottom: 1px solid var(--c-line);
  color: var(--c-fg);
  font-size: var(--t-sm);
  font-weight: 500;
  white-space: nowrap;
}

.aj-table-wrap tr + tr td {
  border-top: 1px solid var(--c-line);
}

.aj-table-wrap td:first-child {
  color: var(--c-fg);
  font-weight: 500;
}

/* Na telefonie wiersz tabeli składa się w kartę z etykietą przy każdej wartości:
   przewijana w bok tabela chowała kolumnę "Jak długo". */
@media (max-width: 759px) {
  .aj-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .aj-table-wrap table,
  .aj-table-wrap tbody,
  .aj-table-wrap tr,
  .aj-table-wrap td {
    display: block;
    min-width: 0;
  }

  .aj-table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .aj-table-wrap thead th {
    white-space: normal;
  }

  .aj-table-wrap tr {
    padding: var(--s-2) var(--s-4);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
  }

  .aj-table-wrap tr + tr {
    margin-top: var(--s-3);
  }

  .aj-table-wrap td {
    padding: var(--s-2) 0;
  }

  .aj-table-wrap tr + tr td {
    border-top: 0;
  }

  .aj-table-wrap td + td {
    border-top: 1px solid var(--c-line);
  }

  .aj-table-wrap td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--c-fg-3);
    font-size: var(--t-meta);
    font-weight: 500;
  }
}

/* ---------- Dokument prawny (page.php, gdy treść ma nagłówki z kotwicami) ---------- */

.aj-phero--doc .aj-phero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  margin: var(--s-4) 0 0;
  color: var(--c-fg-3);
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
}

.aj-phero--doc .aj-phero__meta > span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: var(--s-4);
  border-radius: 50%;
  background: var(--c-line-field);
  vertical-align: middle;
}

.aj-phero--doc .aj-phero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-6);
}

/* Na dotyku przycisk druku ma pełne 44 px, na desktopie zostaje niski (--sm). */
@media (max-width: 1023.98px) {
  .aj-phero--doc .aj-phero__actions .aj-btn {
    min-height: 44px;
  }
}

/* Nagłówek dokumentu i treść dzieli jedna linia, bez pustego pasa pomiędzy. */
.aj-phero.aj-phero--doc {
  padding-bottom: var(--s-8);
}

.aj-doc {
  padding-bottom: var(--section-y);
}

/* Poniżej 1100 px zwykły blok, nie siatka: przyklejony spis (.aj-toc-m) jako
   element siatki trzymałby się tylko własnego wiersza, a ma jechać przez cały dokument. */
.aj-doc__grid {
  padding-top: var(--s-8);
  border-top: 1px solid var(--c-line);
}

.aj-toc-m {
  margin-bottom: var(--s-8);
}

@media (min-width: 1100px) {
  .aj-phero.aj-phero--doc {
    padding-bottom: var(--s-10);
  }

  .aj-doc__grid {
    padding-top: var(--s-12);
  }
}

.aj-doc__prose {
  min-width: 0;
}

.aj-doc__prose > h2:first-child {
  margin-top: 0;
}

/* Spis treści: na telefonie zwijany, od 1100 px przyklejona kolumna po prawej. */
.aj-toc-m {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-bg);
}

.aj-toc-m > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 48px;
  padding: 0 var(--s-4);
  color: var(--c-fg);
  font-size: var(--t-ui);
  font-weight: 500;
  list-style: none;
}

.aj-toc-m > summary::-webkit-details-marker {
  display: none;
}

.aj-toc-m > summary svg {
  width: 16px;
  height: 16px;
  color: var(--c-fg-3);
  transform: rotate(90deg);
  transition: transform var(--d-fast) var(--e-std);
}

.aj-toc-m[open] > summary svg {
  transform: rotate(-90deg);
}

.aj-toc-m .aj-toc {
  padding: 0 var(--s-2) var(--s-2);
  border-top: 1px solid var(--c-line);
}

.aj-toc-m__cur {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Regulamin to 47 ekranów telefonu: spis jedzie pod nagłówkiem i pokazuje bieżący
   paragraf (app.js wpisuje go w summary), lista otwiera się nad treścią zamiast
   rozpychać stronę. Przyklejony (.is-stuck z app.js) staje się paskiem na całą
   szerokość, jak "On this page" w dokumentacji vercel.com. */
@media (max-width: 1099.98px) {
  .aj-toc-m {
    position: sticky;
    top: var(--header-h);
    z-index: 5;
    background: rgb(255 255 255 / 0.9);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
  }

  .aj-toc-m.is-stuck {
    margin-inline: calc(-1 * var(--gutter));
    border-width: 0 0 1px;
    border-radius: 0;
  }

  .aj-toc-m.is-stuck > summary {
    padding-inline: var(--gutter);
  }

  .aj-toc-m .aj-toc {
    position: absolute;
    top: calc(100% + var(--s-1));
    right: 0;
    left: 0;
    max-height: 60vh;
    padding: var(--s-2);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    background: var(--c-bg);
    box-shadow: var(--sh-overlay);
  }

  .aj-toc-m.is-stuck .aj-toc {
    right: var(--gutter);
    left: var(--gutter);
  }

  .aj-toc-m .aj-toc ol {
    padding-top: 0;
  }

  /* Kotwica ląduje pod nagłówkiem i pod paskiem spisu (48 px), nie za nimi. */
  .aj-doc__prose [id] {
    scroll-margin-top: 56px;
  }
}

.aj-toc ol {
  margin: 0;
  padding: var(--s-2) 0 0;
  list-style: none;
}

.aj-toc li + li {
  margin-top: 0;
}

.aj-toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  color: var(--c-fg-2);
  font-size: var(--t-sm);
  line-height: 1.35;
  transition: color var(--d-fast) var(--e-std), background-color var(--d-fast) var(--e-std);
}

.aj-toc a:hover {
  background: var(--c-bg-2);
  color: var(--c-fg);
}

.aj-toc a.is-active {
  color: var(--c-fg);
  font-weight: 500;
}

.aj-doc__aside {
  display: none;
}

.aj-toc__title {
  margin: 0 0 var(--s-2);
  padding-inline: var(--s-3);
  color: var(--c-fg);
  font-size: var(--t-sm);
  font-weight: 500;
}

@media (min-width: 1100px) {
  .aj-doc__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 264px;
    column-gap: var(--s-16);
    align-items: start;
  }

  .aj-toc-m {
    display: none;
  }

  .aj-doc__aside {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + var(--s-8));
    grid-column: 2;
    grid-row: 1;
    max-height: calc(100vh - var(--header-h) - var(--s-16));
    padding-left: var(--s-4);
    border-left: 1px solid var(--c-line);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .aj-doc__aside .aj-toc ol {
    padding-top: 0;
  }

  .aj-doc__aside .aj-toc a {
    min-height: 32px;
    padding: 6px var(--s-3);
  }

  .aj-doc__prose {
    grid-column: 1;
    grid-row: 1;
  }
}

/* Koniec dokumentu: kontakt w jednym wierszu zamiast baneru sprzedażowego. */
.aj-doc__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-6);
  max-width: 45rem;
  margin-top: var(--s-16);
  padding: var(--s-5) var(--s-6);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  color: var(--c-fg-2);
  font-size: var(--t-ui);
}

.aj-doc__end p {
  margin: 0;
}

.aj-doc__end a:not([class]) {
  color: var(--c-fg);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-decoration-color: var(--c-line-field);
  text-underline-offset: 0.2em;
}

.aj-doc__top {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  color: var(--c-fg-2);
  font-weight: 500;
  transition: color var(--d-fast) var(--e-std);
}

.aj-doc__top:hover {
  color: var(--c-fg);
}

.aj-doc__top svg {
  width: 16px;
  height: 16px;
  transform: rotate(-90deg);
}

/* ---------- Ruch ---------- */

/* Odsłanianie przy przewijaniu. Ukryte tylko pod html.js, więc bez skryptu
   treść jest widoczna od razu. Animacja, nie transition: nie nadpisuje
   przejść hover kart i przycisków, a fill "backwards" nie trzyma transformu. */
@keyframes aj-reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.js .aj-reveal:not(.is-in) {
  opacity: 0;
}

.js .aj-reveal.is-in {
  animation: aj-reveal var(--d-slow) var(--e-out) backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}

:where(.aj-grid, .aj-stagger) > .aj-reveal:nth-child(2) { --i: 1; }
:where(.aj-grid, .aj-stagger) > .aj-reveal:nth-child(3) { --i: 2; }
:where(.aj-grid, .aj-stagger) > .aj-reveal:nth-child(4) { --i: 3; }
:where(.aj-grid, .aj-stagger) > .aj-reveal:nth-child(5) { --i: 4; }
:where(.aj-grid, .aj-stagger) > .aj-reveal:nth-child(n + 6) { --i: 5; }

/* Wejście hero: sam CSS. Kopia po kolei (--i: 0, 1, 2, 3), kadr filmu osobno. */
@keyframes aj-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes aj-enter-media {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
}

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

.aj-enter {
  animation: aj-enter var(--d-slow) var(--e-out) backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}

.aj-enter-media {
  animation: aj-enter-media 800ms var(--e-out) backwards;
  animation-delay: calc(var(--i, 2) * 60ms);
}

/* Przejścia między stronami (Chrome, Edge, Safari 18.2+). Zgoda @view-transition
   jest inline w <head> (enqueue.php), żeby nie zależała od czasu ładowania tego pliku.
   Nagłówek i dock stoją w miejscu, treść: stara gaśnie, nowa wchodzi z dołu o 6 px. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes aj-vt-out {
    to {
      opacity: 0;
    }
  }

  @keyframes aj-vt-in {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
  }

  /* Bez panelu /basen: tam odhaczenie przeładowuje listę pod kciukiem, więc
     panel.css chce samego przenikania, bez przesunięcia o 6 px. Pseudoelementy
     przejścia styluje nowy dokument, stąd warunek na jego <body>. */
  :root:not(:has(> body.aj-panel-body))::view-transition-old(root) {
    animation: aj-vt-out 120ms var(--e-std) both;
  }

  :root:not(:has(> body.aj-panel-body))::view-transition-new(root) {
    animation: aj-vt-in var(--d-med) var(--e-out) 60ms both;
  }

  ::view-transition-group(aj-header),
  ::view-transition-group(aj-dock),
  ::view-transition-old(aj-header),
  ::view-transition-new(aj-header),
  ::view-transition-old(aj-dock),
  ::view-transition-new(aj-dock) {
    animation: none;
  }

  ::view-transition-old(aj-header),
  ::view-transition-old(aj-dock) {
    display: none;
  }

  /* Kwota z karty na /vouchery/ przechodzi w cenę produktu (app.js, giftMorph).
     Pudełka mają inne proporcje, więc obraz idzie za wysokością grupy, nie za
     szerokością: tekst płynnie rośnie albo maleje, zamiast się rozciągać.
     Między dwiema kwotami na stronie produktu pudełka są równe, nic się nie zmienia. */
  ::view-transition-old(aj-vprice),
  ::view-transition-new(aj-vprice) {
    inline-size: auto;
    block-size: 100%;
  }
}

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

  .js .aj-reveal:not(.is-in) {
    opacity: 1;
  }
}

/* ---------- Druk (regulamin, polityka, voucher) ---------- */

@media print {
  html,
  body {
    background: #ffffff;
  }

  body {
    font-size: 11pt;
    line-height: 1.5;
  }

  .aj-skip,
  .aj-toc-m,
  .aj-doc__aside,
  .aj-doc__end,
  .aj-phero--doc .aj-crumbs,
  .aj-phero__actions,
  [data-aj-vpause] {
    display: none !important;
  }

  .js .aj-reveal {
    opacity: 1 !important;
    animation: none !important;
  }

  .aj-prose > * {
    max-width: none;
  }

  .aj-prose h2 {
    break-after: avoid;
  }

  .aj-prose .aj-human {
    break-inside: avoid;
  }
}
