/* ============================================================
   ANNA KOŁODZIEJCZAK — v2 „KARTKI"
   Logo AK ma między literami cztery kolorowe kartki.
   Ta strona JEST tymi kartkami: pełnokolorowe arkusze
   nakładają się na siebie przy scrollu jak strony książki.
   Kolory = okładki tomów I–IV serii „Kosmetologia” (PZWL).
   ============================================================ */

:root {
  --paper: #FDFCFA;
  --paper-shade: #F5F3EE;
  --ink: #1C2127;
  --ink-soft: #565D66;
  --hairline: rgba(28, 33, 39, .14);

  /* kolory okładek */
  --tom1: #9ED4D9;
  --tom2: #E2AC4D;
  --tom3: #E05C6F;
  --tom4: #A6C92F;

  --tom1-deep: #2E96A3;
  --tom2-deep: #B97F1D;
  --tom3-deep: #C73B50;
  --tom4-deep: #6E8A14;

  --tom1-tint: #EDF7F8;
  --tom2-tint: #FAF3E4;
  --tom3-tint: #FBEDEF;
  --tom4-tint: #F3F7E3;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Schibsted Grotesk", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 52px);
  --radius-sheet: clamp(22px, 3.4vw, 40px);

  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out-strong: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--tom1-deep); outline-offset: 3px; border-radius: 2px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.hero-grid > *, .duo > *, .tomy > *, .reviews > *, .products > *,
.newsletter .inner > *, .footer-grid > *, .stats-row > *, .covers-row > *,
.sheet-grid > * { min-width: 0; }
body { overflow-x: clip; }

/* ---------- grzbiety / półka ---------- */
.spines { display: grid; grid-template-columns: repeat(4, 1fr); height: 6px; }
.spines span:nth-child(1) { background: var(--tom1); }
.spines span:nth-child(2) { background: var(--tom2); }
.spines span:nth-child(3) { background: var(--tom3); }
.spines span:nth-child(4) { background: var(--tom4); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--hairline); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 13px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 50px; width: auto; }
.brand-name { font-family: var(--font-display); font-size: 19px; line-height: 1.12; font-weight: 600; }
.brand-name small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 400; }

.main-nav ul { display: flex; gap: 4px; list-style: none; align-items: center; }
.main-nav a {
  text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 13px; border-radius: 999px; white-space: nowrap;
  transition: background .18s ease;
}
.main-nav a:hover { background: var(--paper-shade); }
.main-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.main-nav .nav-cta a { background: var(--tom3); color: #fff; font-weight: 600; }
.main-nav .nav-cta a:hover { background: var(--tom3-deep); }

.has-sub { position: relative; }
.has-sub .sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
  background: var(--paper); border: 1px solid var(--hairline);
  box-shadow: 0 14px 36px rgba(28,33,39,.10);
  padding: 8px; border-radius: 14px; display: none;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.has-sub .sub a { display: block; border-radius: 8px; }
.has-sub .sub .soon { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--tom2-deep); text-transform: uppercase; display: block; }

.nav-toggle { display: none; background: none; border: 1px solid var(--hairline); border-radius: 10px; padding: 9px 12px; font: 600 14px var(--font-body); cursor: pointer; }

@media (max-width: 1240px) { .brand-name { display: none; } }
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--hairline); padding: 12px var(--gutter) 20px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { display: block; padding: 12px 14px; border-radius: 10px; }
  .has-sub .sub { position: static; display: block; box-shadow: none; border: none; padding-left: 18px; }
}

/* ---------- aparat podręcznika ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
}
.eyebrow::before { content: ""; width: 11px; height: 11px; background: var(--ink); }
.eyebrow.c1::before { background: var(--tom1); }
.eyebrow.c2::before { background: var(--tom2); }
.eyebrow.c3::before { background: var(--tom3); }
.eyebrow.c4::before { background: var(--tom4); }

figure.plate { position: relative; }
figure.plate img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
figure.plate figcaption {
  margin-top: 10px; font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-soft); letter-spacing: .02em;
  padding-top: 8px; border-top: 1px solid var(--hairline);
}
figure.plate figcaption b { font-weight: 600; color: var(--ink); }

/* ---------- typografia ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 560; line-height: 1.08; letter-spacing: -0.015em; }
.h-xl { font-size: clamp(40px, 5.6vw, 70px); }
.h-lg { font-size: clamp(30px, 3.9vw, 48px); }
.h-md { font-size: clamp(22px, 2.6vw, 31px); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 56ch; }
em.serif-italic, .hero h1 em { font-style: italic; font-weight: 480; }
.muted { color: var(--ink-soft); }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15.5px var(--font-body); text-decoration: none; cursor: pointer;
  padding: 15px 28px; border-radius: 999px; border: none;
  transition: transform 160ms var(--ease-out-strong), background .18s ease, box-shadow .18s ease, color .18s ease;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-1px); } }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--tom3); color: #fff; }
.btn-primary:hover { background: var(--tom3-deep); box-shadow: 0 10px 26px rgba(224,92,111,.32); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { box-shadow: 0 10px 26px rgba(28,33,39,.22); }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- sekcje ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section.shade { background: var(--paper-shade); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p { margin-top: 16px; }

/* ---------- HERO v2: gigant „Kosmetologia” na półce ---------- */
.hero { padding-block: clamp(40px, 6vw, 72px) 0; overflow: hidden; }
.hero .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.hero .intro-line {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-soft);
}

.giant {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 4.9vw, 66px);
  line-height: 1.04; letter-spacing: -0.022em;
}
.giant .g-line { display: block; overflow: hidden; white-space: nowrap; }
.giant .g-letter { display: inline-block; will-change: transform; }

.shelf { display: grid; grid-template-columns: repeat(4, 1fr); height: 7px; width: min(380px, 72%); margin-block: clamp(14px, 1.6vw, 22px) clamp(18px, 2vw, 26px); }
.shelf i:nth-child(1) { background: var(--tom1); }
.shelf i:nth-child(2) { background: var(--tom2); }
.shelf i:nth-child(3) { background: var(--tom3); }
.shelf i:nth-child(4) { background: var(--tom4); }

.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(28px, 3.8vw, 48px) clamp(46px, 6vw, 84px);
}
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.hero-photo { position: relative; }
.hero-photo .stage { position: relative; display: grid; place-items: center; padding: 22px; }
.hero-photo .halo {
  position: absolute; width: min(470px, 96%); aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(var(--tom1) 0 25%, var(--tom2) 0 50%, var(--tom3) 0 75%, var(--tom4) 0 100%);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
  mask: radial-gradient(closest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
  animation: halo-spin 60s linear infinite;
}
@keyframes halo-spin { to { transform: rotate(360deg); } }
.hero-photo .stage img { width: min(400px, 86%); aspect-ratio: 1; border-radius: 50%; filter: drop-shadow(0 22px 36px rgba(28,33,39,.18)); }
@media (prefers-reduced-motion: reduce) { .hero-photo .halo { animation: none; } }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

.pill-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 14px var(--font-body); text-decoration: none;
  padding: 9px 18px; border: 1px solid var(--hairline); border-radius: 999px;
  background: #fff; transition: border-color .18s ease, transform 160ms var(--ease-out-strong);
}
.pill-cta:hover { border-color: var(--tom3); }
.pill-cta:active { transform: scale(.97); }
.pill-cta .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tom3); animation: pulse 2.2s ease infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224,92,111,.45); }
  50% { box-shadow: 0 0 0 7px rgba(224,92,111,0); }
}
@media (prefers-reduced-motion: reduce) { .pill-cta .dot { animation: none; } }

/* Tab. 1.1 — liczby */
.stats { border-top: 1px solid var(--ink); padding-bottom: clamp(46px, 6vw, 80px); }
.stats .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding-top: 10px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); margin-top: 14px; }
.stat b { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 46px); font-weight: 560; display: block; line-height: 1; }
.stat span { font-size: 14px; color: var(--ink-soft); display: block; margin-top: 8px; }
.stat:nth-child(1) b { color: var(--tom1-deep); }
.stat:nth-child(2) b { color: var(--tom2-deep); }
.stat:nth-child(3) b { color: var(--tom3-deep); }
.stat:nth-child(4) b { color: var(--tom4-deep); }
@media (max-width: 720px) { .stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); overflow: hidden; padding-block: 16px; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-family: var(--font-mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; color: var(--paper); }
.marquee .m1 { color: var(--tom1); }
.marquee .m2 { color: var(--tom2); }
.marquee .m3 { color: var(--tom3); }
.marquee .m4 { color: var(--tom4); }
.marquee .dot { color: rgba(253,252,250,.35); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ============================================================
   KARTKI — pełnokolorowe arkusze nakładające się przy scrollu
   ============================================================ */
.sheets { position: relative; }
.sheet {
  position: sticky; top: 0;
  min-height: 100svh;
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  padding: clamp(56px, 9vh, 96px) 0 clamp(64px, 10vh, 110px);
  display: flex; align-items: center;
  will-change: transform;
}
.sheet .wrap { width: 100%; }
.sheet.s1 { background: var(--tom1); }
.sheet.s2 { background: var(--tom2); }
.sheet.s3 { background: var(--tom3); color: #fff; }
.sheet.s4 { background: var(--tom4); }

.sheet .folio {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(22px, 3.5vh, 40px); opacity: .85;
}
.sheet .folio::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; }
.sheet h2 { font-size: clamp(32px, 4.6vw, 60px); max-width: 16ch; }
.sheet .sheet-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.sheet p.body { margin-top: 20px; font-size: clamp(16px, 1.5vw, 19px); max-width: 52ch; opacity: .88; }
.sheet ul.ticks { list-style: none; margin-top: 22px; display: grid; gap: 12px; font-size: 16.5px; }
.sheet ul.ticks li { display: flex; gap: 14px; align-items: baseline; }
.sheet ul.ticks b { font-family: var(--font-mono); }
.sheet .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.sheet figure.plate figcaption { border-top-color: currentColor; color: inherit; opacity: .8; }
.sheet figure.plate figcaption b { color: inherit; }
.sheet .big-nr {
  position: absolute; right: var(--gutter); top: clamp(18px, 4vh, 44px);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(72px, 11vw, 170px); line-height: 1; opacity: .18; pointer-events: none;
}
@media (max-width: 880px) {
  .sheet { min-height: auto; position: relative; }
  .sheet .sheet-grid { grid-template-columns: 1fr; }
  .sheet .big-nr { font-size: 84px; opacity: .14; }
}

/* okładki w kartce 3 */
.covers-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 26px); margin-top: clamp(30px, 4.5vh, 52px); }
.cover-tile { text-decoration: none; display: grid; gap: 12px; will-change: transform; }
.cover-tile img { width: 100%; border-radius: 6px; box-shadow: 0 18px 36px rgba(0,0,0,.28); }
.cover-tile .t { font: 600 15px var(--font-body); }
.cover-tile .p { font-family: var(--font-mono); font-size: 13px; opacity: .85; }
@media (max-width: 720px) { .covers-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- opinie: ruchoma galeria ---------- */
.t-marquee { overflow: hidden; padding-block: 8px; }
.t-track { display: flex; gap: 22px; width: max-content; animation: marquee 46s linear infinite; }
.t-track:hover { animation-play-state: paused; }
.t-track figure { width: clamp(240px, 24vw, 320px); flex: none; }
.t-track img { border: 1px solid var(--hairline); border-radius: 12px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .t-track { animation: none; flex-wrap: wrap; width: auto; } }

/* ---------- układy współdzielone z podstronami ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.duo.rev > :first-child { order: 2; }
@media (max-width: 880px) { .duo { grid-template-columns: 1fr; } .duo.rev > :first-child { order: 0; } }

.pull {
  border-left: 5px solid var(--tom3);
  padding: 10px 0 10px 30px; margin-block: 36px;
  font-family: var(--font-display); font-style: italic; font-weight: 480;
  font-size: clamp(21px, 2.4vw, 27px); line-height: 1.45;
}
.pull cite { display: block; margin-top: 14px; font: 500 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--ink-soft); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  border: 1px solid var(--hairline); border-radius: 16px;
  padding: 30px 28px 32px; background: var(--paper);
  border-top: 6px solid var(--ink);
  transition: transform .18s var(--ease-out-strong), box-shadow .18s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(28,33,39,.09); }
.pillar.c1 { border-top-color: var(--tom1); }
.pillar.c2 { border-top-color: var(--tom2); }
.pillar.c3 { border-top-color: var(--tom3); }
.pillar h3 { font-size: 22px; margin: 14px 0 10px; }
.pillar p { font-size: 15.5px; color: var(--ink-soft); }
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }

.tomy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; perspective: 1100px; }
.tom-card {
  border-radius: 16px; padding: 28px 24px 26px; color: var(--ink);
  display: flex; flex-direction: column; min-height: 380px;
  text-decoration: none; position: relative; overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
  transition: transform .18s var(--ease-out-strong), box-shadow .18s ease;
}
.tom-card:hover { box-shadow: 0 22px 44px rgba(28,33,39,.16); }
.tom-card.c1 { background: var(--tom1); }
.tom-card.c2 { background: var(--tom2); }
.tom-card.c3 { background: var(--tom3); color: #fff; }
.tom-card.c4 { background: var(--tom4); }
.tom-card .nr { font-family: var(--font-display); font-size: 64px; line-height: 1; font-weight: 600; }
.tom-card h3 { font-size: 21px; margin: 14px 0 8px; }
.tom-card .sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.tom-card p { font-size: 14.5px; line-height: 1.55; margin-top: 10px; opacity: .92; }
.tom-card .buy { margin-top: auto; padding-top: 22px; font-weight: 700; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.tom-card .nr, .tom-card h3 { transform: translateZ(28px); }
.tom-card .sub, .tom-card p, .tom-card .buy { transform: translateZ(14px); }
@media (max-width: 1020px) { .tomy { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tomy { grid-template-columns: 1fr; } }

.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.reviews figure.plate img { border: 1px solid var(--hairline); border-radius: 12px; }
@media (max-width: 1020px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reviews { grid-template-columns: 1fr; } }

.post-list { border-top: 1px solid var(--ink); }
.post-row {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 28px; align-items: baseline;
  padding-block: 26px; border-bottom: 1px solid var(--hairline);
  text-decoration: none; transition: background .15s ease;
}
.post-row:hover { background: var(--paper-shade); }
.post-row time { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }
.post-row h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 560; }
.post-row:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.post-row .cat {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.cat.c1 { background: var(--tom1-tint); color: var(--tom1-deep); }
.cat.c2 { background: var(--tom2-tint); color: var(--tom2-deep); }
.cat.c3 { background: var(--tom3-tint); color: var(--tom3-deep); }
.cat.c4 { background: var(--tom4-tint); color: var(--tom4-deep); }
.post-row p { grid-column: 2; font-size: 15px; color: var(--ink-soft); margin-top: 2px; }
@media (max-width: 720px) { .post-row { grid-template-columns: 1fr; gap: 8px; } .post-row p { grid-column: 1; } }

/* w kartce 4 — lista wpisów na limonce */
.sheet .post-list { border-top-color: currentColor; }
.sheet .post-row { border-bottom-color: rgba(28,33,39,.25); }
.sheet .post-row:hover { background: rgba(253,252,250,.35); }
.sheet .post-row time { color: inherit; opacity: .7; }
.sheet .post-row .cat { background: rgba(253,252,250,.7); color: var(--ink); }

.biblio { list-style: none; counter-reset: pub; border-top: 1px solid var(--ink); }
.biblio li {
  counter-increment: pub; display: grid; grid-template-columns: 64px 1fr; gap: 20px;
  padding-block: 16px; border-bottom: 1px solid var(--hairline); font-size: 15px; color: var(--ink-soft);
}
.biblio li::before { content: "[" counter(pub) "]"; font-family: var(--font-mono); font-size: 13px; color: var(--tom1-deep); }

.cta-banner { background: var(--ink); color: var(--paper); border-radius: 22px; padding: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.cta-banner h2 { max-width: 18ch; }
.cta-banner .actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.cta-banner .spines { position: absolute; left: 0; right: 0; top: 0; }

.form-grid { display: grid; gap: 18px; max-width: 620px; }
.form-grid label { font: 500 13px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 7px; }
.form-grid input, .form-grid textarea {
  width: 100%; padding: 14px 16px; font: 16px var(--font-body);
  border: 1px solid var(--hairline); border-radius: 12px; background: #fff; color: var(--ink);
}
.form-grid input:focus, .form-grid textarea:focus { border-color: var(--tom1-deep); }

.newsletter { background: var(--tom1-tint); }
.newsletter .inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input { flex: 1; padding: 15px 18px; font: 16px var(--font-body); border: 1px solid var(--hairline); border-radius: 999px; background: #fff; }
@media (max-width: 820px) { .newsletter .inner { grid-template-columns: 1fr; } .newsletter form { flex-direction: column; } }

.site-footer { background: var(--ink); color: rgba(253,252,250,.82); padding-block: 56px 36px; font-size: 14.5px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
.footer-grid h4 { font: 500 12px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(253,252,250,.55); margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-bottom { border-top: 1px solid rgba(253,252,250,.18); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(253,252,250,.55); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- nagłówki rozdziałów (podstrony) — kolorowe przekładki ---------- */
.chapter-head { padding-block: clamp(56px, 8vw, 100px) clamp(44px, 6vw, 72px); border-bottom: 1px solid var(--hairline); }
.chapter-head .eyebrow { margin-bottom: 18px; }
.chapter-head h1 { max-width: 20ch; }
.chapter-head .lede { margin-top: 20px; }
.chapter-head.ch-c1 { background: var(--tom1); border-bottom: none; }
.chapter-head.ch-c2 { background: var(--tom2); border-bottom: none; }
.chapter-head.ch-c3 { background: var(--tom3); border-bottom: none; color: #fff; }
.chapter-head.ch-c4 { background: var(--tom4); border-bottom: none; }
.chapter-head.ch-c1 .lede, .chapter-head.ch-c2 .lede, .chapter-head.ch-c4 .lede { color: var(--ink); opacity: .8; }
.chapter-head.ch-c3 .lede { color: #fff; opacity: .85; }
.chapter-head.ch-c1 .eyebrow, .chapter-head.ch-c2 .eyebrow, .chapter-head.ch-c4 .eyebrow { color: var(--ink); }
.chapter-head.ch-c3 .eyebrow { color: #fff; }
.chapter-head.ch-c1 .eyebrow::before, .chapter-head.ch-c2 .eyebrow::before,
.chapter-head.ch-c3 .eyebrow::before, .chapter-head.ch-c4 .eyebrow::before { background: currentColor; }

/* ---------- produkty ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product {
  border: 1px solid var(--hairline); border-radius: 18px; overflow: hidden; background: #fff;
  text-decoration: none; display: flex; flex-direction: column;
  transition: transform .18s var(--ease-out-strong), box-shadow .18s ease;
}
.product:hover { transform: translateY(-5px); box-shadow: 0 20px 42px rgba(28,33,39,.12); }
.product .cover { aspect-ratio: 5/6; display: grid; place-items: center; padding: 26px; }
.product .cover img { max-height: 100%; width: auto; filter: drop-shadow(0 16px 22px rgba(28,33,39,.25)); }
.product .meta { padding: 20px 22px 24px; border-top: 1px solid var(--hairline); }
.product .meta h3 { font-size: 18px; }
.product .meta .price { font-family: var(--font-mono); font-size: 15px; margin-top: 8px; }
.product .meta .buy { margin-top: 14px; font-weight: 700; font-size: 14.5px; }
@media (max-width: 1020px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }

/* ---------- animacje: stany spoczynkowe ---------- */
.reveal { opacity: 1; }
.line-mask { display: block; overflow: hidden; padding-block: .04em; }
.line-mask > span { display: block; will-change: transform; }
