/* h3studio — style strony */
@font-face { font-family: 'Bricolage'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/assets/fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Bricolage'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/assets/fonts/bricolage-grotesque-latin-opsz-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --paper: #F6F7F4;
  --surface: #FFFFFF;
  --ink: #17191A;
  --muted: #5C635F;
  --line: #DDE2DC;
  --leaf: #157F4B;          /* tekst i przyciski — kontrast AA na papierze */
  --leaf-bright: #2FBF71;   /* akcent z logo */
  --leaf-soft: #E2F2E8;
  --glass: rgba(246, 247, 244, .72);
  --shadow: 0 1px 2px rgba(23, 25, 26, .06), 0 12px 32px -12px rgba(23, 25, 26, .18);
  --shadow-lg: 0 2px 4px rgba(23, 25, 26, .06), 0 30px 60px -20px rgba(23, 25, 26, .28);
  --r-s: 10px; --r-m: 18px; --r-l: 28px; --r-xl: 40px;
  --gut: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F1210; --surface: #181C19; --ink: #EDF0EC; --muted: #A2AAA4; --line: #2A302C;
    --leaf: #57D490; --leaf-bright: #57D490; --leaf-soft: #17291F; --glass: rgba(15, 18, 16, .72);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 30px 60px -20px rgba(0,0,0,.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 'Bricolage', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-optical-sizing: auto; font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--leaf-bright); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-s); }
.skip:focus { left: 8px; }

/* ---------- typografia ---------- */
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -0.022em; font-weight: 720; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.015em; }
h2.small { font-size: 1rem; letter-spacing: 0; font-weight: 650; color: var(--muted); }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(1.15rem, 1.9vw, 1.375rem); line-height: 1.45; color: var(--muted); max-width: 38ch; letter-spacing: -0.005em; }
.muted { color: var(--muted); }

/* ---------- nagłówek ---------- */
.top {
  position: sticky; top: 0; z-index: 20; view-transition-name: top;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.top.scrolled { border-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; padding-top: env(safe-area-inset-top); }
.brand { display: flex; color: var(--ink); text-decoration: none; padding: 6px 0; }
.logo { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(4px, 1.4vw, 14px); }
.nav a { text-decoration: none; font-weight: 550; font-size: .98rem; padding: 8px 10px; border-radius: 999px; color: var(--muted); transition: color .2s, background-color .2s; touch-action: manipulation; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: color-mix(in oklab, var(--ink) 7%, transparent); }
.nav .nav-cta { background: var(--ink); color: var(--paper); padding-inline: 16px; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { color: var(--paper); background: color-mix(in oklab, var(--ink) 85%, var(--leaf)); }
.nav .lang { font-size: .82rem; font-weight: 700; letter-spacing: .04em; border: 1.5px solid var(--line); padding: 6px 10px; }
@media (max-width: 760px) {
  .top-in { height: 60px; }
  .logo { height: 26px; }
  .nav a:not(.nav-cta):not(.lang) { display: none; }
  .mobile-nav { display: flex !important; }
}

/* dolny pasek nawigacji na telefonie */
.mobile-nav {
  display: none; position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  justify-content: space-around; padding: 6px; border-radius: 999px; view-transition-name: mnav;
  background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.mobile-nav a { flex: 1; text-align: center; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 10px 4px; border-radius: 999px; color: var(--muted); min-height: 44px; }
.mobile-nav a[aria-current="page"] { color: var(--ink); background: color-mix(in oklab, var(--ink) 8%, transparent); }
@media (max-width: 760px) { body { padding-bottom: 84px; } }

/* ---------- przyciski ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer; touch-action: manipulation;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  transition: transform .12s var(--ease), background-color .2s, border-color .2s;
}
.btn:hover { border-color: color-mix(in oklab, var(--ink) 30%, var(--line)); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--leaf); border-color: var(--leaf); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #08140D; } }
.btn.primary:hover { background: color-mix(in oklab, var(--leaf) 88%, var(--ink)); }
.btn.ghost { background: transparent; color: var(--muted); border-style: dashed; cursor: default; }
.btn.ghost:active { transform: none; }
.ext { font-size: .9em; }
.more { font-weight: 650; color: var(--leaf); text-decoration: none; border-bottom: 2px solid color-mix(in oklab, var(--leaf) 35%, transparent); padding-bottom: 1px; }
.more:hover { border-color: var(--leaf); }

/* ---------- ramki ekranów ---------- */
.phone {
  position: relative; aspect-ratio: 390 / 760; border-radius: 34px; padding: 7px; background: #1B1D1C;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.phone img, .phone .zoom img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 27px; background: #fff; }
.browser {
  position: relative; border-radius: var(--r-m); background: #1B1D1C; padding: 22px 6px 6px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.browser > i { position: absolute; top: 8px; left: 12px; width: 34px; height: 7px; background: radial-gradient(circle at 3.5px 3.5px, #4A4E4C 3.5px, transparent 4px) 0 0 / 12px 7px repeat-x; }
.browser img, .browser .zoom img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 12px; }
.placeholder { aspect-ratio: 390/760; border-radius: 34px; display: grid; place-items: center; font-size: 3.5rem;
  background: repeating-linear-gradient(-45deg, color-mix(in oklab, var(--c) 18%, var(--surface)) 0 14px, color-mix(in oklab, var(--c) 10%, var(--surface)) 14px 28px);
  border: 2px dashed color-mix(in oklab, var(--c) 45%, var(--line)); }
.zoom { all: unset; display: block; cursor: zoom-in; width: 100%; height: 100%; }
.zoom:focus-visible { outline: 3px solid var(--leaf-bright); outline-offset: -3px; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 9vw, 112px); padding-bottom: clamp(28px, 4vw, 48px); }
.hero-title { max-width: 13ch; font-size: clamp(2.75rem, 8vw, 6.4rem); }
.hero-sub { margin-top: 24px; font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--muted); max-width: 34ch; line-height: 1.45; }

/* półka z telefonami — główny element strony */
.shelf { position: relative; padding-bottom: 8px; }
.shelf-track {
  display: flex; gap: clamp(16px, 2.4vw, 32px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 36px max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))) 44px; scrollbar-width: none; cursor: grab;
}
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.shelf-track.dragging a { pointer-events: none; }
.shelf-item { flex: 0 0 clamp(200px, 22vw, 268px); scroll-snap-align: start; text-decoration: none; color: inherit; -webkit-user-drag: none; }
.shelf-item img { -webkit-user-drag: none; user-select: none; }
.shelf-item.kind-d { flex-basis: clamp(340px, 44vw, 560px); align-self: center; }
.shelf-item.kind-d .browser img { aspect-ratio: 16 / 9; }
.shelf-item .phone { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.shelf-item:nth-child(even) .phone { transform: translateY(28px); }
.shelf-item:hover .phone { transform: translateY(-8px); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 40px 70px -24px color-mix(in oklab, var(--c) 70%, transparent); }
.shelf-item:nth-child(even):hover .phone { transform: translateY(20px); }
.shelf-name { display: block; margin-top: 18px; font-weight: 650; font-size: 1.05rem; }
.shelf-item:nth-child(even) .shelf-name { margin-top: 46px; }
.shelf-name::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 10px; vertical-align: 1px; }
.shelf-hint { color: var(--muted); font-size: .92rem; margin: 0; }
@media (hover: none) { .shelf-hint { display: block; } }
@media (hover: hover) { .shelf-hint { display: none; } }

/* jedna sekwencja na wejście: telefony wjeżdżają po kolei */
@media (prefers-reduced-motion: no-preference) {
  .home .shelf-item { animation: rise .9s var(--ease) both; animation-delay: calc(120ms + var(--i) * 70ms); }
  @keyframes rise { from { opacity: 0; translate: 0 60px; } }
}

/* ---------- sekcje ---------- */
.section { padding-block: clamp(48px, 8vw, 104px) 0; }
.section > h2, .section-head { margin-bottom: clamp(24px, 3vw, 40px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.page-head { padding-top: clamp(40px, 8vw, 96px); }
.page-head .lead { margin-top: 20px; }
.center-block { text-align: center; display: flex; flex-direction: column; align-items: center; padding-bottom: 64px; }
.center-block .lead { margin-inline: auto; }

/* ---------- karty projektów ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--r-xl); overflow: hidden;
  background: color-mix(in oklab, var(--c) 9%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--c) 16%, var(--line));
  transition: transform .35s var(--ease), border-color .3s; touch-action: manipulation;
}
.card:active { transform: scale(.985); }
.card-art { display: flex; justify-content: center; align-items: flex-end; height: 300px; padding: 32px 28px 0; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 110%, color-mix(in oklab, var(--c) 32%, transparent), transparent 70%); }
.card-art .phone { width: 172px; margin-bottom: -80px; transition: transform .45s var(--ease); }
.card-art .browser { width: 100%; margin-bottom: -40px; transition: transform .45s var(--ease); }
.card-art .placeholder { width: 172px; margin-bottom: -80px; }
.card:hover .card-art .phone, .card:hover .card-art .browser { transform: translateY(-10px); }
.card-text { padding: 26px 28px 28px; background: var(--surface); flex: 1; position: relative; z-index: 1; }
.card-type { color: var(--muted); font-size: .95rem; margin: 6px 0 12px; font-weight: 500; }
.card-lead { margin: 0; font-size: 1rem; line-height: 1.5; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; vertical-align: 1px; margin-left: 4px;
  background: #FFE9A8; color: #5A4300; }
@media (prefers-color-scheme: dark) { .badge { background: #4A3C10; color: #FFE39A; } }
.feat .wide { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .feat { grid-template-columns: repeat(3, 1fr); }
  .feat .wide { flex-direction: row; min-height: 420px; }
  .feat .wide .card-art { flex: 1.3; height: auto; align-items: flex-end; padding-top: 48px; }
  .feat .wide .card-art .phone { width: 230px; margin-bottom: -120px; }
  .feat .wide .card-text { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px; }
  .feat .wide h3 { font-size: 2.2rem; }
  .feat .wide .card-lead { font-size: 1.15rem; max-width: 30ch; }
}

/* ---------- oferta ---------- */
.offer-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 0; margin: 0; border-top: 1.5px solid var(--ink); }
.offer-list > div { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--line); }
.offer-list dt { font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; margin-bottom: 8px; }
.offer-list dt::before { content: ''; display: block; width: 22px; height: 22px; border-radius: 50% 4px; background: var(--leaf-bright); margin-bottom: 18px; transform: rotate(-45deg); }
.offer-list dd { margin: 0; color: var(--muted); max-width: 32ch; }

/* ---------- o mnie ---------- */
.about-teaser { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.about-teaser h2 { margin-bottom: 16px; }
.about-teaser p { font-size: 1.15rem; max-width: 46ch; }
.portrait { border-radius: var(--r-l); aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
@media (max-width: 600px) { .about-teaser { grid-template-columns: 1fr; } .about-teaser .portrait { max-width: 200px; } }
.about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-top: clamp(40px, 8vw, 96px); align-items: start; }
.about-text .lead { margin: 18px 0 32px; }
.about-text p { max-width: 60ch; }
.about-text h2 { margin: 40px 0 18px; font-size: 1.4rem; }
.portrait.big { position: sticky; top: 100px; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .portrait.big { position: static; max-width: 360px; order: -1; } }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .95rem; font-weight: 500; }

/* ---------- pas kontaktowy ---------- */
.band { margin-top: clamp(64px, 10vw, 128px); background: var(--ink); color: var(--paper); }
.band-in { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding-block: clamp(48px, 7vw, 88px); }
.band h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 12px; }
.band p { margin: 0; max-width: 46ch; color: color-mix(in oklab, var(--paper) 72%, var(--ink)); font-size: 1.1rem; }
.band .btn.primary { background: var(--leaf-bright); border-color: var(--leaf-bright); color: #06140C; }

/* ---------- po godzinach ---------- */
.hobby { margin-top: clamp(48px, 8vw, 104px); padding-bottom: 8px; background: color-mix(in oklab, var(--ink) 4%, var(--paper)); border-block: 1px solid var(--line); }
.hobby .wrap { padding-block: clamp(48px, 7vw, 88px); }
.hobby-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 5vw, 72px); margin-bottom: clamp(32px, 4vw, 48px); align-items: start; }
.hobby-head .lead { margin-top: 12px; }
@media (max-width: 820px) { .hobby-head { grid-template-columns: 1fr; } }
.note { border-left: 3px solid var(--leaf-bright); padding: 4px 0 4px 20px; color: var(--muted); font-size: .98rem; }
.note p:last-child { margin-bottom: 0; }
.note p:last-child { color: var(--ink); font-weight: 550; }
.note-inline { margin-top: clamp(40px, 6vw, 72px); max-width: 760px; }

/* ---------- strona projektu ---------- */
.p-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-top: clamp(28px, 5vw, 64px); }
.p-head.has-m .p-art { display: flex; justify-content: center; }
.p-head.has-m .p-art .phone { width: min(320px, 78%); }
.p-head:not(.has-m):not(.has-d) .p-art .placeholder { width: min(280px, 70%); margin-inline: auto; }
.back { display: inline-block; text-decoration: none; color: var(--muted); font-weight: 550; margin-bottom: 28px; padding: 6px 0; }
.back::before { content: '‹'; margin-right: 8px; font-size: 1.3em; line-height: 0; vertical-align: -1px; }
.back:hover { color: var(--ink); }
.p-type { color: var(--muted); font-weight: 550; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.p-type::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.p-intro h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.p-intro .lead { margin-top: 20px; }
.flag { display: inline-block; margin: 8px 0 0; font-size: .92rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: color-mix(in oklab, var(--c) 14%, var(--surface)); }
@media (max-width: 820px) { .p-head { grid-template-columns: 1fr; } .p-head .p-art { order: 2; } }

.p-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-top: clamp(56px, 8vw, 112px); }
.p-introtext { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.45; letter-spacing: -.01em; max-width: 34ch; margin-bottom: 48px; }
.p-text h2 { font-size: 1.45rem; margin: 40px 0 18px; }
.p-text > p { max-width: 62ch; }
.ticks { list-style: none; margin: 0; padding: 0; max-width: 62ch; }
.ticks li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 21px; width: 13px; height: 8px; border-left: 2.5px solid var(--leaf); border-bottom: 2.5px solid var(--leaf); transform: rotate(-45deg); }
.p-side { padding-top: 8px; }
.p-side .chips { margin-top: 14px; }
@media (max-width: 820px) { .p-body { grid-template-columns: 1fr; } }

.gallery { display: flex; gap: clamp(16px, 3vw, 36px); align-items: flex-start; padding-top: clamp(56px, 8vw, 96px); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 32px; scrollbar-width: thin; }
.gallery .phone { flex: 0 0 clamp(200px, 24vw, 280px); scroll-snap-align: start; }
.gallery .browser { flex: 0 0 min(100%, 720px); scroll-snap-align: start; }

.next { padding-top: clamp(48px, 7vw, 88px); }
.next a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; padding: 28px 0; border-top: 1.5px solid var(--ink); }
.next span { color: var(--muted); font-weight: 550; }
.next strong { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.03em; line-height: 1.05; transition: color .2s; }
.next a:hover strong { color: var(--c); }

/* ---------- współpraca ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 0; }
.steps li { counter-increment: s; padding: 0 24px 32px 0; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--leaf-soft); color: var(--leaf); font-weight: 750; font-size: 1.15rem; margin-bottom: 22px; position: relative; z-index: 1; }
.steps li::after { content: ''; position: absolute; top: 22px; left: 44px; right: 0; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h2 { font-size: 1.3rem; margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; max-width: 30ch; }
@media (max-width: 700px) {
  .steps li { padding: 0 0 32px 64px; }
  .steps li::before { position: absolute; left: 0; top: 0; }
  .steps li::after { top: 44px; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
}
.faq details { border-top: 1px solid var(--line); max-width: 760px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 650; font-size: 1.15rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 8px; top: 50%; translate: 0 -50%; font-size: 1.5rem; font-weight: 400; color: var(--muted); transition: rotate .3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--muted); max-width: 60ch; padding-bottom: 12px; }

/* ---------- kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); padding-top: clamp(40px, 8vw, 96px); }
.contact-intro .lead { margin: 20px 0 40px; }
.other p { margin: 6px 0; }
.other a { font-weight: 600; color: var(--leaf); }
.other .btn { margin-top: 12px; color: var(--ink); }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; }
.field input:not([type=checkbox]), .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 13px 15px; min-height: 50px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px color-mix(in oklab, var(--leaf) 20%, transparent); }
.field [aria-invalid="true"] { border-color: #C2362B !important; }
.hint { font-size: .9rem; color: var(--muted); margin: 6px 0 0; }
.err { color: #C2362B; font-size: .92rem; font-weight: 600; margin: 6px 0 0; min-height: 0; }
@media (prefers-color-scheme: dark) { .err { color: #FF8A80; } .field [aria-invalid="true"] { border-color: #FF8A80 !important; } }
.err:empty { display: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--leaf); }
.check label { font-weight: 450; font-size: .95rem; color: var(--muted); margin: 0; }
.check label a { color: var(--ink); }
.check .err { grid-column: 2; }
.hp { position: absolute; left: -9999px; }
.form .btn { width: 100%; justify-content: center; margin-top: 8px; }

.ok-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--leaf-soft); position: relative; margin-bottom: 28px; }
.ok-mark::after { content: ''; position: absolute; left: 24px; top: 24px; width: 24px; height: 13px; border-left: 4px solid var(--leaf); border-bottom: 4px solid var(--leaf); transform: rotate(-45deg); }

/* ---------- tekst prawny ---------- */
.prose { max-width: 760px; padding-top: clamp(40px, 8vw, 96px); }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 8px; }
.prose h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.prose a { color: var(--leaf); }
.prose ul { padding-left: 1.2em; }

/* ---------- stopka ---------- */
.foot { margin-top: 0; padding-block: 48px; border-top: 1px solid var(--line); }
.band + .foot, main:has(> .band:last-child) + .foot { border-top: 0; }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand .logo { height: 26px; margin-bottom: 12px; color: var(--ink); }
.foot-brand p { color: var(--muted); font-size: .92rem; margin: 0; }
.foot-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
main:not(:has(.band)) { padding-bottom: clamp(64px, 10vw, 128px); }

/* ---------- podgląd ekranu ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 12, 11, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox img { max-width: 96vw; max-height: 88vh; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-close { position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
@media (max-width: 600px) { .lb-close { top: 8px; right: 8px; } }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: pop .38s var(--ease); }
  @keyframes pop { from { opacity: 0; scale: .92; } }
}

/* ---------- przejścia między podstronami ---------- */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .9, .25, 1); }
::view-transition-old(root) { animation: .28s ease both fade-out; }
::view-transition-new(root) { animation: .42s cubic-bezier(.2, .9, .25, 1) both fade-in; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; translate: 0 14px; } }

/* ---------- preferencje ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .top, .mobile-nav { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: var(--ink); --line: var(--ink); }
}
.send-status { margin-top: 14px; } .send-status a { color: inherit; } .form .btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- przed / po ---------- */
.compare { padding-top: clamp(56px, 8vw, 96px); }
.compare-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: color-mix(in oklab, var(--ink) 7%, transparent); }
.seg button { font: inherit; font-weight: 600; font-size: .95rem; border: 0; background: transparent; color: var(--muted); padding: 8px 16px; min-height: 40px; border-radius: 999px; cursor: pointer; touch-action: manipulation; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.cmp { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-lg); background: #222; user-select: none; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-before { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.4); pointer-events: none; }
.cmp-line::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-weight: 700; font-size: 1.4rem; line-height: 1; letter-spacing: 6px; padding-left: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.cmp-range:focus-visible ~ .cmp-line::after, .cmp:has(.cmp-range:focus-visible) .cmp-line::after { outline: 3px solid var(--leaf-bright); outline-offset: 3px; }
.cmp-tag { position: absolute; top: 16px; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 650; color: #fff; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; }
.cmp-tag.l { left: 16px; } .cmp-tag.r { right: 16px; }
.compare .hint { margin-top: 12px; }
.offer-list > div:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px 48px; align-items: start; padding-block: 32px 36px; }
.offer-list > div:first-child dt { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.offer-list > div:first-child dd { font-size: 1.15rem; line-height: 1.6; max-width: 52ch; color: var(--ink); padding-top: 40px; }
@media (max-width: 700px) { .offer-list > div:first-child { grid-template-columns: 1fr; } .offer-list > div:first-child dd { padding-top: 0; } }
.offer-list > div:first-child .more { display: inline-block; margin-top: 12px; font-size: 1rem; }
