/* =========================================================
   DEM × Senuso — prezentacja kierunków logotypu
   Mobile-first. Paleta galeryjna: ciepła biel, kamień, grafit.
   ========================================================= */

:root {
  /* paleta strony */
  --paper: #F5F2EC;      /* ciepła biel */
  --stone: #E8E3DA;      /* jasny kamień */
  --stone-2: #DCD5C9;    /* linie, ramy */
  --ink: #22211E;        /* grafit */
  --ink-2: #5C574F;      /* tekst pomocniczy (AA na paper i stone) */
  --white: #FFFFFF;

  /* kroje */
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-text: "Schibsted Grotesk", "Helvetica Neue", Helvetica, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* rytm */
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 4rem);
  --maxw: 1320px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* kolory sekcji (nadpisywane w kierunkach) */
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--ink-2);
  --line: var(--stone-2);
  --accent: var(--ink);
  --focus: var(--ink);
  --dir-font: var(--f-text);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-snap-type: y proximity;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
b { font-weight: 650; }

h1, h2 {
  font-family: var(--f-display);
  font-weight: 380;
  letter-spacing: -0.02em;
  line-height: 1.02;
  hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.2rem + 3.6vw, 4.25rem); max-width: 18ch; }
h1 em, h2 em { font-style: italic; font-weight: 320; }

.mono { font-family: var(--f-mono); font-size: 0.8125rem; letter-spacing: 0.02em; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: .7rem 1rem; border-radius: var(--radius); text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 1rem; }

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

/* ---------- slajdy ---------- */
.slide {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  padding-block: clamp(5rem, 4rem + 4vw, 8rem) clamp(3.5rem, 3rem + 3vw, 6rem);
  background: var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: baseline; gap: .75rem;
  margin-bottom: 1.25rem;
}
.eyebrow__n {
  color: var(--fg);
  padding-right: .75rem;
  border-right: 1px solid var(--line);
}

.h-small {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.sec-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }

/* ---------- pasek postępu, górny pasek, kropki ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: rgba(34, 33, 30, .08);
}
.progress__bar {
  display: block; height: 100%; width: 100%;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.topbar {
  position: fixed; inset: 3px 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: .7rem var(--gutter);
  pointer-events: none;
}
.topbar > * {
  pointer-events: auto;
  background: rgba(245, 242, 236, .92);
  border: 1px solid rgba(34, 33, 30, .1);
  border-radius: 999px;
  padding: .35rem .85rem;
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--ink);
  backdrop-filter: saturate(1.2);
}
.topbar__brand span:first-child { font-weight: 500; }
.topbar__x { color: var(--ink-2); }
.topbar__num { font-weight: 500; }
.topbar__total { color: var(--ink-2); }
.topbar__title { display: none; margin-left: .6rem; padding-left: .6rem; border-left: 1px solid var(--stone-2); }

.dots { display: none; }

@media (min-width: 900px) {
  .topbar__title { display: inline; }
  .dots {
    display: block;
    position: fixed; right: clamp(.75rem, 1.5vw, 1.75rem); top: 50%; z-index: 50;
    transform: translateY(-50%);
  }
  .dots ol {
    display: flex; flex-direction: column; gap: .2rem;
    background: rgba(245, 242, 236, .92);
    border: 1px solid rgba(34, 33, 30, .1);
    border-radius: 999px;
    padding: .55rem .4rem;
  }
  .dots a {
    position: relative;
    display: grid; place-items: center;
    width: 1.75rem; height: 1.75rem;
    text-decoration: none;
    border-radius: 50%;
  }
  .dots a::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--ink-2);
    transition: transform .25s var(--ease), background .25s;
  }
  .dots__n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dots__label {
    position: absolute; right: calc(100% + .75rem); top: 50%;
    transform: translate(.4rem, -50%);
    white-space: nowrap;
    background: var(--ink); color: var(--paper);
    font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em;
    padding: .3rem .6rem; border-radius: 3px;
    opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s var(--ease);
  }
  .dots a:hover .dots__label,
  .dots a:focus-visible .dots__label { opacity: 1; transform: translate(0, -50%); }
  .dots a:hover::before { transform: scale(1.4); }
  .dots a[aria-current="true"]::before {
    background: var(--ink);
    transform: scale(1);
    width: 7px; height: 20px; border-radius: 4px;
  }
  .dots a:focus-visible { outline-color: var(--ink); outline-offset: 0; }
}

/* ---------- reveal (tylko z JS i gdy ruch dozwolony) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0s);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* =========================================================
   01 HERO
   ========================================================= */
.hero { --bg: var(--paper); }
.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.75rem, 1.2rem + 6.4vw, 7.25rem);
  font-weight: 340;
  max-width: 11ch;
  margin-bottom: 1.25rem;
  font-variation-settings: "opsz" 144;
}
.hero__title em { display: inline-block; }
.hero__sub {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem);
  color: var(--ink-2);
  margin-bottom: 1.75rem;
}
.hero__lede { max-width: 46ch; margin-bottom: 2rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1rem 2.25rem;
  border-top: 1px solid var(--stone-2);
  padding-top: 1rem;
  margin-bottom: 2rem;
}
.hero__meta dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.hero__meta dd { font-weight: 550; }
.hero__hint { font-family: var(--f-mono); font-size: .75rem; color: var(--ink-2); letter-spacing: .03em; }
.hero__hint span { display: inline-block; margin-right: .35rem; }
@media (prefers-reduced-motion: no-preference) {
  .hero__hint span { animation: nudge 2.4s var(--ease) infinite; }
  @keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(4px); } }
}

.hero__stack {
  position: relative;
  aspect-ratio: 1 / 1.08;
  width: 100%;
  max-width: 640px;
  justify-self: center;
}
.plate {
  position: absolute;
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(34,33,30,.06), 0 18px 40px -22px rgba(34,33,30,.45);
  text-decoration: none;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.plate img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: var(--radius); }
.plate--a { width: 74%; left: 0; top: 0; transform: rotate(-2deg); z-index: 1; }
.plate--b { width: 62%; right: 0; top: 34%; transform: rotate(1.6deg); z-index: 2; }
.plate--c { width: 66%; left: 7%; bottom: 0; transform: rotate(-.7deg); z-index: 3; background: #FAF4EB; }
.plate__tag {
  position: absolute; left: .75rem; bottom: -.9rem;
  background: var(--ink); color: var(--paper);
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .05em;
  padding: .3rem .6rem; border-radius: 3px;
}
.plate__tag b { font-weight: 500; opacity: .65; margin-right: .3rem; }
.plate--b .plate__tag { left: auto; right: .75rem; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .plate:hover { transform: rotate(0) translateY(-6px); z-index: 5; box-shadow: 0 1px 0 rgba(34,33,30,.06), 0 28px 50px -24px rgba(34,33,30,.55); }
}
.plate:focus-visible { z-index: 5; }
/* reveal nie może nadpisać obrotu */
.js .plate.reveal.is-in.plate--a { transform: rotate(-2deg); }
.js .plate.reveal.is-in.plate--b { transform: rotate(1.6deg); }
.js .plate.reveal.is-in.plate--c { transform: rotate(-.7deg); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .js .plate.reveal.is-in:hover { transform: rotate(0) translateY(-6px); }
}

@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .hero__stack { justify-self: end; margin-right: 1rem; }
}

/* =========================================================
   02 PUNKT WYJŚCIA
   ========================================================= */
.start { --bg: var(--stone); --line: #CFC7BA; }
.start__grid { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 4rem); margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }

.exhibit { margin-bottom: 1.75rem; }
.exhibit__wall {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 1rem;
  border-radius: var(--radius);
  background-image:
    linear-gradient(var(--paper), var(--paper)),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(34,33,30,.04) 23px 24px);
}
.exhibit__logo {
  width: 180px; height: 83px; max-width: none;
  box-shadow: 0 10px 24px -14px rgba(34,33,30,.6);
}
.exhibit figcaption, .tabtest figcaption {
  margin-top: .75rem; font-size: .9rem; color: var(--ink-2);
  display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline;
}
.exhibit figcaption .mono { color: var(--ink); }

.tabtest__bar {
  display: flex; gap: .25rem; align-items: flex-end;
  background: #D3CCC0; padding: .5rem .5rem 0; border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.tabtest__tab {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--paper); padding: .5rem .9rem; border-radius: 8px 8px 0 0;
  font-size: .8rem; white-space: nowrap;
}
.tabtest__tab img { width: 35px; height: 16px; }
.tabtest__tab--off { background: transparent; color: var(--ink-2); }

.diag { display: grid; gap: 1.25rem; }
.diag__item { display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.diag__item:last-child { border-bottom: 0; }
.diag__mark {
  font-family: var(--f-display); font-size: 1.6rem; line-height: 1;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  border: 1px solid var(--ink); border-radius: 50%;
}
.diag__item--plus .diag__mark { background: var(--ink); color: var(--paper); }
.diag__t { font-weight: 650; margin-bottom: .25rem; }
.diag p:not(.diag__t) { color: var(--ink-2); }

.brief { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.brief__list { display: grid; gap: 1.5rem; counter-reset: b; }
.brief__list li { counter-increment: b; }
.brief__k {
  display: block;
  font-family: var(--f-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 400;
  margin-bottom: .35rem;
}
.brief__k::before { content: "0" counter(b); font-family: var(--f-mono); font-size: .72rem; color: var(--ink-2); vertical-align: super; margin-right: .4rem; }
.brief__list p { color: var(--ink-2); max-width: 32ch; }

@media (min-width: 720px) {
  .brief__list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .start__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .start__diag { padding-top: .25rem; }
  .brief__list { grid-template-columns: repeat(4, 1fr); }
  .brief__list li:nth-child(even) { margin-top: 1.5rem; }
}

/* =========================================================
   03–05 KIERUNKI
   ========================================================= */
.dir { --dir-font: var(--f-text); }
.dir--1 {
  --bg: #142B49; --fg: #F6F3EC; --muted: #C3CAD4; --line: rgba(246,243,236,.18);
  --accent: #D5A62E; --focus: #D5A62E;
  --dir-font: "Manrope", sans-serif;
  --logo-bg: #FEFEFE; --brand: #142B49; --brand-2: #D5A62E; --brand-ink: #142B49;
  --mx: 4.6%; --ka: 2.4; --kf: 3.2; --kc: 1.2; --ly: 50%; --lk: 1.6;
}
.dir--2 {
  --bg: #EDF1EB; --fg: #173D32; --muted: #3F5A50; --line: #C5D1C3;
  --accent: #173D32; --focus: #173D32;
  --dir-font: "IBM Plex Sans", sans-serif;
  --logo-bg: #FEFEFE; --brand: #173D32; --brand-2: #8FA98C; --brand-ink: #173D32;
  --mx: 0%; --ka: 2.05; --kf: 2.6; --kc: 1.05; --ly: 51%; --lk: 1.35;
}
.dir--3 {
  --bg: #F1E7DA; --fg: #49372F; --muted: #6A5147; --line: #DCCAB6;
  --accent: #C87554; --focus: #49372F;
  --dir-font: "Nunito Sans", sans-serif;
  --logo-bg: #FAF4EB; --brand: #49372F; --brand-2: #C87554; --brand-ink: #49372F;
  --mx: 8.9%; --ka: 1.8; --kf: 2.1; --kc: 1.1; --ly: 48.6%; --lk: 1.45;
}
.crop--d1 { --mx: 4.6%; --ka: 2.4; --logo-bg: #FFFFFF; }
.crop--d2 { --mx: 0%; --ka: 2.05; --logo-bg: #FFFFFF; }
.crop--d3 { --mx: 8.9%; --ka: 1.8; --logo-bg: #FAF4EB; }

.dir .eyebrow__n { color: var(--accent); }
.dir--3 .eyebrow__n { color: var(--fg); }

.dir__top { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); align-items: center; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.dir__name {
  font-size: clamp(3.25rem, 1.6rem + 7vw, 8rem);
  font-weight: 330;
  letter-spacing: -0.035em;
  line-height: .95;
  margin-bottom: 1rem;
}
.dir__lede {
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem);
  margin-bottom: 1.25rem;
  color: var(--fg);
}
.dir--1 .dir__lede { color: var(--accent); }
.dir__why { max-width: 50ch; color: var(--muted); text-wrap: pretty; }
.dir__lede, .hero__lede, .end__lede, .rec__why p { text-wrap: pretty; }

.dir__plate {
  background: var(--logo-bg);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -36px rgba(0,0,0,.55);
  position: relative;
}
.dir--3 .dir__plate { box-shadow: 0 0 0 1px #E5D6C4, 0 30px 60px -36px rgba(73,55,47,.5); }
.dir__plate img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: var(--radius); }
.dir__plate figcaption {
  position: absolute; right: .75rem; bottom: .6rem;
  font-size: .7rem; color: #6B6760;
}

@media (min-width: 1000px) {
  .dir__top { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .dir__top--flip .dir__head { order: 2; }
  .dir__top--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

/* specyfikacja: paleta + krój */
.dir__specs {
  display: grid; gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
@media (min-width: 900px) {
  .dir__specs { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; }
}

.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.swatch {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex; flex-direction: column; gap: .15rem;
  width: 100%;
  font-family: var(--f-text);
  border-radius: var(--radius);
  position: relative;
}
.swatch__chip {
  display: block; aspect-ratio: 4 / 3; width: 100%;
  background: var(--c);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
  margin-bottom: .45rem;
  transition: transform .3s var(--ease);
}
.dir--1 .swatch__chip { box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.swatch__name { font-size: .85rem; font-weight: 600; }
.swatch__hex { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.swatch::after {
  content: "kopiuj";
  position: absolute; top: .4rem; right: .4rem;
  font-family: var(--f-mono); font-size: .65rem; letter-spacing: .04em;
  background: rgba(20,20,20,.78); color: #fff;
  padding: .1rem .35rem; border-radius: 3px;
  opacity: 0; transition: opacity .2s;
}
.swatch.is-copied::after { content: "skopiowano"; opacity: 1; }
.swatch:hover::after, .swatch:focus-visible::after { opacity: 1; }
.swatch:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .swatch:hover .swatch__chip { transform: translateY(-3px); }
}
html:not(.js) .swatch::after { display: none; }

.spec__font { color: var(--fg); }
.specimen {
  font-family: var(--dir-font);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: .75rem;
  display: flex; gap: 1rem; align-items: flex-start;
}
.dir--3 .specimen { font-weight: 700; }
.specimen__aa {
  flex: none;
  font-size: 2.2em; line-height: .85; font-weight: 700;
  color: var(--accent);
}
.dir--2 .specimen__aa { color: #8FA98C; }
.specimen__meta { color: var(--muted); }

/* ---------- kadrowanie logotypu (object-position + skala) ---------- */
.crop {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--logo-bg, #fff);
  flex: none;
}
.crop img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover;
  transform-origin: 50% 50%;
}
/* sygnet w kwadracie / kole */
.crop--avatar, .crop--fav { aspect-ratio: 1; }
.crop--avatar { border-radius: 50%; }
.crop--avatar img { object-position: var(--mx) 50%; transform: scale(var(--ka)); }
.crop--fav img { object-position: var(--mx) 50%; transform: scale(var(--kf)); }
/* pełny znak w poziomym polu 4:1 */
.crop--lock { aspect-ratio: 4 / 1; }
.crop--lock img { object-position: 50% var(--ly); transform: scale(var(--lk)); }

/* ---------- makiety ---------- */
.mocks__title { margin-bottom: 1.25rem; }
.mocks { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
.mock figcaption {
  margin-top: .65rem;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .02em;
  color: var(--muted);
}
.mock > :first-child {
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .mock:hover > :first-child { transform: translateY(-5px); }
}

/* przeglądarka + nagłówek www */
.mock--web > :first-child { transition: none; }
.browser {
  display: flex; align-items: flex-end; gap: .9rem;
  background: #2B2A27;
  padding: .55rem .75rem 0;
  border-radius: 8px 8px 0 0;
}
.dir--1 .browser { background: #0B1A2E; }
.browser__dots { display: flex; gap: .35rem; padding-bottom: .65rem; }
.browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); }
.browser__tab {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--logo-bg); color: #2B2A27;
  font-family: var(--f-text); font-size: .75rem;
  padding: .45rem .85rem .5rem .6rem;
  border-radius: 8px 8px 0 0;
  white-space: nowrap;
}
.browser__tab .crop--fav { width: 16px; border-radius: 3px; }
.site {
  font-family: var(--dir-font);
  background: var(--logo-bg);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  box-shadow: 0 30px 50px -36px rgba(0,0,0,.6);
}
.site__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(.9rem, 2vw, 1.5rem);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.site__bar .crop--lock { width: clamp(120px, 30%, 180px); }
.site__nav { display: none; gap: 1.1rem; font-size: .82rem; font-weight: 600; color: var(--brand-ink); }
.site__hero {
  background: var(--brand);
  color: #fff;
  padding: clamp(1.4rem, 1rem + 2vw, 2.4rem) clamp(.9rem, 2vw, 1.5rem);
}
.site__kicker { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; margin-bottom: .5rem; }
.site__title { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.9rem); font-weight: 700; line-height: 1.15; max-width: 18ch; margin-bottom: 1rem; letter-spacing: -0.01em; }
.site__btn {
  display: inline-block; font-size: .82rem; font-weight: 700;
  padding: .6rem 1rem; border-radius: 4px;
  background: var(--brand-2); color: var(--brand);
}
.dir--2 .site__btn { background: #fff; color: #173D32; }
.dir--3 .site__btn { border-radius: 999px; background: #FAF4EB; color: #49372F; }
.dir--3 .site__hero { border-radius: 0; }
@media (min-width: 560px) { .site__nav { display: flex; } }

/* wizytówka — awers i rewers ułożone w wachlarz */
.bcard { display: grid; grid-template-columns: 20% 60% 20%; }
.bcard__face {
  aspect-ratio: 85 / 55;
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 24px 40px -28px rgba(0,0,0,.6);
  font-family: var(--dir-font);
  min-width: 0;
  transition: transform .45s var(--ease);
}
.bcard__face--front {
  grid-column: 1 / 3; grid-row: 1;
  background: var(--logo-bg);
  display: grid; place-items: center;
  position: relative; z-index: 1;
}
.bcard__face--front { overflow: hidden; }
.bcard__face--front .crop--lock { position: absolute; inset: 0; aspect-ratio: auto; border-radius: inherit; }
.bcard__face--front .crop--lock img { object-position: 50% 50%; transform: scale(var(--kc, 1.1)); }
.bcard__face--back {
  grid-column: 2 / 4; grid-row: 1;
  margin-top: 52.5%;
  background: var(--brand); color: #fff;
  padding: 7% 8%;
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: clamp(.62rem, .55rem + .3vw, .78rem); line-height: 1.38;
  position: relative; z-index: 2;
}
.mock--card > .bcard { transition: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .mock--card:hover > .bcard { transform: none; }
  .mock--card:hover .bcard__face--front { transform: translate(-6px, -6px) rotate(-1.5deg); }
  .mock--card:hover .bcard__face--back { transform: translate(6px, 4px); }
}
.dir--1 .bcard__face--back { background: #0E2240; box-shadow: inset 0 0 0 1px rgba(213,166,46,.4), 0 24px 40px -28px rgba(0,0,0,.6); }
.dir--1 .bcard__face--front { box-shadow: 0 24px 40px -20px rgba(0,0,0,.7); }
.bcard__name { font-weight: 700; font-size: 1.25em; letter-spacing: -0.01em; }
.dir--1 .bcard__name { color: #D5A62E; }
.bcard__svc { opacity: .88; }
.bcard__addr b { font-weight: 700; }
.dir--3 .bcard__face { border-radius: 14px; }

/* profil social */
.profile {
  background: var(--logo-bg);
  color: #222;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  padding-bottom: 1.1rem;
  font-family: var(--dir-font);
  box-shadow: 0 24px 40px -30px rgba(0,0,0,.6);
}
.dir--2 .profile { box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 24px 40px -30px rgba(0,0,0,.6); }
.dir--1 .profile, .dir--1 .mail, .dir--1 .site { box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 30px 50px -30px rgba(0,0,0,.8); }
.dir--1 .profile__cover { background: linear-gradient(90deg, #0B1A2E 0 62%, #D5A62E 62% 100%); }
.profile__cover {
  height: 72px;
  background:
    linear-gradient(90deg, var(--brand) 0 62%, var(--brand-2) 62% 100%);
}
.dir--2 .profile__cover {
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.18) 46px 48px),
    #173D32;
}
.dir--3 .profile__cover { background: radial-gradient(circle at 85% 120%, #C87554 0 38%, transparent 38.5%), #49372F; }
.profile .crop--avatar {
  width: 88px;
  margin: -44px 0 .6rem 1.1rem;
  box-shadow: 0 0 0 4px var(--logo-bg), 0 4px 12px rgba(0,0,0,.18);
}
.profile__name { font-weight: 700; font-size: 1.05rem; padding-inline: 1.1rem; color: var(--brand-ink); }
.profile__meta { font-size: .8rem; color: #555; padding-inline: 1.1rem; margin-bottom: .8rem; }
.dir--3 .profile__meta { color: #6A5147; }
.profile__btn {
  display: inline-block; margin-left: 1.1rem;
  font-size: .78rem; font-weight: 700;
  padding: .4rem .9rem; border-radius: 999px;
  background: var(--brand); color: #fff;
}

/* stopka e-mail */
.mail {
  background: #fff;
  color: #2b2b2b;
  border-radius: 8px;
  padding: 1.25rem 1.4rem 1.4rem;
  font-family: var(--dir-font);
  font-size: .85rem;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 24px 40px -30px rgba(0,0,0,.6);
}
.mail__hi { color: #555; }
.mail__who { font-weight: 700; color: var(--brand-ink); margin-bottom: 1rem; }
.mail__sig {
  display: flex; flex-wrap: wrap; gap: .75rem 1.1rem; align-items: center;
  border-top: 2px solid var(--brand-2);
  padding-top: .9rem;
}
.dir--2 .mail__sig { border-top-color: #8FA98C; }
.crop--sig { width: 150px; }
.mail__sig p { font-size: .76rem; line-height: 1.5; color: #444; }
.dir--3 .mail { background: #FAF4EB; }
.dir--3 .mail__sig p, .dir--3 .mail__hi { color: #5C463D; }

.mock { min-width: 0; }
@media (min-width: 720px) {
  .mocks { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .mock--web { grid-column: 1 / -1; }
  .mock--card { grid-column: 1 / span 7; }
  .mock--social { grid-column: 8 / span 5; }
  .mock--mail { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .mock--web { grid-column: 1 / span 7; grid-row: 1; }
  .mock--card { grid-column: 8 / span 5; grid-row: 1; }
  .mock--mail { grid-column: 1 / span 7; grid-row: 2; }
  .mock--social { grid-column: 8 / span 4; grid-row: 2; }
  .mocks--flip .mock--card { grid-column: 1 / span 5; }
  .mocks--flip .mock--web { grid-column: 6 / span 7; }
  .mocks--flip .mock--social { grid-column: 2 / span 4; }
  .mocks--flip .mock--mail { grid-column: 6 / span 7; }
}

/* =========================================================
   06 PORÓWNANIE
   ========================================================= */
.compare { --bg: var(--paper); }
.sec-head--split { display: grid; gap: 1.25rem; align-items: end; }
@media (min-width: 1000px) { .sec-head--split { grid-template-columns: 1fr minmax(0, 26rem); } }
.note-chip {
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: .9rem; color: var(--ink-2);
  border-left: 2px solid var(--ink); padding-left: .9rem;
}
.note-chip__dot { display: none; }

.cmp { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cmp th, .cmp td { text-align: left; vertical-align: top; }
.cmp tbody th {
  font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; line-height: 1.2;
}
.cmp td b { font-weight: 650; }
.cmp__thumb { display: block; border-radius: 3px; overflow: hidden; margin-bottom: .6rem; background: #fff; box-shadow: inset 0 0 0 1px var(--stone-2); }
.cmp__h--3 .cmp__thumb { background: #FAF4EB; }
.cmp__thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.cmp__name { display: block; font-family: var(--f-mono); font-size: .8rem; font-weight: 500; letter-spacing: .04em; }
.cmp__badge {
  display: inline-block; margin-top: .45rem;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  padding: .2rem .5rem; border-radius: 3px;
}

/* mobile: wiersze jako bloki */
@media (max-width: 799px) {
  .cmp thead { display: block; }
  .cmp thead tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
  .cmp thead th:first-child { display: none; }
  .cmp thead th { display: block; }
  .cmp__badge { font-size: .6rem; padding: .15rem .35rem; }
  .cmp tbody, .cmp tr, .cmp tbody th, .cmp td { display: block; }
  .cmp tbody tr { border-top: 1px solid var(--ink); padding: 1rem 0 .5rem; }
  .cmp tbody th { margin-bottom: .6rem; }
  .cmp td { padding: .55rem 0 .55rem .9rem; border-left: 2px solid var(--stone-2); margin-bottom: .5rem; }
  .cmp td::before {
    content: attr(data-dir);
    display: block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; color: var(--ink-2);
    margin-bottom: .15rem;
  }
  .cmp td:nth-of-type(1) { border-left-color: var(--ink); }
  .cmp thead { margin-bottom: 1rem; }
}
@media (min-width: 800px) {
  .cmp { table-layout: fixed; }
  .cmp thead th { padding: 0 1.25rem 1.25rem; vertical-align: bottom; }
  .cmp thead th:first-child { width: 20%; }
  .cmp tbody th, .cmp td { padding: 1.1rem 1.25rem; border-top: 1px solid var(--stone-2); }
  .cmp tbody th { padding-left: 0; }
  .cmp tbody tr:first-child th, .cmp tbody tr:first-child td { border-top-color: var(--ink); }
  .cmp td { color: #3A3833; }
  .cmp .is-rec, .cmp td:nth-of-type(1) { background: rgba(232, 227, 218, .6); }
  .cmp .is-rec { border-radius: 6px 6px 0 0; padding-top: 1.25rem; }
  .cmp tbody tr:last-child td:nth-of-type(1) { border-radius: 0 0 6px 6px; }
  .cmp tbody tr { transition: background .2s; }
  .cmp tbody tr:hover th { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
}

/* =========================================================
   07 REKOMENDACJA
   ========================================================= */
.rec { --bg: var(--stone); --line: #CFC7BA; }
.rec h2 { max-width: 16ch; }
.rec h2 em { white-space: nowrap; }
.rec__top { display: grid; gap: 1rem 4rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.rec__top .sec-head { margin-bottom: 0; }
.rec__why { display: grid; gap: 1rem; max-width: 52ch; align-self: end; }
.rec__alt { color: var(--ink-2); border-left: 2px solid var(--ink); padding-left: .9rem; }
@media (min-width: 1000px) { .rec__top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

.steps { display: grid; gap: 0; counter-reset: s; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.step {
  position: relative;
  display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.step__n {
  grid-row: 1 / span 2;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 1.25rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  transition: background .25s, color .25s;
}
.step:first-child .step__n { background: var(--ink); color: var(--paper); }
.step__t { font-weight: 650; }
.step p:not(.step__t) { color: var(--ink-2); font-size: .93rem; }
@media (hover: hover) { .step:hover .step__n { background: var(--ink); color: var(--paper); } }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
  .step { grid-template-columns: 1fr; border-top: 0; padding: 0; }
  .step__n { grid-row: auto; margin-bottom: 1rem; position: relative; z-index: 1; }
  .step::before {
    content: ""; position: absolute; left: 2.6rem; right: -1.25rem; top: 1.3rem;
    height: 1px; background: var(--ink);
  }
  .step:last-child::before { display: none; }
  .step:nth-child(even) { margin-top: 2rem; }
  .step:nth-child(even)::before { top: 1.3rem; }
}

.rec__bottom { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .rec__bottom { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.honest {
  background: var(--ink); color: var(--paper);
  padding: 1.4rem 1.5rem; border-radius: var(--radius);
}
.honest__k, .more__k { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; margin-bottom: .6rem; }
.honest__k { color: #CFC8BC; }
.honest p:last-child { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.35; }
.more {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 1.4rem 1.5rem; border-radius: var(--radius);
}
.more__k { color: var(--ink-2); }
.more ul { display: grid; gap: .8rem; }
.more li { padding-left: 1.1rem; position: relative; color: #3A3833; }
.more li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 1px; background: var(--ink); }
.more li b { color: var(--ink); }

/* =========================================================
   08 ZAMKNIĘCIE + STOPKA
   ========================================================= */
.end {
  --bg: var(--ink); --fg: var(--paper); --muted: #BDB6AA; --line: rgba(245,242,236,.2); --focus: var(--paper);
  padding-bottom: 0;
}
.end__inner { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.end__title { font-size: clamp(2.5rem, 1.2rem + 5.5vw, 6.5rem); font-weight: 320; max-width: 14ch; margin-bottom: 2.5rem; }
.end__marks { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; margin-bottom: 2.5rem; }
.end__marks a {
  display: flex; align-items: center; gap: .9rem;
  text-decoration: none;
  font-family: var(--f-display); font-size: 1.35rem; font-style: italic;
  border-radius: 999px; padding-right: .75rem;
}
.end__marks .crop--avatar { width: 64px; transition: transform .35s var(--ease); }
.end__marks a:hover span:last-child { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
@media (prefers-reduced-motion: no-preference) {
  .end__marks a:hover .crop--avatar { transform: rotate(-8deg) scale(1.06); }
}
.end__lede { max-width: 48ch; color: var(--muted); }
.footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding: 1.25rem var(--gutter);
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .03em;
  color: var(--muted);
  text-align: left;
}
.footer p { max-width: var(--maxw); margin-inline: auto; }

/* druk: wszystko widoczne */
@media print {
  .progress, .topbar, .dots, .skip { display: none; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .slide { min-height: auto; break-inside: avoid; }
}
