/*
 * AuraPhoto: strona publiczna.
 * Jasny papier z delikatnym ziarnem, jeden krój nagłówków (Newsreader, kursywa), ziemista paleta:
 * mech, pszenica, szałwia, ziemia, zgaszona czerń. Kolor wnoszą zdjęcia i panele sesji.
 * Fonty wbudowane (OFL, licencje obok plików), bez Google. Zero stylów inline (CSP).
 */
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/newsreader-latin-400-italic.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/newsreader-latin-ext-400-italic.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 500; font-display: swap; src: url('fonts/newsreader-latin-500-italic.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 500; font-display: swap; src: url('fonts/newsreader-latin-ext-500-italic.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/jost-latin-300-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/jost-latin-ext-300-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/jost-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/jost-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* Kroje zapasowe o zbliżonych wymiarach: tekst nie skacze po doczytaniu fontu */
@font-face { font-family: 'Newsreader Fallback'; src: local('Georgia Italic'), local('Georgia'), local('Times New Roman'); font-style: italic; size-adjust: 96%; ascent-override: 76%; descent-override: 28%; line-gap-override: 0%; }
@font-face { font-family: 'Jost Fallback'; src: local('Arial'), local('Helvetica'), local('Liberation Sans'); size-adjust: 98%; ascent-override: 109%; descent-override: 38%; line-gap-override: 0%; }

:root {
  --paper: #f8f6f2;
  --paper-soft: #fbf9f5;
  --ink: #262522;            /* zgaszona czerń */
  --muted: #645f57;          /* 5.7:1 na papierze */
  --hairline: #d8d1c4;
  --moss: #4d5a3d;  --on-moss: #f1ede3;
  --wheat: #e2cf9f; --on-wheat: #262522;
  --sage: #b4b896;  --on-sage: #262522;
  --earth: #7a5c43; --on-earth: #f3ece1;
  --ink-panel: #262522; --on-ink: #efe9de;
  --danger: #9c3b2a;
  --grain: none;
  --serif: 'Newsreader', 'Newsreader Fallback', Georgia, serif;
  --sans: 'Jost', 'Jost Fallback', Arial, sans-serif;
  --gutter: clamp(18px, 4vw, 56px);
  --page: 80rem;
  --measure: 33em;
  --space: clamp(96px, 13vw, 200px);
  --radius: clamp(18px, 2vw, 28px);
  --masthead-h: 84px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1b18; --paper-soft: #252420; --ink: #ece7dc; --muted: #b0a99b; --hairline: #3a3731;
    --moss: #46523a; --on-moss: #ece7dc;
    --wheat: #c9b47e; --on-wheat: #1c1b18;
    --sage: #8e9474; --on-sage: #1c1b18;
    --earth: #6f533d; --on-earth: #f0e8db;
    --ink-panel: #2c2a26; --on-ink: #ece7dc;
    --danger: #ec8f7c;
    --grain: none;
  }
}

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--masthead-h) + 16px); }
body {
  margin: 0; overflow-x: clip; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--paper) var(--grain) repeat; background-size: 256px;
  color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); font-kerning: normal; overflow-wrap: break-word;
}
main { flex: 1; display: block; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; text-wrap: balance; overflow-wrap: normal; hyphens: manual; }
figure { margin: 0; }
.center { text-align: center; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
.icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Typografia: jeden krój nagłówków ---------- */
.display, .display-2, h3 { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.02em; }
.display { font-size: clamp(3rem, 1.3rem + 7vw, 8.6rem); line-height: .98; }
.display-2 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.8rem); line-height: 1.02; }
h3 { font-size: clamp(1.9rem, 1.5rem + 1.3vw, 2.7rem); line-height: 1.02; }
.lead { font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); line-height: 1.55; color: var(--muted); max-width: var(--measure); }
.lead.big { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); color: var(--ink); }
.prose { max-width: var(--measure); }
.lead-prose { font-size: 1.1875rem; }

/* Małe zdjęcia wplecione w nagłówek */
.pebble { display: inline-block; vertical-align: -.06em; width: 1.55em; height: .8em; border-radius: 999px; overflow: hidden; margin: 0 .04em; background: var(--wheat); }
.pebble img { width: 100%; height: 100%; object-fit: cover; }

/* Przyciski, linki, pigułki */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; max-width: 100%;
  padding: 12px 30px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font: 400 1.0625rem/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: center; transition: background-color .2s, color .2s;
}
.button:hover { background: transparent; color: var(--ink); }
.button.small { min-height: 44px; padding: 8px 22px; font-size: 1rem; }
.link { text-decoration: underline; text-underline-offset: .35em; }
.link:hover { text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin: 0; }
.actions.center { justify-content: center; }
.round { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.round:hover { background: var(--ink); color: var(--paper); }
.round:disabled { opacity: .3; cursor: default; background: transparent; color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills button { border: 1px solid var(--hairline); border-radius: 999px; padding: 8px 18px; background: transparent; color: var(--ink); font: 400 1rem/1.2 var(--sans); cursor: pointer; }
.pills button:hover { border-color: var(--ink); }
.pills button[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Nagłówek strony ---------- */
.masthead {
  position: sticky; top: 0; z-index: 30; height: var(--masthead-h);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 44px);
  width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
}
.masthead::before { content: ''; position: absolute; z-index: -1; inset: 0 auto 0 50%; width: 100vw; translate: -50% 0;
  background: color-mix(in srgb, var(--paper) 90%, transparent) var(--grain) repeat; background-size: 256px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.brand { display: block; color: var(--ink); line-height: 0; }
.masthead .brand svg { height: 62px; width: auto; }
.nav { display: flex; gap: clamp(18px, 2.6vw, 36px); margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 0; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); }
.nav a[aria-current='page'] { text-decoration: underline; text-underline-offset: .5em; }

/* Menu na telefonie: zwykłe linki pod nagłówkiem (bez skryptu i bez rozwijania) */
.mobile-nav { display: none; gap: 22px; justify-content: center; padding: 6px var(--gutter) 0; }
.mobile-nav a { text-decoration: none; color: var(--muted); }
.mobile-nav a[aria-current='page'] { color: var(--ink); text-decoration: underline; text-underline-offset: .45em; }

/* ---------- Sekcje: wspólne ---------- */
.section-head { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto clamp(36px, 4.5vw, 64px); padding: 0 var(--gutter); }
.section-head .section-lead { color: var(--muted); max-width: var(--measure); margin: 1.1em 0 0; font-size: 1.125rem; }
.section-head.split { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; }

/* ---------- Powitanie ---------- */
.hero { text-align: center; padding: clamp(56px, 11vh, 140px) var(--gutter) 0; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; }
.hero-title { max-width: 13.5em; margin: 0 auto; }
.hero-foot { display: grid; justify-items: center; gap: 30px; margin-top: clamp(36px, 5vw, 60px); }
.hero-foot .lead { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-title { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .pebble { animation: bloom .9s cubic-bezier(.2, .8, .2, 1.1) both; }
  .hero .pebble:nth-of-type(1) { animation-delay: .35s; }
  .hero .pebble:nth-of-type(2) { animation-delay: .55s; }
  .hero .pebble:nth-of-type(3) { animation-delay: .75s; }
  .hero-foot { animation: rise 1s cubic-bezier(.2, .7, .2, 1) .25s both; }
}
@keyframes rise { from { opacity: 0; translate: 0 22px; } }
@keyframes bloom { from { width: 0; opacity: 0; } }

/* ---------- O mnie (skrót) ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: clamp(28px, 4vw, 64px); align-items: start;
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: var(--space) auto 0; padding: 0 var(--gutter); }
.intro.no-photo { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.intro-body { padding-top: .6em; }
.intro-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }

/* ---------- Sesje: kolorowe panele, które się rozsuwają ---------- */
.sessions { margin: var(--space) auto 0; max-width: calc(var(--page) + 2 * var(--gutter)); }
.panels { display: flex; gap: 12px; padding: 0 var(--gutter); height: clamp(480px, 68vh, 660px); }
.panel {
  --bg: var(--moss); --fg: var(--on-moss);
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--radius);
  background: var(--bg); color: var(--fg); padding: clamp(20px, 2vw, 30px);
  display: flex; flex-direction: column; justify-content: flex-end; outline-offset: 4px;
  transition: flex-grow .45s cubic-bezier(.3, .7, .2, 1);
}
.tone-moss { --bg: var(--moss); --fg: var(--on-moss); }
.tone-wheat { --bg: var(--wheat); --fg: var(--on-wheat); }
.tone-sage { --bg: var(--sage); --fg: var(--on-sage); }
.tone-earth { --bg: var(--earth); --fg: var(--on-earth); }
.tone-ink { --bg: var(--ink-panel); --fg: var(--on-ink); }
.panel.is-open, .panel:hover, .panel:focus-within, .panel:focus-visible { flex-grow: 2.7; }
.panels:has(.panel:hover, .panel:focus-visible) .panel.is-open:not(:hover):not(:focus-visible) { flex-grow: 1; }
.panel-photo { position: absolute; inset: clamp(14px, 1.4vw, 20px) clamp(14px, 1.4vw, 20px) auto; height: 46%; border-radius: calc(var(--radius) - 8px); overflow: hidden; }
.panel-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.panel:hover .panel-photo img { transform: scale(1.04); }
.panel-price { position: absolute; z-index: 1; top: clamp(24px, 2.2vw, 34px); left: clamp(24px, 2.2vw, 34px); margin: 0; background: var(--bg); color: var(--fg); padding: 4px 14px; border-radius: 999px; font-size: .9375rem; }
.panel-body { position: relative; }
.panel-text { margin: 14px 0 0; max-width: 26em; }
.panel-spine { display: none; }
/* Komputer: zwinięty kafelek = pionowy podpis; rozsunięty = poziomy tytuł z opisem.
   Bez obracania: podpis gaśnie od razu, tytuł z opisem pojawia się, gdy kafelek kończy się rozszerzać. */
@media (min-width: 961px) {
  .panel-spine {
    display: block; position: absolute; left: clamp(20px, 2vw, 30px); bottom: clamp(22px, 2vw, 32px);
    writing-mode: vertical-rl; rotate: 180deg; white-space: nowrap;
    font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 1.3rem + .9vw, 2.3rem); letter-spacing: -.02em; line-height: 1;
    opacity: 1; transition: opacity .2s ease .15s;
  }
  .panel-body { width: 100%; max-width: 26rem; min-width: 0; opacity: 0; translate: 0 10px; transition: opacity .12s ease, translate .12s ease; }
  .panel-text { overflow-wrap: break-word; }
  .panel.is-open .panel-spine, .panel:hover .panel-spine, .panel:focus-within .panel-spine, .panel:focus-visible .panel-spine { opacity: 0; transition: opacity .1s ease; }
  .panel.is-open .panel-body, .panel:hover .panel-body, .panel:focus-within .panel-body, .panel:focus-visible .panel-body { opacity: 1; translate: 0 0; transition: opacity .3s ease .22s, translate .35s cubic-bezier(.2, .7, .2, 1) .22s; }
  .panels:has(.panel:hover, .panel:focus-visible) .panel.is-open:not(:hover):not(:focus-visible) .panel-spine { opacity: 1; transition: opacity .2s ease .15s; }
  .panels:has(.panel:hover, .panel:focus-visible) .panel.is-open:not(:hover):not(:focus-visible) .panel-body { opacity: 0; translate: 0 10px; transition: opacity .1s ease, translate .1s ease; }
}
.panel h3 { color: var(--fg); }

/* ---------- Historie: slider ---------- */
.stories { margin: var(--space) auto 0; max-width: calc(var(--page) + 2 * var(--gutter)); }
.slider-nav { display: flex; gap: 10px; }
.slider { display: flex; gap: clamp(12px, 1.6vw, 22px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 0 var(--gutter) 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.slider::-webkit-scrollbar { display: none; }
.slide { flex: none; scroll-snap-align: start; text-decoration: none; }
.slide .tile-frame { height: clamp(360px, 62vh, 640px); }
.slide .tile-frame img { height: 100%; width: auto; max-width: none; }
.slider-foot { display: flex; align-items: center; gap: 28px; padding: 28px var(--gutter) 0; }
.slider-progress { flex: 1; height: 1px; background: var(--hairline); position: relative; }
.slider-progress span { position: absolute; left: 0; top: -1px; height: 3px; width: 20%; background: var(--ink); border-radius: 2px; }

/* Portfolio: okładki mini-galerii (środkowa kolumna przesunięta w dół) */
.albums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(16px, 2.4vw, 32px);
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) var(--space); }
.album { display: block; color: var(--ink); text-decoration: none; }
.album:nth-child(3n + 2) { margin-top: clamp(40px, 8vw, 120px); }
.album-cover { display: block; overflow: hidden; border-radius: var(--radius); background: var(--hairline); }
.album-cover img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.album:hover .album-cover img { transform: scale(1.04); }
.album-title { display: block; margin-top: 16px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 1.3rem + 1vw, 2.3rem); line-height: 1.05; letter-spacing: -.02em; }
.album-meta { display: block; color: var(--muted); margin-top: 6px; font-size: .9688rem; }
.album[hidden] { display: none; }
.loose-title { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto 40px; padding: 0 var(--gutter); }
.album-head .back { margin: 0 0 24px; }
.album-head .album-meta { margin-top: 14px; }
.next-album { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) var(--space); text-align: center; }
.next-album a { color: var(--ink); text-decoration: none; display: inline-block; }
.next-album .next-label { display: block; color: var(--muted); margin-bottom: 10px; }
.next-album .display-2 { font-size: clamp(2.4rem, 1.4rem + 4vw, 5.6rem); }
.next-album a:hover .display-2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }

/* Kafelki zdjęć (slider, portfolio) */
.tile { display: block; color: var(--ink); text-decoration: none; cursor: zoom-in; }
.tile-frame { display: block; overflow: hidden; border-radius: var(--radius); background: var(--hairline); }
.tile-frame img { width: 100%; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .tile-frame img { transform: scale(1.03); }
.tile-cap { display: block; margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 1.375rem; line-height: 1.2; }

/* ---------- Cytat na zdjęciu ---------- */
.quote { position: relative; overflow: hidden; display: flex; align-items: flex-end;
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: var(--space) auto 0; min-height: clamp(420px, 78vh, 760px);
  border-radius: var(--radius); background: var(--moss); color: var(--on-moss); }
@media (min-width: 1360px) { .quote { width: calc(100% - 2 * var(--gutter)); } }
@media (max-width: 1359px) { .quote { margin-left: var(--gutter); margin-right: var(--gutter); } }
.quote .quote-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote.has-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgb(20 19 16 / .7)); }
.quote figure { position: relative; z-index: 1; padding: clamp(28px, 5vw, 72px); max-width: 52rem; color: #f3eee4; }
.quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(2rem, 1.2rem + 3vw, 4rem); line-height: 1.05; letter-spacing: -.02em; }
.quote blockquote p { margin: 0; }
.quote figcaption { margin-top: 18px; font-size: 1rem; opacity: .85; }

/* ---------- Jak wygląda sesja: oś z kropkami ---------- */
.process { max-width: calc(var(--page) + 2 * var(--gutter)); margin: var(--space) auto 0; padding: 0; }
.process h2 { padding: 0 var(--gutter); margin-bottom: clamp(48px, 6vw, 88px); }
.timeline { list-style: none; margin: 0; padding: 0 var(--gutter); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 32px; position: relative; text-align: center; }
.timeline::before { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); top: 9px; height: 1px; background: var(--ink); }
.timeline li { position: relative; display: grid; justify-items: center; gap: 10px; }
.timeline .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--bg, var(--moss)); box-shadow: 0 0 0 6px var(--paper); }
.timeline .step-no { color: var(--muted); font-size: .9375rem; margin-top: 10px; }
.timeline h3 { font-size: clamp(1.9rem, 1.4rem + 1.2vw, 2.5rem); }
.timeline p { color: var(--muted); max-width: 18em; margin: 4px 0 0; }

/* ---------- Opinie ---------- */
.voices { max-width: calc(var(--page) + 2 * var(--gutter)); margin: var(--space) auto 0; padding: 0 var(--gutter); }
.voices h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.voice-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: clamp(32px, 4vw, 64px); }
.voice blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 1.2rem + .7vw, 1.8rem); line-height: 1.3; }
.voice figcaption { color: var(--muted); margin-top: 10px; }

/* ---------- Zaproszenie ---------- */
.cta { text-align: center; padding: var(--space) var(--gutter); max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; }
.cta .display { max-width: 12em; margin: 0 auto; }
.cta-text { color: var(--muted); max-width: 30em; margin: 1.5em auto 2.2em; font-size: 1.125rem; }

/* ---------- Strony wewnętrzne ---------- */
.page-head { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(48px, 8vh, 110px) var(--gutter) clamp(40px, 5vw, 72px); }
.page-head .lead { margin: 1.3em 0 0; }
.page-head .pills { margin-top: 34px; }

/* Portfolio: rytm redakcyjny */
.rhythm { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px) clamp(14px, 2vw, 28px); align-items: start;
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) var(--space); }
.rhythm .tile { grid-column: span 6; }
.rhythm .r-1 { grid-column: 1 / span 7; }
.rhythm .r-2 { grid-column: 9 / span 4; margin-top: clamp(60px, 14vw, 220px); }
.rhythm .r-3 { grid-column: 2 / span 4; }
.rhythm .r-4 { grid-column: 7 / span 6; margin-top: clamp(40px, 8vw, 120px); }
.rhythm .r-5 { grid-column: 1 / span 5; margin-top: clamp(20px, 4vw, 60px); }
.rhythm .r-6 { grid-column: 7 / span 5; }
.rhythm .r-1.is-landscape, .rhythm .r-4.is-landscape { grid-column-end: span 7; }
.empty { color: var(--muted); max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) var(--space); }

/* O mnie */
.about-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end;
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(48px, 8vh, 110px) var(--gutter) 0; }
.about-head.no-photo { grid-template-columns: minmax(0, 1fr); }
.about-intro .lead { margin-top: 1.1em; }
.about-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 110px); align-items: start;
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: var(--space) auto 0; padding: 0 var(--gutter); }
.about-story.no-photo { grid-template-columns: minmax(0, 1fr); }
.about-story.no-photo .prose { margin-left: auto; margin-right: 8%; }
.about-story .prose { font-size: 1.1875rem; }
.about-photo2 img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.values { max-width: calc(var(--page) + 2 * var(--gutter)); margin: var(--space) auto 0; padding: 0 var(--gutter); }
.values h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.value-list { margin: 0; border-top: 1px solid var(--ink); }
.value-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 40px; padding: clamp(20px, 2.4vw, 32px) 0; border-bottom: 1px solid var(--ink); align-items: baseline; }
.value-list dt { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.6rem); line-height: 1.05; letter-spacing: -.02em; }
.value-list dd { margin: 0; color: var(--muted); max-width: 30em; }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 100px); align-items: start;
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(48px, 8vh, 110px) var(--gutter) var(--space); }
.contact-info h1 { margin-bottom: .45em; font-size: clamp(2.6rem, 1.3rem + 3.2vw, 5rem); }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.contact-list a, .contact-list .plain { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.contact-list a span { text-decoration: underline; text-underline-offset: .25em; }
.contact-photo { margin-top: 40px; }
.contact-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.contact-form { background: var(--paper-soft); border-radius: var(--radius); padding: clamp(24px, 3.6vw, 52px); }
.contact-form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0 18px; align-items: start; }
.field { display: grid; gap: 6px; margin: 0 0 22px; min-width: 0; }
.field > label { font-size: .9688rem; }
.field .optional { color: var(--muted); }
.field .hint { color: var(--muted); font-size: .875rem; margin: 0; }
.input { font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 10px 0; width: 100%; min-width: 0; }
.input:focus { outline: none; border-bottom-width: 2px; padding-bottom: 9px; }
.input[aria-invalid='true'] { border-color: var(--danger); }
textarea.input { min-height: 5.2em; resize: vertical; border: 1px solid var(--ink); border-radius: 14px; padding: 12px 14px; }
textarea.input:focus { padding: 11px 13px; border-width: 2px; }
select.input { appearance: none; padding-right: 30px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23645f57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 2px center / 16px; }
select.input option { color: #262522; }
/* Rodzaj sesji: przyciski-pigułki (zwykłe pola wyboru, działają bez JS i z klawiatury) */
.choice-field { border: 0; padding: 0; }
.choice-field legend { font-size: .9688rem; padding: 0; margin-bottom: 10px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-block; border: 1px solid var(--hairline); border-radius: 999px; padding: 9px 18px; font-size: .9688rem; line-height: 1.2; transition: background-color .2s, border-color .2s, color .2s; }
.choice label:hover span { border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.cf-turnstile { min-height: 65px; }
/* Wiadomość chowana pod „+ Dodaj wiadomość” (natywne <details>, działa bez JS) */
.more-msg { margin: 0 0 22px; }
.more-msg summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-size: .9688rem; padding: 4px 0; }
.more-msg summary::-webkit-details-marker { display: none; }
.more-msg summary::before { content: '+'; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--ink); border-radius: 50%; font-size: 1.1rem; line-height: 1; transition: rotate .3s ease; }
.more-msg[open] summary::before { rotate: 45deg; }
.more-msg summary:hover::before { background: var(--ink); color: var(--paper); }
.more-msg[open] summary { margin-bottom: 12px; }
.more-msg .field > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.consent label { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--moss); flex: none; }
.consent.invalid label { color: var(--danger); }
.notice { border-radius: 12px; padding: 14px 16px; margin: 0 0 24px; background: var(--paper); }
.notice.error { box-shadow: inset 3px 0 0 var(--danger); }
.notice p { margin: 0; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sent .display-2 { margin-bottom: .4em; }

/* Teksty (polityka, 404) */
.text-page { max-width: calc(var(--measure) + 2 * var(--gutter) + 8rem); margin: 0 auto; padding: clamp(48px, 8vh, 110px) var(--gutter) var(--space); }
.text-page h1 { margin-bottom: .8em; }
.oops .lead { margin: 1.4em auto 2.2em; }

/* ---------- Stopka ---------- */
.colophon { background: var(--ink-panel); color: var(--on-ink); margin-top: 0; border-radius: var(--radius) var(--radius) 0 0; }
.colophon-inner { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(48px, 6vw, 88px) var(--gutter) 28px;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px 48px; align-items: start; }
.colophon .brand { color: var(--on-ink); }
.colophon .brand svg { height: clamp(56px, 7vw, 96px); width: auto; }
.colophon-text { grid-column: 1; color: color-mix(in srgb, var(--on-ink) 75%, transparent); margin: 0; max-width: 24em; }
.colophon-contact { grid-column: 2; grid-row: 1 / span 2; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 1.0625rem; }
.colophon-contact a { text-decoration: none; }
.colophon-contact a:hover { text-decoration: underline; }
.colophon-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--on-ink) 20%, transparent); font-size: .875rem; color: color-mix(in srgb, var(--on-ink) 70%, transparent); }
.colophon-meta a { color: inherit; }
.colophon :focus-visible { outline-color: var(--on-ink); }

.edit-site { position: fixed; left: 16px; bottom: 16px; z-index: 40; background: var(--wheat); color: var(--on-wheat); text-decoration: none; padding: 10px 18px; border-radius: 999px; font-size: .875rem; box-shadow: 0 6px 20px rgb(0 0 0 / .18); }

/* ---------- Podgląd zdjęcia ---------- */
.viewer { border: 0; padding: 0; margin: 0; width: 100vw; height: 100svh; max-width: 100vw; max-height: 100svh; background: rgb(24 23 20 / .97); color: #efe9de; }
.viewer::backdrop { background: rgb(24 23 20 / .9); }
.viewer-stage { width: 100%; height: 100%; display: grid; place-items: center; padding: 60px 76px 44px; }
.viewer-stage img { max-width: 100%; max-height: calc(100svh - 120px); width: auto; height: auto; border-radius: 10px; }
.viewer-count { position: fixed; bottom: 16px; left: 0; right: 0; text-align: center; font-size: .875rem; color: #bfb7a8; }
.viewer button { position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .35); background: transparent; color: #efe9de; display: grid; place-items: center; cursor: pointer; }
.viewer button:hover { background: rgb(255 255 255 / .12); }
.viewer-close { top: 14px; right: 14px; }
.viewer-prev { left: 14px; top: 50%; translate: 0 -50%; }
.viewer-next { right: 14px; top: 50%; translate: 0 -50%; }

/* ---------- Tablet i telefon ---------- */
@media (max-width: 960px) {
  .intro, .intro.no-photo, .about-head, .about-story, .contact { grid-template-columns: minmax(0, 1fr); }
  .intro-photo { max-width: 15rem; }
  .about-story.no-photo .prose { margin: 0; }
  .panels { flex-direction: column; height: auto; }
  .panel, .panel.is-open { flex: none; min-height: 0; }
  .panel-photo { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3; margin: 0 0 20px; border-radius: calc(var(--radius) - 6px); }
  .panel-price { position: static; display: inline-block; margin: 0 0 14px; align-self: flex-start; border: 1px solid currentColor; }
  .timeline { grid-auto-flow: row; text-align: left; gap: 36px; padding-left: calc(var(--gutter) + 44px); }
  .timeline::before { left: calc(var(--gutter) + 9px); right: auto; top: 10px; bottom: 10px; width: 1px; height: auto; }
  .timeline li { justify-items: start; }
  .timeline .dot { position: absolute; left: -44px; top: 4px; }
  .timeline .step-no { margin-top: 0; }
  .value-list > div { grid-template-columns: minmax(0, 1fr); }
  .albums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .album:nth-child(3n + 2) { margin-top: 0; }
  .album:nth-child(2n) { margin-top: clamp(32px, 8vw, 80px); }
  .rhythm { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 40px; }
  .rhythm .tile, .rhythm .r-1, .rhythm .r-2, .rhythm .r-3, .rhythm .r-4, .rhythm .r-5, .rhythm .r-6 { grid-column: span 6; margin-top: 0; }
  .rhythm .r-2, .rhythm .r-5 { grid-column: 2 / span 5; }
  .rhythm .r-3, .rhythm .r-6 { grid-column: 1 / span 5; }
}
@media (max-width: 720px) {
  :root { --masthead-h: 64px; }
  .masthead { gap: 14px; }
  .masthead .brand svg { height: 40px; }
  .nav { display: none; }
  .masthead-cta { margin-left: auto; }
  .site::after { content: none; }
  .mobile-nav { display: flex; }
  .slider-nav { display: none; }
  .slide .tile-frame { height: 58vh; max-height: 520px; }
  .viewer-stage { padding: 60px 8px 76px; }
  .viewer-prev, .viewer-next { top: auto; bottom: 12px; translate: none; }
  .colophon-inner { grid-template-columns: minmax(0, 1fr); }
  .colophon-contact { grid-column: 1; grid-row: auto; }
  .albums { grid-template-columns: minmax(0, 1fr); }
  .album:nth-child(2n) { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.brand-img { height: 62px; width: auto; }
.colophon .brand-img { height: clamp(56px, 7vw, 96px); filter: brightness(0) invert(.92); }
@media (max-width: 720px) { .masthead .brand-img { height: 40px; } }
.colophon-meta .credit { margin-left: auto; }
@media (max-width: 720px) { .colophon-meta .credit { margin-left: 0; flex-basis: 100%; } }

/* ---------- Poradnik ---------- */
.journal { max-width: calc(var(--page) + 2 * var(--gutter)); margin: var(--space) auto 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(16px, 2.4vw, 32px); padding: 0 var(--gutter); }
.post-grid-page { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding-bottom: var(--space); }
.post-card { display: block; color: var(--ink); text-decoration: none; }
.post-cover { display: block; overflow: hidden; border-radius: var(--radius); background: var(--hairline); margin-bottom: 16px; }
.post-cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-cat { display: block; color: var(--muted); font-size: .9375rem; margin-bottom: 6px; }
.post-title { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 1.2rem + .8vw, 2rem); line-height: 1.1; letter-spacing: -.015em; }
.post-card:hover .post-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.post-excerpt { display: block; color: var(--muted); margin-top: 10px; font-size: 1rem; line-height: 1.55; }
.post { max-width: calc(46rem + 2 * var(--gutter)); margin: 0 auto; padding: clamp(40px, 7vh, 96px) var(--gutter) 0; }
.post-head .back { margin: 0 0 22px; color: var(--muted); }
.post-head h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem); }
.post-meta { color: var(--muted); font-size: .9375rem; margin: 18px 0 0; }
.post-head .lead { margin-top: 1.2em; max-width: none; }
.post-cover-big { margin: clamp(32px, 4vw, 48px) calc(-1 * min(8vw, 120px)) 0; }
.post-cover-big img { width: 100%; max-height: 80vh; object-fit: cover; border-radius: var(--radius); }
.post-body { max-width: none; margin-top: clamp(32px, 4vw, 52px); font-size: 1.125rem; line-height: 1.75; }
.post-body h2 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1.1; letter-spacing: -.015em; margin: 1.8em 0 .6em; }
.post-body h3 { font-size: clamp(1.35rem, 1.2rem + .5vw, 1.6rem); margin: 1.5em 0 .4em; }
.post-body ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.post-body li { margin-bottom: .4em; }
.post-body a { text-decoration-thickness: 1px; }
.post-cta { margin: clamp(48px, 6vw, 80px) 0 0; padding: clamp(28px, 4vw, 48px); background: var(--wheat); color: var(--on-wheat); border-radius: var(--radius); }
.post-cta .display-2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem); margin: 0 0 22px; }
.post-cta .button { background: var(--on-wheat); border-color: var(--on-wheat); color: var(--wheat); }
.post-cta .button:hover { background: transparent; color: var(--on-wheat); }
.related { padding-bottom: var(--space); }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .post-cover-big { margin-left: 0; margin-right: 0; } }
@media (max-width: 640px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }
