/* AW Studio · czerń i biel, minimalistyczny luksus
   Bodoni Moda (nagłówki) + Archivo (tekst). Wszystko wyśrodkowane. */
:root {
  --bg: #070707;
  --bg-2: #0e0e0e;
  --card: #111111;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .2);
  --white: #f4f2ee;
  --text: rgba(244, 242, 238, .7);
  --soft: rgba(244, 242, 238, .5);
  --faint: rgba(244, 242, 238, .32);
  --serif: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --header: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--white);
  font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
/* cyfry zawsze równe: jednej wysokości i szerokości */
body, body * { font-variant-numeric: lining-nums proportional-nums; font-feature-settings: "lnum" 1, "pnum" 1; }
[data-count] { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--white); color: var(--bg); }
:focus-visible { outline: 1px solid var(--white); outline-offset: 4px; border-radius: 4px; }

/* delikatna poświata i ziarno */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% -10%, rgba(255,255,255,.05), transparent 70%),
    radial-gradient(40% 30% at 15% 40%, rgba(255,255,255,.025), transparent 70%),
    radial-gradient(40% 30% at 85% 70%, rgba(255,255,255,.025), transparent 70%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- typografia ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
em { font-style: italic; }
.display { font-size: clamp(48px, 7.6vw, 116px); line-height: .98; letter-spacing: -.035em; }
.h1 { font-size: clamp(44px, 6.4vw, 96px); line-height: 1; letter-spacing: -.03em; }
.h2 { font-size: clamp(36px, 4.6vw, 66px); }
.h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -.015em; }
p { text-wrap: pretty; }
.kicker {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--soft);
}
.kicker::before, .kicker::after { content: ''; width: 28px; height: 1px; background: var(--line-2); flex: none; }
.lead { font-size: clamp(17px, 1.3vw, 19px); color: var(--text); max-width: 56ch; margin: 0 auto; line-height: 1.7; }
.muted { color: var(--text); }
.small { font-size: 14px; color: var(--soft); }
.roman { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--faint); line-height: 1; }

/* ---------- układ ---------- */
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.center { text-align: center; }
.stack-y { display: grid; justify-items: center; text-align: center; gap: 26px; }
.section { padding: clamp(96px, 12vw, 170px) 0; position: relative; }
.section.tight { padding: clamp(64px, 8vw, 110px) 0; }
.head { display: grid; justify-items: center; text-align: center; gap: 22px; margin-bottom: clamp(52px, 6vw, 84px); }
.head .lead { margin-top: 4px; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.light { background: var(--white); color: #0a0a0a; }
.light .kicker, .light .lead, .light .small { color: rgba(10,10,10,.6); }
.light .kicker::before, .light .kicker::after { background: rgba(10,10,10,.22); }

/* ---------- przyciski ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-size: 15px; font-weight: 500; letter-spacing: .005em; white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--white);
  transition: color .5s var(--ease), border-color .5s var(--ease), transform .2s var(--ease);
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--white); border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover { color: #0a0a0a; border-color: var(--white); }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.97); }
.btn.solid { background: var(--white); color: #0a0a0a; border-color: var(--white); }
.btn.solid::before { background: #d9d6d0; }
.btn .arrow { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.light .btn { color: #0a0a0a; border-color: rgba(10,10,10,.22); }
.light .btn::before { background: #0a0a0a; }
.light .btn:hover { color: var(--white); border-color: #0a0a0a; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.magnetic { will-change: transform; }
.link-line { position: relative; display: inline-block; }
.link-line::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.link-line:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- nagłówek ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 900; height: var(--header); transition: transform .7s var(--ease), background .5s; }
.header.scrolled { background: rgba(7,7,7,.66); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.header.scrolled::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); }
.header.hide { transform: translateY(-100%); }
.header-in { height: 100%; display: grid; grid-template-columns: auto 1fr; align-items: center; width: min(1400px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.nav { display: flex; gap: clamp(22px, 2.8vw, 40px); font-size: 14px; }
.nav { justify-content: flex-end; }
.header .logo { justify-self: start; }
.nav a { color: var(--soft); transition: color .35s; position: relative; padding: 6px 0; }
.nav a:hover, .nav a[aria-current] { color: var(--white); }
.nav a[aria-current]::after { content: ''; position: absolute; left: 50%; bottom: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--white); transform: translateX(-50%); }
.logo { display: grid; justify-items: center; line-height: 1; }
.logo .mark { display: block; height: 46px; width: auto; }
.header .logo { transition: opacity .6s var(--ease); }
.menu-btn { display: none; font-size: 14px; }

.mnav { position: fixed; inset: 0; z-index: 950; background: var(--bg); display: grid; place-items: center; clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-io); visibility: hidden; }
.mnav.open { clip-path: inset(0); visibility: visible; }
.mnav ul { list-style: none; margin: 0; padding: 0; text-align: center; display: grid; gap: 4px; }
.mnav li { overflow: hidden; }
.mnav a { display: block; font-family: var(--serif); font-size: clamp(38px, 10vw, 58px); line-height: 1.18; letter-spacing: -.02em; transform: translateY(110%); transition: transform .9s var(--ease); }
.mnav.open a { transform: none; }
.mnav-foot { position: absolute; bottom: 34px; left: 0; right: 0; text-align: center; font-size: 14px; color: var(--soft); }
.mnav-close { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); font-size: 14px; color: var(--soft); }

/* ---------- intro i przejścia ---------- */
.intro { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: grid; place-items: center; pointer-events: none; clip-path: inset(0); }
.intro .logo .mark { height: clamp(120px, 15vw, 190px); }
.intro .bar { position: absolute; bottom: 14vh; left: 50%; width: 140px; height: 1px; transform: translateX(-50%); background: var(--line); overflow: hidden; }
.intro .bar i { position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
.veil { position: fixed; inset: 0; z-index: 9998; background: var(--bg); pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); }
.veil.on { opacity: 1; }
body.is-leaving main { filter: blur(6px); opacity: .5; transition: filter .5s var(--ease), opacity .5s var(--ease); }

/* ---------- wejścia ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-blur] .w { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(.25em); transition: opacity 1s var(--ease), filter 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i) * 65ms + var(--d, 0s)); }
.js [data-blur].in .w { opacity: 1; filter: none; transform: none; }
.js [data-cut] .ln { display: block; overflow: hidden; padding: 0 .04em .12em; margin-bottom: -.12em; }
.js [data-cut] .ln > span { display: block; transform: translateY(108%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 100ms + var(--d, 0s)); }
.js [data-cut].in .ln > span { transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--i) * 85ms); }
.js [data-stagger].in > * { opacity: 1; transform: none; filter: none; }
/* odsłona maską (clip reveal) */
.js [data-clip] { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease); transition-delay: var(--d, 0s); }
.js [data-clip] img { transform: scale(1.12); transition: transform 1.6s var(--ease); transition-delay: var(--d, 0s); }
.js [data-clip].in { clip-path: inset(0); }
.js [data-clip].in img { transform: none; }

/* tekst rozjaśniany przewijaniem */
.scrub-text { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 52px); line-height: 1.28; letter-spacing: -.02em; max-width: 960px; margin: 0 auto; text-align: center; text-wrap: balance; }
.scrub-text .w { opacity: .15; transition: opacity .3s linear; }
.scrub-text .w.on { opacity: 1; }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: calc(var(--header) + clamp(70px, 10vh, 120px)) 0 0; overflow-x: clip; }
.hero-inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 28px; width: min(1000px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.hero-logo img { display: block; height: clamp(150px, 19vw, 250px); width: auto; }
.hero-title { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.12; letter-spacing: -.02em; }
.hero .btn-row { margin-top: 8px; }
/* logo w pasku pojawia się dopiero, gdy logo z hero zniknie przy przewijaniu */
.is-home .header .logo { opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.is-home .header.show-logo .logo { opacity: 1; pointer-events: auto; transform: none; }

/* Hero Parallax (21st.dev, Manu Arora): rzędy stron prostują się w 3D */
.hp { position: relative; height: 230vh; margin-top: clamp(40px, 6vh, 80px); perspective: 1200px; }
.hp-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; align-content: center; perspective: 1200px; }
.hp-stage { display: grid; gap: clamp(18px, 2.4vw, 34px); transform-style: preserve-3d; will-change: transform; transform-origin: 50% 0; }
.hp-row { display: flex; gap: clamp(18px, 2.4vw, 34px); width: max-content; will-change: transform; }
.hp-row:nth-child(1), .hp-row:nth-child(3) { margin-left: -12vw; }
.hp-row:nth-child(2) { margin-left: -38vw; }
.hp-card { position: relative; width: clamp(260px, 30vw, 440px); aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: var(--card); border: 1px solid var(--line); flex: none; }
.hp-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.hp-card span { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px); font-size: 13px; padding: 7px 14px; border-radius: 999px; background: rgba(7,7,7,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: all .5s var(--ease); white-space: nowrap; }
.hp-card:hover img { transform: scale(1.05); }
.hp-card:hover span { opacity: 1; transform: translate(-50%, 0); }
.hp-fade { position: absolute; inset: auto 0 0; height: 30vh; background: linear-gradient(transparent, var(--bg)); pointer-events: none; z-index: 2; }

/* podstrony */
.page-hero { padding: calc(var(--header) + clamp(80px, 12vw, 160px)) 0 clamp(60px, 7vw, 100px); }
.crumbs { font-size: 13px; color: var(--faint); display: flex; gap: 10px; justify-content: center; }
.crumbs a:hover { color: var(--white); }

/* ---------- ekran w perspektywie (Container Scroll, 21st.dev) ---------- */
.device-stage { perspective: 1400px; padding: 0 var(--gutter); }
.device { max-width: 1080px; margin: 0 auto; border-radius: 22px; padding: 10px; background: #161616; border: 1px solid #262626; box-shadow: 0 0 0 1px #000, 0 60px 120px -40px rgba(0,0,0,.9); transform-origin: 50% 0; will-change: transform; }
.device-screen { border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16/10; position: relative; }
.device-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity 1.2s var(--ease), transform 3.2s linear; }
.device-screen img.on { opacity: 1; transform: none; }
.device-bar { display: flex; justify-content: center; gap: 6px; padding: 2px 0 10px; }
.device-bar i { width: 6px; height: 6px; border-radius: 50%; background: #333; }


/* ---------- poziomy pas realizacji (przypięty) ---------- */
.rail { position: relative; }
.rail-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: clamp(36px, 5vh, 60px); overflow: hidden; }
.rail-track { justify-self: start; }
.rail-track { display: flex; gap: clamp(20px, 2.4vw, 36px); padding: 0 calc(50vw - clamp(150px, 19vw, 280px)); width: max-content; will-change: transform; }
.rail .work { width: clamp(300px, 38vw, 560px); flex: none; }
.rail-progress { width: min(240px, 50vw); height: 1px; background: var(--line); margin: 0 auto; position: relative; overflow: hidden; }
.rail-progress i { position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }

/* ---------- okładki ---------- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 2.6vw, 40px) clamp(18px, 2vw, 30px); }
.work { display: grid; gap: 20px; text-align: center; }
.cover { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16/11; background: var(--card); transition: transform .8s var(--ease); }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.4s var(--ease); }
.work:hover .cover img { transform: scale(1.05); }
.cover .pblur { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .7s var(--ease); }
.cover .pblur i { position: absolute; inset: 0; }
.cover .pblur i:nth-child(1) { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); mask: linear-gradient(transparent 45%, #000 65%); -webkit-mask: linear-gradient(transparent 45%, #000 65%); }
.cover .pblur i:nth-child(2) { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); mask: linear-gradient(transparent 60%, #000 80%); -webkit-mask: linear-gradient(transparent 60%, #000 80%); }
.cover .pblur i:nth-child(3) { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); mask: linear-gradient(transparent 72%, #000 92%); -webkit-mask: linear-gradient(transparent 72%, #000 92%); background: linear-gradient(transparent 55%, rgba(0,0,0,.5)); }
.cover .view { position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 14px); opacity: 0; pointer-events: none; height: 42px; padding: 0 20px; border-radius: 999px; background: var(--white); color: #0a0a0a; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: opacity .55s var(--ease), transform .55s var(--ease); }
.work:hover .pblur { opacity: 1; }
.work:hover .view { opacity: 1; transform: translate(-50%, 0); }
.cover .tag { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 500; padding: 6px 13px; border-radius: 999px; background: rgba(7,7,7,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.cover .tag.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6) } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0) } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0) } }
.work-meta { display: grid; gap: 6px; justify-items: center; }
.work-meta h3 { font-size: clamp(24px, 2vw, 30px); }
.work-meta p { margin: 0; font-size: 14px; color: var(--soft); }
.cover.empty { border: 1px dashed var(--line-2); background: radial-gradient(ellipse at center, #121212, var(--bg)); display: grid; place-items: center; }
.cover.empty .plus { display: grid; justify-items: center; gap: 16px; color: var(--soft); font-size: 14px; }
.cover.empty .plus b { width: 52px; height: 52px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--text); transition: transform .8s var(--ease); }
.work:hover .cover.empty .plus b { transform: rotate(90deg); }

/* ---------- cennik ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 24px); align-items: stretch; }
.plan { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; padding: clamp(38px, 4vw, 52px) clamp(22px, 2.6vw, 36px); display: grid; gap: 18px; justify-items: center; align-content: start; text-align: center; background: linear-gradient(180deg, #121212, #0a0a0a); }
.plan.featured { background: var(--white); color: #0a0a0a; border-color: var(--white); }
.plan.featured .small, .plan.featured .points, .plan.featured .roman, .plan.featured .slot-label { color: rgba(10,10,10,.62); }
.plan.featured .hr { background: rgba(10,10,10,.12); }
.plan .badge { font-size: 12px; font-weight: 500; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); }
.plan.featured .badge { border-color: rgba(10,10,10,.2); color: rgba(10,10,10,.7); }
.plan h3 { font-size: 34px; }
.plan .desc { margin: 0; max-width: 30ch; font-size: 15px; line-height: 1.6; color: var(--soft); min-height: 4.8em; }
.plan.featured .desc { color: rgba(10,10,10,.62); }
.price { font-family: var(--serif); font-weight: 500; font-variation-settings: 'opsz' 28; font-size: clamp(50px, 4.6vw, 64px); line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.price small { font-family: var(--sans); font-size: 15px; letter-spacing: 0; margin-left: 6px; color: var(--soft); }
.plan.featured .price small { color: rgba(10,10,10,.55); }
.price-old { display: flex; align-items: center; gap: 10px; margin-bottom: -8px; font-size: 17px; color: var(--soft); }
.price-old s { text-decoration-thickness: 1px; }
.price-old .off { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--white); color: #0a0a0a; }
.plan.featured .price-old { color: rgba(10,10,10,.55); }
.plan.featured .price-old .off { background: #0a0a0a; color: var(--white); }
.slots { display: grid; gap: 10px; justify-items: center; width: 100%; }
.slot-dots { display: flex; gap: 8px; }
.slot-dots i { width: 30px; height: 4px; border-radius: 2px; background: var(--line-2); position: relative; overflow: hidden; }
.slot-dots i::after { content: ''; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); transition-delay: calc(var(--k) * 140ms + .3s); }
.plan.featured .slot-dots i { background: rgba(10,10,10,.12); }
.plan.featured .slot-dots i::after { background: #0a0a0a; }
.slots.in .slot-dots i.used::after { transform: none; }
.slot-label { font-size: 13px; color: var(--soft); }
.plan .points { margin-top: 4px; }
.plan .btn { margin-top: 10px; }
.plan.featured .btn { color: #0a0a0a; border-color: rgba(10,10,10,.22); }
.plan.featured .btn::before { background: #0a0a0a; }
.plan.featured .btn:hover { color: var(--white); }
.promo-note { text-align: center; margin: clamp(28px, 3vw, 40px) auto 0; max-width: 60ch; font-size: 15px; color: var(--soft); }
.care { margin-top: clamp(90px, 10vw, 140px); }
.care-plans { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }

.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 15px; color: var(--text); }

.spot::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.07), transparent 60%); }
.spot:hover::before { opacity: 1; }
.plan.featured.spot::before { background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(0,0,0,.05), transparent 60%); }

/* ---------- oferta ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 20px); }
.card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, #111, #0a0a0a); padding: clamp(34px, 3.4vw, 46px) clamp(20px, 2vw, 28px); display: grid; gap: 16px; justify-items: center; align-content: start; text-align: center; transition: border-color .5s, transform .6s var(--ease); }
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card h3 { font-size: clamp(24px, 2vw, 28px); }
.card p { margin: 0; color: var(--text); font-size: 15px; }
.offer { display: grid; border-top: 1px solid var(--line); }
.offer-row { position: relative; overflow: hidden; display: grid; justify-items: center; text-align: center; gap: 20px; padding: clamp(64px, 7vw, 100px) var(--gutter); border-bottom: 1px solid var(--line); }
.offer-row .points { grid-template-columns: repeat(2, auto); gap: 10px 40px; justify-content: center; }

/* kroki */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.step { padding: clamp(36px, 4vw, 54px) 24px; text-align: center; display: grid; gap: 12px; justify-items: center; align-content: start; border-bottom: 1px solid var(--line); }
.step:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }
.step h3 { font-size: 26px; }
.step p { margin: 0; color: var(--text); font-size: 15px; max-width: 32ch; }

/* stos kart procesu */
.pstack { display: grid; max-width: 920px; margin: 0 auto; }
.pcard { position: sticky; top: calc(var(--header) + 28px); min-height: 56vh; margin-bottom: 7vh; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, #141414, #0a0a0a); display: grid; place-items: center; text-align: center; padding: clamp(36px, 6vw, 80px); transform-origin: 50% 0; will-change: transform; box-shadow: 0 -24px 50px -24px rgba(0,0,0,.5); }
.pcard .inner { display: grid; gap: 20px; justify-items: center; max-width: 540px; }
.pcard .num { font-family: var(--serif); font-style: italic; font-size: clamp(76px, 10vw, 140px); line-height: .85; color: transparent; -webkit-text-stroke: 1px var(--line-2); }
.pcard p { margin: 0; color: var(--text); font-size: clamp(16px, 1.25vw, 18px); }

/* ---------- rozszerzające się zdjęcie (Scroll Media Expansion, 21st.dev) ---------- */
.expand { position: relative; height: 320vh; }
.expand-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.expand-media { position: absolute; left: 50%; top: 50%; width: 34vw; height: 44vh; transform: translate(-50%, -50%); border-radius: 18px; overflow: hidden; will-change: width, height; }
.expand-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.expand-media::after { content: ''; position: absolute; inset: 0; background: rgba(7,7,7,.0); transition: none; }
.expand-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(7,7,7,.55), rgba(7,7,7,.82)); opacity: 0; pointer-events: none; }
.expand-copy { position: relative; z-index: 2; display: grid; justify-items: center; gap: 26px; text-align: center; width: min(820px, 100% - 2 * var(--gutter)); opacity: 0; }
.expand-title { position: absolute; z-index: 2; inset: 0; display: grid; align-content: center; justify-items: center; gap: 0; pointer-events: none; }
.expand-title span { display: block; font-family: var(--serif); font-size: clamp(40px, 6vw, 92px); letter-spacing: -.03em; line-height: 1; will-change: transform; }
.expand-title span:first-child { margin-bottom: 50vh; }

/* ---------- liczby ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stat { text-align: center; padding: clamp(40px, 4.6vw, 64px) 14px; display: grid; gap: 10px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-family: var(--serif); font-weight: 500; font-variation-settings: 'opsz' 28; font-size: clamp(46px, 5vw, 72px); line-height: 1; letter-spacing: -.02em; }
.stat span { font-size: 14px; color: var(--soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa button { width: 100%; display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 12px; padding: 28px 0; text-align: center; font-family: var(--serif); font-size: clamp(20px, 1.9vw, 26px); line-height: 1.3; letter-spacing: -.015em; }
.qa button .roman { font-size: 16px; text-align: left; }
.qa .pm { width: 36px; height: 36px; position: relative; justify-self: end; }
.qa .pm::before, .qa .pm::after { content: ''; position: absolute; top: 50%; left: 50%; width: 13px; height: 1px; background: var(--white); transform: translate(-50%, -50%); transition: transform .6s var(--ease); }
.qa .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa.open .pm::after { transform: translate(-50%, -50%) rotate(0); }
.qa .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .65s var(--ease); }
.qa.open .ans { grid-template-rows: 1fr; }
.qa .ans > div { overflow: hidden; }
.qa .ans p { margin: 0 auto; padding: 0 48px 30px; max-width: 64ch; text-align: center; color: var(--text); opacity: 0; filter: blur(5px); transition: opacity .55s var(--ease), filter .55s var(--ease); }
.qa.open .ans p { opacity: 1; filter: none; transition-delay: .12s; }

/* ---------- CTA ---------- */
.cta { text-align: center; display: grid; justify-items: center; gap: 30px; padding: clamp(110px, 15vw, 210px) var(--gutter) clamp(72px, 8vw, 110px); position: relative; overflow: hidden; }
.cta .glow { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255,255,255,.06), transparent 60%); pointer-events: none; }
.cta .mail { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(16px, 1.3vw, 18px); color: var(--text); transition: color .35s; }
.cta .mail:hover { color: var(--white); }
.cta .mail .ico { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: border-color .35s; }
.cta .mail:hover .ico { border-color: var(--white); }

/* ---------- kontakt ---------- */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.channel { padding: 32px 14px; text-align: center; display: grid; gap: 8px; }
.channel + .channel { border-left: 1px solid var(--line); }
.channel span { font-size: 13px; color: var(--faint); }
.channel a, .channel b { font-family: var(--serif); font-weight: 400; font-size: clamp(19px, 1.6vw, 23px); letter-spacing: -.01em; }
.form { display: grid; gap: 26px; margin-top: clamp(56px, 7vw, 90px); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { position: relative; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--white); font: inherit; font-size: 17px; padding: 26px 0 12px; text-align: center; border-radius: 0; outline: none; transition: border-color .5s; -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 140px; resize: vertical; }
.field label { position: absolute; left: 0; right: 0; top: 26px; text-align: center; font-size: 15px; color: var(--soft); pointer-events: none; transition: all .45s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--white); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 0; font-size: 12px; color: var(--faint); }
.field .err { display: block; text-align: center; font-size: 13px; color: #ff9b9b; margin-top: 6px; }
.field.bad input, .field.bad textarea { border-color: #ff9b9b; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; height: 40px; align-items: center; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--soft); transition: all .45s var(--ease); }
.chips input:checked + span { background: var(--white); color: #0a0a0a; border-color: var(--white); }
.chips input:focus-visible + span { outline: 1px solid var(--white); outline-offset: 3px; }
.consent { display: flex; gap: 12px; justify-content: center; align-items: flex-start; font-size: 14px; color: var(--soft); text-align: left; max-width: 540px; margin: 0 auto; }
.consent input { margin-top: 4px; accent-color: #fff; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.form-done { display: none; text-align: center; gap: 18px; justify-items: center; padding: 30px 0; }
.form.sent .form-body { display: none; }
.form.sent .form-done { display: grid; }
.hp-field { position: absolute; left: -9999px; }

/* ---------- studium przypadku ---------- */
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.case-meta div { padding: 28px 12px; text-align: center; display: grid; gap: 6px; align-content: start; }
.case-meta div + div { border-left: 1px solid var(--line); }
.case-meta span { font-size: 13px; color: var(--faint); }
.case-meta b { font-family: var(--serif); font-weight: 400; font-size: 21px; letter-spacing: -.01em; line-height: 1.25; }
.frame { border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.frame img { width: 100%; height: auto; }
.case-text { display: grid; gap: 22px; justify-items: center; text-align: center; }
.case-text p { margin: 0; font-size: clamp(17px, 1.25vw, 19px); color: var(--text); max-width: 62ch; }
.palette { display: flex; justify-content: center; }
.palette i { width: clamp(52px, 7vw, 96px); height: clamp(52px, 7vw, 96px); border-radius: 50%; margin: 0 -7px; border: 1px solid var(--line); transform: scale(.4); opacity: 0; transition: transform 1s var(--ease), opacity 1s var(--ease); transition-delay: calc(var(--i) * 100ms); }
.palette.in i { transform: none; opacity: 1; }
.duo { display: grid; grid-template-columns: 1.9fr 1fr; gap: clamp(18px, 3vw, 40px); align-items: center; }
.phone { width: 100%; max-width: 290px; justify-self: center; border-radius: 42px; padding: 9px; background: #161616; border: 1px solid #262626; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); }
.phone > div { border-radius: 34px; overflow: hidden; aspect-ratio: 390/844; background: #000; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.next-case { display: grid; justify-items: center; gap: 22px; text-align: center; padding: clamp(100px, 13vw, 180px) var(--gutter); border-top: 1px solid var(--line); }
.next-case a.big { font-family: var(--serif); font-size: clamp(44px, 7vw, 108px); line-height: 1; letter-spacing: -.035em; transition: letter-spacing .9s var(--ease), opacity .5s; }
.next-case a.big:hover { letter-spacing: -.015em; }

/* ---------- studio ---------- */
.portrait { width: min(400px, 80vw); aspect-ratio: 4/5; margin: 0 auto; border-radius: 14px; border: 1px dashed var(--line-2); display: grid; place-items: center; color: var(--soft); font-size: 14px; background: radial-gradient(ellipse at center, #121212, var(--bg)); }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.6vw, 20px); }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.25; letter-spacing: -.02em; text-align: center; max-width: 26ch; margin: 0 auto; }

/* ---------- polityka ---------- */
.prose { text-align: center; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 64px 0 16px; }
.prose h2 .roman { display: block; margin-bottom: 10px; font-size: 17px; }
.prose p { color: var(--text); max-width: 64ch; margin: 0 auto; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- stopka ---------- */
.footer { padding: 56px 0 40px; text-align: center; }
.foot-main { display: grid; justify-items: center; gap: 30px; padding-top: 52px; border-top: 1px solid var(--line); }
.footer .logo .mark { height: 72px; opacity: .92; transition: opacity .4s; }
.footer .logo:hover .mark { opacity: 1; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; font-size: 14px; color: var(--soft); }
.foot-nav a { transition: color .35s; }
.foot-nav a:hover { color: var(--white); }
.foot-icons { display: flex; justify-content: center; gap: 14px; }
.foot-icons a { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--soft); transition: color .35s, border-color .35s; }
.foot-icons a:hover { color: var(--white); border-color: var(--white); }
.foot-bottom { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }

.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; }

/* ---------- responsywność ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --header: 66px; }
  .nav { display: none; }
  .menu-btn { display: block; justify-self: end; }
  .header .logo .mark { height: 40px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plan .desc { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:nth-child(3n+1)) { border-left: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .case-meta { grid-template-columns: repeat(2, 1fr); }
  .case-meta div:nth-child(3) { border-left: 0; }
  .case-meta div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .duo { grid-template-columns: 1fr; }
  .hp { height: 170vh; }
  .hp-card { width: 62vw; }
  .rail-sticky { position: static; height: auto; overflow: visible; }
  .rail-track { justify-self: stretch; padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; width: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .rail-track::-webkit-scrollbar { display: none; }
  .rail .work { width: 78vw; scroll-snap-align: center; }
  .rail-progress { display: none; }
  .expand-media { width: 70vw; height: 34vh; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .works, .cards, .values { grid-template-columns: 1fr; }
  .channels { grid-template-columns: 1fr; }
  .channel + .channel { border-left: 0; border-top: 1px solid var(--line); }
  .form .row { grid-template-columns: 1fr; }
  .offer-row .points { grid-template-columns: 1fr; }
  .qa button { grid-template-columns: 26px 1fr 26px; gap: 8px; padding: 22px 0; }
  .qa .ans p { padding: 0 6px 26px; }
  .pcard { min-height: 50vh; }
  .device { border-radius: 14px; padding: 6px; }
  .device-screen { border-radius: 9px; }
  .hero .kicker::before, .hero .kicker::after { display: none; }
  .hero .kicker { max-width: 290px; line-height: 1.8; }
  .btn { height: 50px; padding: 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js [data-blur] .w, .js [data-cut] .ln > span, .js [data-stagger] > *, .js [data-clip], .js [data-clip] img { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .scrub-text .w { opacity: 1; }
  .expand-copy { opacity: 1; }
}
