/* eMedics, strona glowna (redesign 2026-10).
   Tylko dla /index.html. Podstrony dalej uzywaja main.css i subpage.css,
   dlatego ten plik jest osobny i nie dotyka ich wygladu.

   Kierunek: papier i tusz pieczatki. Odbiorca to lekarz albo wlascicielka
   przychodni, ktora otwiera link z maila w jasnym gabinecie miedzy pacjentami,
   wiec tlo jest jasne i cieple jak druk orzeczenia, a jedynym mocnym kolorem
   jest fiolet tuszu pieczatki lekarskiej. Bez gradientow, bez szkla.
   Fonty: IBM Plex Sans i Plex Sans Condensed, juz hostowane lokalnie
   (css/fonts.css), wiec zero nowych bajtow i zero nowych hostow. */

:root {
  --paper: oklch(0.975 0.008 85);
  --paper-2: oklch(0.948 0.013 85);
  --paper-3: oklch(0.915 0.016 85);
  --ink: oklch(0.23 0.03 280);
  --ink-2: oklch(0.41 0.025 280);
  --ink-3: oklch(0.52 0.02 280);
  --rule: oklch(0.86 0.014 85);
  --stamp: oklch(0.47 0.17 292);
  --stamp-hover: oklch(0.41 0.17 292);
  --stamp-deep: oklch(0.29 0.11 292);
  --stamp-deeper: oklch(0.24 0.09 292);
  --stamp-tint: oklch(0.935 0.035 292);
  --on-stamp: oklch(0.975 0.012 292);
  --on-stamp-2: oklch(0.86 0.04 292);
  --ok: oklch(0.5 0.12 155);
  --ok-tint: oklch(0.94 0.04 155);
  --focus: oklch(0.62 0.19 292);

  --f-body: 'IBM Plex Sans', 'IBM Plex Sans Fallback', system-ui, sans-serif;
  --f-display: 'IBM Plex Sans Condensed', 'IBM Plex Sans Cond Fallback', 'IBM Plex Sans', system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --sec-y: clamp(40px, 4.2vw, 60px); /* pionowy odstep sekcji, miedzy sekcjami ~2x */
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--stamp); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--stamp-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px;
}
.skip:focus { top: 12px; }

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


h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.3rem; line-height: 1.15; font-weight: 600; }
p { margin: 0; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 62ch; margin-top: 18px; line-height: 1.55; }

/* Przyciski: jeden glowny styl na strone, plus link tekstowy. */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--stamp); color: var(--on-stamp);
  font-weight: 600; font-size: 1.02rem; text-decoration: none;
  padding: 15px 24px; border-radius: 8px; min-height: 48px;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--stamp-hover); color: var(--on-stamp); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.on-dark { background: var(--on-stamp); color: var(--stamp-deep); }
.btn.on-dark:hover { background: var(--paper-2); color: var(--stamp-deep); }
.textlink { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; }
.textlink:hover { color: var(--stamp); text-decoration-color: currentColor; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: oklch(0.975 0.008 85 / 0.96);
}
.nav-in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.logo { font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--stamp); }
.nav nav { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 500; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--stamp); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-links .nav-demo { font-weight: 600; color: var(--ink); }
.nav-links .nav-demo:hover { color: var(--stamp); }
.nav .btn { padding: 10px 16px; min-height: 42px; font-size: 0.93rem; white-space: nowrap; }
@media (max-width: 1080px) { .nav-in { gap: 20px; } .nav-links { gap: 16px; } .nav-links a { font-size: 0.9rem; } }
@media (max-width: 960px) {
  .nav-in { flex-wrap: wrap; gap: 0 16px; }
  .nav .btn { margin-left: auto; }
  .nav nav { order: 3; flex: 0 0 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav-links { gap: 20px; padding: 2px 0 12px; }
}
@media (max-width: 380px) { .nav .btn { font-size: 0.86rem; padding: 9px 12px; } }

/* ---------- HERO ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 var(--sec-y); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); line-height: 0.98; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--stamp); }
.hero-sub { font-size: clamp(1.08rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 54ch; margin-top: 22px; line-height: 1.55; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.hero-note { font-size: 0.94rem; color: var(--ink-2); margin-top: 12px; }

.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.facts li { font-size: 0.94rem; color: var(--ink-2); line-height: 1.4; }
.facts strong { display: block; font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }

/* Dwa prawdziwe zrzuty z demo.emedics.pl (Gabinet Solo DEMO): pulpit lekarza
   i formularz orzeczenia. Pliki sa juz przyciete do tresci (bez menu bocznego),
   wiec tu tylko ramka i uklad. Desktop: pulpit szeroko z lewej, orzeczenie
   zachodzi na jego prawa krawedz i schodzi nizej. Telefon: jeden pod drugim,
   orzeczenie pierwsze. Ramka to stopien tonu papieru, bez cienia. */
.hero-shots { container-type: inline-size; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 80px); align-items: start; }
.shot { margin: 0; min-width: 0; }
.shot .crop { background: var(--paper-3); padding: 8px; border-radius: 14px; }
.shot picture { display: block; overflow: hidden; border-radius: 8px; background: var(--paper-2); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { color: var(--ink-2); font-size: 0.94rem; margin-top: 12px; max-width: 46ch; }
.shot-pulpit { grid-column: 1 / 10; grid-row: 1; }
.shot-orzeczenie { grid-column: 7 / 13; grid-row: 1; margin-top: calc(16.5cqw + 40px); position: relative; z-index: 1; } /* dolna krawedz zrzutu orzeczenia ~24px nizej niz pulpitu: podpis orzeczenia nigdy nie wchodzi na pulpit (75cqw*1050/1220 - 50cqw*826/860) */
.shot-orzeczenie .crop { background: var(--stamp-tint); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
  .hero-shots { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .shot-pulpit, .shot-orzeczenie { grid-column: 1; grid-row: auto; margin-top: 0; }
  .shot-orzeczenie { order: -1; }
}

/* ---------- SEKCJE ---------- */
.sec { padding: var(--sec-y) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }

/* Jedna sciezka: numerowana os, nie siatka kart. */
.path-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); counter-reset: krok; }
.path-list li { counter-increment: krok; position: relative; padding-top: 58px; }
.path-list li::before {
  content: ""; position: absolute; top: 9px; left: 0;
  width: 16px; height: 16px; border-radius: 50%; background: var(--stamp);
  outline: 6px solid var(--paper);
}
.path-list li::after { content: ""; position: absolute; top: 16px; left: 0; right: calc(-1 * clamp(20px, 3vw, 40px)); height: 2px; background: var(--stamp); z-index: -1; }
.path-list li:last-child::after { right: 0; }
.path-list .who { display: inline-block; font-size: 0.94rem; font-weight: 600; color: var(--stamp); margin-bottom: 6px; }
.path-list h3 { margin-bottom: 10px; }
.path-list p { color: var(--ink-2); font-size: 0.98rem; }
.path { position: relative; z-index: 0; }
@media (max-width: 900px) {
  .path-list { grid-template-columns: 1fr; gap: 0; }
  .path-list li { padding: 0 0 32px 64px; }
  .path-list li::before { top: 4px; left: 6px; }
  .path-list li::after { top: 32px; bottom: 6px; left: 13px; right: auto; width: 2px; height: auto; }
  .path-list li:last-child::after { display: none; }
}


/* Glos klienta. */
.voice { background: var(--paper-2); }
.voice blockquote { margin: 0; max-width: 900px; }
.voice blockquote p { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.125rem); line-height: 1.22; letter-spacing: -0.005em; text-wrap: pretty; }
.voice blockquote p::before { content: "\201E"; color: var(--stamp); }
.voice blockquote p::after { content: "\201D"; color: var(--stamp); }
.voice footer { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; color: var(--ink-2); font-size: 0.98rem; }
.voice footer strong { color: var(--ink); }

/* Dostep i serwer: jedyna sekcja zalana kolorem tuszu. */
.access { background: var(--stamp-deep); color: var(--on-stamp); }
.access h2 { color: var(--on-stamp); max-width: 26ch; }
.access .lede { color: var(--on-stamp-2); line-height: 1.65; }
.access a { color: var(--on-stamp); }
.access-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 88px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.access h3 { color: var(--on-stamp); margin-bottom: 18px; }
.nope { list-style: none; margin: 0; padding: 0; }
.nope li { padding: 10px 0 10px 34px; position: relative; line-height: 1.45; font-size: 1.08rem; }
.nope li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 16px; height: 2px; background: var(--on-stamp-2); transform: rotate(45deg); }
.nope li::after { content: ""; position: absolute; left: 4px; top: 50%; width: 16px; height: 2px; background: var(--on-stamp-2); transform: rotate(-45deg); }
.spec { margin: 0; display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); background: var(--stamp-deeper); border-radius: 12px; padding: 8px 24px; }
.spec dt, .spec dd { padding: 11px 0; }
.spec dt { color: var(--on-stamp-2); padding-right: 16px; }
.spec dd { margin: 0; font-weight: 500; }
@media (max-width: 860px) { .access-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .spec { grid-template-columns: 1fr; padding: 4px 18px; }
  .spec dt { padding-bottom: 0; }
  .spec dd { border-top: 0; padding-top: 4px; }
}

/* Role: lista z regulami, z dwoma zrzutami obok. */
.roles-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.roles { margin: 0; }
.roles div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; }
.roles div:nth-child(odd) { background: var(--paper-2); margin: 0 -16px; padding: 18px 16px; border-radius: 10px; }
@media (max-width: 560px) { .roles div:nth-child(odd) { margin: 0; } .roles div { padding: 16px; } }
.roles dt { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; line-height: 1.2; }
.roles dd { margin: 0; color: var(--ink-2); }
.roles dd b { color: var(--ink); font-weight: 600; }
.gallery { display: grid; gap: 22px; position: sticky; top: 92px; }
.gallery figure { margin: 0; }
.gallery picture { display: block; background: var(--paper-3); padding: 6px; border-radius: 12px; }
.gallery img { border-radius: 7px; background: var(--paper-2); }
.gallery figcaption { font-size: 0.94rem; color: var(--ink-2); margin-top: 8px; }
.gallery figure:nth-child(2) { margin-left: 12%; }
@media (max-width: 900px) {
  .roles-grid { grid-template-columns: 1fr; }
  .gallery { position: static; grid-template-columns: 1fr 1fr; }
  .gallery figure:nth-child(2) { margin-left: 0; }
}
@media (max-width: 560px) {
  .roles div { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}

/* Start i wsparcie. */
.start-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 4px 24px; padding: 20px 0; }
.steps .when { font-family: var(--f-display); font-weight: 700; color: var(--stamp); font-size: 1.05rem; }
.steps h3 { font-size: 1.15rem; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 0.98rem; }
.person { background: var(--paper-2); border-radius: 14px; padding: 28px; }
.person h3 { font-size: 1.35rem; margin-bottom: 12px; }
.person p { color: var(--ink-2); }
.person p + p { margin-top: 12px; }
.person .person-more { margin-top: 10px; }
.person .tel { display: inline-block; margin-top: 18px; font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); text-decoration: none; }
.person .tel:hover { color: var(--stamp); }
@media (max-width: 860px) { .start-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .steps li { grid-template-columns: 1fr; } }

/* Cennik: jedna tabela, nie trzy identyczne karty. */
.price-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.price-table th, .price-table td { text-align: left; vertical-align: top; padding: 16px 18px; border-top: 1px solid var(--rule); } /* taste-skill-ignore: prawdziwa tabela */
.price-table thead td { border-top: 0; }
.price-table thead th { border-top: 0; padding-bottom: 6px; font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; }
.price-table tbody th { font-weight: 500; color: var(--ink-2); width: 11rem; }
.price-table .amount { font-family: var(--f-display); font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 700; line-height: 1; color: var(--ink); white-space: nowrap; }
.price-table .amount small { display: block; font-family: var(--f-body); font-size: 0.875rem; font-weight: 400; color: var(--ink-3); margin-top: 6px; }
.price-table .hl { background: var(--stamp-tint); }
.price-table thead .hl { border-radius: 10px 10px 0 0; }
.price-table tbody tr:last-child .hl { border-radius: 0 0 10px 10px; }
.price-table .pick { font-family: var(--f-body); font-size: 1rem; color: var(--stamp); font-weight: 600; margin-left: 6px; }
.price-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 30px; }
.price-foot p { color: var(--ink-2); max-width: 70ch; }
.price-foot p + p { margin-top: 8px; }
@media (max-width: 760px) { .price-foot { grid-template-columns: 1fr; } }
/* Widok mobilny cennika: osobne bloki per pakiet (generowane w HTML), tabela
   chowa sie ponizej 760 px, bo 3 kolumny na 390 px sa nieczytelne. */
.plans-m { display: none; }
@media (max-width: 760px) {
  .price-table { display: none; }
  .plans-m { display: grid; gap: 0; }
  .plans-m section { padding: 18px 0; }
  .plans-m .hl { background: var(--stamp-tint); border-radius: 12px; padding: 20px 12px; margin: 4px -12px; }
  .plans-m h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1.4rem; }
  .plans-m h3 span { font-size: 1.9rem; }
  .plans-m .netto { font-size: 0.875rem; color: var(--ink-3); margin: 4px 0 10px; text-align: right; }
  .plans-m p { color: var(--ink-2); font-size: 0.96rem; }
}

/* ---------- FAQ na <details>: bez JS, wszystkie zwiniete ---------- */
.faq { max-width: 860px; }
.faq details { background: var(--paper-2); border-radius: 10px; padding: 0 20px; border: 1px solid transparent; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.faq details + details { margin-top: 8px; }
.faq details:hover { border-color: var(--rule); }
.faq details[open] { border-color: var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 16px 0; font-family: var(--f-display); font-weight: 600; font-size: 1.18rem; line-height: 1.3; border-radius: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary::after { content: "+"; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--stamp); font-size: 1.4rem; font-weight: 400; line-height: 1; color: var(--stamp); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; }
.faq .a { padding: 0 0 20px; color: var(--ink-2); max-width: 70ch; }
.faq .a p + p { margin-top: 10px; }
@media (max-width: 640px) {
  .faq details { padding: 0 14px; }
  .faq summary { font-size: 1.05rem; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .faq summary::after, .faq details { transition: none; } }

/* Kontakt. */
.contact { background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact-direct { margin-top: 28px; display: grid; gap: 6px; }
.contact-direct a { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); text-decoration: none; width: fit-content; }
.contact-direct a:hover { color: var(--stamp); }
.contact-alt { margin-top: 22px; color: var(--ink-2); font-size: 0.96rem; }
.form { background: oklch(0.99 0.004 85); border-radius: 14px; padding: clamp(22px, 3vw, 34px); }
.form h3 { margin-bottom: 18px; }
.cf-field { display: grid; gap: 6px; margin-bottom: 16px; }
.cf-field label { font-size: 0.9rem; font-weight: 600; }
.cf-field input, .cf-field select, .cf-field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid oklch(0.78 0.015 85); border-radius: 8px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.cf-field textarea { min-height: 96px; resize: vertical; }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--stamp); }
.cf-field input[aria-invalid="true"] { border-color: oklch(0.5 0.18 25); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 480px) { .cf-row { grid-template-columns: 1fr; } }
.cf-submit { font: inherit; font-weight: 600; font-size: 1.02rem; border: 0; cursor: pointer; width: 100%; min-height: 50px; border-radius: 8px; background: var(--stamp); color: var(--on-stamp); }
.cf-submit:hover { background: var(--stamp-hover); }
.cf-submit:disabled { opacity: .6; cursor: wait; }
.cf-step2-note { font-size: 0.9rem; color: var(--ink-3); margin: 18px 0 14px; }
.cf-error { color: oklch(0.45 0.17 25); font-weight: 500; margin-top: 12px; }
.cf-note { font-size: 0.875rem; color: var(--ink-3); margin-top: 14px; line-height: 1.5; }
.cf-success { display: none; text-align: center; padding: 28px 8px; }
.cf-success-icon { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-tint); color: var(--ok); font-size: 1.6rem; font-weight: 700; }
.cf-success h4 { font-family: var(--f-display); font-size: 1.4rem; margin: 0 0 6px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Stopka. */
.foot { padding: 56px 0 40px; color: var(--ink-2); font-size: 0.9rem; background: var(--paper-2); }
.foot a { color: var(--ink-2); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 40px; margin-bottom: 44px; }
.foot .foot-h { font-family: inherit; font-size: 0.84rem; font-weight: 600; line-height: 1.3; color: var(--ink-3, var(--ink-2)); margin: 0 0 12px; padding: 0; letter-spacing: 0; text-transform: none; }
.foot .foot-col ul { display: grid; list-style: none; gap: 9px; margin: 0; padding: 0; list-style: none; }
.foot-col a { text-decoration: none; line-height: 1.4; }
.foot-col a:hover { text-decoration: underline; color: var(--ink); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: baseline; padding-top: 8px; }
.foot-top p { margin: 0; max-width: 75ch; }
.foot-note { margin-top: 18px; font-size: 0.8125rem; line-height: 1.55; max-width: 80ch; }
@media (max-width: 900px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot-cols { grid-template-columns: 1fr; gap: 28px; } }

/* Pojawianie przy przewijaniu: tylko gdy JS dziala i ruch nie jest wylaczony. */
@media (prefers-reduced-motion: no-preference) {
  .js .rev { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .rev.in { opacity: 1; transform: none; }
}

/* ======================================================================
   Ruch 2026-10 (inspiracja: odslanianie, szyna postepu, paralaksa).
   Zasady: tylko transform/opacity (zero CLS), stan koncowy = stan bez JS
   i przy prefers-reduced-motion. .js dodaje inline w <head>, .motion
   dodaje /js/motion.js.
   ====================================================================== */

/* Ziarno papieru: statyczna nakladka z feTurbulence, bez ruchu. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .24 0 0 0 0 .2 0 0 0 0 .3 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") repeat;
}
@media print { body::after { display: none; } }

/* Pasek czytania pod naglowkiem: CSS scroll-driven, bez JS. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .nav::after {
      content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px;
      background: var(--stamp); transform-origin: 0 50%; transform: scaleX(0);
      animation: em-readbar linear both; animation-timeline: scroll(root);
    }
  }
}
@keyframes em-readbar { to { transform: scaleX(1); } }
/* Bez animation-timeline (Safari, Firefox): pasek prowadzi motion.js przez --read. */
@supports not (animation-timeline: scroll()) {
  .motion .nav::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px;
    background: var(--stamp); transform-origin: 0 50%; transform: scaleX(var(--read, 0));
  }
}

/* Jedna sciezka: lacznik miedzy krokami w kolorze pieczatki, rysowany
   po kolei przy wejsciu w widok; kroki wchodza kaskadowo. */
.path-list li::after { background: var(--stamp); height: 2px; top: 16px; }
@media (max-width: 900px) { .path-list li::after { top: 32px; left: 13px; width: 2px; height: auto; } }
@media (prefers-reduced-motion: no-preference) {
  /* Kaskada i rysowanie startuja dopiero, gdy lista jest w ~2/3 ekranu
     (.drawn z motion.js), a nie na samej krawedzi okna (.in z inline). */
  .motion .path-list.rev, .motion .steps.rev { opacity: 1; transform: none; }
  .motion .path-list > li, .motion .steps > li { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
  .motion .drawn > li { opacity: 1; transform: none; }
  .motion .drawn > li:nth-child(2) { transition-delay: .25s; }
  .motion .drawn > li:nth-child(3) { transition-delay: .5s; }
  .motion .drawn > li:nth-child(4) { transition-delay: .75s; }
  .motion .drawn > li:nth-child(5) { transition-delay: 1s; }
  .motion .path-list li::after { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1); }
  .motion .path-list.drawn li::after { transform: none; }
  .motion .path-list.drawn li:nth-child(1)::after { transition-delay: .45s; }
  .motion .path-list.drawn li:nth-child(2)::after { transition-delay: .95s; }
  .motion .path-list.drawn li:nth-child(3)::after { transition-delay: 1.45s; }
  @media (max-width: 900px) {
    .motion .path-list li::after { transform: scaleY(0); transform-origin: 50% 0; }
  }
}

/* Wdrozenie: szyna postepu z punktami. Bez JS pelna, z .motion
   wypelnia sie w rytmie przewijania (--p z motion.js). */
.steps { position: relative; padding-left: 30px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 6px; top: 20px; bottom: 20px; width: 2px; border-radius: 2px; }
.steps::before { background: var(--rule); }
.steps::after { background: var(--stamp); transform-origin: 50% 0; transform: scaleY(var(--p, 1)); }
.steps li { position: relative; }
.steps li::before {
  content: ""; position: absolute; left: -29px; top: 27px; width: 14px; height: 14px; box-sizing: border-box;
  border-radius: 50%; border: 2px solid var(--stamp); background: var(--stamp);
  outline: 4px solid var(--paper); transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.motion .steps li:not(.on)::before { background: var(--paper); border-color: var(--rule); transform: scale(.8); }
.motion .steps li:not(.on) .when { color: var(--ink-3); }
.steps .when { transition: color .35s var(--ease); }

/* Wsparcie przypiete obok krokow na szerokim ekranie (jak telefon obok krokow). */
@media (min-width: 861px) { .person { position: sticky; top: 96px; } }

/* Karta orzeczenia: transform ustawia motion.js; tu tylko wskazowka dla GPU. */

/* Cennik: krok tonu zamiast linii. Pole-pulapka i podpis tabeli poza ekranem. */
.pricing { background: var(--paper-2); }
.hp, .skip-cap { position: absolute; left: -9999px; width: 2px; height: 2px; overflow: hidden; }
