/* ===================================================================
   Pediatryczka Ola — styl „wydawniczy”
   Strona jak dobrze złożona książka: ciepły papier, garamondy,
   inicjały, cienkie linie, ornamenty, numerowane tablice z obrazami.
=================================================================== */

:root {
  --paper: #f4eee3;
  --paper-2: #ebe3d4;
  --paper-3: #fbf8f2;
  --ink: #2a2521;
  --ink-2: #4a423b;
  --muted: #7d746a;
  --burgundy: #7b2b3a;
  --gold: #b08d57;
  --sage: #5f6f63;
  --night: #1e1b1a;
  --line: rgba(42, 37, 33, .18);
  --line-2: rgba(42, 37, 33, .32);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --font-caps: "Cormorant SC", "Cormorant Garamond", Georgia, serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 24px 50px -24px rgba(42, 37, 33, .45), 0 8px 18px -10px rgba(42, 37, 33, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(rgba(42, 37, 33, .05) .6px, transparent .6px);
  background-size: 5px 5px;
  font-family: var(--font-body); font-size: 1.15rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.05; text-wrap: balance; }
em { font-style: italic; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 16px; }

/* --- typografia sekcji --- */
.eyebrow { margin: 0 0 14px; font-family: var(--font-caps); font-size: .95rem; letter-spacing: .28em; text-transform: uppercase; color: var(--burgundy); display: flex; align-items: center; gap: 14px; }
.eyebrow::before, .eyebrow::after { content: ""; height: 1px; width: 28px; background: var(--line-2); }
.sec-head { margin-bottom: clamp(32px, 5vw, 60px); text-align: center; }
.sec-head .eyebrow { justify-content: center; }
.sec-head--row { text-align: left; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.sec-head--row .eyebrow { justify-content: flex-start; }
.sec-head--row .eyebrow::after { display: none; }
.sec-title { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; letter-spacing: -.01em; }
.sec-title em { font-weight: 400; color: var(--burgundy); }
.sec-note { max-width: 42ch; margin: 0; color: var(--muted); font-style: italic; font-size: 1.05rem; line-height: 1.5; }

/* --- pojawianie się --- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* --- nawigacja --- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-block: 18px; color: var(--paper); transition: background .35s var(--ease), color .35s var(--ease), padding .35s var(--ease), box-shadow .35s; }
.top.is-scrolled { background: rgba(244, 238, 227, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink); padding-block: 10px; box-shadow: 0 1px 0 var(--line); }
.nav { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: var(--font-display); font-size: 1.55rem; font-weight: 500; text-decoration: none; letter-spacing: .01em; }
.menu { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.menu a { font-family: var(--font-caps); font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; position: relative; padding: 6px 0; opacity: .85; transition: opacity .3s; }
.menu a:hover, .menu a.is-active { opacity: 1; }
.menu a:not(.ig)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.menu a:not(.ig):hover::after, .menu a.is-active::after { transform: scaleX(1); }
.menu .ig { display: inline-flex; padding: 4px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { width: 24px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* --- hero: zdjęcie na całą szerokość, tytuł jak karta tytułowa --- */
.hero { position: relative; height: clamp(600px, 90vh, 900px); overflow: hidden; background: var(--night); color: var(--paper); }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 18%; transform: scale(1.06); will-change: transform; filter: saturate(.92) contrast(1.02); }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 27, 26, .55) 0%, rgba(30, 27, 26, 0) 26%), linear-gradient(0deg, rgba(30, 27, 26, .9) 0%, rgba(30, 27, 26, .35) 40%, rgba(30, 27, 26, 0) 65%); }
.hero__content { position: absolute; left: 0; right: 0; bottom: clamp(56px, 10vh, 120px); text-align: center; padding-inline: var(--gutter); }
.hero__kicker { margin: 0 0 20px; font-family: var(--font-caps); font-size: 1rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); animation: rise 1s var(--ease) .1s both; }
.hero__kicker::before, .hero__kicker::after { content: " ❦ "; color: var(--gold); }
.hero__title { font-size: clamp(3.6rem, 10vw, 8.6rem); font-weight: 400; letter-spacing: -.01em; line-height: .95; }
.hero__title em { font-weight: 400; color: #f3d9c6; }
.hero__w { display: inline-block; animation: rise 1.2s var(--ease) both; }
.hero__title em.hero__w { animation-delay: .18s; }
.hero__scroll { position: absolute; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; color: var(--paper); border: 1px solid rgba(244, 238, 227, .5); display: grid; place-items: center; text-decoration: none; animation: bob 2.6s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* --- motto: cienka linia z powtarzanym tytułem + cytat jak dedykacja --- */
.motto { background: var(--paper-3); border-bottom: 1px solid var(--line); }
.motto__inner { position: relative; }
.motto__inner::before { content: "❦"; display: block; margin: 0 auto 22px; color: var(--gold); font-size: 1.4rem; }
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding-block: 10px; }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marquee 60s linear infinite; font-family: var(--font-caps); font-size: .95rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee__track .dot { color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }
.motto__inner { padding-block: clamp(56px, 8vw, 110px); max-width: 62ch; text-align: center; }
.motto__text { margin: 0; font-family: var(--font-display); font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.3; font-style: italic; font-weight: 400; }
.motto__text strong { font-weight: 600; font-style: normal; color: var(--burgundy); }
.motto__src { margin: 22px 0 0; font-family: var(--font-caps); font-size: .95rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* --- książka --- */
.book { padding-block: clamp(80px, 11vw, 150px); }
.book__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.book__visual { position: relative; justify-self: center; width: min(100%, 460px); }
.book__photo { padding: 14px; background: var(--paper-3); border: 1px solid var(--line); box-shadow: var(--shadow); }
.book__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; }
.book__cover { position: absolute; right: -9%; bottom: -6%; width: 44%; transform: rotate(5deg); filter: drop-shadow(0 26px 30px rgba(42, 37, 33, .4)); transition: transform .8s var(--ease); }
.book__visual:hover .book__cover { transform: rotate(1deg) translateY(-8px); }
.book__body .eyebrow::after { display: none; }
.book__title { font-size: clamp(2.8rem, 5.6vw, 4.8rem); font-weight: 500; letter-spacing: -.01em; }
.book__title em { color: var(--burgundy); font-weight: 400; }
.book__author { margin: 14px 0 0; font-family: var(--font-caps); font-size: 1.05rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.book__lead { margin: 24px 0 0; max-width: 56ch; font-size: 1.15rem; line-height: 1.65; }
.book__lead + .book__lead { margin-top: 12px; }
.facts { display: flex; gap: 40px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); padding-bottom: 22px; flex-wrap: wrap; }
.facts li { display: flex; flex-direction: column; gap: 2px; }
.facts__n { font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; color: var(--burgundy); }
.facts__l { font-family: var(--font-caps); font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.book__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; font-family: var(--font-caps); font-size: 1.05rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--ink); transition: transform .35s var(--ease), background .35s, color .35s; }
.btn__price { font-family: var(--font-body); font-size: .95rem; letter-spacing: 0; text-transform: none; opacity: .8; padding-left: 12px; border-left: 1px solid currentColor; }
.btn svg { transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(4px); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--burgundy); border-color: var(--burgundy); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: rgba(42, 37, 33, .06); }
.more { display: inline-block; margin-top: 24px; font-style: italic; color: var(--burgundy); text-decoration: none; border-bottom: 1px solid currentColor; }
.more:hover { color: var(--ink); }

/* --- ocena z lubimyczytac.pl --- */
.rating { display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 18px; row-gap: 2px; align-items: center; margin-top: 26px; padding: 14px 20px; border: 1px solid var(--line-2); background: var(--paper-3); text-decoration: none; color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.rating:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.rating__score { grid-row: 1 / 3; display: flex; align-items: baseline; gap: 4px; font-family: var(--font-display); }
.rating__score strong { font-size: 2.6rem; font-weight: 500; line-height: 1; color: var(--burgundy); font-variant-numeric: tabular-nums; }
.rating__score span { font-family: var(--font-caps); font-size: .95rem; letter-spacing: .1em; color: var(--muted); }
.rating__stars { display: flex; gap: 2px; color: var(--gold); }
.rating__meta { font-family: var(--font-caps); font-size: .92rem; letter-spacing: .12em; color: var(--muted); line-height: 1.3; }
.rating__meta em { font-style: italic; font-family: var(--font-display); font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--burgundy); }

/* --- cytaty: jak strony z motto --- */
.quotes { background: var(--paper-2); padding-block: clamp(80px, 11vw, 150px); border-block: 1px solid var(--line); }
.q-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.q { padding: clamp(28px, 3vw, 44px) clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px; border-left: 1px solid var(--line); position: relative; }
.q:nth-child(3n+1) { border-left: 0; }
.q:nth-child(n+4) { border-top: 1px solid var(--line); }
.q::before { content: "”"; font-family: var(--font-display); font-size: 4rem; line-height: .4; color: var(--gold); }
.q blockquote { margin: 0; flex: 1; }
.q p { margin: 0; font-family: var(--font-display); font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.3; font-weight: 500; }
.q cite { font-style: normal; font-family: var(--font-caps); font-size: .95rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* --- tablica z obrazami + cytat --- */
.band { position: relative; min-height: clamp(440px, 64vh, 680px); display: grid; place-items: center; overflow: hidden; color: var(--paper); background: var(--night); }
.band__media, .band__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.band__media img { object-fit: cover; object-position: 50% 55%; transform: scale(1.12); will-change: transform; filter: saturate(.85); }
.band__veil { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30, 27, 26, .85), rgba(30, 27, 26, .35) 60%, rgba(30, 27, 26, .2)); }
.band__inner { position: relative; padding-block: 80px; text-align: center; }
.band__quote { margin: 0 auto; max-width: 22ch; font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: 1.12; font-weight: 400; }
.band__quote em { color: var(--gold); }
.band__src { margin: 22px 0 0; font-family: var(--font-caps); font-size: 1rem; letter-spacing: .26em; text-transform: uppercase; opacity: .85; }

/* --- galeria: numerowane tablice --- */
.gallery { padding-block: clamp(80px, 11vw, 150px); }
.art-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px) clamp(16px, 2.4vw, 28px); align-items: start; }
.art { display: flex; flex-direction: column; gap: 12px; }
.art__link { display: block; padding: 10px; background: var(--paper-3); border: 1px solid var(--line); box-shadow: 0 14px 30px -18px rgba(42, 37, 33, .45); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.art__link:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.art img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.art--wide img { aspect-ratio: 3 / 4; object-position: 60% 50%; }
.art--square img { aspect-ratio: 1; }
.art__cap { display: flex; gap: 12px; align-items: baseline; padding-inline: 4px; }
.art--note { justify-content: center; padding: 10px 6px; }
.art__note { margin: 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.3; font-style: italic; color: var(--ink-2); }
.art__note span { color: var(--burgundy); }
.art__sig { margin: 14px 0 0; font-family: var(--font-caps); letter-spacing: .3em; color: var(--gold); }
.art__num { white-space: nowrap; font-family: var(--font-caps); font-size: .95rem; letter-spacing: .2em; color: var(--gold); }
.art__num::before { content: "Tablica "; }
.art__title { font-family: var(--font-display); font-size: 1.2rem; font-style: italic; }

/* --- o mnie: dwie łamy jak w książce --- */
.about { background: var(--paper-3); padding-block: clamp(80px, 11vw, 150px); border-block: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.about__text { max-width: 60ch; font-size: 1.18rem; line-height: 1.7; }
.about__text p { margin: 0 0 1.15em; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.about__hi { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; margin-bottom: .5em !important; text-align: left !important; }
.about__hi strong { font-weight: 500; }
.about__text > p:nth-of-type(2)::first-letter { font-family: var(--font-display); font-size: 3.6em; line-height: .78; float: left; padding: .06em .1em 0 0; color: var(--burgundy); }
.about__pull { font-family: var(--font-display); font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.15; font-style: italic; color: var(--burgundy); text-align: center !important; padding-block: .6em; margin-block: 1.1em !important; border-block: 1px solid var(--line-2); }
.about__sign { text-align: left !important; }
.about__photos { position: sticky; top: 100px; display: grid; grid-template-columns: repeat(6, 1fr); }
.photo { background: var(--paper-3); padding: 10px 10px 14px; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .6s var(--ease); }
.photo img { width: 100%; object-fit: cover; filter: sepia(.08); }
.photo--1 { grid-column: 1 / 6; grid-row: 1; transform: rotate(-2deg); }
.photo--1 img { aspect-ratio: 4 / 5; object-position: 50% 12%; background: linear-gradient(170deg, #e9cfc3, #d8c3a6); }
.photo--2 { grid-column: 3 / 7; grid-row: 2; margin-top: -60px; transform: rotate(2.5deg); z-index: 2; }
.photo--2 img { aspect-ratio: 1; }
.photo--3 { grid-column: 1 / 4; grid-row: 3; margin-top: -40px; transform: rotate(-3deg); z-index: 3; }
.photo--3 img { aspect-ratio: 4 / 5; }
.photo:hover { transform: rotate(0) scale(1.03); z-index: 5; }

/* zdjęcia wplecione w tekst — tylko na telefonie */
.photo-inline { display: none; }

/* --- chwile: album --- */
.moments { padding-block: clamp(80px, 11vw, 150px) clamp(60px, 8vw, 110px); overflow: hidden; }
.moments__strip { display: flex; gap: 26px; overflow-x: auto; padding: 14px var(--gutter) 30px; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.moments__strip::-webkit-scrollbar { display: none; }
.moments__strip.is-drag { cursor: grabbing; scroll-snap-type: none; }
.moment { flex: 0 0 auto; width: clamp(200px, 23vw, 290px); scroll-snap-align: start; position: relative; background: var(--paper-3); padding: 12px 12px 16px; border: 1px solid var(--line); box-shadow: 0 16px 30px -18px rgba(42, 37, 33, .45); transform: rotate(calc((var(--i) - 4) * .7deg)); transition: transform .5s var(--ease); }
.moment::before { content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 22px; transform: translateX(-50%) rotate(-2deg); background: rgba(176, 141, 87, .35); }
.moment:nth-child(even) { margin-top: 28px; }
.moment:hover { transform: rotate(0) translateY(-6px); }
.moment img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; filter: sepia(.1); user-select: none; -webkit-user-drag: none; }
.moment figcaption { margin-top: 10px; font-family: var(--font-display); font-size: 1.05rem; font-style: italic; color: var(--ink-2); text-align: center; }

/* --- prasa --- */
.press { background: var(--night); color: var(--paper); padding-block: clamp(80px, 11vw, 150px); }
.press .eyebrow { color: var(--gold); }
.press .eyebrow::before, .press .eyebrow::after { background: rgba(244, 238, 227, .3); }
.press-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.quote { padding: clamp(28px, 3vw, 44px) clamp(22px, 3vw, 40px); border-left: 1px solid rgba(244, 238, 227, .18); display: flex; flex-direction: column; gap: 22px; }
.quote:first-child { border-left: 0; }
.quote__mark { font-family: var(--font-display); font-size: 4.5rem; line-height: .4; color: var(--gold); }
.quote blockquote { margin: 0; flex: 1; }
.quote p { margin: 0; font-family: var(--font-display); font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.4; }
.quote__src { align-self: flex-start; font-family: var(--font-caps); font-size: .95rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--gold); padding-bottom: 3px; border-bottom: 1px solid currentColor; }
.quote__src:hover { color: var(--paper); }

/* --- stopka: kolofon --- */
.foot { background: var(--paper-2); border-top: 1px solid var(--line); padding-block: clamp(56px, 8vw, 100px); }
.foot__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.foot__motto { margin: 0; font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 400; font-style: italic; }
.foot__motto em { color: var(--burgundy); }
.foot__motto::after { content: "❦"; display: block; margin-top: 14px; font-style: normal; color: var(--gold); font-size: 1.4rem; }
.foot__ig { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-caps); font-size: 1.05rem; letter-spacing: .16em; transition: transform .35s var(--ease); }
.foot__ig:hover { transform: translateY(-3px); }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; }
.foot__links a { font-family: var(--font-caps); font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.foot__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

/* --- lightbox --- */
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(30, 27, 26, .94); display: grid; place-items: center; padding: 24px; }
.lightbox figure { max-width: min(1100px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; padding: 12px; background: var(--paper-3); }
.lightbox figcaption { color: var(--paper); font-family: var(--font-display); font-size: 1.4rem; font-style: italic; }
.lightbox__close { position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(244, 238, 227, .3); background: transparent; color: var(--paper); font-size: 30px; line-height: 1; cursor: pointer; }

/* --- reduced motion / responsywność --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__w, .hero__kicker, .hero__scroll, .marquee__track { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
@media (max-width: 1080px) { .art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .book__grid { grid-template-columns: 1fr; }
  .book__visual { width: min(88%, 420px); margin-bottom: 40px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photos { position: static; width: min(100%, 520px); justify-self: center; margin-top: 24px; }
  .q-grid, .press-grid { grid-template-columns: 1fr; }
  .q, .quote { border-left: 0; border-top: 1px solid var(--line); }
  .q:first-child, .quote:first-child { border-top: 0; }
  .quote { border-top-color: rgba(244, 238, 227, .18); }
}
@media (max-width: 720px) {
  /* gęstsze, bardziej „książkowe” mobile */
  .book, .quotes, .gallery, .about, .press { padding-block: 56px; }
  .moments { padding-block: 56px 40px; }
  .sec-head { margin-bottom: 26px; }
  .sec-title { font-size: 2.3rem; }
  .motto__inner { padding-block: 44px; }
  .motto__text { font-size: 1.45rem; }
  .hero__title { font-size: clamp(3.4rem, 17vw, 4.6rem); }
  .hero__content { bottom: 48px; }
  .about__text { font-size: 1.1rem; line-height: 1.65; }
  .about__pull { font-size: 1.6rem; }
  .book__visual { width: 92%; margin-bottom: 44px; }
  .book__cover { right: -6%; bottom: -5%; width: 42%; }
  .book__title { font-size: 2.6rem; }
  .book__lead { font-size: 1.08rem; }
  .btn { width: 100%; justify-content: space-between; }
  .rating { display: grid; width: 100%; }
  .book__actions { flex-direction: column; }
  .q { padding: 22px 0 24px; gap: 12px; }
  .q::before { font-size: 3rem; line-height: .3; }
  .q p { font-size: 1.35rem; }
  .moments__strip { gap: 18px; padding-inline: var(--gutter); }
  .moment { width: 66vw; }
  .moment:nth-child(even) { margin-top: 18px; }
  .art-grid { gap: 22px 14px; }
  .art__cap { flex-direction: column; gap: 2px; }
  .art__num { font-size: .82rem; }
  .art__title { font-size: 1.05rem; }
  .press-grid .quote { padding: 22px 0 26px; }
  .quote__mark { font-size: 3rem; line-height: .3; }
  .foot__motto { font-size: 2rem; }
  .burger { display: flex; }
  .menu { position: fixed; inset: 0; background: var(--night); color: var(--paper); flex-direction: column; justify-content: center; gap: 30px; transform: translateY(-100%); opacity: 0; transition: transform .45s var(--ease), opacity .3s var(--ease); z-index: -1; }
  .menu.is-open { transform: none; opacity: 1; }
  .menu a { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: 0; text-transform: none; }
  .menu .ig svg { width: 30px; height: 30px; }
  .top.is-open { color: var(--paper); }
  .hero { height: clamp(560px, 90svh, 760px); }
  .hero__scroll { display: none; }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about__text p { text-align: left; }
  .about__photos { display: none; }
  .photo-inline { display: block; margin: 30px auto 34px; width: 84%; background: var(--paper-3); padding: 10px 10px 14px; border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(-1.5deg); }
  .photo-inline:nth-of-type(2) { transform: rotate(1.5deg); width: 72%; }
  .photo-inline img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; filter: sepia(.08); }
  .photo-inline:first-of-type img { background: linear-gradient(170deg, #e9cfc3, #d8c3a6); }
  .photo-inline--sq img { aspect-ratio: 1; }
  .photo--2 { margin-top: -30px; }
  .photo--3 { margin-top: -20px; }
}

/* ===================================================================
   Podstrony: ksiazka.html, regulamin.html, polityka-prywatnosci.html
=================================================================== */
.top--solid { background: rgba(244, 238, 227, .92); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.page { padding-block: calc(96px + 3vw) clamp(72px, 10vw, 120px); }

/* Regulamin / Polityka */
.legal { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.legal__head { position: sticky; top: 110px; }
.legal__title { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 500; line-height: 1.1; }
.legal__title em { color: var(--burgundy); }
.legal__body { max-width: 70ch; font-size: 1.1rem; line-height: 1.65; }
.legal__sec { padding-block: 26px; border-top: 1px solid var(--line); }
.legal__sec:first-child { border-top: 0; padding-top: 0; }
.legal__sec h2 { font-size: 1.6rem; margin: 0 0 14px; font-weight: 500; }
.legal__sec ol { margin: 0; padding-left: 1.4em; }
.legal__sec ul { list-style: disc; margin: 6px 0 0; padding-left: 1.3em; }
.legal__sec li { margin: 0 0 .55em; }
.legal__sec li::marker { color: var(--gold); }
.legal__sec p { margin: 0; }
.legal__sec a { color: var(--burgundy); text-underline-offset: 3px; }
.notice { border: 1px dashed var(--burgundy); padding: 12px 16px; margin: 0 0 14px !important; font-size: 1rem; font-style: italic; background: rgba(123, 43, 58, .05); }
.todo { background: rgba(176, 141, 87, .3); padding: 1px 6px; }

/* Strona książki */
.crumbs { display: flex; gap: 10px; align-items: center; margin: 0 0 34px; font-family: var(--font-caps); font-size: .95rem; letter-spacing: .12em; color: var(--muted); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.product__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.product__cover { position: sticky; top: 110px; justify-self: center; width: min(100%, 420px); padding: clamp(24px, 4vw, 48px); background: var(--paper-3); border: 1px solid var(--line); box-shadow: var(--shadow); }
.product__cover img { filter: drop-shadow(0 26px 30px rgba(42, 37, 33, .4)); }
.product__title { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 500; }
.product__title em { color: var(--burgundy); font-weight: 400; }
.product__desc { margin-top: 28px; max-width: 58ch; font-size: 1.18rem; line-height: 1.7; }
.product__desc p { margin: 0 0 1.1em; }
.heart { color: var(--burgundy); }
.offers { display: grid; gap: 14px; margin-top: 34px; }
.offer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; padding: 18px 22px; border: 1px solid var(--line); background: var(--paper-3); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.offer:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.offer__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.offer__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.offer__meta { font-size: .95rem; font-style: italic; color: var(--muted); }
.offer__price { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.offer .btn { padding: 11px 18px; }
.product__note { margin-top: 22px; font-size: 1rem; font-style: italic; color: var(--muted); }
.product__note a { color: var(--burgundy); text-underline-offset: 3px; }
@media (max-width: 960px) {
  .legal { grid-template-columns: 1fr; }
  .legal__head { position: static; }
  .product__grid { grid-template-columns: 1fr; }
  .product__cover { position: static; width: min(80%, 360px); }
}
@media (max-width: 720px) {
  .menu--static { position: static; transform: none; opacity: 1; flex-direction: row; gap: 14px; background: transparent; color: inherit; z-index: auto; }
  .menu--static a { font-family: var(--font-caps); font-size: .9rem; letter-spacing: .1em; }
  .offer { grid-template-columns: 1fr auto; }
  .offer .btn { grid-column: 1 / -1; justify-content: center; }
}
