/* Eko Fire - makieta. Tokeny zgodne z logo. */
/* Manrope (OFL) z własnego serwera: zmienna grubość 400-800, znaki łacińskie z polskimi (narzedzia/font.py). */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
:root {
  --ink: #1d1c1a;
  --ink-2: #3a3834;
  --paper: #f4f1ec;
  --paper-2: #ebe6de;
  --white: #ffffff;
  --rust: #b0532e;
  --rust-d: #93421f;
  --rust-l: #de9168;
  --muted: #6f6a63;
  --line: #e1dbd1;
  --radius: 6px;
  --wrap: 1200px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.2vw, 64px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 21px; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.ph { background: repeating-linear-gradient(90deg, transparent 0 4px, rgba(176,83,46,.18) 4px 8px); border-radius: 2px; }

/* Przyciski */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: var(--radius); font: 700 15px/1 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform 160ms var(--ease-out); }
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn-primary { background: var(--rust); color: var(--white); }
.btn-primary:hover { background: var(--rust-d); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--ink); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

/* Nagłówek */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.site-header .logo img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-color: var(--rust); }
.nav .btn { text-transform: none; letter-spacing: 0; border-bottom: 0; min-height: 44px; padding: 0 20px; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; }

/* Hero */
.hero { background: var(--paper); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { margin: 18px 0 22px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-media { position: relative; }
.hero-media img { mix-blend-mode: multiply; width: 100%; aspect-ratio: 1; object-fit: contain; }
.hero-media .tag { position: absolute; left: 0; bottom: 8%; background: var(--white); padding: 12px 16px; border-radius: var(--radius); font-size: 14px; box-shadow: 0 10px 30px -12px rgba(29,28,26,.25); }
.hero-media .tag b { display: block; font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border-top: 1px solid #d8d1c5; }
.stats div { padding: 18px 16px 0 0; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 4px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }

/* Sekcje */
.section { padding: 104px 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .lead, .section-dark .muted { color: #b9b2a7; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; }
.section-head h2 { margin-top: 0; }
.section-head .lead { margin-top: 16px; }

/* Filtr i karty produktów */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font: 700 14px var(--font); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.chip[aria-pressed="true"] span { color: #b9b2a7; }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card-media { position: relative; background: var(--paper); border-radius: var(--radius) var(--radius) 0 0; }
.card-media img { mix-blend-mode: multiply; aspect-ratio: 4/4.2; object-fit: contain; width: 100%; padding: 18px; }
.badge { position: absolute; top: 14px; left: 14px; background: var(--ink); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 3px; }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-meta { font-size: 14px; color: var(--muted); margin: -8px 0 14px; }
.card-body h3 { margin: 0 0 14px; }
.specs-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 18px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs-mini dt { font-size: 12px; color: var(--muted); }
.specs-mini dd { margin: 0; font-weight: 800; font-size: 16px; }
.card-body .link-arrow { margin-top: auto; }
.card[hidden] { display: none; }

/* Prosty czy narożny */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.choice { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 28px; }
.choice img { mix-blend-mode: multiply; }
.choice h3 { margin-bottom: 10px; }
.choice p { color: var(--ink-2); font-size: 16px; }
.choice .link-arrow { margin-top: 14px; }
.choice-wrap { background: var(--paper); border-radius: var(--radius); }

/* Cechy */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.feature svg { width: 40px; height: 40px; color: var(--rust); margin-bottom: 20px; }
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { font-size: 16px; color: var(--muted); }
.section-dark .feature svg { color: var(--rust-l); }
.section-dark .feature p { color: #b9b2a7; }

/* Etapy */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step-body { position: relative; padding-top: 22px; }
.step-body::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ink); transform-origin: left; }
.step h3 { margin: 0 0 12px; }
.step p { font-size: 16px; color: var(--ink-2); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 22px; height: 22px; transition: transform .25s; color: var(--rust); margin-top: 2px; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); }

/* Kontakt / formularz */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact-info { margin-top: 32px; display: grid; gap: 14px; }
.contact-info a { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; text-decoration: none; }
.contact-info svg { width: 22px; height: 22px; color: var(--rust-l); }
.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form h3 { grid-column: 1 / -1; margin-bottom: 4px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea { font: 16px var(--font); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--white); color: var(--ink); min-height: 48px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rust); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); }
.form-note a { color: var(--ink); text-decoration-color: var(--rust); text-underline-offset: 3px; }
.form-note a:hover { color: var(--rust-d); }
.form .btn { grid-column: 1 / -1; justify-content: center; }

/* Stopka */
.site-footer { background: #141412; color: #b9b2a7; padding: 72px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer img { height: 44px; width: auto; margin-bottom: 20px; }
.site-footer h4 { color: var(--paper); font-size: 16px; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid #2c2b28; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; flex-wrap: wrap; }

/* Karta produktu */
.crumbs { font-size: 14px; color: var(--muted); padding: 22px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 28px 0 88px; align-items: start; }
.gallery-main { background: var(--paper); border-radius: var(--radius); position: relative; }
.gallery-main img { mix-blend-mode: multiply; aspect-ratio: 1; object-fit: contain; width: 100%; padding: 32px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.thumbs button { background: var(--paper); border: 1.5px solid transparent; border-radius: var(--radius); padding: 6px; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs img { mix-blend-mode: multiply; aspect-ratio: 1; object-fit: contain; }
.pdp-info h1 { font-size: clamp(34px, 4vw, 50px); margin: 0 0 16px; }
.pdp-tags { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-tags li { font-size: 13px; font-weight: 700; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.key-specs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); margin: 26px 0; }
.key-specs div { padding: 16px 18px; }
.key-specs div + div { border-left: 1px solid var(--line); }
.key-specs dt { font-size: 13px; color: var(--muted); }
.key-specs dd { margin: 2px 0 0; font-size: 24px; font-weight: 800; }
.variant { margin: 0 0 26px; }
.variant-label { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.variant-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-opts a, .variant-opts button { min-height: 44px; padding: 0 18px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--white); font: 700 14px var(--font); display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
.variant-opts [aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.variant .hint { font-size: 14px; color: var(--muted); margin-top: 10px; }
.checklist { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; font-size: 16px; }
.checklist svg { flex: none; width: 20px; height: 20px; color: var(--rust); margin-top: 3px; }
.pdp-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.docs { display: flex; gap: 22px; margin-top: 24px; flex-wrap: wrap; }
.docs a { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; text-decoration: none; }
.docs svg { width: 18px; height: 18px; color: var(--rust); }
.prose-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 64px; }
.prose-grid h3 { margin-bottom: 12px; }
.prose-grid p { color: var(--ink-2); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.spec-table caption { text-align: left; font-weight: 800; font-size: 18px; color: var(--ink); padding: 0 0 12px; border-bottom: 2px solid var(--ink); }
.spec-table th, .spec-table td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 500; color: var(--muted); width: 55%; padding-right: 16px; }
.spec-table td { font-weight: 700; }
.spec-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.compare thead th { font-size: 15px; font-weight: 800; vertical-align: bottom; }
.compare tbody th { font-weight: 500; color: var(--muted); }
.compare .current { background: var(--paper); }
.section-paper .compare .current { background: var(--white); }
.compare thead .current { box-shadow: inset 0 3px 0 var(--rust); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gallery-main .badge { z-index: 1; }

/* Górny pasek */
.topbar { background: var(--ink); color: #cfc8bc; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--white); }
.topbar svg { width: 15px; height: 15px; }
.topbar-contact, .topbar-side { display: flex; align-items: center; gap: 22px; }
.lang { display: flex; gap: 4px; }
.lang a { padding: 2px 6px; border-radius: 3px; font-weight: 700; }
.lang a[aria-current] { background: #3a3834; color: var(--white); }

/* O marce */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about h2 { margin-bottom: 22px; }
.about p + p { margin-top: 16px; }
.about .link-arrow { margin-top: 28px; }
.about-media { background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.about-media img { mix-blend-mode: multiply; aspect-ratio: 1; object-fit: contain; width: 100%; padding: 40px; }

/* Zdjęcia etapów (do uzupełnienia z serwera) */
.step-media { aspect-ratio: 4 / 3; border-radius: var(--radius); margin-bottom: 22px; overflow: hidden; }
.photo-ph { display: grid; place-items: center; text-align: center; padding: 16px; font-size: 13px; color: var(--muted); background: repeating-linear-gradient(135deg, var(--paper-2) 0 10px, #e4ded4 10px 20px); }

/* Opinie */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 24px; }
.review svg { width: 28px; height: 28px; color: var(--rust); }
.review blockquote { margin: 0; font-size: 18px; line-height: 1.55; flex: 1; }
.review figcaption { display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.review figcaption b { color: var(--ink); font-size: 15px; }

/* Dla firm */
.b2b { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.b2b h2 { margin-bottom: 18px; }
.b2b .checklist { margin: 30px 0 34px; gap: 16px; }
.b2b .checklist b { display: block; }
.b2b-card { background: var(--paper); border-radius: var(--radius); padding: 34px; }
.b2b-card h3 { margin-bottom: 18px; }
.b2b-card .contact-info { margin-top: 0; }
.b2b-card .contact-info svg { color: var(--rust); }
.b2b-card dl { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; }
.b2b-card dt { color: var(--muted); font-size: 13px; }
.b2b-card dd { margin: 0; font-weight: 700; }


@media (max-width: 1080px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .about, .b2b { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 460px; }
  .topbar .mail { display: none; }
}
@media (max-width: 600px) { .reviews { grid-template-columns: 1fr; } .topbar-side { gap: 12px; } }

/* Pas makiety */
.mock-note { background: var(--rust); color: var(--white); font-size: 13px; text-align: center; padding: 8px 16px; }

/* Responsywność */
@media (max-width: 1080px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .spec-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .menu-toggle { display: block; }
  .hero .wrap, .split, .faq-grid, .contact, .pdp, .prose-grid { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 40px; gap: 16px; }
  .hero-media { order: -1; max-width: 420px; margin: 0 auto; }
  .section { padding: 72px 0; }
  .section-head { flex-direction: column; align-items: start; }
  .faq-grid, .contact { gap: 40px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 68px; }
  .site-header .logo img { height: 34px; }
  .nav { top: 68px; padding: 8px 16px 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div { padding-bottom: 14px; }
  .products, .features, .steps, .footer-grid, .spec-cols { grid-template-columns: 1fr; }
  .choice { grid-template-columns: 110px 1fr; padding: 20px; gap: 16px; }
  .form { grid-template-columns: 1fr; padding: 24px; }
  .key-specs dd { font-size: 20px; }
  .faq details p { padding-right: 0; }
  .hero .actions .btn, .pdp-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ===== Ruch =====
   html.motion ustawia skrypt w <head>; bez JS strona wygląda statycznie.
   Animujemy tylko transform, translate i opacity. */

@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes mask-up { from { transform: translateY(105%); } }
/* Zdjęcie w hero jest widoczne od pierwszej klatki (największy element strony, LCP) - samo osiadanie skali. */
@keyframes settle { from { transform: scale(1.04); } }
@keyframes fade { from { opacity: 0; } }

/* 1. Wejście hero */
.motion .hero h1 { opacity: 0; }
.motion .hero h1.is-split { opacity: 1; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .w > span { display: inline-block; }
.motion .hero h1 .w > span { animation: mask-up 700ms var(--ease-out) both; animation-delay: calc(150ms + var(--i, 0) * 60ms); }
.motion .hero .lead { animation: rise 500ms var(--ease-out) both 450ms; }
.motion .hero .actions { animation: rise 500ms var(--ease-out) both 550ms; }
.motion .hero .stats { animation: rise 500ms var(--ease-out) both 650ms; }
.motion .hero-media img { animation: settle 900ms var(--ease-out) both 100ms; }
.motion .hero-media .tag { animation: rise 500ms var(--ease-out) both 800ms; }

/* 2. Etapy produkcji: kreska rysuje się od lewej, potem treść */
.motion .steps .step-body::before { transform: scaleX(0); transition: transform 600ms var(--ease-in-out); transition-delay: calc(var(--i, 0) * 150ms); }
.motion .steps .step > * { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(var(--i, 0) * 150ms + 250ms); }
.motion .steps.in .step-body::before { transform: scaleX(1); }
.motion .steps.in .step > * { opacity: 1; transform: none; }

/* 3. Pojawianie przy przewijaniu */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.in { opacity: 1; transform: none; }

/* 4. Galeria: przenikanie zdjęć */
.gallery-main { overflow: hidden; }
.gallery-main img.incoming { position: absolute; inset: 0; height: 100%; opacity: 0; transform: scale(0.98); transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
.gallery-main img.incoming.show { opacity: 1; transform: none; }

/* 5. Filtr wkładów */
.card.is-leaving { opacity: 0; transform: scale(0.97); transition: opacity 150ms ease-in, transform 150ms ease-in; }
.card.is-entering { opacity: 0; transform: scale(0.97); transition: none; }
.card.is-in { transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }

/* 6. Akordeon pytań */
.faq summary svg { transition: transform 300ms var(--ease-out); }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size 300ms var(--ease-out), opacity 300ms var(--ease-out), content-visibility 300ms allow-discrete; }
  .faq details[open]::details-content { block-size: auto; opacity: 1; }
}

/* 7. Paralaksa: zdjęcie przesuwa się wewnątrz przycinającego, jednolitego tła */
.choice, .about-media { overflow: hidden; }
.parallax { will-change: translate; }

/* 8. Wciśnięcia i hover tylko dla myszy */
.card { transition: border-color .2s, box-shadow .2s, transform 200ms var(--ease-out), opacity 220ms var(--ease-out); }
.chip, .thumbs button, .variant-opts button, .variant-opts a { transition: transform 160ms var(--ease-out), background .2s, color .2s, border-color .2s; }
.btn:active, .chip:active, .thumbs button:active, .variant-opts button:active, .variant-opts a:active { transform: scale(0.97); }
.card:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover svg, .link-arrow:hover svg { transform: translateX(3px); }
  .card:hover { border-color: #cfc6b8; box-shadow: 0 18px 40px -24px rgba(29,28,26,.35); transform: translateY(-2px); }
  .card:hover:active { transform: translateY(-2px) scale(0.985); }
}

/* 9. Menu mobilne zjeżdża spod nagłówka */
@media (max-width: 900px) {
  .nav.open { opacity: 1; transform: none; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
  @starting-style { .nav.open { opacity: 0; transform: translateY(-8px); } }
}

.card.reveal { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }

/* Ograniczony ruch: samo krótkie przenikanie, bez przesunięć i skalowania */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion .hero h1 .w > span, .motion .hero .lead, .motion .hero .actions,
  .motion .hero .stats, .motion .hero-media .tag { animation: fade 200ms linear both; }
  .motion .hero-media img { animation: none; }
  .reveal, .motion .steps .step > *, .card.is-leaving, .card.is-entering, .gallery-main img.incoming { transform: none; }
  .reveal, .card.reveal, .motion .steps .step > *, .card.is-in { transition: opacity 200ms linear; transition-delay: 0ms; }
  .motion .steps .step-body::before { transform: none; transition: none; }
  .btn:active, .chip:active, .card:active, .thumbs button:active, .variant-opts button:active, .variant-opts a:active { transform: none; }
  .parallax { translate: none !important; }
}

/* Dokumenty: polityka prywatności, regulamin (narzedzia/dokumenty.py) */
.doc { max-width: 760px; padding: 28px 0 104px; }
.doc h1 { font-size: clamp(34px, 4vw, 50px); margin: 0 0 12px; }
.doc .doc-date { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.doc h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 48px 0 14px; }
.doc p, .doc ul, .doc dd { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc ul + p { margin-top: 16px; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 16px 0; }
.doc dt { font-weight: 700; }
.doc dd { margin: 0; }
.doc a { text-decoration-color: var(--rust); text-underline-offset: 3px; }
.doc a:hover { color: var(--rust-d); }
@media (max-width: 600px) {
  .doc { padding-bottom: 72px; }
  .doc dl { grid-template-columns: 1fr; gap: 2px; }
  .doc dd + dt { margin-top: 12px; }
}
