/*
 * Wspólny arkusz wszystkich podstron. Bez importów i dodatkowych plików CSS.
 * Klasy page-* na <html> rozdzielają istniejące warianty wyglądu.
 * :where() zachowuje swoistość dotychczasowych selektorów.
 * Zmieniaj style tutaj; szablony zawierają wyłącznie odnośnik do tego arkusza.
 */

/* ===== Strona główna · html.page-home ===== */

/* Kolory i fonty jak w ebooku (_design-rules.md) */
  :root:where(.page-home) {
    --ink: #23262B;
    --ink-soft: #5B6068;
    --paper: #FFFEFB;
    --wall: #F3EADD;          /* kolor ściany z ilustracji na okładce */
    --cream: #F6F1E7;
    --line: #E3DACB;
    --primary: #1F5C63;
    --primary-tint: #E5EFEE;
    --accent: #D9895B;
    --accent-hover: #CB7848;
    --accent-text: #A85A32;
    --green: #2F7D4F;
    --green-bg: #E3F1E7;
    --red: #B03A2E;
    --sel: #B8D8FA;           /* podświetlenie "jak zaznaczenie myszką" na jasnym tle */
    --sel-dark: #3A74BD;      /* to samo na ciemnym tle */

    --font-head: "Fraunces", Georgia, serif;
    --font-body: "Literata", Georgia, serif;
    --font-ui: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-hand: "Caveat", "Segoe Print", cursive;

    --text: 660px;
    --wide: 1060px;
  }

  :where(html.page-home), :where(html.page-home) *, :where(html.page-home)::before, :where(html.page-home) *::before, :where(html.page-home)::after, :where(html.page-home) *::after { box-sizing: border-box; }
  html:where(.page-home) { -webkit-text-size-adjust: 100%; }
  :where(html.page-home) body {
    margin: 0; background: var(--paper); color: var(--ink);
    font-family: var(--font-body); font-size: 18px; line-height: 1.7;
    text-rendering: optimizeLegibility;
  }
  :where(html.page-home)::selection, :where(html.page-home) ::selection { background: var(--sel); color: var(--ink); }
  :where(html.page-home) img { display: block; max-width: 100%; height: auto; }
  :where(html.page-home) a { color: var(--primary); text-underline-offset: 3px; }
  :where(html.page-home) p { margin: 0 0 1.05em; }
  :where(html.page-home) strong { font-weight: 600; }
  :where(html.page-home) h1, :where(html.page-home) h2, :where(html.page-home) h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0; }
  :where(html.page-home) h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); color: var(--ink); }
  :where(html.page-home) h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); color: var(--primary); margin-bottom: .55em; }
  :where(html.page-home) h3 { font-size: 1.3rem; color: var(--ink); margin-bottom: .35em; }

  :where(html.page-home) .skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: 8px 12px; z-index: 100; }
  :where(html.page-home) .skip:focus { left: 8px; top: 8px; }

  :where(html.page-home) .col { max-width: var(--text); margin: 0 auto; padding: 0 22px; }
  :where(html.page-home) .wide { max-width: var(--wide); margin: 0 auto; padding: 0 22px; }
  :where(html.page-home) section { padding: 76px 0; }
  @media (min-width: 800px) { :where(html.page-home) section { padding: 112px 0; } }

  :where(html.page-home) .hand { font-family: var(--font-hand); font-weight: 600; color: var(--accent-text); line-height: 1.1; }
  :where(html.page-home) .small { font-family: var(--font-ui); font-size: .95rem; color: var(--ink-soft); }

  /* ---------- Podświetlenie wyglądające jak zaznaczanie tekstu myszką ---------- */
  :where(html.page-home) mark.sel {
    color: inherit; padding: .04em .05em;
    background-image: linear-gradient(var(--sel), var(--sel));
    background-repeat: no-repeat; background-size: 0% 100%; background-position: 0 0;
    background-color: transparent;
    transition: background-size var(--dur, 1s) cubic-bezier(.45, .1, .3, 1);
  }
  :where(html.page-home) mark.sel.on { background-size: 100% 100%; }
  :where(html.page-home) mark.sel::after {
    /* mały kursor tekstowy w miejscu, gdzie kończy się "zaznaczenie" */
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='22' viewBox='0 0 10 22'%3E%3Cpath d='M1.5 1.5h2.2c.8 0 1.3.4 1.3 1.2 0-.8.5-1.2 1.3-1.2h2.2M5 2.7v16.6M1.5 20.5h2.2c.8 0 1.3-.4 1.3-1.2 0 .8.5 1.2 1.3 1.2h2.2' fill='none' stroke='%2323262B' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
    display: inline-block; width: 0; height: 0; overflow: visible; vertical-align: top;
    position: relative; top: -.05em; left: 1px; opacity: 0; pointer-events: none;
  }
  :where(html.page-home) mark.sel.on::after { animation: ibeam 1.5s ease var(--dur, 1s) 1 both; }
  @keyframes ibeam { 0% { opacity: 0; } 12% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
  :where(html.page-home) .dark mark.sel { background-image: linear-gradient(var(--sel-dark), var(--sel-dark)); }
  :where(html.page-home) .dark mark.sel::after { filter: invert(1); }
  @media (prefers-reduced-motion: reduce) {
    :where(html.page-home) mark.sel { transition: none; background-size: 100% 100%; }
    :where(html.page-home) mark.sel::after { display: none; }
  }

  /* ---------- Przyciski ---------- */
  :where(html.page-home) .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-ui); font-weight: 700; font-size: 1.1rem; line-height: 1.2; text-align: center;
    background: var(--accent); color: var(--ink); text-decoration: none;
    padding: 17px 28px; min-height: 56px; border-radius: 6px; border: 0; cursor: pointer;
    transition: background .15s ease;
  }
  :where(html.page-home) .btn:hover { background: var(--accent-hover); }
  :where(html.page-home) .btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
  :where(html.page-home) .btn .arr { font-weight: 600; transition: transform .15s ease; }
  :where(html.page-home) .btn:hover .arr { transform: translateX(3px); }
  :where(html.page-home) .btn-block { width: 100%; }
  :where(html.page-home) .btn { max-width: 100%; }
  /* Dynamiczne CTA: płynna zmiana etykiety */
  :where(html.page-home) .cta-label { display: inline-block; transition: opacity .18s ease, transform .18s ease; }
  :where(html.page-home) .cta-label.swap { opacity: 0; transform: translateY(6px); }
  @media (prefers-reduced-motion: reduce) { :where(html.page-home) .cta-label { transition: none; } }
  :where(html.page-home) .btn-text {
    background: none; border: 0; cursor: pointer; font-family: var(--font-ui); font-size: 1rem; color: var(--ink-soft);
    text-decoration: underline; text-underline-offset: 3px; padding: 12px; margin-top: 6px;
  }
  :where(html.page-home) .micro { font-family: var(--font-ui); font-size: .95rem; color: var(--ink-soft); margin-top: 12px; }

  /* ---------- Nagłówek strony ---------- */
  :where(html.page-home) .site-header { background: var(--wall); }
  :where(html.page-home) .site-header .wide { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  :where(html.page-home) .brand { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--primary); text-decoration: none; }
  :where(html.page-home) .brand img { display: block; height: 38px; width: auto; }
  @media (max-width: 560px) { :where(html.page-home) .brand img { height: 32px; } }
  :where(html.page-home) .header-link { display: none; font-family: var(--font-ui); font-weight: 700; font-size: 1rem; color: var(--ink); }
  @media (min-width: 800px) { :where(html.page-home) .header-link { display: inline; } }

  /* ---------- Hero ---------- */
  :where(html.page-home) .hero { background: var(--wall); padding: 24px 0 0; overflow: hidden; }
  :where(html.page-home) .hero-grid { display: grid; gap: 8px; }
  :where(html.page-home) .hero-copy { padding-bottom: 8px; }
  :where(html.page-home) .hero h1 { margin-bottom: .4em; }
  :where(html.page-home) .hero-sub { font-size: 1.22rem; line-height: 1.6; max-width: 30em; margin-bottom: 28px; }
  :where(html.page-home) .hero-figure { position: relative; margin: 0 -22px; }
  :where(html.page-home) .hero-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 100%; }
  :where(html.page-home) .hero-note { position: absolute; left: 6%; top: 5%; font-size: 1.3rem; max-width: 62%; transform: rotate(-3deg); }
  :where(html.page-home) .hero-arrow { position: absolute; left: 30%; top: 27%; width: 110px; height: 82px; color: var(--accent-text); }
  @media (min-width: 900px) {
    :where(html.page-home) .hero { padding-top: 40px; }
    :where(html.page-home) .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
    :where(html.page-home) .hero-copy { padding-bottom: 60px; }
    :where(html.page-home) .hero-figure { margin: 0; }
    :where(html.page-home) .hero-figure img {
      aspect-ratio: auto; max-height: 760px; width: auto; margin-left: auto;
      -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%);
              mask-image: linear-gradient(to right, transparent 0, #000 14%);
    }
    :where(html.page-home) .hero-note { left: 9%; top: 23%; font-size: 1.5rem; max-width: 11.5em; }
    :where(html.page-home) .hero-arrow { left: 36%; top: 42%; width: 120px; height: 90px; }
  }

  /* ---------- Problem ---------- */
  :where(html.page-home) .scene p:first-child::first-line { font-variant: small-caps; letter-spacing: .03em; }
  :where(html.page-home) .vignettes { position: relative; display: grid; gap: 26px; margin: 46px 0 56px; }
  @media (min-width: 700px) { :where(html.page-home) .vignettes { grid-template-columns: 1fr 1fr; align-items: start; } }
  :where(html.page-home) .note-card {
    position: relative; background: #FFFDF4; border: 1px solid var(--line); padding: 30px 22px 22px;
    transform: rotate(-1.4deg); box-shadow: 0 6px 16px rgba(0,0,0,.07);
    font-family: var(--font-hand); font-size: 1.4rem; line-height: 1.25; color: #2E3A40;
  }
  :where(html.page-home) .note-card::before {
    content: ""; position: absolute; top: -11px; left: 50%; width: 92px; height: 22px; transform: translateX(-50%) rotate(2deg);
    background: rgba(217, 137, 91, .32);
  }
  :where(html.page-home) .msg { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; font-family: var(--font-ui); font-size: .98rem; line-height: 1.4; }
  :where(html.page-home) .msg + .msg { margin-top: 12px; }
  :where(html.page-home) .msg .from { font-size: .82rem; color: var(--ink-soft); display: block; margin-bottom: 3px; }
  :where(html.page-home) .msg b { display: block; color: var(--ink); }
  :where(html.page-home) .vignette-note { position: absolute; right: 4px; bottom: -42px; font-size: 1.5rem; transform: rotate(-4deg); }
  @media (max-width: 699px) { :where(html.page-home) .vignette-note { position: static; display: block; text-align: right; margin-top: -4px; } }

  :where(html.page-home) ul.plain { padding-left: 1.1em; margin: 0 0 1.4em; }
  :where(html.page-home) ul.plain li { margin-bottom: .55em; padding-left: .2em; }
  :where(html.page-home) ul.plain li::marker { color: var(--accent); }

  :where(html.page-home) ul.crossed { list-style: none; padding: 0; margin: 18px 0 30px; }
  :where(html.page-home) ul.crossed li { margin-bottom: .8em; }
  :where(html.page-home) ul.crossed s {
    text-decoration-line: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px;
    font-weight: 600; color: var(--ink-soft);
  }
  :where(html.page-home) .aside-rule { border-left: 3px solid var(--primary); padding-left: 20px; margin-top: 10px; }

  /* ---------- Zrozumienie (ciemna sekcja) ---------- */
  :where(html.page-home) .dark { background: var(--primary); color: #EEF3F2; }
  :where(html.page-home) .dark h2 { color: #fff; }
  :where(html.page-home) .dark a { color: #fff; }
  :where(html.page-home) .pull { font-family: var(--font-head); font-weight: 600; color: #fff; font-size: clamp(1.55rem, 3.5vw, 2.25rem); line-height: 1.3; margin: 6px 0 34px; }
  :where(html.page-home) .pull-label { display: block; font-size: 1.5rem; color: #F2C4A5; margin-top: 40px; transform: rotate(-2deg); transform-origin: left; }
  :where(html.page-home) .ladder { list-style: none; padding: 0; margin: 6px 0 0; font-family: var(--font-ui); font-size: 1.02rem; line-height: 1.45; color: #D7E3E1; }
  :where(html.page-home) .ladder li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.16); }
  :where(html.page-home) .ladder li:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
  :where(html.page-home) .ladder b { font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; line-height: 1.05; color: #F2C4A5; }
  :where(html.page-home) .ladder strong { color: #fff; }
  :where(html.page-home) .ladder .hand { font-style: normal; color: #F2C4A5; font-size: 1.35rem; margin-left: 6px; white-space: nowrap; }

  /* ---------- Co jest w środku ---------- */
  :where(html.page-home) .parts { list-style: none; padding: 0; margin: 40px 0 0; }
  :where(html.page-home) .parts li { display: grid; grid-template-columns: 54px 1fr; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); }
  :where(html.page-home) .parts li:last-child { border-bottom: 1px solid var(--line); }
  :where(html.page-home) .parts .num { font-family: var(--font-head); font-weight: 600; font-size: 1.6rem; color: var(--accent); line-height: 1.2; }
  :where(html.page-home) .parts h3 { font-size: 1.22rem; color: var(--primary); }
  :where(html.page-home) .parts p { margin: 0; }
  :where(html.page-home) .diff p { margin-bottom: .9em; }

  /* ---------- Historia ---------- */
  :where(html.page-home) .story { background: var(--cream); }
  :where(html.page-home) .entry { margin-top: 34px; }
  :where(html.page-home) .entry .when { display: block; font-size: 1.75rem; margin-bottom: 2px; }
  :where(html.page-home) .entry h3 { margin-bottom: .3em; }
  :where(html.page-home) .compare { display: grid; gap: 34px; margin-top: 66px; }
  @media (min-width: 800px) { :where(html.page-home) .compare { grid-template-columns: 1fr 1fr; gap: 48px; } }
  :where(html.page-home) .compare h3 { font-size: 1.35rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 6px; }
  :where(html.page-home) .compare .after h3 { color: var(--primary); border-color: var(--primary); }
  :where(html.page-home) .compare ul { list-style: none; padding: 0; margin: 0; font-family: var(--font-ui); font-size: 1.05rem; line-height: 1.45; }
  :where(html.page-home) .compare li { padding: 11px 0; border-bottom: 1px solid var(--line); }
  :where(html.page-home) .compare .before li { color: var(--ink-soft); }
  :where(html.page-home) .story-cta { margin-top: 56px; }

  /* ---------- Opłacalność ---------- */
  :where(html.page-home) .worth { max-width: var(--text); }
  :where(html.page-home) .worth-table { width: 100%; border-collapse: collapse; margin: 30px 0 10px; font-family: var(--font-ui); font-size: 1.02rem; line-height: 1.4; }
  :where(html.page-home) .worth-table th, :where(html.page-home) .worth-table td { text-align: left; vertical-align: top; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); }
  :where(html.page-home) .worth-table thead th { font-size: .95rem; color: var(--ink-soft); font-weight: 600; border-bottom: 2px solid var(--ink); }
  :where(html.page-home) .worth-table thead th.us { color: var(--primary); border-bottom-color: var(--primary); }
  :where(html.page-home) .worth-table tbody th { font-weight: 700; width: 26%; }
  :where(html.page-home) .worth-table td.us { color: var(--ink); font-weight: 600; }
  :where(html.page-home) .worth-table td.them { color: var(--ink-soft); }
  @media (max-width: 560px) {
    :where(html.page-home) .worth-table { font-size: .93rem; }
    :where(html.page-home) .worth-table tbody th { width: 24%; }
  }

  /* ---------- Oferta ---------- */
  :where(html.page-home) .offer { background: var(--wall); }
  :where(html.page-home) .offer-grid { display: grid; gap: 44px; align-items: start; }
  @media (min-width: 860px) { :where(html.page-home) .offer-grid { grid-template-columns: 340px 1fr; gap: 56px; } }
  :where(html.page-home) .cover {
    position: relative; width: min(320px, 78vw); margin: 0 auto; aspect-ratio: 1000 / 1598;
    background: url("/img/hero-luna.jpg") center / cover no-repeat;
    border-radius: 3px 8px 8px 3px; box-shadow: 0 18px 40px rgba(35, 38, 43, .25), inset 0 0 0 1px rgba(0,0,0,.05);
    transform: rotate(-2deg);
  }
  :where(html.page-home) .cover::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 10px; background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,0)); border-radius: 3px 0 0 3px; }
  :where(html.page-home) .cover-text { position: absolute; left: 9%; right: 24%; top: 7%; }
  :where(html.page-home) .cover-kicker { font-family: var(--font-ui); font-weight: 700; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
  :where(html.page-home) .cover-title { font-family: var(--font-head); font-weight: 600; color: var(--primary); font-size: clamp(1.65rem, 6.6vw, 2.05rem); line-height: 1.02; margin: 6px 0 8px; }
  :where(html.page-home) .cover-sub { font-family: var(--font-ui); font-size: .74rem; line-height: 1.35; color: var(--ink-soft); }
  :where(html.page-home) .includes { list-style: none; padding: 0; margin: 0 0 26px; font-family: var(--font-ui); font-size: 1.06rem; line-height: 1.45; }
  :where(html.page-home) .includes li { position: relative; padding-left: 28px; margin-bottom: 10px; }
  :where(html.page-home) .includes li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: var(--green); font-weight: 700; }
  :where(html.page-home) .price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 4px; }
  :where(html.page-home) .price { font-family: var(--font-head); font-weight: 600; font-size: 3.1rem; line-height: 1; }
  :where(html.page-home) .price small { font-family: var(--font-ui); font-size: 1.05rem; font-weight: 700; margin-left: 4px; }
  :where(html.page-home) .price-meta { font-family: var(--font-ui); color: var(--ink-soft); }
  :where(html.page-home) .guarantee { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: center; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
  :where(html.page-home) .guarantee h3 { color: var(--green); font-size: 1.2rem; }
  :where(html.page-home) .guarantee p { margin: 0; font-size: 1rem; line-height: 1.6; }
  :where(html.page-home) .guarantee .hand { display: block; font-size: 1.4rem; margin-top: 6px; }
  :where(html.page-home) .seal { width: 84px; height: 84px; }
  :where(html.page-home) .fit { display: grid; gap: 30px; margin-top: 70px; }
  @media (min-width: 800px) { :where(html.page-home) .fit { grid-template-columns: 1.15fr .85fr; gap: 48px; } }
  :where(html.page-home) .fit h3 { font-size: 1.2rem; }
  :where(html.page-home) .fit ul { margin: 0; padding-left: 1.1em; font-family: var(--font-ui); font-size: 1.03rem; line-height: 1.5; }
  :where(html.page-home) .fit li { margin-bottom: 8px; }
  :where(html.page-home) .fit .vet { border-left: 3px solid var(--red); padding-left: 20px; }
  :where(html.page-home) .fit .vet h3 { color: var(--red); }

  /* ---------- FAQ ---------- */
  :where(html.page-home) .faq { background: var(--paper); }
  :where(html.page-home) .faq-list { margin-top: 30px; border-top: 1px solid var(--line); }
  :where(html.page-home) details { border-bottom: 1px solid var(--line); }
  :where(html.page-home) summary {
    cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
    font-family: var(--font-ui); font-weight: 700; font-size: 1.1rem; line-height: 1.35;
  }
  :where(html.page-home) summary::-webkit-details-marker { display: none; }
  :where(html.page-home) summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--font-ui); font-weight: 400; font-size: 1.8rem; color: var(--primary); }
  :where(html.page-home) details[open] summary::after { content: "–"; }
  :where(html.page-home) summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
  :where(html.page-home) .faq-a { padding: 0 0 20px; }
  :where(html.page-home) .faq-a p:last-child { margin-bottom: 0; }

  /* ---------- Zakończenie ---------- */
  :where(html.page-home) .final .micro { color: #CFDCDA; }

  /* ---------- Przypięty przycisk (mobile) ---------- */
  :where(html.page-home) .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--paper); border-top: 1px solid var(--line);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px;
    transform: translateY(110%); transition: transform .25s ease;
  }
  :where(html.page-home) .sticky-cta.show { transform: none; }
  :where(html.page-home) .sticky-info { font-family: var(--font-ui); line-height: 1.2; flex: 1; min-width: 0; }
  :where(html.page-home) .sticky-info b { display: block; font-size: 1.12rem; }
  :where(html.page-home) .sticky-info span { font-size: .8rem; color: var(--green); font-weight: 600; }
  :where(html.page-home) .sticky-cta .btn { padding: 13px 20px; min-height: 50px; font-size: 1rem; white-space: nowrap; }
  @media (min-width: 800px) { :where(html.page-home) .sticky-cta { display: none; } }

  /* ---------- Exit intent ---------- */
  :where(html.page-home) .modal-backdrop {
    position: fixed; inset: 0; z-index: 90; background: rgba(29, 38, 41, .6); display: flex; align-items: center; justify-content: center;
    padding: 16px; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
  }
  :where(html.page-home) .modal-backdrop.open { opacity: 1; visibility: visible; }
  :where(html.page-home) .modal {
    position: relative; background: var(--paper); width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto;
    border-radius: 10px; padding: 34px 26px 22px; text-align: center; outline: none;
  }
  :where(html.page-home) .modal h2 { font-size: clamp(1.55rem, 4.6vw, 2rem); color: var(--ink); margin-bottom: .45em; }
  :where(html.page-home) .modal p { font-size: 1.02rem; }
  :where(html.page-home) .modal .seal { margin: 0 auto 14px; width: 92px; height: 92px; }
  :where(html.page-home) .modal-guarantee { background: var(--green-bg); border-radius: 6px; padding: 14px 16px; font-family: var(--font-ui); font-size: 1rem; line-height: 1.45; margin: 14px 0 20px; text-align: left; }
  :where(html.page-home) .modal-guarantee b { color: var(--green); }
  :where(html.page-home) .modal-close {
    position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
    font-family: var(--font-ui); font-size: 1.9rem; line-height: 1; color: var(--ink-soft);
  }
  :where(html.page-home) .modal-close:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
  /* ---------- Pływający przycisk zakupu (desktop, lewy dolny róg) ---------- */
  :where(html.page-home) .float-cta {
    position: fixed; left: 24px; bottom: 24px; z-index: 55; width: 270px;
    opacity: 0; visibility: hidden; transform: translateX(-24px);
    transition: opacity .35s ease, transform .35s ease, visibility .35s;
  }
  :where(html.page-home) .float-cta.show { opacity: 1; visibility: visible; transform: none; }
  :where(html.page-home) .float-label { display: flex; align-items: flex-end; gap: 2px; margin: 0 0 2px 10px; }
  :where(html.page-home) .float-note { font-size: 1.45rem; transform: rotate(-4deg); transform-origin: left bottom; white-space: nowrap; }
  :where(html.page-home) .float-arrow { width: 62px; height: 42px; color: var(--accent-text); flex: none; margin-bottom: -6px; }
  :where(html.page-home) .float-arrow path { stroke-dasharray: 90; stroke-dashoffset: 90; transition: stroke-dashoffset .7s ease .35s; }
  :where(html.page-home) .float-cta.show .float-arrow path { stroke-dashoffset: 0; }
  :where(html.page-home) .float-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: var(--accent); color: var(--ink); text-decoration: none; border-radius: 10px;
    padding: 12px 12px 12px 18px; box-shadow: 0 14px 30px rgba(35, 38, 43, .22); transition: background .15s ease, transform .15s ease;
  }
  :where(html.page-home) .float-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
  :where(html.page-home) .float-btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
  :where(html.page-home) .float-text { display: flex; flex-direction: column; font-family: var(--font-ui); line-height: 1.2; }
  :where(html.page-home) .float-text b { font-size: 1.12rem; font-weight: 700; }
  :where(html.page-home) .float-text small { font-size: .84rem; font-weight: 600; opacity: .85; margin-top: 2px; }
  :where(html.page-home) .float-ico {
    flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff;
    display: flex; align-items: center; justify-content: center;
  }
  :where(html.page-home) .float-ico svg { width: 20px; height: 20px; }
  :where(html.page-home) .float-cta.show .float-ico svg { animation: nudge 2.6s ease-in-out 1.2s infinite; }
  :where(html.page-home) .float-btn:hover .float-ico svg { animation: none; transform: translateX(3px); }
  @keyframes nudge { 0%, 70%, 100% { transform: translateX(0); } 80% { transform: translateX(5px); } 90% { transform: translateX(0); } 95% { transform: translateX(3px); } }
  @media (max-width: 799px) { :where(html.page-home) .float-cta { display: none; } }
  @media (prefers-reduced-motion: reduce) {
    :where(html.page-home) .float-cta { transition: none; transform: none; }
    :where(html.page-home) .float-arrow path { stroke-dashoffset: 0; transition: none; }
    :where(html.page-home) .float-cta.show .float-ico svg { animation: none; }
  }

  /* ---------- Zaproszenie do quizu (po 1 minucie) ---------- */
  :where(html.page-home) .quiz-pop {
    position: fixed; z-index: 60; right: 20px; bottom: 20px; width: 360px; max-width: calc(100vw - 24px);
    background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px rgba(35, 38, 43, .18);
    padding: 22px 22px 14px; text-align: left;
    opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  :where(html.page-home) .quiz-pop.show { opacity: 1; visibility: visible; transform: none; }
  :where(html.page-home) .quiz-pop h3 { font-size: 1.35rem; margin: 2px 0 8px; padding-right: 26px; }
  :where(html.page-home) .quiz-pop p { font-size: .98rem; line-height: 1.55; margin-bottom: 16px; }
  :where(html.page-home) .quiz-pop-note { display: block; font-size: 1.35rem; transform: rotate(-2deg); transform-origin: left; }
  :where(html.page-home) .quiz-pop .btn { font-size: 1.02rem; padding: 14px 18px; min-height: 52px; }
  :where(html.page-home) .quiz-pop .btn-text { display: block; margin: 4px auto 0; }
  :where(html.page-home) .quiz-pop-close {
    position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer;
    font-family: var(--font-ui); font-size: 1.7rem; line-height: 1; color: var(--ink-soft);
  }
  :where(html.page-home) .quiz-pop-close:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
  @media (max-width: 799px) {
    :where(html.page-home) .quiz-pop { left: 12px; right: 12px; width: auto; max-width: none; bottom: calc(82px + env(safe-area-inset-bottom)); }
  }
  @media (prefers-reduced-motion: reduce) { :where(html.page-home) .quiz-pop { transition: none; transform: none; } }
  :where(html.page-home) body.modal-open { overflow: hidden; }

/* ===== Quiz · html.page-quiz ===== */

/* Te same kolory i fonty co strona główna i ebook (_design-rules.md) */
  :root:where(.page-quiz) {
    --ink: #23262B;
    --ink-soft: #5B6068;
    --paper: #FFFEFB;
    --wall: #F3EADD;
    --cream: #F6F1E7;
    --line: #E3DACB;
    --primary: #1F5C63;
    --primary-tint: #E5EFEE;
    --accent: #D9895B;
    --accent-hover: #CB7848;
    --accent-text: #A85A32;
    --green: #2F7D4F;
    --green-bg: #E3F1E7;
    --red: #B03A2E;
    --red-bg: #F8E6E2;
    --sel: #B8D8FA;

    --font-head: "Fraunces", Georgia, serif;
    --font-body: "Literata", Georgia, serif;
    --font-ui: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-hand: "Caveat", "Segoe Print", cursive;
  }

  :where(html.page-quiz), :where(html.page-quiz) *, :where(html.page-quiz)::before, :where(html.page-quiz) *::before, :where(html.page-quiz)::after, :where(html.page-quiz) *::after { box-sizing: border-box; }
  html:where(.page-quiz) { -webkit-text-size-adjust: 100%; }
  :where(html.page-quiz) body {
    margin: 0; background: var(--paper); color: var(--ink);
    font-family: var(--font-body); font-size: 18px; line-height: 1.65;
    text-rendering: optimizeLegibility; min-height: 100vh; display: flex; flex-direction: column;
  }
  :where(html.page-quiz)::selection, :where(html.page-quiz) ::selection { background: var(--sel); color: var(--ink); }
  :where(html.page-quiz) a { color: var(--primary); text-underline-offset: 3px; }
  :where(html.page-quiz) p { margin: 0 0 1em; }
  :where(html.page-quiz) strong { font-weight: 600; }
  :where(html.page-quiz) h1, :where(html.page-quiz) h2, :where(html.page-quiz) h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; margin: 0; }
  :where(html.page-quiz) h1 { font-size: clamp(2.1rem, 5.4vw, 3.3rem); color: var(--ink); margin-bottom: .45em; }
  :where(html.page-quiz) h2 { font-size: clamp(1.55rem, 3.8vw, 2.15rem); color: var(--ink); margin-bottom: .4em; }
  :where(html.page-quiz) h3 { font-size: 1.2rem; color: var(--primary); margin-bottom: .4em; }
  :where(html.page-quiz) [hidden] { display: none !important; }
  :where(html.page-quiz) .hand { font-family: var(--font-hand); font-weight: 600; color: var(--accent-text); line-height: 1.1; }
  :where(html.page-quiz) .small { font-family: var(--font-ui); font-size: .95rem; color: var(--ink-soft); }
  :where(html.page-quiz) .wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 22px; }
  :where(html.page-quiz) .wide { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 22px; }

  /* "Zaznaczenie myszką" – jak na stronie głównej */
  :where(html.page-quiz) mark.sel {
    color: inherit; padding: .04em .05em; background-color: transparent;
    background-image: linear-gradient(var(--sel), var(--sel)); background-repeat: no-repeat;
    background-size: 0% 100%; transition: background-size var(--dur, 1s) cubic-bezier(.45, .1, .3, 1);
  }
  :where(html.page-quiz) mark.sel.on { background-size: 100% 100%; }
  @media (prefers-reduced-motion: reduce) { :where(html.page-quiz) mark.sel { transition: none; background-size: 100% 100%; } }

  /* Przyciski */
  :where(html.page-quiz) .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-ui); font-weight: 700; font-size: 1.1rem; line-height: 1.2; text-align: center;
    background: var(--accent); color: var(--ink); text-decoration: none;
    padding: 17px 28px; min-height: 56px; border-radius: 6px; border: 0; cursor: pointer; transition: background .15s ease;
  }
  :where(html.page-quiz) .btn:hover { background: var(--accent-hover); }
  :where(html.page-quiz) .btn:focus-visible, :where(html.page-quiz) .btn-ghost:focus-visible, :where(html.page-quiz) .btn-text:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
  :where(html.page-quiz) .btn[disabled] { opacity: .45; cursor: not-allowed; }
  :where(html.page-quiz) .btn .arr { font-weight: 600; }
  :where(html.page-quiz) .btn-ghost {
    display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 6px;
    font-family: var(--font-ui); font-weight: 600; font-size: 1rem; color: var(--ink-soft); padding: 14px 18px; min-height: 52px; cursor: pointer;
  }
  :where(html.page-quiz) .btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink); }
  :where(html.page-quiz) .btn-text {
    background: none; border: 0; cursor: pointer; font-family: var(--font-ui); font-size: 1rem; color: var(--ink-soft);
    text-decoration: underline; text-underline-offset: 3px; padding: 10px 4px;
  }

  /* Nagłówek */
  :where(html.page-quiz) .site-header { background: var(--wall); }
  :where(html.page-quiz) .site-header .wide { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  :where(html.page-quiz) .brand { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--primary); text-decoration: none; }
  :where(html.page-quiz) .brand img { display: block; height: 38px; width: auto; }
  @media (max-width: 560px) { :where(html.page-quiz) .brand img { height: 32px; } }
  :where(html.page-quiz) .foot-logo { display: block; height: 30px; width: auto; margin: 0 0 18px; }
  :where(html.page-quiz) .header-link { font-family: var(--font-ui); font-weight: 600; font-size: .98rem; color: var(--ink); }
  @media (max-width: 560px) { :where(html.page-quiz) .header-link { display: none; } }

  :where(html.page-quiz) main { flex: 1; }

  /* ---------- Ekran startowy ---------- */
  :where(html.page-quiz) .intro { background: var(--wall); padding: 48px 0 70px; }
  :where(html.page-quiz) .intro-grid { display: grid; gap: 40px; align-items: center; }
  @media (min-width: 860px) { :where(html.page-quiz) .intro-grid { grid-template-columns: 1.2fr .8fr; gap: 56px; } :where(html.page-quiz) .intro { padding: 80px 0 100px; } }
  :where(html.page-quiz) .intro-lead { font-size: 1.2rem; line-height: 1.6; max-width: 32em; }
  :where(html.page-quiz) .intro-facts { list-style: none; padding: 0; margin: 22px 0 30px; font-family: var(--font-ui); font-size: 1.02rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 22px; }
  :where(html.page-quiz) .intro-facts li::before { content: "·"; margin-right: 8px; color: var(--accent); font-weight: 700; }
  :where(html.page-quiz) .intro-facts li:first-child::before { content: none; }
  :where(html.page-quiz) .intro-note { display: block; font-size: 1.45rem; margin-top: 22px; transform: rotate(-2deg); transform-origin: left; }
  :where(html.page-quiz) .cover {
    position: relative; width: min(280px, 70vw); margin: 0 auto; aspect-ratio: 1000 / 1598;
    background: url("/img/hero-luna.jpg") center / cover no-repeat;
    border-radius: 3px 8px 8px 3px; box-shadow: 0 18px 40px rgba(35, 38, 43, .25), inset 0 0 0 1px rgba(0,0,0,.05);
    transform: rotate(-2deg);
  }
  :where(html.page-quiz) .cover::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 10px; background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,0)); border-radius: 3px 0 0 3px; }
  :where(html.page-quiz) .cover-text { position: absolute; left: 9%; right: 24%; top: 7%; }
  :where(html.page-quiz) .cover-kicker { font-family: var(--font-ui); font-weight: 700; font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
  :where(html.page-quiz) .cover-title { font-family: var(--font-head); font-weight: 600; color: var(--primary); font-size: clamp(1.5rem, 6vw, 1.85rem); line-height: 1.02; margin: 6px 0 8px; }
  :where(html.page-quiz) .cover-sub { font-family: var(--font-ui); font-size: .68rem; line-height: 1.35; color: var(--ink-soft); }

  /* ---------- Pytania ---------- */
  :where(html.page-quiz) .quiz { padding: 34px 0 80px; }
  :where(html.page-quiz) .progress { margin-bottom: 30px; }
  :where(html.page-quiz) .progress-top { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-ui); font-size: .95rem; color: var(--ink-soft); margin-bottom: 8px; }
  :where(html.page-quiz) .progress-top b { color: var(--ink); }
  :where(html.page-quiz) .bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
  :where(html.page-quiz) .bar span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .35s ease; }
  :where(html.page-quiz) fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
  :where(html.page-quiz) legend { padding: 0; width: 100%; }
  :where(html.page-quiz) legend h2 { outline: none; }
  :where(html.page-quiz) .q-hint { font-family: var(--font-ui); color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 22px; }
  :where(html.page-quiz) .options { display: grid; gap: 12px; margin-top: 8px; }
  :where(html.page-quiz) .opt { position: relative; display: block; cursor: pointer; }
  :where(html.page-quiz) .opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  :where(html.page-quiz) .opt-body {
    display: block; position: relative; padding: 16px 18px 16px 56px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
    font-family: var(--font-ui); font-size: 1.08rem; line-height: 1.4; transition: border-color .15s ease, background .15s ease;
  }
  :where(html.page-quiz) .opt-body::before {
    content: ""; position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
    border: 2px solid #B9B1A2; background: #fff; transition: all .15s ease;
  }
  :where(html.page-quiz) .opt input[type="radio"] + .opt-body::before { border-radius: 50%; }
  :where(html.page-quiz) .opt input[type="checkbox"] + .opt-body::before { border-radius: 5px; }
  :where(html.page-quiz) .opt:hover .opt-body { border-color: #C9BFAE; }
  :where(html.page-quiz) .opt input:checked + .opt-body { border-color: var(--primary); background: var(--primary-tint); }
  :where(html.page-quiz) .opt input:checked + .opt-body::before { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 4px #fff; }
  :where(html.page-quiz) .opt input[type="checkbox"]:checked + .opt-body::before {
    box-shadow: none;
    background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  }
  :where(html.page-quiz) .opt input:focus-visible + .opt-body { outline: 3px solid var(--primary); outline-offset: 2px; }
  :where(html.page-quiz) .q-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; }
  :where(html.page-quiz) .q-nav .btn { min-width: 160px; }

  /* ---------- Wynik ---------- */
  :where(html.page-quiz) .result { padding: 40px 0 90px; }
  :where(html.page-quiz) .result-top { background: var(--wall); padding: 46px 0 50px; }
  :where(html.page-quiz) .score-label { font-family: var(--font-ui); font-weight: 600; color: var(--ink-soft); font-size: 1rem; margin-bottom: 6px; }
  :where(html.page-quiz) .score-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
  :where(html.page-quiz) .score { font-family: var(--font-head); font-weight: 600; font-size: clamp(3.4rem, 10vw, 4.6rem); line-height: 1; color: var(--primary); }
  :where(html.page-quiz) .score-word { font-family: var(--font-ui); font-weight: 700; font-size: 1.1rem; color: var(--primary); }
  :where(html.page-quiz) .meter { position: relative; height: 10px; background: #E6DCCB; border-radius: 5px; overflow: hidden; margin: 6px 0 8px; max-width: 520px; }
  :where(html.page-quiz) .meter span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--primary); border-radius: 5px; transition: width 1.2s cubic-bezier(.3, .1, .2, 1); }
  :where(html.page-quiz) .meter-scale { display: flex; justify-content: space-between; max-width: 520px; font-family: var(--font-ui); font-size: .82rem; color: var(--ink-soft); }
  :where(html.page-quiz) .result-top h2 { margin-top: 26px; font-size: clamp(1.7rem, 4.2vw, 2.4rem); color: var(--ink); }
  :where(html.page-quiz) .result-note { display: block; font-size: 1.4rem; margin-top: 10px; transform: rotate(-1.5deg); transform-origin: left; }
  :where(html.page-quiz) .tone-low .score, :where(html.page-quiz) .tone-low .score-word { color: var(--accent-text); }
  :where(html.page-quiz) .tone-low .meter span { background: var(--accent); }
  :where(html.page-quiz) .safety-box { border-left: 4px solid var(--red); background: var(--red-bg); padding: 18px 20px; border-radius: 0 8px 8px 0; margin: 4px 0 0; font-family: var(--font-ui); font-size: 1.05rem; line-height: 1.5; }
  :where(html.page-quiz) .safety-box b { color: var(--red); }

  :where(html.page-quiz) .recs { list-style: none; padding: 0; margin: 14px 0 34px; }
  :where(html.page-quiz) .recs li { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
  :where(html.page-quiz) .recs li:last-child { border-bottom: 1px solid var(--line); }
  :where(html.page-quiz) .recs .ch { font-family: var(--font-ui); font-weight: 700; color: var(--accent-text); font-size: .98rem; }
  @media (max-width: 480px) { :where(html.page-quiz) .recs li { grid-template-columns: 1fr; gap: 2px; } }
  :where(html.page-quiz) .notes { margin: 0 0 34px; }
  :where(html.page-quiz) .notes p { border-left: 3px solid var(--primary); padding-left: 16px; font-size: 1rem; line-height: 1.6; }
  :where(html.page-quiz) .buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
  :where(html.page-quiz) .buy-info { min-width: 0; }
  :where(html.page-quiz) .buy-price { font-family: var(--font-head); font-weight: 600; font-size: 1.9rem; line-height: 1; margin-bottom: 4px; }
  :where(html.page-quiz) .buy-price small { font-family: var(--font-ui); font-size: 1rem; font-weight: 700; margin-left: 4px; }
  :where(html.page-quiz) .buy-meta { font-family: var(--font-ui); color: var(--ink-soft); font-size: .95rem; }
  :where(html.page-quiz) .buy-guarantee { font-family: var(--font-ui); font-size: .95rem; color: var(--green); font-weight: 600; margin-top: 2px; }
  @media (max-width: 560px) { :where(html.page-quiz) .buy .btn { width: 100%; } }
  :where(html.page-quiz) .buy-again { border-top: 1px solid var(--line); padding-top: 28px; }
  :where(html.page-quiz) .buy-again .small { margin: 10px 0 0; }
  :where(html.page-quiz) .result-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 18px; }

  :where(html.page-quiz) footer { background: #1D2629; color: #B8C2C3; font-family: var(--font-ui); font-size: .92rem; padding: 32px 0; }
  :where(html.page-quiz) footer a { color: #DCE4E5; }
  :where(html.page-quiz) footer p { margin: 0 0 6px; }

/* ===== Strony prawne · html.page-legal ===== */

:root:where(.page-legal) {
    --ink: #23262B;
    --ink-soft: #5B6068;
    --paper: #FFFEFB;
    --wall: #F3EADD;
    --cream: #F6F1E7;
    --line: #E3DACB;
    --primary: #1F5C63;
    --accent: #D9895B;
    --accent-text: #A85A32;
    --green: #2F7D4F;
    --green-bg: #E3F1E7;
    --font-head: "Fraunces", Georgia, serif;
    --font-body: "Literata", Georgia, serif;
    --font-ui: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-hand: "Caveat", "Segoe Print", cursive;
  }
  :where(html.page-legal), :where(html.page-legal) *, :where(html.page-legal)::before, :where(html.page-legal) *::before, :where(html.page-legal)::after, :where(html.page-legal) *::after { box-sizing: border-box; }
  html:where(.page-legal) { -webkit-text-size-adjust: 100%; }
  :where(html.page-legal) body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.7; }
  :where(html.page-legal) a { color: var(--primary); text-underline-offset: 3px; overflow-wrap: anywhere; }
  :where(html.page-legal) p { margin: 0 0 1em; }
  :where(html.page-legal) strong { font-weight: 600; }
  :where(html.page-legal) h1, :where(html.page-legal) h2, :where(html.page-legal) h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin: 0; }
  :where(html.page-legal) h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: .3em; }
  :where(html.page-legal) h2 { font-size: clamp(1.35rem, 3vw, 1.65rem); color: var(--primary); margin: 2.2em 0 .6em; }
  :where(html.page-legal) h3 { font-size: 1.12rem; margin: 1.6em 0 .4em; }
  :where(html.page-legal) ul, :where(html.page-legal) ol { padding-left: 1.3em; margin: 0 0 1em; }
  :where(html.page-legal) li { margin-bottom: .45em; }
  :where(html.page-legal) li::marker { color: var(--accent); }
  :where(html.page-legal) .wide { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
  :where(html.page-legal) .col { max-width: 720px; margin: 0 auto; padding: 0 22px; }
  :where(html.page-legal) .hand { font-family: var(--font-hand); font-weight: 600; color: var(--accent-text); line-height: 1.1; }

  :where(html.page-legal) .site-header { background: var(--wall); }
  :where(html.page-legal) .site-header .wide { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  :where(html.page-legal) .brand { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--primary); text-decoration: none; }
  :where(html.page-legal) .brand img { display: block; height: 38px; width: auto; }
  @media (max-width: 560px) { :where(html.page-legal) .brand img { height: 32px; } }
  :where(html.page-legal) .foot-logo { display: block; height: 30px; width: auto; margin: 0 0 18px; }
  :where(html.page-legal) .header-link { font-family: var(--font-ui); font-weight: 600; font-size: .98rem; color: var(--ink); }
  @media (max-width: 560px) { :where(html.page-legal) .header-link { display: none; } }

  :where(html.page-legal) main { padding: 56px 0 90px; }
  :where(html.page-legal) .meta { font-family: var(--font-ui); color: var(--ink-soft); font-size: .98rem; margin-bottom: 30px; }
  :where(html.page-legal) .lead { font-size: 1.1rem; }
  :where(html.page-legal) .guarantee {
    display: grid; grid-template-columns: 92px 1fr; gap: 20px; align-items: center;
    background: var(--green-bg); border-radius: 10px; padding: 22px; margin: 6px 0 10px;
  }
  :where(html.page-legal) .guarantee h2 { margin: 0 0 .3em; color: var(--green); font-size: 1.35rem; }
  :where(html.page-legal) .guarantee p { margin: 0; font-family: var(--font-ui); font-size: 1.04rem; line-height: 1.5; }
  :where(html.page-legal) .seal { width: 92px; height: 92px; }
  @media (max-width: 480px) { :where(html.page-legal) .guarantee { grid-template-columns: 1fr; text-align: left; } :where(html.page-legal) .seal { width: 76px; height: 76px; } }
  :where(html.page-legal) .note { display: block; font-size: 1.4rem; margin: 8px 0 0; transform: rotate(-1.5deg); transform-origin: left; }
  :where(html.page-legal) .steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1em; }
  :where(html.page-legal) .steps li { counter-increment: s; position: relative; padding: 0 0 0 46px; margin-bottom: 16px; }
  :where(html.page-legal) .steps li::before {
    content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
    background: var(--primary); color: #fff; font-family: var(--font-ui); font-weight: 700; font-size: .95rem;
    display: flex; align-items: center; justify-content: center;
  }
  :where(html.page-legal) .template {
    background: #fff; border: 1px dashed #CFC5B4; border-radius: 8px; padding: 18px 20px; margin: 10px 0 1.2em;
    font-family: var(--font-ui); font-size: 1rem; line-height: 1.55;
  }
  :where(html.page-legal) .template p { margin: 0 0 .5em; }
  :where(html.page-legal) .template p:last-child { margin-bottom: 0; }
  :where(html.page-legal) .ph { background: #FBF1D3; border-radius: 2px; padding: 0 3px; }
  :where(html.page-legal) .card { background: var(--cream); border-radius: 8px; padding: 20px 22px; margin: 0 0 1em; font-family: var(--font-ui); font-size: 1.02rem; line-height: 1.55; }
  :where(html.page-legal) .card p:last-child { margin-bottom: 0; }

  :where(html.page-legal) footer { background: #1D2629; color: #B8C2C3; font-family: var(--font-ui); font-size: .92rem; padding: 40px 0; }
  :where(html.page-legal) footer a { color: #DCE4E5; }
  :where(html.page-legal) .foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 16px; padding: 0; list-style: none; }
  :where(html.page-legal) footer p { margin: 0 0 8px; line-height: 1.55; }

/* ===== Spis treści regulaminu · html.page-regulamin ===== */

:where(html.page-regulamin) .toc { columns: 2 260px; column-gap: 28px; list-style: none; padding: 0; margin: 0; font-family: var(--font-ui); font-size: 1rem; line-height: 1.45; }
  :where(html.page-regulamin) .toc li { break-inside: avoid; margin-bottom: 6px; }
  :where(html.page-regulamin) .defs li { margin-bottom: .6em; }
  :where(html.page-regulamin) h2 { scroll-margin-top: 16px; }

/* ===== Polityka prywatności · html.page-privacy ===== */

:root:where(.page-privacy) {
    --ink: #23262B;
    --ink-soft: #5B6068;
    --paper: #FFFEFB;
    --wall: #F3EADD;
    --cream: #F6F1E7;
    --line: #E3DACB;
    --primary: #1F5C63;
    --accent: #D9895B;
    --font-head: "Fraunces", Georgia, serif;
    --font-body: "Literata", Georgia, serif;
    --font-ui: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  }
  :where(html.page-privacy), :where(html.page-privacy) *, :where(html.page-privacy)::before, :where(html.page-privacy) *::before, :where(html.page-privacy)::after, :where(html.page-privacy) *::after { box-sizing: border-box; }
  html:where(.page-privacy) { -webkit-text-size-adjust: 100%; }
  :where(html.page-privacy) body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.7; }
  :where(html.page-privacy) a { color: var(--primary); text-underline-offset: 3px; overflow-wrap: anywhere; }
  :where(html.page-privacy) p { margin: 0 0 1em; }
  :where(html.page-privacy) strong { font-weight: 600; }
  :where(html.page-privacy) h1, :where(html.page-privacy) h2, :where(html.page-privacy) h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin: 0; }
  :where(html.page-privacy) h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: .3em; }
  :where(html.page-privacy) h2 { font-size: clamp(1.35rem, 3vw, 1.65rem); color: var(--primary); margin: 2.2em 0 .6em; }
  :where(html.page-privacy) h3 { font-size: 1.12rem; margin: 1.6em 0 .4em; }
  :where(html.page-privacy) ul { padding-left: 1.2em; margin: 0 0 1em; }
  :where(html.page-privacy) li { margin-bottom: .4em; }
  :where(html.page-privacy) li::marker { color: var(--accent); }
  :where(html.page-privacy) .wide { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
  :where(html.page-privacy) .col { max-width: 720px; margin: 0 auto; padding: 0 22px; }

  :where(html.page-privacy) .site-header { background: var(--wall); }
  :where(html.page-privacy) .site-header .wide { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  :where(html.page-privacy) .brand { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--primary); text-decoration: none; }
  :where(html.page-privacy) .brand img { display: block; height: 38px; width: auto; }
  @media (max-width: 560px) { :where(html.page-privacy) .brand img { height: 32px; } }
  :where(html.page-privacy) .foot-logo { display: block; height: 30px; width: auto; margin: 0 0 18px; }
  :where(html.page-privacy) .header-link { font-family: var(--font-ui); font-weight: 600; font-size: .98rem; color: var(--ink); }
  @media (max-width: 560px) { :where(html.page-privacy) .header-link { display: none; } }

  :where(html.page-privacy) main { padding: 56px 0 90px; }
  :where(html.page-privacy) .meta { font-family: var(--font-ui); color: var(--ink-soft); font-size: .98rem; margin-bottom: 30px; }
  :where(html.page-privacy) .lead { font-size: 1.1rem; }
  :where(html.page-privacy) .card { background: var(--cream); border-radius: 8px; padding: 20px 22px; margin: 0 0 1em; font-family: var(--font-ui); font-size: 1.02rem; line-height: 1.55; }
  :where(html.page-privacy) .card p:last-child { margin-bottom: 0; }
  :where(html.page-privacy) .purpose { border-top: 1px solid var(--line); padding: 18px 0 6px; }
  :where(html.page-privacy) .purpose:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 1em; }
  :where(html.page-privacy) .purpose h3 { margin: 0 0 .5em; }
  :where(html.page-privacy) .purpose dl { margin: 0; font-family: var(--font-ui); font-size: 1rem; line-height: 1.5; display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; }
  :where(html.page-privacy) .purpose dt { color: var(--ink-soft); font-weight: 600; }
  :where(html.page-privacy) .purpose dd { margin: 0; }
  @media (max-width: 560px) { :where(html.page-privacy) .purpose dl { grid-template-columns: 1fr; gap: 0; } :where(html.page-privacy) .purpose dd { margin-bottom: 8px; } }

  :where(html.page-privacy) footer { background: #1D2629; color: #B8C2C3; font-family: var(--font-ui); font-size: .92rem; padding: 40px 0; }
  :where(html.page-privacy) footer a { color: #DCE4E5; }
  :where(html.page-privacy) .foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 16px; padding: 0; list-style: none; }
  :where(html.page-privacy) footer p { margin: 0 0 8px; line-height: 1.55; }

/* ===== Lista poradników · html.page-guides ===== */

:root:where(.page-guides) {
      --ink: #23262B; --muted: #5B6068; --paper: #FFFEFB;
      --wall: #F3EADD; --cream: #F6F1E7; --line: #E3DACB;
      --primary: #1F5C63; --tint: #E5EFEE; --accent: #D9895B;
      --accent-hover: #CB7848; --accent-text: #A85A32;
      --head: "Fraunces", Georgia, serif;
      --body: "Literata", Georgia, serif;
      --ui: "Source Sans 3", system-ui, sans-serif;
    }
    :where(html.page-guides), :where(html.page-guides) *, :where(html.page-guides)::before, :where(html.page-guides) *::before, :where(html.page-guides)::after, :where(html.page-guides) *::after { box-sizing: border-box; }
    html:where(.page-guides) { -webkit-text-size-adjust: 100%; }
    :where(html.page-guides) body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.8 var(--body); }
    :where(html.page-guides)::selection, :where(html.page-guides) ::selection { background: #B8D8FA; color: var(--ink); }
    :where(html.page-guides) a { color: var(--primary); text-underline-offset: 4px; }
    :where(html.page-guides) a:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 5px; }
    :where(html.page-guides) img { display: block; max-width: 100%; height: auto; }
    :where(html.page-guides) h1, :where(html.page-guides) h2, :where(html.page-guides) h3 { margin: 0; font-family: var(--head); font-weight: 600; letter-spacing: -.025em; line-height: 1.17; }
    :where(html.page-guides) p { margin: 0 0 1.2em; }
    :where(html.page-guides) .wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
    :where(html.page-guides) .skip { position: absolute; top: 8px; left: 8px; z-index: 20; padding: 8px 16px; background: var(--primary); color: white; transform: translateY(-160%); }
    :where(html.page-guides) .skip:focus { transform: none; }
    :where(html.page-guides) .site-header { background: var(--wall); border-bottom: 1px solid rgba(31,92,99,.1); }
    :where(html.page-guides) .header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
    :where(html.page-guides) .brand img { width: 246px; }
    :where(html.page-guides) .header-nav { display: flex; gap: 30px; align-items: center; font: 600 16px/1.3 var(--ui); }
    :where(html.page-guides) .header-nav > a:not(.btn) { text-decoration: none; }
    :where(html.page-guides) .btn { display: inline-flex; justify-content: center; align-items: center; gap: 13px; min-height: 51px; padding: 15px 23px; border-radius: 5px; background: var(--accent); color: var(--ink); font: 700 17px/1.3 var(--ui); text-decoration: none; text-align: center; transition: background .15s; }
    :where(html.page-guides) .btn:hover { background: var(--accent-hover); }
    :where(html.page-guides) .header-nav .btn { min-height: 43px; padding: 11px 18px; font-size: 15px; }
    :where(html.page-guides) .index-hero { padding: 28px 0 46px; background: var(--wall); }
    :where(html.page-guides) .breadcrumbs { display: flex; gap: 10px; margin: 0 0 32px; color: var(--muted); font: 14px/1.6 var(--ui); }
    :where(html.page-guides) .breadcrumbs a { color: inherit; text-decoration: none; }
    :where(html.page-guides) .breadcrumbs a:hover { text-decoration: underline; }
    :where(html.page-guides) .eyebrow { margin: 0 0 18px; color: var(--primary); font: 700 12px/1.5 var(--ui); letter-spacing: .13em; text-transform: uppercase; }
    :where(html.page-guides) h1 { max-width: 900px; font-size: clamp(2.4rem, 5vw, 3.6rem); }
    :where(html.page-guides) h1 span { color: var(--primary); }
    :where(html.page-guides) .hero-lead { max-width: 775px; margin: 25px 0 0; color: #4A5055; font-size: 18px; line-height: 1.8; }
    :where(html.page-guides) .guides { padding: 53px 0 72px; }
    :where(html.page-guides) .listing-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 25px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
    :where(html.page-guides) .listing-heading h2 { color: var(--primary); font-size: 25px; }
    :where(html.page-guides) .listing-heading p { margin: 0; font: 14px/1.6 var(--ui); color: var(--muted); }
    :where(html.page-guides) .guide-card + .guide-card { margin-top: 28px; }
    :where(html.page-guides) .guide-card { display: grid; grid-template-columns: .92fr 1.08fr; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
    :where(html.page-guides) .guide-image { display: block; position: relative; min-height: 360px; overflow: hidden; background: var(--wall); }
    :where(html.page-guides) .guide-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 76%; transition: transform .3s; }
    :where(html.page-guides) .guide-image:hover img { transform: scale(1.025); }
    :where(html.page-guides) .guide-copy { padding: 39px 43px; align-self: center; }
    :where(html.page-guides) .guide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 19px; font: 700 11px/1.5 var(--ui); text-transform: uppercase; letter-spacing: .09em; }
    :where(html.page-guides) .guide-category { color: var(--primary); }
    :where(html.page-guides) .guide-copy h3 { max-width: 475px; margin-bottom: 18px; font-size: clamp(1.7rem, 3vw, 2.35rem); }
    :where(html.page-guides) .guide-copy h3 a { color: var(--ink); text-decoration: none; }
    :where(html.page-guides) .guide-copy h3 a:hover { color: var(--primary); }
    :where(html.page-guides) .guide-copy > p { color: var(--muted); font: 17px/1.8 var(--ui); }
    :where(html.page-guides) .guide-link { display: inline-flex; align-items: center; gap: 16px; padding-block: 6px; margin-top: 5px; font: 700 16px/1.6 var(--ui); text-decoration: none; border-bottom: 1px solid var(--primary); }
    :where(html.page-guides) .guide-link span { font-size: 22px; }
    :where(html.page-guides) .ebook-section { padding: 59px 0 62px; background: var(--cream); border-top: 1px solid var(--line); }
    :where(html.page-guides) .ebook-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 85px; }
    :where(html.page-guides) .ebook-section h2 { margin-bottom: 19px; color: var(--primary); font-size: clamp(1.9rem, 3.5vw, 2.9rem); }
    :where(html.page-guides) .ebook-section p:not(.eyebrow) { color: var(--muted); font: 17px/1.8 var(--ui); }
    :where(html.page-guides) .ebook-includes { list-style: none; padding: 0; margin: 0 0 25px; font: 17px/1.6 var(--ui); }
    :where(html.page-guides) .ebook-includes li { display: flex; gap: 12px; margin-bottom: 10px; }
    :where(html.page-guides) .ebook-includes li::before { content: "✓"; color: var(--primary); font-weight: 700; }
    :where(html.page-guides) .ebook-section .smallprint { margin: 11px 0 0; font-size: 13px !important; }
    :where(html.page-guides) .quiz-invite { margin-top: 26px; padding-top: 23px; border-top: 1px solid var(--line); font: 16px/1.7 var(--ui); }
    :where(html.page-guides) .quiz-invite a { display: inline-block; margin-top: 5px; }
    @media (max-width: 850px) {
      :where(html.page-guides) .wrap { width: min(712px, calc(100% - 44px)); }
      :where(html.page-guides) .header-inner { min-height: 75px; }
      :where(html.page-guides) .brand img { width: 215px; }
      :where(html.page-guides) .header-nav > a:not(.btn) { display: none; }
      :where(html.page-guides) .index-hero { padding: 23px 0 43px; }
      :where(html.page-guides) .breadcrumbs { margin-bottom: 33px; }
      :where(html.page-guides) .guide-card { grid-template-columns: 1fr; }
      :where(html.page-guides) .guide-image { min-height: 330px; }
      :where(html.page-guides) .guide-image img { object-position: center 77%; }
      :where(html.page-guides) .guide-copy { padding: 30px; }
      :where(html.page-guides) .ebook-grid { grid-template-columns: 1fr; gap: 22px; }
      :where(html.page-guides) .ebook-section { padding-block: 43px; }
    }
    @media (max-width: 520px) {
      :where(html.page-guides) .wrap { width: calc(100% - 40px); }
      :where(html.page-guides) .header-inner { min-height: 71px; gap: 12px; }
      :where(html.page-guides) .brand img { width: 186px; }
      :where(html.page-guides) .header-nav .btn { min-height: 39px; font-size: 13px; padding: 9px 12px; }
      :where(html.page-guides) .header-nav .btn span { display: none; }
      :where(html.page-guides) h1 { font-size: clamp(2.2rem, 9.5vw, 3rem); }
      :where(html.page-guides) .hero-lead { margin-top: 21px; font-size: 17px; }
      :where(html.page-guides) .breadcrumbs { margin-bottom: 29px; font-size: 12px; }
      :where(html.page-guides) .guides { padding: 33px 0 43px; }
      :where(html.page-guides) .listing-heading h2 { font-size: 23px; }
      :where(html.page-guides) .guide-image { min-height: 255px; }
      :where(html.page-guides) .guide-copy { padding: 26px 23px; }
      :where(html.page-guides) .guide-copy h3 { font-size: 28px; }
      :where(html.page-guides) .guide-meta { font-size: 10px; gap: 9px; }
      :where(html.page-guides) .guide-copy > p { font-size: 16px; }
      :where(html.page-guides) .ebook-section h2 { font-size: 32px; }
      :where(html.page-guides) .ebook-section .btn { width: 100%; }
    }
    @media (max-width: 360px) {
      :where(html.page-guides) .wrap { width: calc(100% - 32px); }
      :where(html.page-guides) .brand img { width: 164px; }
      :where(html.page-guides) .header-nav .btn { font-size: 12px; padding-inline: 9px; }
    }
    @media (prefers-reduced-motion: reduce) { :where(html.page-guides), :where(html.page-guides) * { transition: none !important; } }

/* ===== Artykuły · html.page-article ===== */

:root:where(.page-article) {
      --ink: #23262B;
      --muted: #5B6068;
      --paper: #FFFEFB;
      --wall: #F3EADD;
      --cream: #F6F1E7;
      --line: #E3DACB;
      --primary: #1F5C63;
      --tint: #E5EFEE;
      --accent: #D9895B;
      --accent-hover: #CB7848;
      --accent-text: #A85A32;
      --head: "Fraunces", Georgia, serif;
      --body: "Literata", Georgia, serif;
      --ui: "Source Sans 3", system-ui, sans-serif;
      --hand: "Caveat", "Segoe Print", cursive;
    }
    :where(html.page-article), :where(html.page-article) *, :where(html.page-article)::before, :where(html.page-article) *::before, :where(html.page-article)::after, :where(html.page-article) *::after { box-sizing: border-box; }
    html:where(.page-article) { scroll-behavior: smooth; scroll-padding-top: 28px; -webkit-text-size-adjust: 100%; }
    :where(html.page-article) body { margin: 0; color: var(--ink); background: var(--paper); font: 17px/1.85 var(--body); }
    :where(html.page-article)::selection, :where(html.page-article) ::selection { color: var(--ink); background: #B8D8FA; }
    :where(html.page-article) a { color: var(--primary); text-underline-offset: 4px; }
    :where(html.page-article) button, :where(html.page-article) summary, :where(html.page-article) a { -webkit-tap-highlight-color: transparent; }
    :where(html.page-article) a:focus-visible, :where(html.page-article) summary:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 5px; border-radius: 3px; }
    :where(html.page-article) img { display: block; max-width: 100%; height: auto; }
    :where(html.page-article) p { margin: 0 0 1.3em; }
    :where(html.page-article) h1, :where(html.page-article) h2, :where(html.page-article) h3 { margin: 0; font-family: var(--head); font-weight: 600; letter-spacing: -.025em; }
    :where(html.page-article) h1 { max-width: 950px; font-size: clamp(2.5rem, 5.1vw, 4rem); line-height: 1.12; }
    :where(html.page-article) h2 { margin-bottom: 24px; color: var(--primary); font-size: clamp(1.8rem, 3vw, 2.35rem); line-height: 1.23; }
    :where(html.page-article) h3 { margin: 30px 0 14px; font-size: 1.38rem; line-height: 1.35; }
    :where(html.page-article) strong { font-weight: 600; }
    :where(html.page-article) .wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
    :where(html.page-article) .skip { position: absolute; top: 8px; left: 8px; z-index: 30; padding: 8px 16px; background: var(--primary); color: white; transform: translateY(-160%); }
    :where(html.page-article) .skip:focus { transform: none; }
    :where(html.page-article) .reading-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 20; pointer-events: none; }
    :where(html.page-article) .reading-progress span { display: block; width: 100%; height: 100%; background: var(--primary); transform: scaleX(0); transform-origin: left; }
    :where(html.page-article) .site-header { background: var(--wall); border-bottom: 1px solid rgba(31,92,99,.1); }
    :where(html.page-article) .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
    :where(html.page-article) .brand img { width: 246px; height: auto; }
    :where(html.page-article) .header-nav { display: flex; align-items: center; gap: 30px; font: 600 16px/1.3 var(--ui); }
    :where(html.page-article) .nav-plain { text-decoration: none; }
    :where(html.page-article) .btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 15px 23px; border: 1px solid transparent; border-radius: 5px; background: var(--accent); color: var(--ink); font: 700 17px/1.3 var(--ui); text-decoration: none; text-align: center; transition: background .18s, transform .18s; }
    :where(html.page-article) .btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
    :where(html.page-article) .btn-small { min-height: 43px; padding: 11px 18px; font-size: 15px; }
    :where(html.page-article) .btn .arrow { font-size: 21px; line-height: 1; }
    :where(html.page-article) .article-heading { padding: 30px 0 54px; background: var(--wall); }
    :where(html.page-article) .breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 45px; color: var(--muted); font: 14px/1.6 var(--ui); }
    :where(html.page-article) .breadcrumbs a { color: inherit; text-decoration: none; }
    :where(html.page-article) .breadcrumbs a:hover { text-decoration: underline; }
    :where(html.page-article) .breadcrumbs .separator { color: #9D9A92; }
    :where(html.page-article) .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 19px; font: 700 12px/1.5 var(--ui); letter-spacing: .12em; text-transform: uppercase; }
    :where(html.page-article) .category { color: var(--primary); }
    :where(html.page-article) .preview-label { padding: 4px 9px; border: 1px solid #CCBEA8; border-radius: 3px; color: #62513D; font-size: 10px; letter-spacing: .09em; }
    :where(html.page-article) .article-heading h1 span { color: var(--primary); }
    :where(html.page-article) .lead { max-width: 775px; margin: 24px 0 25px; font-size: 19px; line-height: 1.8; color: #4A5055; }
    :where(html.page-article) .article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; color: var(--muted); font: 14px/1.5 var(--ui); }
    :where(html.page-article) .meta-line { height: 1px; width: 30px; background: #BAAB94; }
    :where(html.page-article) .article-layout { display: grid; grid-template-columns: minmax(0, 712px) minmax(0, 284px); column-gap: 84px; align-items: start; margin-top: 52px; margin-bottom: 80px; }
    :where(html.page-article) .article { min-width: 0; grid-column: 1; grid-row: 1; }
    :where(html.page-article) .article-sidebar { grid-column: 2; grid-row: 1; position: sticky; top: 27px; min-width: 0; }
    :where(html.page-article) .contents { border-top: 2px solid var(--primary); padding-top: 19px; font-family: var(--ui); }
    :where(html.page-article) .contents summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 12px; color: var(--primary); font: 700 12px/1.4 var(--ui); text-transform: uppercase; letter-spacing: .14em; cursor: pointer; }
    :where(html.page-article) .contents summary::-webkit-details-marker { display: none; }
    :where(html.page-article) .contents summary::after { content: "−"; font-size: 20px; font-weight: 400; }
    :where(html.page-article) .contents:not([open]) summary::after { content: "+"; }
    :where(html.page-article) .contents ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
    :where(html.page-article) .contents li { counter-increment: toc; }
    :where(html.page-article) .contents a { display: grid; grid-template-columns: 23px 1fr; gap: 7px; align-items: baseline; padding: 9px 0; color: var(--muted); font: 16px/1.4 var(--ui); text-decoration: none; transition: color .15s; }
    :where(html.page-article) .contents a::before { content: "0" counter(toc); color: #928B80; font-size: 11px; font-weight: 600; }
    :where(html.page-article) .contents a:hover, :where(html.page-article) .contents a[aria-current="location"] { color: var(--primary); }
    :where(html.page-article) .contents a[aria-current="location"] { font-weight: 700; }
    :where(html.page-article) .contents a[aria-current="location"]::before { color: var(--accent-text); }
    :where(html.page-article) .sidebar-offer { margin-top: 29px; padding: 22px; background: var(--cream); border: 1px solid var(--line); border-radius: 5px; }
    :where(html.page-article) .sidebar-offer-intro { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 17px; margin-bottom: 21px; }
    :where(html.page-article) .book-cover { position: relative; overflow: hidden; aspect-ratio: 5 / 8; background: var(--wall) url('/img/hero-luna.jpg') center / cover no-repeat; border-radius: 2px 5px 5px 2px; box-shadow: 6px 8px 17px rgba(35,38,43,.15); }
    :where(html.page-article) .book-cover::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 5%; background: linear-gradient(90deg, rgba(35,38,43,.2), transparent); }
    :where(html.page-article) .book-cover-title { position: absolute; left: 9%; top: 8%; right: 13%; color: var(--primary); font: 600 13px/1.05 var(--head); letter-spacing: -.04em; }
    :where(html.page-article) .sidebar-offer .book-cover { transform: rotate(-4deg); }
    :where(html.page-article) .sidebar-offer .overline { margin: 0 0 6px; color: var(--accent-text); font: 700 10px/1.4 var(--ui); text-transform: uppercase; letter-spacing: .1em; }
    :where(html.page-article) .sidebar-offer h2 { margin: 0; font-size: 23px; line-height: 1.15; }
    :where(html.page-article) .sidebar-offer > p { margin: 0 0 18px; font: 15px/1.6 var(--ui); color: var(--muted); }
    :where(html.page-article) .sidebar-offer .btn { width: 100%; min-height: 46px; padding: 12px; font-size: 15px; }
    :where(html.page-article) .offer-smallprint { margin-top: 12px; text-align: center; color: var(--muted); font: 12px/1.5 var(--ui); }
    :where(html.page-article) .article-image { margin: 0 0 35px; }
    :where(html.page-article) .article-image img { width: 100%; aspect-ratio: 1.8; object-fit: cover; object-position: center 78%; border-radius: 5px; }
    :where(html.page-article) figcaption { margin-top: 11px; color: var(--muted); font: 13px/1.6 var(--ui); }
    :where(html.page-article) .takeaway { position: relative; margin: 0 0 48px; padding: 26px 29px 25px; border-left: 3px solid var(--primary); background: var(--tint); border-radius: 0 5px 5px 0; }
    :where(html.page-article) .takeaway .small-heading { display: block; margin-bottom: 10px; color: var(--primary); font: 700 12px/1.5 var(--ui); text-transform: uppercase; letter-spacing: .11em; }
    :where(html.page-article) .takeaway p { margin: 0; font-size: 16px; line-height: 1.85; }
    :where(html.page-article) .article-section { scroll-margin-top: 30px; margin-top: 51px; }
    :where(html.page-article) .article-section > :last-child { margin-bottom: 0; }
    :where(html.page-article) .article-list { margin: 25px 0 30px; padding-left: 24px; }
    :where(html.page-article) .article-list li { padding-left: 8px; margin-bottom: 13px; }
    :where(html.page-article) .article-list li::marker { color: var(--accent-text); }
    :where(html.page-article) .editorial-quote { margin: 36px 0; padding: 8px 0 8px 26px; border-left: 2px solid var(--accent); color: var(--primary); font: 600 25px/1.5 var(--head); }
    :where(html.page-article) .editorial-quote p { margin: 0; }
    :where(html.page-article) .inline-offer { margin: 48px 0; padding: 31px; border: 1px solid #CEDBD6; border-radius: 5px; background: #F0F5F2; }
    :where(html.page-article) .offer-eyebrow { margin: 0 0 11px; color: var(--accent-text); font: 700 11px/1.5 var(--ui); letter-spacing: .13em; text-transform: uppercase; }
    :where(html.page-article) .inline-offer h2 { font-size: 28px; margin-bottom: 14px; }
    :where(html.page-article) .inline-offer p:not(.offer-eyebrow) { margin-bottom: 20px; font: 17px/1.75 var(--ui); color: #4A5755; }
    :where(html.page-article) .inline-offer .text-link { display: inline-block; margin-top: 14px; font: 16px/1.6 var(--ui); }
    :where(html.page-article) .steps { padding: 0; margin: 29px 0; list-style: none; counter-reset: step; }
    :where(html.page-article) .steps li { counter-increment: step; display: grid; grid-template-columns: 37px 1fr; gap: 17px; padding: 21px 0; border-top: 1px solid var(--line); }
    :where(html.page-article) .steps li::before { content: "0" counter(step); padding-top: 2px; font: 600 22px/1.4 var(--head); color: var(--accent-text); }
    :where(html.page-article) .steps h3 { margin: 0 0 8px; font-size: 21px; }
    :where(html.page-article) .steps p { margin: 0; font-size: 16px; }
    :where(html.page-article) .note { margin-top: 29px; padding: 21px 24px; background: var(--cream); border: 1px solid var(--line); border-radius: 4px; font: 16px/1.7 var(--ui); }
    :where(html.page-article) .note strong { display: block; margin-bottom: 5px; color: var(--primary); font-weight: 700; }
    :where(html.page-article) .note p { margin: 0; }
    :where(html.page-article) .faq-list { border-top: 1px solid var(--line); }
    :where(html.page-article) .faq-item { border-bottom: 1px solid var(--line); }
    :where(html.page-article) .faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 21px 0; cursor: pointer; font: 600 19px/1.5 var(--ui); }
    :where(html.page-article) .faq-item summary::-webkit-details-marker { display: none; }
    :where(html.page-article) .faq-item summary::after { content: "+"; flex-shrink: 0; color: var(--primary); font-size: 25px; line-height: 1; font-weight: 400; }
    :where(html.page-article) .faq-item[open] summary::after { content: "−"; }
    :where(html.page-article) .faq-item p { padding: 0 32px 22px 0; margin: 0; color: var(--muted); font-size: 16px; }
    :where(html.page-article) .article-end { margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font: 13px/1.7 var(--ui); }
    :where(html.page-article) .closing-offer { padding: 69px 0 74px; background: var(--primary); color: var(--paper); overflow: hidden; }
    :where(html.page-article) .closing-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 89px; align-items: center; max-width: 980px; margin-inline: auto; }
    :where(html.page-article) .closing-art { position: relative; padding: 13px 22px 15px; }
    :where(html.page-article) .closing-art .book-cover { width: 223px; transform: rotate(-5deg); box-shadow: 14px 20px 25px rgba(0,0,0,.23); }
    :where(html.page-article) .closing-art .book-cover-title { font-size: 35px; }
    :where(html.page-article) .hand-note { position: absolute; left: 165px; bottom: -12px; width: 180px; color: #F4D2A9; font: 500 25px/1.05 var(--hand); transform: rotate(-5deg); }
    :where(html.page-article) .closing-offer .offer-eyebrow { color: #F4D2A9; }
    :where(html.page-article) .closing-offer h2 { max-width: 610px; margin-bottom: 19px; color: var(--paper); font-size: clamp(2rem, 3.7vw, 2.9rem); }
    :where(html.page-article) .closing-copy > p:not(.offer-eyebrow) { color: #DDE9E6; font: 17px/1.8 var(--ui); }
    :where(html.page-article) .includes { list-style: none; padding: 0; margin: 22px 0 27px; font: 17px/1.5 var(--ui); }
    :where(html.page-article) .includes li { display: flex; gap: 11px; align-items: baseline; margin-bottom: 10px; }
    :where(html.page-article) .includes li::before { content: "✓"; color: #F4D2A9; }
    :where(html.page-article) .closing-offer .offer-smallprint { text-align: left; color: #DDE9E6; font-size: 13px; }
    :where(html.page-article) .closing-offer .quiz-link { display: inline-block; margin-top: 21px; color: var(--paper); font: 16px/1.7 var(--ui); }
    :where(html.page-article) .closing-offer .pace-note { margin: 18px 0 0; font-size: 12px !important; color: #CCDCD8 !important; }
    :where(html.page-article) .closing-offer a:focus-visible { outline-color: #F4D2A9; }
    :where(html.page-article) .mobile-offer { display: none; }
    :where(html.page-article) .article-meta a { color: inherit; }
    :where(html.page-article) .article-meta time { white-space: nowrap; }
    :where(html.page-article) .source-ref { margin-left: 3px; font: 600 11px/1 var(--ui); white-space: nowrap; vertical-align: super; text-decoration: none; }
    :where(html.page-article) .urgent-note { margin: 0 0 38px; padding: 20px 24px; background: #FBEEE5; border-left: 3px solid var(--accent-text); border-radius: 0 4px 4px 0; font: 16px/1.7 var(--ui); }
    :where(html.page-article) .urgent-note strong { display: block; color: #834521; font-weight: 700; margin-bottom: 6px; }
    :where(html.page-article) .urgent-note p { margin: 0; }
    :where(html.page-article) .observation-card { margin: 30px 0; padding: 27px; border: 1px solid var(--line); border-radius: 5px; background: var(--cream); }
    :where(html.page-article) .observation-card h3 { margin: 0 0 16px; font-size: 25px; color: var(--primary); }
    :where(html.page-article) .observation-fields { margin: 0 0 20px; font: 16px/1.7 var(--ui); }
    :where(html.page-article) .observation-fields dt { margin-top: 15px; color: var(--primary); font-weight: 700; }
    :where(html.page-article) .observation-fields dd { margin: 2px 0 0; color: var(--muted); }
    :where(html.page-article) .observation-card .download-link { display: inline-block; padding-block: 7px; font: 700 16px/1.5 var(--ui); }
    :where(html.page-article) .observation-card .download-note { margin: 6px 0 0; color: var(--muted); font: 13px/1.6 var(--ui); }
    :where(html.page-article) .next-steps { padding: 0; margin: 26px 0; list-style: none; }
    :where(html.page-article) .next-steps > li { padding: 22px 0; border-top: 1px solid var(--line); }
    :where(html.page-article) .next-steps h3 { margin: 0 0 10px; }
    :where(html.page-article) .next-steps p:last-child { margin-bottom: 0; }
    :where(html.page-article) .sources { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font: 14px/1.7 var(--ui); color: var(--muted); overflow-wrap: anywhere; }
    :where(html.page-article) .sources h2 { font-size: 23px; margin-bottom: 16px; }
    :where(html.page-article) .sources ol { margin: 0 0 17px; padding-left: 21px; }
    :where(html.page-article) .sources li { padding-left: 3px; margin-bottom: 9px; }
    :where(html.page-article) .sources .source-scope { display: block; }
    :where(html.page-article) .sources p { margin-bottom: 10px; }
    :where(html.page-article) .article-end a { display: inline-block; padding-block: 6px; }
    @media (min-width: 1500px) { :where(html.page-article) .article-heading { padding-bottom: 62px; } }
    @media (max-width: 1100px) {
      :where(html.page-article) .article-layout { grid-template-columns: minmax(0, 1fr) 250px; column-gap: 45px; }
      :where(html.page-article) .sidebar-offer { padding: 18px; }
      :where(html.page-article) .sidebar-offer-intro { gap: 13px; grid-template-columns: 62px 1fr; }
      :where(html.page-article) .sidebar-offer h2 { font-size: 21px; }
      :where(html.page-article) .closing-grid { gap: 50px; }
    }
    @media (max-width: 850px) {
      :where(html.page-article) .wrap { width: min(712px, calc(100% - 44px)); }
      :where(html.page-article) .header-inner { min-height: 75px; }
      :where(html.page-article) .brand img { width: 215px; }
      :where(html.page-article) .header-nav { gap: 19px; }
      :where(html.page-article) .nav-plain { display: none; }
      :where(html.page-article) .article-heading { padding: 22px 0 36px; }
      :where(html.page-article) .breadcrumbs { margin-bottom: 31px; font-size: 13px; }
      :where(html.page-article) .article-layout { display: flex; flex-direction: column; gap: 0; margin-top: 29px; margin-bottom: 52px; }
      :where(html.page-article) .article-sidebar { width: 100%; position: static; margin-bottom: 29px; }
      :where(html.page-article) .contents { padding-top: 15px; border-bottom: 1px solid var(--line); }
      :where(html.page-article) .contents summary { padding-bottom: 15px; }
      :where(html.page-article) .contents ol { padding-bottom: 14px; }
      :where(html.page-article) .contents a { padding-block: 7px; }
      :where(html.page-article) .sidebar-offer { display: none; }
      :where(html.page-article) .article { width: 100%; }
      :where(html.page-article) .closing-grid { grid-template-columns: 170px minmax(0,1fr); gap: 30px; }
      :where(html.page-article) .closing-art { padding: 0 8px 12px; }
      :where(html.page-article) .closing-art .book-cover { width: 150px; }
      :where(html.page-article) .closing-art .book-cover-title { font-size: 24px; }
      :where(html.page-article) .hand-note { left: 50px; bottom: -47px; width: 150px; font-size: 22px; }
      :where(html.page-article) .closing-offer { padding: 53px 0 58px; }
      :where(html.page-article) .mobile-offer { position: fixed; inset: auto 0 0; z-index: 15; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 22px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,254,251,.98); box-shadow: 0 -3px 20px rgba(35,38,43,.05); transform: translateY(120%); visibility: hidden; transition: transform .2s, visibility .2s; font-family: var(--ui); }
      :where(html.page-article) .mobile-offer.is-visible { transform: translateY(0); visibility: visible; }
      :where(html.page-article) .mobile-offer strong { display: block; font-size: 14px; line-height: 1.2; }
      :where(html.page-article) .mobile-offer small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.3; }
      :where(html.page-article) .mobile-offer .btn { flex-shrink: 0; min-height: 44px; padding: 11px 15px; font-size: 14px; }
    }
    @media (max-width: 520px) {
      :where(html.page-article) body { font-size: 16px; line-height: 1.85; }
      :where(html.page-article) .wrap { width: calc(100% - 40px); }
      :where(html.page-article) .brand img { width: 186px; }
      :where(html.page-article) .header-inner { gap: 12px; min-height: 71px; }
      :where(html.page-article) .header-nav .btn { min-height: 39px; padding: 9px 12px; font-size: 13px; gap: 7px; }
      :where(html.page-article) .header-nav .btn .arrow { display: none; }
      :where(html.page-article) .breadcrumbs { gap: 7px; margin-bottom: 27px; font-size: 12px; }
      :where(html.page-article) .breadcrumbs .breadcrumb-category, :where(html.page-article) .breadcrumbs .last-separator { display: none; }
      :where(html.page-article) .eyebrow { margin-bottom: 17px; gap: 9px; font-size: 10px; letter-spacing: .08em; }
      :where(html.page-article) .preview-label { padding: 3px 6px; font-size: 9px; }
      :where(html.page-article) h1 { font-size: clamp(2.2rem, 9.8vw, 3rem); line-height: 1.13; }
      :where(html.page-article) .lead { margin-top: 21px; font-size: 17px; line-height: 1.8; }
      :where(html.page-article) .article-meta { font-size: 12px; gap: 8px; }
      :where(html.page-article) .meta-line { width: 20px; }
      :where(html.page-article) .article-image { margin-bottom: 28px; }
      :where(html.page-article) .article-image img { aspect-ratio: 1.25; object-position: 50% 79%; }
      :where(html.page-article) .takeaway { padding: 22px; margin-bottom: 35px; }
      :where(html.page-article) .takeaway p { font-size: 15px; }
      :where(html.page-article) .article-section { margin-top: 38px; }
      :where(html.page-article) h2 { font-size: 29px; margin-bottom: 20px; }
      :where(html.page-article) .editorial-quote { padding-left: 21px; font-size: 23px; margin-block: 29px; }
      :where(html.page-article) .inline-offer { padding: 25px 23px; margin-block: 36px; }
      :where(html.page-article) .inline-offer h2 { font-size: 26px; }
      :where(html.page-article) .inline-offer .btn { width: 100%; font-size: 16px; padding-inline: 15px; }
      :where(html.page-article) .steps li { gap: 12px; grid-template-columns: 30px 1fr; }
      :where(html.page-article) .faq-item summary { font-size: 17px; }
      :where(html.page-article) .closing-grid { display: flex; flex-direction: column; gap: 37px; align-items: flex-start; }
      :where(html.page-article) .closing-art { width: 100%; padding: 6px 0 5px 12px; }
      :where(html.page-article) .closing-art .book-cover { width: 124px; }
      :where(html.page-article) .closing-art .book-cover-title { font-size: 20px; }
      :where(html.page-article) .hand-note { left: 175px; bottom: 47px; width: 125px; font-size: 26px; }
      :where(html.page-article) .closing-offer h2 { font-size: 34px; }
      :where(html.page-article) .closing-copy .btn { width: 100%; }
      :where(html.page-article) .closing-offer .offer-smallprint { text-align: center; }
      :where(html.page-article) .mobile-offer { padding-inline: 16px; gap: 11px; }
    }
    @media (max-width: 360px) {
      :where(html.page-article) .brand img { width: 164px; }
      :where(html.page-article) .header-nav .btn { padding-inline: 9px; font-size: 12px; }
      :where(html.page-article) .wrap { width: calc(100% - 32px); }
      :where(html.page-article) .mobile-offer strong { font-size: 12px; }
      :where(html.page-article) .mobile-offer .btn { font-size: 13px; padding-inline: 12px; }
      :where(html.page-article) .hand-note { left: 162px; }
    }
    @media (prefers-reduced-motion: reduce) {
      html:where(.page-article) { scroll-behavior: auto; }
      :where(html.page-article), :where(html.page-article) *, :where(html.page-article)::before, :where(html.page-article) *::before, :where(html.page-article)::after, :where(html.page-article) *::after { transition: none !important; }
    }
    @media print {
      :where(html.page-article) .reading-progress, :where(html.page-article) .article-sidebar, :where(html.page-article) .header-nav, :where(html.page-article) .inline-offer, :where(html.page-article) .closing-offer, :where(html.page-article) .mobile-offer, :where(html.page-article) .site-footer { display: none !important; }
      :where(html.page-article) .wrap { width: 100%; }
      :where(html.page-article) .article-layout { display: block; }
      :where(html.page-article) .article-heading { background: none; }
    }

/* ===== Status zamówienia · html.page-order ===== */

:root:where(.page-order) {
    --ink: #23262B;
    --ink-soft: #5B6068;
    --paper: #FFFEFB;
    --wall: #F3EADD;
    --cream: #F6F1E7;
    --line: #E3DACB;
    --primary: #1F5C63;
    --primary-tint: #E5EFEE;
    --accent: #D9895B;
    --accent-hover: #CB7848;
    --accent-text: #A85A32;
    --green: #2F7D4F;
    --green-bg: #E3F1E7;
    --font-head: "Fraunces", Georgia, serif;
    --font-body: "Literata", Georgia, serif;
    --font-ui: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-hand: "Caveat", "Segoe Print", cursive;
  }
  :where(html.page-order), :where(html.page-order) *, :where(html.page-order)::before, :where(html.page-order) *::before, :where(html.page-order)::after, :where(html.page-order) *::after { box-sizing: border-box; }
  html:where(.page-order) { -webkit-text-size-adjust: 100%; }
  :where(html.page-order) body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 1.65; min-height: 100vh; display: flex; flex-direction: column; }
  :where(html.page-order) a { color: var(--primary); text-underline-offset: 3px; }
  :where(html.page-order) p { margin: 0 0 1em; }
  :where(html.page-order) strong { font-weight: 600; }
  :where(html.page-order) h1, :where(html.page-order) h2, :where(html.page-order) h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; margin: 0; }
  :where(html.page-order) h1 { font-size: clamp(2.1rem, 5.4vw, 3.2rem); margin-bottom: .4em; }
  :where(html.page-order) h2 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); color: var(--primary); margin: 0 0 .6em; }
  :where(html.page-order) .wide { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 22px; }
  :where(html.page-order) .col { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 22px; }
  :where(html.page-order) .hand { font-family: var(--font-hand); font-weight: 600; color: var(--accent-text); line-height: 1.1; }
  :where(html.page-order) .small { font-family: var(--font-ui); font-size: .95rem; color: var(--ink-soft); }

  :where(html.page-order) .site-header { background: var(--wall); }
  :where(html.page-order) .site-header .wide { display: flex; align-items: center; height: 64px; }
  :where(html.page-order) .brand { display: block; }
  :where(html.page-order) .brand img { display: block; height: 38px; width: auto; }
  @media (max-width: 560px) { :where(html.page-order) .brand img { height: 32px; } }

  :where(html.page-order) main { flex: 1; }
  :where(html.page-order) .top { background: var(--wall); padding: 46px 0 64px; }
  :where(html.page-order) .top-grid { display: grid; gap: 40px; align-items: center; }
  @media (min-width: 860px) { :where(html.page-order) .top-grid { grid-template-columns: 1.25fr .75fr; gap: 56px; } :where(html.page-order) .top { padding: 70px 0 90px; } }
  :where(html.page-order) .paid { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-weight: 700; font-size: .95rem; color: var(--green); background: var(--green-bg); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
  :where(html.page-order) .paid svg { width: 16px; height: 16px; }
  :where(html.page-order) .paid.wait { color: #7A5700; background: #FBF1D3; }
  :where(html.page-order) .paid.fail { color: #B03A2E; background: #F8E6E3; }
  :where(html.page-order) .wait svg { animation: spin 1.6s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { :where(html.page-order) .wait svg { animation: none; } }
  :where(html.page-order) .lead { font-size: 1.15rem; max-width: 32em; }

  :where(html.page-order) .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    font-family: var(--font-ui); font-weight: 700; font-size: 1.15rem; line-height: 1.2;
    background: var(--accent); color: var(--ink); text-decoration: none;
    padding: 18px 30px; min-height: 60px; border-radius: 6px; border: 0; cursor: pointer; transition: background .15s ease;
  }
  :where(html.page-order) .btn:hover { background: var(--accent-hover); }
  :where(html.page-order) .btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
  :where(html.page-order) .btn svg { width: 22px; height: 22px; }
  :where(html.page-order) .btn.is-disabled { opacity: .5; pointer-events: none; }
  :where(html.page-order) .download-meta { font-family: var(--font-ui); font-size: .95rem; color: var(--ink-soft); margin-top: 12px; }
  :where(html.page-order) .download-note { display: block; font-size: 1.45rem; margin-top: 18px; transform: rotate(-2deg); transform-origin: left; }
  :where(html.page-order) .missing { font-family: var(--font-ui); font-size: .95rem; color: #9A6A00; background: #FBF1D3; border-radius: 6px; padding: 10px 14px; margin-top: 14px; }

  :where(html.page-order) .cover {
    position: relative; width: min(260px, 66vw); margin: 0 auto; aspect-ratio: 1000 / 1598;
    background: url("/img/hero-luna.jpg") center / cover no-repeat;
    border-radius: 3px 8px 8px 3px; box-shadow: 0 18px 40px rgba(35, 38, 43, .25), inset 0 0 0 1px rgba(0,0,0,.05);
    transform: rotate(-2deg);
  }
  :where(html.page-order) .cover::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 10px; background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,0)); border-radius: 3px 0 0 3px; }
  :where(html.page-order) .cover-text { position: absolute; left: 9%; right: 24%; top: 7%; }
  :where(html.page-order) .cover-kicker { font-family: var(--font-ui); font-weight: 700; font-size: .52rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
  :where(html.page-order) .cover-title { font-family: var(--font-head); font-weight: 600; color: var(--primary); font-size: clamp(1.4rem, 5.6vw, 1.7rem); line-height: 1.02; margin: 6px 0 8px; }
  :where(html.page-order) .cover-sub { font-family: var(--font-ui); font-size: .64rem; line-height: 1.35; color: var(--ink-soft); }

  :where(html.page-order) section.next { padding: 64px 0 30px; }
  :where(html.page-order) .steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
  :where(html.page-order) .steps li { counter-increment: s; position: relative; padding: 18px 0 18px 58px; border-top: 1px solid var(--line); }
  :where(html.page-order) .steps li:last-child { border-bottom: 1px solid var(--line); }
  :where(html.page-order) .steps li::before {
    content: counter(s); position: absolute; left: 0; top: 18px; width: 38px; height: 38px; border-radius: 50%;
    background: var(--primary); color: #fff; font-family: var(--font-ui); font-weight: 700; display: flex; align-items: center; justify-content: center;
  }
  :where(html.page-order) .steps b { display: block; font-family: var(--font-ui); font-size: 1.08rem; }
  :where(html.page-order) .steps p { margin: 2px 0 0; font-size: 1rem; }
  :where(html.page-order) section.help { padding: 40px 0 80px; }
  :where(html.page-order) .help-box { background: var(--cream); border-radius: 8px; padding: 22px 24px; font-family: var(--font-ui); font-size: 1.02rem; line-height: 1.55; }
  :where(html.page-order) .help-box p:last-child { margin-bottom: 0; }

  :where(html.page-order) footer { background: #1D2629; color: #B8C2C3; font-family: var(--font-ui); font-size: .92rem; padding: 36px 0; }
  :where(html.page-order) footer a { color: #DCE4E5; }
  :where(html.page-order) .foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 14px; padding: 0; list-style: none; }
  :where(html.page-order) footer p { margin: 0 0 6px; line-height: 1.55; }

/* ===== Komunikaty aplikacji · html.page-message ===== */

:where(html.page-message) body { margin: 0; background: #FFFEFB; color: #23262B; font-family: "Source Sans 3", system-ui, sans-serif; font-size: 18px; line-height: 1.6; }
  :where(html.page-message) header { background: #F3EADD; }
  :where(html.page-message) header div, :where(html.page-message) main { max-width: 680px; margin: 0 auto; padding: 0 22px; }
  :where(html.page-message) header div { height: 64px; display: flex; align-items: center; }
  :where(html.page-message) header img { height: 36px; display: block; }
  :where(html.page-message) main { padding-top: 56px; padding-bottom: 80px; }
  :where(html.page-message) h1 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 2rem; line-height: 1.2; margin: 0 0 .5em; }
  :where(html.page-message) a { color: #1F5C63; }
  :where(html.page-message) .btn { display: inline-block; background: #D9895B; color: #23262B; font-weight: 700; text-decoration: none; padding: 14px 24px; border-radius: 6px; margin-top: 8px; }

/* ===== Wspólna stopka ===== */

/* Wspólna stopka strony głównej, listy poradników i wpisów. */
.site-footer {
  background: #1D2629;
  color: #B8C2C3;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .92rem;
  font-weight: 400;
  padding: 40px 0 120px;
}
.site-footer .footer-inner {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 22px;
}
.site-footer .foot-logo {
  display: block;
  height: 30px;
  width: auto;
  margin: 0 0 18px;
}
.site-footer a { color: #DCE4E5; text-underline-offset: 3px; overflow-wrap: anywhere; }
.site-footer a:focus-visible { outline: 2px solid #D9895B; outline-offset: 4px; }
.site-footer .foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  line-height: 1.7;
}
.site-footer .foot-links li { margin: 0; padding: 0; }
.site-footer p { margin: 0 0 8px; line-height: 1.55; }
@media (min-width: 800px) { .site-footer { padding-bottom: 48px; } }
@media print { .site-footer { display: none; } }

/* ===== Statyczne ustawienia przeniesione z atrybutów style ===== */

.svg-definitions { position: absolute; }
.gtm-frame { display: none; visibility: hidden; }
:where(html.page-home) .previous-attempts-heading { margin-top: 46px; }
:where(html.page-home) .printables-description { margin-top: 28px; }
:where(html.page-home) .method-heading { margin-top: 56px; }
:where(html.page-home) .offer-value-note { margin-bottom: 22px; }
:where(html.page-home) .specialist-note { margin: 10px 0 0; }
:where(html.page-quiz) .quiz-noscript-note { margin-top: 24px; }
:where(html.page-quiz) .safety-explanation { margin-top: 20px; }
:where(html.page-article) .article-image img.article-illustration { aspect-ratio: 3 / 2; object-position: center; }
