/*
Theme Name: Lunarro
Description: One-page „Dziennik z Mbale” (makieta v3.21) jako front-page WordPress.
Author: smartecommerce
Version: 3.21
*/

  /* ── Dziennik z Mbale: papier, odbitki, maszynowe marginalia. Jedna nocna rozkładówka. ── */
  :root {
    --paper:    #EDE4D1;
    --paper-2:  #E3D7BE;
    --paper-3:  #D8C9A9;
    --kraft:    #C8AE82;
    --tape:     rgba(214, 190, 140, 0.75);
    --ink:      #221C16;
    --ink-2:    #4E463C;
    --ink-3:    #857A6B;
    --rule:     rgba(34, 28, 22, 0.18);
    --rule-2:   rgba(34, 28, 22, 0.09);
    --rust:     #A9452A;
    --rust-2:   #7E3320;
    --night:    #0F1220;
    --night-2:  #171B2E;
    --moon:     #EFE3CD;
    --moon-2:   #A9A6B4;

    --f-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
    --f-mono:  "Courier Prime", "Courier New", monospace;
    --f-ui:    "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

    --margin: clamp(1.25rem, 5vw, 5rem);
    --gutter: 12rem;   /* kolumna marginaliów */
    color-scheme: light;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink-2);
    font-family: var(--f-serif);
    font-size: 1.15rem;
    line-height: 1.55;
    font-variation-settings: "opsz" 16;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
  }
  /* ziarno papieru */
  body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: .35;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.16  0 0 0 0 0.1  0 0 0 .18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    mix-blend-mode: multiply;
  }
  img { display: block; max-width: 100%; }
  a { color: inherit; }
  a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
  p { margin: 0; }
  h1, h2, h3 { font-family: var(--f-serif); font-weight: 400; margin: 0; color: var(--ink); text-wrap: balance; letter-spacing: -0.005em; }
  h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.05; font-variation-settings: "opsz" 72; }
  h3 { font-size: 1.6rem; line-height: 1.15; font-variation-settings: "opsz" 36; }
  em { font-style: italic; }
  .mono { font-family: var(--f-mono); font-size: .86rem; line-height: 1.5; color: var(--ink-3); letter-spacing: .01em; }
  .mono b { font-weight: 700; color: var(--ink-2); }

  .page { max-width: 84rem; margin: 0 auto; padding-inline: var(--margin); }

  /* wpis = marginalia | treść. Linia marginesu jak w zeszycie. */
  .entry { display: grid; grid-template-columns: var(--gutter) minmax(0, 1fr); gap: 0 clamp(1.5rem, 4vw, 4rem); padding-block: clamp(3rem, 7vw, 6.5rem); position: relative; }
  .entry + .entry { border-top: 1px solid var(--rule); }
  .marg { position: relative; padding-right: 1rem; border-right: 1px solid var(--rust); }
  .marg .mono { position: sticky; top: 1.5rem; }
  .marg .mono span { display: block; }
  .marg .mono .num { font-size: 2.2rem; line-height: 1; color: var(--rust); font-weight: 700; margin-bottom: .6rem; }
  /* ciekawostka na marginesie: dla czytelnika, który zna Ugandę, ale nie Bugisu */
  .aside { margin-top: 1.6rem; padding-top: .8rem; border-top: 1px solid var(--rust); font-family: var(--f-serif); font-style: italic; font-size: .98rem; line-height: 1.45; color: var(--ink-2); font-variation-settings: "opsz" 14; max-width: 11rem; }
  .aside b { display: block; font-family: var(--f-mono); font-style: normal; font-weight: 700; font-size: .72rem; color: var(--rust); margin-bottom: .35rem; }
  .night .aside { border-top-color: var(--moon-2); color: var(--moon-2); max-width: 30rem; }
  .night .aside b { color: var(--moon); }
  .map { margin-top: 1.4rem; max-width: 10rem; }
  .map svg { width: 100%; height: auto; display: block; overflow: visible; }
  .map .lbl { font-family: var(--f-mono); font-size: .72rem; color: var(--rust); margin-top: .3rem; }
  .body { min-width: 0; }

  /* odbitki */
  .print { position: relative; background: #fbf8f1; padding: .55rem .55rem 2.4rem; box-shadow: 0 1px 2px rgba(34,28,22,.18), 0 12px 24px -12px rgba(34,28,22,.45); }
  .print img { width: 100%; height: 100%; object-fit: cover; }
  .print .cap { position: absolute; left: .65rem; right: .65rem; bottom: .6rem; font-family: var(--f-mono); font-size: .8rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .print.tape::before { content: ""; position: absolute; top: -.7rem; left: 50%; width: 5.5rem; height: 1.5rem; transform: translateX(-50%) rotate(-2deg); background: var(--tape); box-shadow: 0 1px 1px rgba(0,0,0,.08); z-index: 2; }
  .print.tilt-l { transform: rotate(-1.4deg); }
  .print.tilt-r { transform: rotate(1.1deg); }
  .frame { overflow: hidden; }

  /* ── Sylwetki w tle: atrament, 6–8% krycia, nigdy pod zdjęciami ── */
  .entry > .marg, .entry > .body, .night .page > * { position: relative; z-index: 1; }
  .deco { position: absolute; pointer-events: none; z-index: 0; fill: var(--ink); opacity: .07; }
  .deco.stroke { fill: none; stroke: var(--ink); stroke-width: 2; }
  /* ziarna: wygenerowane (OpenRouter, Gemini 3.1 Flash Image), zielone przy Mbale, palone przy cenniku; do podmiany na wlasne od Jana */
  .bean { position: absolute; z-index: 0; pointer-events: none; height: auto; filter: drop-shadow(3px 6px 5px rgba(34,28,22,.28)); }


  .night .deco { fill: var(--moon); opacity: .09; }
  .deco.ridge { opacity: .05; }
  .deco-logo { position: absolute; pointer-events: none; z-index: 0; opacity: .07; }
  .deco-logo img { width: 100%; height: auto; }
  .night { position: relative; overflow: clip; }
  section[id], footer[id] { scroll-margin-top: 5.5rem; }

  /* ── Nagłówek: sticky, nazwa marki po lewej, logo w osi, menu po obu stronach. Kurczy się po przewinięciu. ── */
  header.top { position: sticky; top: 0; z-index: 4; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; padding-block: .9rem; transition: padding 220ms ease; }
  .nav-side { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-width: 0; }
  .nav-side .menu { min-width: 0; overflow: hidden; }
  .brand-text { text-decoration: none; color: var(--ink); flex: none; }
  .brand-text b { font-family: var(--f-serif); font-weight: 500; font-size: 1.7rem; letter-spacing: .04em; display: block; line-height: 1; transition: font-size 220ms ease; }
  .brand-text span { font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); display: block; margin-top: .3rem; white-space: nowrap; transition: opacity 220ms ease, max-height 220ms ease; max-height: 1.2rem; overflow: hidden; }
  /* logo jak medalion: wystaje w połowie poniżej krawędzi nagłówka */
  .logo-link { justify-self: center; align-self: start; display: block; line-height: 0; margin-bottom: -4.6rem; transition: margin 220ms ease; }
  .logo-link img { width: 9rem; height: 9rem; padding: .35rem; background: var(--paper); border-radius: 50%; box-shadow: 0 1px 2px rgba(34,28,22,.18), 0 12px 22px -12px rgba(34,28,22,.5); transition: width 220ms ease, height 220ms ease; }
  header.top.is-compact .logo-link { margin-bottom: -1.9rem; }
  .menu { display: flex; align-items: center; gap: 1.5rem; font-family: var(--f-ui); font-size: .95rem; font-weight: 500; white-space: nowrap; }
  header.top.is-compact .nav { padding-block: .45rem; }
  header.top.is-compact .logo-link img { width: 4.2rem; height: 4.2rem; }
  header.top.is-compact .brand-text b { font-size: 1.3rem; }
  header.top.is-compact .brand-text span { opacity: 0; max-height: 0; margin-top: 0; }
  @media (prefers-reduced-motion: reduce) { .nav, .logo-link img, .brand-text b, .brand-text span { transition: none; } }
  .menu a { text-decoration: none; color: var(--ink-2); border-bottom: 1px solid transparent; padding-bottom: .15rem; }
  .menu a:hover { color: var(--ink); border-bottom-color: var(--rust); }
  .menu .lang { font-family: var(--f-mono); color: var(--ink-3); }
  .menu .lang b { color: var(--ink); }
  .menu-mobile { display: none; }

  .btn { display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.3rem; border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--paper); font: 600 .95rem/1 var(--f-ui); text-decoration: none; cursor: pointer; transition: background-color 150ms, color 150ms; }
  .btn:hover { background: var(--rust); border-color: var(--rust); }
  .btn.ghost { background: transparent; color: var(--ink); }
  .btn.ghost:hover { background: var(--ink); color: var(--paper); }
  .btn.moon { background: var(--moon); border-color: var(--moon); color: var(--night); }
  .btn.moon:hover { background: #fff; }

  /* ── Wpis 1: hero ── */
  .hero .body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.02; font-variation-settings: "opsz" 72; font-weight: 300; max-width: 15ch; }
  .hero h1 b { font-weight: 500; }
  .hero .lead { margin-top: 1.4rem; max-width: 44ch; font-size: 1.2rem; }
  .notes { margin-top: 1.4rem; font-family: var(--f-mono); font-size: .9rem; color: var(--rust); }
  .notes span { display: inline-block; margin-right: 1rem; }
  .notes span::before { content: "\2014\00a0"; color: var(--ink-3); }
  .cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
  .hero-stack { position: relative; padding-bottom: 8rem; }
  .hero-stack .print.big { max-width: 24rem; margin-left: auto; }
  .hero-stack .print.big .frame { aspect-ratio: 3 / 4; }
  .hero-stack .print.small { position: absolute; left: 0; bottom: 0; width: 44%; max-width: 14rem; }
  .hero-stack .print.small .frame { aspect-ratio: 3 / 4; }
  .stamp { position: relative; margin-top: 2.5rem; width: 7.5rem; height: 7.5rem; border: 3px double var(--rust); border-radius: 50%; color: var(--rust); display: grid; place-content: center; text-align: center; font-family: var(--f-mono); font-size: .7rem; line-height: 1.2; transform: rotate(-12deg); opacity: .85; mix-blend-mode: multiply; }
  .stamp b { display: block; font-size: 1.9rem; font-weight: 700; line-height: 1; }

  /* ── Wpis 2: pochodzenie z linijką wysokości ── */
  .origin .body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
  /* przekrój Elgonu: wulkan tarczowy z kalderą, pas kawy na zboczu Bugisu */
  .profile { grid-column: 1 / -1; margin-bottom: .5rem; }
  .profile svg { width: 100%; height: auto; display: block; overflow: visible; }
  .profile text { font-family: var(--f-mono); font-size: 12px; fill: var(--ink-3); }
  .profile .peak { fill: var(--ink); font-size: 13px; }
  .profile .zone { fill: var(--rust); font-weight: 700; }
  .profile .cap { font-family: var(--f-serif); font-style: italic; font-size: 15px; fill: var(--ink-2); }
  .spec { font-family: var(--f-mono); font-size: .92rem; width: 100%; border-collapse: collapse; margin-top: 1.4rem; }
  .spec td { padding: .5rem 0; border-top: 1px dotted var(--rule); vertical-align: top; }
  .spec td:first-child { color: var(--ink-3); width: 7.5rem; }
  .spec td:last-child { color: var(--ink); }
  .spec em { color: var(--rust); font-style: normal; font-weight: 700; }
  .prints-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; margin-top: 1rem; }
  .prints-2 .frame { aspect-ratio: 3 / 4; }
  .prints-2 .print:nth-child(2) { margin-top: 2.5rem; }
  .prints-2 .print:nth-child(3) { grid-column: 1 / -1; max-width: 70%; }
  .prints-2 .print:nth-child(3) .frame { aspect-ratio: 4 / 3; }

  /* trasa ziarna */
  .route { margin-top: clamp(2rem, 4vw, 3.5rem); border-top: 1px dotted var(--rule); padding-top: 1.5rem; }
  .route svg { width: 100%; height: auto; display: block; overflow: visible; }
  .route text { font-family: var(--f-mono); font-size: 13px; fill: var(--ink-2); }
  .route .lbl { font-size: 17px; fill: var(--ink); font-family: var(--f-serif); font-style: italic; }
  .route .sm { fill: var(--ink-3); font-size: 11px; }
  .route-text { display: none; }

  /* ── Droga ziarna: itinerarium + mapa z Natural Earth, rysowana atramentem ── */
  .journey { grid-column: 1 / -1; margin-top: clamp(2rem, 4vw, 3.5rem); border-top: 1px dotted var(--rule); padding-top: 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
  .jhead { grid-column: 1 / -1; }
  .jhead h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-variation-settings: "opsz" 48; }
  .jhead .mono { margin-top: .4rem; max-width: 64ch; }
  .jlist { list-style: none; margin: 0; padding: 0; }
  .jlist li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .9rem; padding: .9rem 0; border-top: 1px dotted var(--rule); align-items: start; }
  .jlist li:first-child { border-top: 0; }
  .jli { width: 2.2rem; height: 2.2rem; color: var(--rust); margin-top: .1rem; }
  .jlist b { display: block; font-family: var(--f-serif); font-weight: 500; font-size: 1.15rem; color: var(--ink); }
  .jlist .mono { display: block; margin-top: .1rem; }
  .jlist p { margin: .3rem 0 0; font-size: 1rem; color: var(--ink-2); }
  .jmap { width: 100%; height: auto; display: block; overflow: visible; }
  .jland { fill: rgba(34,28,22,.12); stroke: rgba(34,28,22,.45); stroke-width: 1; stroke-linejoin: round; }
  .jeq { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 5; opacity: .7; }
  .jsea { fill: none; stroke: var(--rust); stroke-width: 2.8; stroke-dasharray: 7 7; stroke-linecap: round; stroke-linejoin: round; }
  .jroad { fill: none; stroke: var(--rust); stroke-width: 3.2; stroke-dasharray: 2 6; stroke-linecap: round; }
  .jstop circle { fill: var(--rust); }
  .jstop .ring { fill: none; stroke: var(--rust); stroke-width: 1.2; opacity: .6; }
  .jicon { color: var(--ink); }
  .jl { font-family: var(--f-serif); font-style: italic; font-size: 36px; fill: var(--ink); }
  .jt { font-family: var(--f-mono); font-size: 21px; fill: var(--ink-3); letter-spacing: .04em; }
  .jeqt { font-size: 18px; }

  /* ── Wpis 3: farmer ── */
  .farmer .body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
  .farmer .print .frame { aspect-ratio: 3 / 4; }
  blockquote { margin: 0; font-family: var(--f-serif); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.3; color: var(--ink); font-variation-settings: "opsz" 36; max-width: 26ch; text-wrap: pretty; }
  .who { margin-top: 1rem; font-family: var(--f-mono); font-size: .86rem; color: var(--ink-3); }
  .who b { color: var(--ink-2); font-weight: 700; }

  /* ── Wpis 4: Marek i Weronika ── */
  .diary .body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .diary .text p + p { margin-top: 1rem; }
  .diary .text { max-width: 58ch; }
  .diary .text .sig { font-family: var(--f-mono); font-size: .9rem; color: var(--ink-3); margin-top: 1.4rem; }
  .diary .pile { position: relative; padding-top: 9rem; }
  .diary .pile .print.team { position: relative; z-index: 2; }
  .diary .pile .print.team .frame { aspect-ratio: 4 / 3; }
  .diary .pile .print.m { position: absolute; left: -1rem; top: 0; width: 42%; max-width: 12rem; z-index: 1; }
  .diary .pile .print.w { position: absolute; right: 0; top: 1.5rem; width: 42%; max-width: 12rem; z-index: 1; }
  .diary .pile .print.m .frame, .diary .pile .print.w .frame { aspect-ratio: 3 / 4; }
  .steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; font-family: var(--f-mono); font-size: .9rem; }
  .steps li { border-top: 1px solid var(--ink); padding-top: .6rem; }
  .steps li b { display: block; color: var(--ink); font-weight: 700; margin-bottom: .25rem; }
  .steps li span { color: var(--ink-3); }

  /* ── Wpis 5: z kamery. Pionowe paski taśmy 35 mm, jeden kadr na pasek ── */
  .reel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; margin-top: 2rem; align-items: start; }
  .reel .strip:nth-child(2) { margin-top: 2rem; }
  .reel .strip:nth-child(4) { margin-top: 1rem; }
  .strip { position: relative; cursor: zoom-in; }
  .strip:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
  .film { position: relative; display: grid; grid-template-columns: .8rem .7rem 1fr .8rem; background: #17130f; padding: .55rem 0; box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 26px -12px rgba(34,28,22,.6); }
  .perf { background-image: repeating-linear-gradient(to bottom, transparent 0 .45rem, var(--paper) .45rem 1.05rem, transparent 1.05rem 1.5rem); background-size: .45rem 1.5rem; background-position: center .3rem; background-repeat: repeat-y; }
  .edge { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--f-mono); font-size: .5rem; letter-spacing: .22em; color: #9a8b6f; text-align: center; white-space: nowrap; overflow: hidden; align-self: center; line-height: 1; }
  .frames { display: grid; grid-template-rows: 1.1rem 1fr 1.1rem; gap: .35rem; }
  .frames .ghost { background: #221c16; border-top: 1px solid #2c251d; border-bottom: 1px solid #2c251d; }
  .frames .main { position: relative; aspect-ratio: 9 / 16; background: #000; overflow: hidden; }
  .strip video { width: 100%; height: 100%; object-fit: cover; display: block; filter: sepia(.28) contrast(1.06) saturate(.85); }
  /* winieta + ziarno + migotanie jak w projektorze */
  .frames .main::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.45) 100%); }
  .frames .main::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>"); }
  .strip.playing .frames .main::after { animation: flicker 140ms steps(2) infinite; }
  @keyframes flicker { 0% { opacity: .3; } 100% { opacity: .42; } }
  .strip .play { position: absolute; left: 50%; top: 50%; width: 3rem; height: 3rem; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid rgba(239,227,205,.85); background: rgba(23,19,15,.55); display: grid; place-items: center; pointer-events: none; transition: opacity 200ms; z-index: 2; }
  .strip .play::before { content: ""; width: 0; height: 0; border-left: .85rem solid var(--moon); border-top: .5rem solid transparent; border-bottom: .5rem solid transparent; margin-left: .2rem; }
  .strip.playing .play { opacity: 0; }
  .strip .num { position: absolute; right: 1.1rem; top: .1rem; font-family: var(--f-mono); font-size: .55rem; color: #9a8b6f; letter-spacing: .1em; }
  .strip .cap { margin-top: .6rem; font-family: var(--f-mono); font-size: .8rem; color: var(--ink-3); }
  .strip.tilt-l { transform: rotate(-1.2deg); } .strip.tilt-r { transform: rotate(1deg); }
  @media (prefers-reduced-motion: reduce) { .strip.playing .frames .main::after { animation: none; } }
  .pc-front video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
  .pc-front img[hidden], .pc-front video[hidden] { display: none; }

  /* ── Nocna rozkładówka: Góry Księżycowe ── */
  .night { background: var(--night); color: var(--moon-2); border-top: 1px solid var(--rule); }
  .night .page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
  .night h2, .night h3 { color: var(--moon); }
  .night h2 { font-weight: 300; }
  .night .mono { color: var(--moon-2); }
  .night p { max-width: 46ch; }
  .night .bag { position: relative; max-width: 26rem; margin: 0 auto; }
  .night .bag img { width: 100%; }
  .night .bag .logo { position: absolute; right: -1.5rem; top: -1.5rem; width: 6.5rem; opacity: .95; }
  .night dl { margin: 1.5rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; font-family: var(--f-mono); font-size: .9rem; }
  .night dt { color: var(--moon-2); } .night dd { margin: 0; color: var(--moon); }

  /* ── Cennik jak w zeszycie ── */
  .price .body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .menu-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
  .menu-list li { padding: 1.1rem 0; border-top: 1px dotted var(--rule); }
  .menu-list li:last-child { border-bottom: 1px dotted var(--rule); }
  .line { display: flex; align-items: baseline; gap: .6rem; }
  .line h3 { white-space: nowrap; }
  .line .dots { flex: 1; border-bottom: 2px dotted var(--rule); transform: translateY(-.35em); }
  .line .amt { font-family: var(--f-serif); font-size: 1.6rem; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .line .amt small { font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); margin-left: .3rem; }
  .menu-list .desc { margin-top: .3rem; font-size: 1.02rem; }
  .menu-list .tags { margin-top: .5rem; font-family: var(--f-mono); font-size: .84rem; color: var(--rust); }
  .menu-list .tags span { margin-right: .9rem; }
  .menu-list .opts { margin-top: .7rem; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-family: var(--f-mono); font-size: .86rem; color: var(--ink-2); }
  .menu-list .opts label { cursor: pointer; }
  .menu-list .opts input { accent-color: var(--rust); margin-right: .3rem; vertical-align: -1px; }
  .menu-list .add { margin-top: .8rem; display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-ui); font-size: .92rem; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: .1rem; }
  .menu-list .add:hover { color: var(--rust); border-color: var(--rust); }
  .shelf { position: relative; padding-top: 1rem; }
  .shelf .print { max-width: 19rem; }
  .shelf .print .frame { aspect-ratio: 3 / 4; }
  .shelf { position: sticky; top: 2rem; }
  .shelf .p1 { margin-left: 4%; }
  .shelf .p2 { margin-top: -28%; margin-left: 46%; }
  .fine { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-3); margin-top: 1.4rem; max-width: 60ch; }

  /* ── Dla firm: notatka + karta zamówienia próbek ── */
  .b2b .body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .b2b .text { max-width: 54ch; }
  .b2b .text p + p { margin-top: 1rem; }
  .terms { list-style: none; margin: 1.5rem 0 0; padding: 0; font-family: var(--f-mono); font-size: .9rem; }
  .terms li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .6rem 0; border-top: 1px dotted var(--rule); }
  .terms li b { color: var(--ink); font-weight: 700; }
  .terms li span { color: var(--ink-2); font-family: var(--f-serif); font-size: 1.02rem; }
  .card { position: relative; background: #fbf8f1; padding: 1.6rem 1.6rem 1.8rem; box-shadow: 0 1px 2px rgba(34,28,22,.18), 0 12px 24px -12px rgba(34,28,22,.45); transform: rotate(.6deg); }
  .card::before { content: ""; position: absolute; top: -.7rem; left: 2rem; width: 5.5rem; height: 1.5rem; transform: rotate(-3deg); background: var(--tape); }
  .card h3 { font-weight: 500; }
  .card .mono { margin-top: .2rem; }
  .card form { display: grid; gap: .9rem; margin-top: 1.2rem; }
  .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
  .field label { display: block; font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); margin-bottom: .25rem; }
  .field input, .field select, .field textarea { width: 100%; padding: .6rem .1rem; background: transparent; border: 0; border-bottom: 1px solid var(--rule); font: 400 1rem var(--f-serif); color: var(--ink); border-radius: 0; }
  .field textarea { min-height: 4.5rem; resize: vertical; }
  .card .btn { justify-self: start; }
  .card .thanks { display: none; font-family: var(--f-mono); font-size: .9rem; color: var(--rust); }
  .card form.sent .thanks { display: block; }
  .card form.sent .btn { display: none; }

  /* ── Barista + blog w jednym wpisie ── */
  .voice .body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .voice .print .frame { aspect-ratio: 4 / 3; }
  .posts { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--ink); }
  .posts li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px dotted var(--rule); align-items: baseline; }
  .posts li .mono { color: var(--ink-3); }
  .posts li a { color: var(--ink); text-decoration: none; font-size: 1.15rem; }
  .posts li a:hover { color: var(--rust); }

  /* ── Stopka ── */
  footer { border-top: 1px solid var(--ink); padding-block: 2rem 3rem; position: relative; overflow: hidden; }
  footer .page { position: relative; z-index: 1; }
  .foot { display: grid; grid-template-columns: var(--gutter) 1fr 1fr 1fr; gap: 2rem; font-family: var(--f-mono); font-size: .88rem; color: var(--ink-3); }
  .foot .brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); justify-self: start; }
  .foot .brand img { width: 3rem; height: 3rem; }
  .foot .brand b { font-family: var(--f-serif); font-weight: 500; font-size: 1.4rem; display: block; line-height: 1; }
  .foot .brand span span { display: block; font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); margin-top: .3rem; }
  .foot address { font-style: normal; line-height: 1.7; }
  .foot a { color: var(--ink-2); text-decoration: none; }
  .foot a:hover { color: var(--rust); }
  .foot ul { list-style: none; margin: 0; padding: 0; line-height: 1.8; }
  .foot h4 { margin: 0 0 .4rem; font: 700 .8rem var(--f-mono); color: var(--ink); }
  .note { margin-top: 2rem; font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); max-width: 80ch; border-top: 1px dotted var(--rule); padding-top: 1rem; }

  /* ── Pocztówka w dłoni: modal ── */
  .print[data-note] { cursor: zoom-in; }
  .print[data-note]:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
  .pc-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; background: rgba(15, 18, 32, .82); backdrop-filter: blur(6px); }
  .pc-modal[hidden] { display: none; }
  .pc-stage { perspective: 1600px; -webkit-perspective: 1600px; }
  .pc-tilt { transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transition: transform 140ms ease-out; will-change: transform; }
  .pc-card { position: relative; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transition: transform 700ms cubic-bezier(.3,.7,.2,1); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .pc-card.flipped { transform: rotateY(180deg); }
  .pc-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fbf8f1; box-shadow: 0 2px 4px rgba(0,0,0,.35), 0 40px 70px -20px rgba(0,0,0,.7); border-radius: 3px; }
  .pc-front { transform: rotateY(0deg) translateZ(1px); }
  .pc-face::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.25  0 0 0 0 0.2  0 0 0 0 0.12  0 0 0 .2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
  .pc-front { padding: 14px; }
  .pc-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .pc-back { transform: rotateY(180deg); display: grid; grid-template-columns: 1.15fr 1fr; padding: 1.4rem 1.5rem; gap: 1.4rem; color: var(--ink-2); }
  .pc-back::before { content: ""; position: absolute; left: 53.5%; top: 1.4rem; bottom: 1.4rem; border-left: 1px solid var(--rule); }
  .pc-msg { font-family: var(--f-mono); font-size: clamp(.78rem, 1.35vw, .98rem); line-height: 1.55; display: grid; align-content: start; gap: .6rem; padding-top: .6rem; }
  .pc-msg .pc-place { color: var(--rust); }
  .pc-msg .pc-title { font-family: var(--f-serif); font-size: 1.35em; color: var(--ink); line-height: 1.2; font-variation-settings: "opsz" 24; }
  .pc-msg .pc-sig { margin-top: auto; padding-top: 1rem; color: var(--ink-3); }
  .pc-addr { position: relative; display: grid; grid-template-rows: auto 1fr; }
  .pc-stamp { justify-self: end; width: clamp(3.2rem, 8vw, 4.6rem); aspect-ratio: 4 / 5; padding: .3rem; background: #fbf8f1; border: 1px dashed var(--rule); outline: 2px dotted #fbf8f1; outline-offset: -4px; display: grid; place-items: center; }
  .pc-stamp img { width: 100%; height: auto; }
  .pc-stamp small { font-family: var(--f-mono); font-size: .55rem; color: var(--ink-3); }
  .pc-mark { position: absolute; right: 2.6rem; top: .2rem; width: clamp(4rem, 9vw, 5.4rem); aspect-ratio: 1; border: 2px double var(--ink-3); border-radius: 50%; display: grid; place-content: center; text-align: center; font-family: var(--f-mono); font-size: .55rem; line-height: 1.25; color: var(--ink-3); transform: rotate(-14deg); opacity: .8; mix-blend-mode: multiply; }
  .pc-mark b { display: block; font-size: .75rem; font-weight: 700; }
  .pc-waves { position: absolute; right: -0.2rem; top: 2.4rem; width: 2.6rem; height: 1.6rem; opacity: .6; }
  .pc-lines { align-self: end; display: grid; gap: 1.5rem; padding-bottom: .6rem; }
  .pc-lines span { display: block; border-bottom: 1px solid var(--rule); }
  .pc-lines span:first-child { position: relative; }
  .pc-lines span:first-child::before { content: attr(data-to); position: absolute; left: 0; bottom: .25rem; font-family: var(--f-mono); font-size: .8rem; color: var(--ink-2); }
  .pc-hint { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); font-family: var(--f-mono); font-size: .8rem; color: var(--moon-2); text-align: center; white-space: nowrap; }
  .pc-close { position: fixed; top: 1rem; right: 1rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid rgba(239,227,205,.35); background: transparent; color: var(--moon); font: 500 1.3rem/1 var(--f-ui); cursor: pointer; }
  .pc-close:hover { background: rgba(239,227,205,.12); }
  @media (prefers-reduced-motion: reduce) { .pc-tilt, .pc-card { transition: none; } }

  /* ── Przeglądarka taśmy: filmy po kliknięciu, sala kinowa zamiast pocztówki ── */
  .fv-modal { position: fixed; inset: 0; z-index: 110; display: grid; grid-template-rows: auto auto auto; justify-items: center; align-content: center; gap: 1rem; padding: 1.2rem 1rem; background: #0b0a09; color: var(--moon); overflow: auto; }
  .fv-modal[hidden] { display: none; }
  .fv-modal::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .25; mix-blend-mode: screen;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .95  0 0 0 0 .85  0 0 0 .25 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>"); }
  .fv-title { text-align: center; max-width: 60ch; position: relative; z-index: 1; }
  .fv-title .fv-kadr { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .25em; color: #9a8b6f; }
  .fv-title h3 { font-family: "Bebas Neue", "Oswald", Impact, sans-serif; font-weight: 400; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; letter-spacing: .06em; color: var(--moon); margin: .3rem 0 .2rem; }
  .fv-title .fv-meta { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .12em; color: #c9b892; }
  .fv-title .fv-note { font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; color: #cfc4ad; margin-top: .6rem; max-width: 56ch; margin-inline: auto; line-height: 1.45; }
  .fv-strip { position: relative; z-index: 1; display: grid; grid-template-columns: 1rem .8rem auto 1rem; background: #17130f; padding: .7rem 0; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); }
  .fv-strip .perf { background-image: repeating-linear-gradient(to bottom, transparent 0 .55rem, #0b0a09 .55rem 1.3rem, transparent 1.3rem 1.85rem); background-size: .55rem 1.85rem; background-position: center .35rem; background-repeat: repeat-y; }
  .fv-strip .edge { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--f-mono); font-size: .55rem; letter-spacing: .25em; color: #9a8b6f; white-space: nowrap; overflow: hidden; align-self: center; line-height: 1; }
  .fv-frames { display: grid; grid-template-rows: 1.3rem auto 1.3rem; gap: .4rem; }
  .fv-frames .ghost { background: #221c16; border-top: 1px solid #2c251d; border-bottom: 1px solid #2c251d; }
  .fv-frames .main { position: relative; background: #000; overflow: hidden; }
  .fv-frames video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; filter: sepia(.18) contrast(1.05) saturate(.9); }
  .fv-frames .main::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.4) 100%); }
  .fv-strip .num { position: absolute; right: 1.4rem; top: .15rem; font-family: var(--f-mono); font-size: .6rem; color: #9a8b6f; letter-spacing: .1em; }
  .fv-nav { position: relative; z-index: 1; display: flex; gap: 1.5rem; align-items: center; font-family: var(--f-mono); font-size: .82rem; color: #9a8b6f; }
  .fv-nav button { background: transparent; border: 1px solid #4a4034; color: var(--moon); font: 500 .85rem var(--f-mono); padding: .55rem .9rem; border-radius: 2px; cursor: pointer; letter-spacing: .08em; }
  .fv-nav button:hover { border-color: var(--moon); }
  .fv-close { position: fixed; top: 1rem; right: 1rem; z-index: 2; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid rgba(239,227,205,.35); background: transparent; color: var(--moon); font: 500 1.3rem/1 var(--f-ui); cursor: pointer; }
  .fv-close:hover { background: rgba(239,227,205,.12); }
  @media (max-width: 960px) { .fv-strip { grid-template-columns: .8rem .7rem auto .8rem; } .fv-title h3 { font-size: 2rem; } .fv-nav { gap: .7rem; } .fv-nav button { padding: .5rem .6rem; font-size: .72rem; white-space: nowrap; } .fv-title .fv-note { font-size: .95rem; } }

  /* ── Dodatki: faza księżyca, FAQ, newsletter-pocztówka, social, pasek CTA, udostępnianie ── */
  .moon-now { display: flex; align-items: center; gap: .55rem; margin: 0 .5rem; white-space: nowrap; flex: none; }
  .moon-now svg { width: 2rem; height: 2rem; flex: none; transition: width 220ms ease, height 220ms ease; }
  .moon-now .mono { font-size: .72rem; line-height: 1.25; }
  header.top.is-compact .moon-now .mono { display: none; }
  header.top.is-compact .moon-now svg { width: 1.6rem; height: 1.6rem; }
  .mn-lit { fill: var(--paper-3); }
  .mn-dark { fill: var(--ink); opacity: .85; }
  .mn-ring { fill: none; stroke: var(--ink); stroke-width: 1.2; }
  .moon-now .mono b { display: block; color: var(--rust); font-size: .7rem; }
  .moon-now .mono span { color: var(--ink-2); }
  .faq { margin-top: 2.5rem; border-top: 1px solid var(--ink); padding-top: 1rem; max-width: 62ch; }
  .faq h3 { font-size: 1.5rem; margin-bottom: .4rem; }
  .faq details { border-bottom: 1px dotted var(--rule); }
  .faq summary { cursor: pointer; list-style: none; padding: .8rem 0; font-family: var(--f-serif); font-size: 1.12rem; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--rust); flex: none; }
  .faq details[open] summary::after { content: "–"; }
  .faq p { margin: 0 0 1rem; font-size: 1.02rem; max-width: 58ch; }
  .pcard-signup { margin-top: 2.5rem; display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; background: #fbf8f1; padding: 1.5rem 1.6rem; box-shadow: 0 1px 2px rgba(34,28,22,.18), 0 12px 24px -12px rgba(34,28,22,.45); position: relative; transform: rotate(-.5deg); }
  .pcard-signup::before { content: ""; position: absolute; left: 53%; top: 1.5rem; bottom: 1.5rem; border-left: 1px solid var(--rule); }
  .pcard-signup h3 { font-size: 1.45rem; font-variation-settings: "opsz" 36; }
  .pcard-signup p { margin-top: .6rem; font-size: 1rem; max-width: 40ch; }
  .ps-sig { color: var(--ink-3); }
  .ps-right { position: relative; display: grid; align-content: end; gap: .5rem; padding-top: 4.5rem; }
  .ps-stamp { position: absolute; right: 0; top: 0; width: 3.6rem; aspect-ratio: 4 / 5; padding: .3rem; background: #fbf8f1; border: 1px dashed var(--rule); display: grid; place-items: center; }
  .ps-stamp img { width: 100%; height: auto; }
  .ps-stamp small { font-family: var(--f-mono); font-size: .55rem; color: var(--ink-3); }
  .ps-right label { color: var(--ink-2); }
  .ps-right input { width: 100%; padding: .55rem .1rem; background: transparent; border: 0; border-bottom: 1px solid var(--ink); font: 400 1.05rem var(--f-serif); color: var(--ink); border-radius: 0; }
  .ps-line { display: block; border-bottom: 1px solid var(--rule); height: 1.4rem; }
  .ps-right .btn { justify-self: start; margin-top: .4rem; }
  .pcard-signup .thanks { display: none; font-family: var(--f-mono); font-size: .9rem; color: var(--rust); }
  .pcard-signup.sent .thanks { display: block; }
  .pcard-signup.sent .btn, .pcard-signup.sent input, .pcard-signup.sent label, .pcard-signup.sent .ps-line { display: none; }
  .social { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
  .social a { display: inline-flex; align-items: center; gap: .35rem; }
  .social svg { width: 1.05rem; height: 1.05rem; }
  .mcta { display: none; }
  .pc-share { position: fixed; left: 1rem; bottom: 1.1rem; z-index: 2; background: transparent; border: 1px solid rgba(239,227,205,.35); color: var(--moon); font: 500 .85rem var(--f-mono); padding: .55rem .9rem; border-radius: 2px; cursor: pointer; }
  .pc-share:hover { background: rgba(239,227,205,.12); }

  /* ── Mobile ── */
  @media (max-width: 960px) {
    :root { --gutter: 100%; }
    .nav { grid-template-columns: 1fr auto 1fr; gap: .75rem; position: relative; padding-block: .7rem; }
    .menu { display: none; }
    .brand-text b { font-size: 1.25rem; }
    .brand-text span { display: none; }
    .nav-side:last-of-type { justify-content: flex-start; padding-left: .2rem; }
    .moon-now { margin: 0; }
    .moon-now svg { width: 1.7rem; height: 1.7rem; }
    .moon-now .mono { display: none; }
    .logo-link { margin-bottom: -2.8rem; }
    .logo-link img { width: 5.6rem; height: 5.6rem; }
    header.top.is-compact .logo-link { margin-bottom: -1.2rem; }
    header.top.is-compact .logo-link img { width: 3.4rem; height: 3.4rem; }
    header.top.is-compact .brand-text b { font-size: 1.1rem; }
    .menu-mobile { display: block; position: absolute; right: var(--margin); top: 50%; transform: translateY(-50%); z-index: 40; }
    .deco { opacity: .06; }
    .bean { transform: scale(.8); }
    .deco.md-hide, .deco-logo { display: none; }
    .menu-mobile summary { list-style: none; cursor: pointer; font: 600 .92rem var(--f-ui); color: var(--ink); padding: .6rem .95rem; border: 1px solid var(--ink); border-radius: 2px; background: var(--paper); user-select: none; }
    .menu-mobile summary::-webkit-details-marker { display: none; }
    .menu-mobile summary::before { content: "Menu"; }
    .menu-mobile[open] summary { background: var(--ink); color: var(--paper); }
    .menu-mobile[open] summary::before { content: "Zamknij"; }
    .menu-mobile nav { position: absolute; right: 0; top: calc(100% + .7rem); display: grid; width: min(20rem, calc(100vw - 2 * var(--margin))); background: #fbf8f1; border: 1px solid var(--ink); border-radius: 2px; box-shadow: 0 1px 2px rgba(34,28,22,.18), 0 20px 40px -14px rgba(34,28,22,.55); padding: .4rem 0; }
    .menu-mobile nav::before { content: ""; position: absolute; top: -.7rem; right: 1.6rem; width: 5rem; height: 1.3rem; background: var(--tape); transform: rotate(-3deg); }
    .menu-mobile nav a { display: flex; align-items: baseline; gap: .8rem; padding: .95rem 1.2rem; border-bottom: 1px dotted var(--rule); text-decoration: none; color: var(--ink); font: 500 1.05rem var(--f-ui); }
    .menu-mobile nav a small { font-family: var(--f-mono); font-size: .72rem; color: var(--rust); min-width: 1.5rem; }
    .menu-mobile nav a:last-child { border-bottom: 0; }
    .menu-mobile nav a.lang { font-family: var(--f-mono); font-size: .9rem; color: var(--ink-3); }
    .menu-mobile nav a.lang b { color: var(--ink); }

    .entry { grid-template-columns: 1fr; gap: 1.25rem 0; padding-block: 2.75rem; }
    .marg { border-right: 0; border-bottom: 1px solid var(--rust); padding: 0 0 .8rem; }
    .marg .mono { position: static; }
    .marg .mono span { display: inline; margin-right: .8rem; }
    .marg .mono .num { display: inline; font-size: 1.1rem; margin: 0 .6rem 0 0; }
    .aside { max-width: none; margin-top: .9rem; padding-top: .6rem; border-top: 1px dotted var(--rule); }
    .map { display: none; }

    .hero .body, .origin .body, .farmer .body, .diary .body, .price .body, .b2b .body, .voice .body, .night .page { grid-template-columns: 1fr; }
    .hero h1 { max-width: none; }
    .hero-stack { padding-bottom: 5rem; margin-top: 1rem; }
    .hero-stack .print.big { max-width: 21rem; margin-left: 0; }
    .hero-stack .print.small { left: auto; right: 0; width: 44%; }
    .hero-stack .print.big .cap { text-align: left !important; padding-right: 45%; }
    .stamp { display: none; }
    .journey { grid-template-columns: 1fr; }
    .jmap { order: -1; max-height: 28rem; }
    .jhead { order: -2; }
    .origin .body { grid-template-columns: 1fr; }
    .profile { margin-inline: calc(-1 * var(--margin)); padding-inline: .5rem; overflow-x: auto; }
    .profile svg { min-width: 40rem; }
    .prints-2 .print:nth-child(3) { max-width: 100%; }
    .farmer .print { max-width: 20rem; }
    .diary .pile { margin-top: 1.5rem; }
    .steps { grid-template-columns: 1fr 1fr; }
    .reel { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .reel .strip:nth-child(2), .reel .strip:nth-child(4) { margin-top: 0; }
    .shelf { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 2rem; }
    .shelf .p1, .shelf .p2 { margin: 0; max-width: 100%; }
    .row2 { grid-template-columns: 1fr; }
    .card { transform: none; }
    .posts li { grid-template-columns: 1fr; gap: .2rem; }
    .foot { grid-template-columns: 1fr; gap: 1.25rem; }
    .terms li { grid-template-columns: 1fr; gap: .2rem; }
    .pc-back { grid-template-columns: 1fr; padding: 1rem 1.1rem; gap: .8rem; }
    .pc-back::before { display: none; }
    .pc-addr { display: none; }
    .pc-hint { font-size: .72rem; left: auto; right: 1rem; transform: none; bottom: 1.4rem; max-width: 45%; white-space: normal; text-align: right; }
    .pc-share { bottom: 1rem; }
    .pcard-signup { grid-template-columns: 1fr; transform: none; }
    .pcard-signup::before { display: none; }
    .ps-right { padding-top: 4.2rem; }
    .mcta { display: flex; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: .6rem var(--margin); background: rgba(237,228,209,.94); border-top: 1px solid var(--rule); backdrop-filter: blur(6px); }
    .mcta .btn { flex: 1; padding: .8rem .6rem; }
    body { padding-bottom: 4.2rem; }
    body.modal-open .mcta { display: none; }
  }
  @media (max-width: 480px) {
    .steps { grid-template-columns: 1fr; }
  }

  /* ── Mobile, porządki: marginalia nad treścią tylko z numerem i danymi, ciekawostka pod treścią ── */
  @media (max-width: 960px) {
    .entry { display: grid; grid-template-columns: minmax(0, 1fr); }
    .marg { display: contents; }
    .marg .mono { order: 0; position: static; border-bottom: 1px solid var(--rust); padding-bottom: .7rem; margin-bottom: .2rem; }
    .marg .mono span { display: inline-block; margin-right: .9rem; }
    .marg .mono .num { display: block; font-size: 1.5rem; margin: 0 0 .35rem; }
    .entry > .body { order: 1; min-width: 0; }
    .marg .aside { order: 2; margin-top: 1.6rem; padding-top: .8rem; border-top: 1px solid var(--rust); max-width: none; }
    .marg .stamp, .marg .map { display: none; }
    .bean { display: none; }
    .diary .pile { padding-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .diary .pile .print.team { grid-column: 1 / -1; }
    .diary .pile .print.m, .diary .pile .print.w { position: relative; left: auto; right: auto; top: auto; width: auto; max-width: none; transform: none; }
    .line { gap: .5rem; }
    .line h3 { white-space: normal; font-size: 1.35rem; min-width: 0; flex: 1 1 auto; }
    .line .dots { flex: 0 1 2rem; }
    .line .amt { font-size: 1.35rem; }
    .menu-list .opts label[style] { margin-left: 0 !important; width: 100%; }
    .profile svg { min-width: 46rem; }
    .hero-stack { padding-bottom: 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: .8rem; align-items: end; }
    .hero-stack .print.big { max-width: none; margin: 0; }
    .hero-stack .print.small { position: relative; left: auto; right: auto; bottom: auto; width: auto; max-width: none; }
    .hero-stack .print.big .cap { text-align: left !important; padding-right: 0; }
  }
