/* apkarze.pl — jeden arkusz. Ciemny motyw (płótno #0c0e13) i jasny z prefers-color-scheme, mięta z logo + kolory usług (tokeny w :root, .tone ustawia --c). Animacje tylko w CSS; prefers-reduced-motion je wyłącza. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-latin.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-latin-ext.woff2") format("woff2");
  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;
}

:root {
  /* Płótno: granatowa czerń, żeby kolory usług miały na czym świecić. */
  --bg: #0c0e13;
  --surface: #12151c;
  --field: #191d26;
  --pressed: #212633;
  --line: #222734;
  --line-2: #313849;
  --text: #f1f3f7;
  --muted: #a2a9b8;
  /* Paleta marki: mięta z logo + trzy kolory usług. Wszystkie mają kontrast ≥ 9:1 na --bg. */
  --mint: #b8fada;
  --sky: #8fd0ff;
  --violet: #c4b5ff;
  --amber: #ffd08a;
  --pink: #ffb3cf;
  --grad: linear-gradient(100deg, var(--mint), var(--sky) 40%, var(--violet) 75%, var(--pink));
  --accent: var(--mint);
  /* Przyciski i plakietki: zawsze pastelowe kolory logo z ciemnym tekstem (w obu motywach). */
  --btn-a: #b8fada; --btn-b: #8fd0ff; --btn-c: #c4b5ff;
  --prose: #d0d4dc;
  --grid-line: rgb(255 255 255 / .045);
  --illus-bg: #0f1218; --illus-panel: #151922; --illus-soft: rgb(255 255 255 / .12); --illus-ink: #0c0e13; --illus-screen: #07090c;
  --on-accent: #0c0e13;
  /* Siatka odstępów 8 px. */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px;
  --radius: 12px;
  --radius-lg: 20px;
  --wrap: 1160px;
  color-scheme: dark;
}

/* Jasny motyw: włącza się, gdy system odwiedzającego ma jasny tryb. Miękkie, lekko szare tło zamiast bieli,
   ciemniejsze odcienie kolorów usług (kontrast tekstu ≥ 4.5:1 na --bg), pastelowe przyciski jak w ciemnym. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --field: #eef1f5;
    --pressed: #e3e8ef;
    --line: #e1e5ec;
    --line-2: #c9d1dc;
    --text: #151a23;
    --muted: #586172;
    --mint: #0d7f59;
    --sky: #1b67ad;
    --violet: #6247cc;
    --amber: #9a5a00;
    --pink: #b8396a;
    --prose: #2b323e;
    --grid-line: rgb(15 23 42 / .055);
    --illus-bg: #f0f3f7; --illus-panel: #ffffff; --illus-soft: rgb(21 26 35 / .12); --illus-ink: #ffffff; --illus-screen: #eef4f1;
    color-scheme: light;
  }
  .skip { color: #fff; }
  .card--link.tone:hover, .sol:hover { box-shadow: 0 24px 50px -30px rgb(15 23 42 / .35); }
  .sol__tag { text-shadow: none; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Inter", sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.muted { color: var(--muted); }
.big { font-size: 1.1rem; }
.big + .big { margin-top: 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: var(--radius); }
.skip:focus { left: 16px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.eyebrow { color: var(--accent); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }

/* --- przyciski --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent); border-radius: var(--radius);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: #c4f5cf; border-color: #c4f5cf; }
.btn:active { transform: scale(0.98); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--field); border-color: var(--line-2); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
.btn--big { min-height: 60px; padding: 0 28px; font-size: clamp(1rem, 2.6vw, 1.2rem); }

/* --- nagłówek --- */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand svg { flex: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { white-space: nowrap; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: 0.95rem; transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--text); background: var(--field); }

.top__phone { text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.top__phone:hover { color: var(--accent); }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; border-radius: var(--radius); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 20px; height: 1.5px; background: var(--text); transition: transform .2s; }
.menu[open] summary span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu[open] summary span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu__panel { position: absolute; left: 0; right: 0; top: 68px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: grid; }
.menu__panel a { padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.05rem; }
.menu__panel a:last-child { border-bottom: 0; color: var(--accent); }

/* --- hero --- */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 96px); border-bottom: 1px solid var(--line); }
.hero--page { padding-bottom: clamp(40px, 6vw, 72px); }
.hero__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: end; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); margin-top: 22px; max-width: 40em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hero__list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.hero__list strong { font-weight: 600; }
.hero__list span { color: var(--muted); font-size: 0.95rem; }

.crumbs { display: flex; gap: 8px; color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* --- sekcje --- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 40px; }
.section h2 + .checks, .section h2 + .big { margin-top: 24px; }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none;
}
.section--alt .card { background: var(--bg); }
.card--link { transition: border-color .15s, background-color .15s; }
.card--link:hover { border-color: var(--line-2); background: var(--field); }
.card__num { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.card__more { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 500; font-size: 0.95rem; }
.card--link:hover .card__more span { transform: translateX(3px); }
.card__more span { display: inline-block; transition: transform .15s; }

.tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.85rem; color: var(--muted); }
.tags--big { margin-top: 28px; }
.tags--big li { font-size: 0.95rem; padding: 6px 14px; }

/* --- BUSearch --- */
.feature { display: grid; grid-template-columns: 1fr 300px; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature__text h2, .feature__text h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.feature__text > .muted { margin-top: 18px; font-size: 1.05rem; }
.feature__text .btn { margin-top: 28px; }
.feature__shot { margin: 0; justify-self: center; }
.feature__shot img { border-radius: 28px; border: 1px solid var(--line-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.stats dt { font-size: 1.8rem; font-weight: 600; letter-spacing: -0.03em; }
.stats dt span { display: block; font-size: 0.85rem; font-weight: 500; letter-spacing: 0; color: var(--accent); }
.stats dd { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
.work { margin-top: 56px; }

/* --- proces --- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { padding-top: 20px; border-top: 1px solid var(--line-2); display: grid; gap: 10px; align-content: start; }
.steps__num { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }

.stack h3 { font-size: 1rem; margin-bottom: 12px; }

/* --- lista z ptaszkami --- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checks li { position: relative; padding: 16px 0 16px 36px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 1.05rem; }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 23px; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* --- FAQ --- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 500; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 30px; width: 9px; height: 9px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq details p { padding: 0 40px 24px 0; }

/* --- kontakt --- */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(32px, 5vw, 56px); border: 1px solid var(--line-2); border-radius: var(--radius-lg); }
.cta h2 { max-width: 16em; }
.cta .muted { margin-top: 14px; max-width: 34em; }
.cta__actions { display: grid; gap: 10px; justify-items: stretch; }
.cta__actions .btn { justify-content: center; }

/* --- stopka --- */
.foot { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 0.95rem; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.foot__grid > div > .muted { margin-top: 14px; }
.foot h2 { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; }
.foot nav a, .foot__grid > div > a:not(.brand) { display: block; padding: 4px 0; text-decoration: none; }
.foot nav a:hover, .foot__grid > div > a:not(.brand):hover { color: var(--accent); }
.foot__bottom { display: grid; gap: 6px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.88rem; }

/* --- blog --- */
.section__head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.post__title { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.post__meta { margin-top: 18px; font-size: 0.95rem; }

.toc { margin-bottom: 48px; padding: 24px 28px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); }
.toc h2 { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--accent); }

.prose { font-size: 1.08rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.4em; font-size: clamp(1.4rem, 2.6vw, 1.75rem); scroll-margin-top: 88px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; font-size: 1.15rem; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose p, .prose li { color: var(--prose); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.55em; }
.prose li::marker { color: var(--accent); }
.prose code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--field); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.note { padding: 18px 22px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; color: var(--prose); }

.post__cta { margin-top: 64px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line-2); border-radius: var(--radius-lg); }
.post__cta h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.post__cta .muted { margin-top: 12px; }
.post__cta .actions { margin-top: 24px; }

/* --- kolory ------------------------------------------------------------------------------ */
/* data-c ustawia --c (kolor usługi); .tone i wszystko w środku bierze z niego akcent. */
[data-c="mint"] { --c: var(--mint); }
[data-c="sky"] { --c: var(--sky); }
[data-c="violet"] { --c: var(--violet); }
[data-c="amber"] { --c: var(--amber); }
[data-c="pink"] { --c: var(--pink); }
.tone { --c-soft: color-mix(in srgb, var(--c) 14%, transparent); --c-line: color-mix(in srgb, var(--c) 35%, transparent); }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn:not(.btn--ghost) { background: linear-gradient(100deg, var(--btn-a), var(--btn-b)); border-color: transparent; color: #0c0e13; }
.btn:not(.btn--ghost):hover { background: linear-gradient(100deg, var(--btn-b), var(--btn-c)); border-color: transparent; }

.icon {
  display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px;
  color: var(--c, var(--mint)); background: var(--c-soft); border: 1px solid var(--c-line);
}
.card__top { display: flex; align-items: center; justify-content: space-between; }
.card.tone { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 9%, var(--surface)), var(--surface) 55%); }
.section--alt .card.tone { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 9%, var(--bg)), var(--bg) 55%); }
.card.tone .card__num { color: var(--c); }
.card.tone .card__more { color: var(--c); }
/* Pełny zakres usługi na karcie: lista z ptaszkami w kolorze usługi, dwie kolumny. */
.offer { list-style: none; margin: 6px 0 4px; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 9px 20px; font-size: 0.93rem; }
.offer li { position: relative; padding-left: 22px; line-height: 1.4; color: color-mix(in srgb, var(--c, var(--mint)) 30%, var(--text)); }
.offer li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 5px; border-left: 2px solid var(--c, var(--mint)); border-bottom: 2px solid var(--c, var(--mint)); transform: rotate(-45deg); }
.grid--3 .offer { grid-template-columns: 1fr; }
@media (max-width: 560px) { .offer { grid-template-columns: 1fr; } }
.card.tone .tags li { border-color: var(--c-line); color: color-mix(in srgb, var(--c) 65%, var(--text)); }
.card--link.tone:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--c) 60%, transparent); }
.chip { display: inline-block; margin-right: 6px; padding: 2px 10px; border-radius: 999px; background: var(--c-soft); color: var(--c); font-weight: 500; }
.card.tone .card__num:has(.chip) { color: var(--muted); }

.pill.tone::before { background: var(--c); box-shadow: 0 0 10px var(--c); }
.pill.tone:hover { border-color: var(--c); background: var(--c-soft); }

.steps li.tone { border-top: 2px solid var(--c-line); }
.steps li.tone .steps__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-soft); color: var(--c); }
.stack.tone { padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 8%, var(--bg)), var(--bg) 60%); }
.stack.tone h3 { color: var(--c); }

.stats dt { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dt span { -webkit-text-fill-color: var(--accent); }

.tone .eyebrow, .tone .eyebrow a { color: var(--c); }
.eyebrow--icon { display: flex; align-items: center; gap: 14px; }
.tone .checks li::before { border-color: var(--c); }
.tone .tags--big li { border-color: var(--c-line); color: color-mix(in srgb, var(--c) 70%, var(--text)); }
article.tone .prose a, article.tone .toc a:hover { color: var(--c); }
article.tone .prose li::marker { color: var(--c); }
article.tone .note { border-left-color: var(--c); background: color-mix(in srgb, var(--c) 7%, var(--surface)); }
article.tone .toc { border-color: var(--c-line); background: color-mix(in srgb, var(--c) 5%, transparent); }
article.tone .post__cta { border-color: var(--c-line); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 10%, var(--bg)), var(--bg) 60%); }

.cta {
  position: relative; overflow: hidden; border: 1px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 120% at 0% 0%, color-mix(in srgb, var(--mint) 12%, transparent), transparent 70%),
              radial-gradient(50% 120% at 100% 100%, color-mix(in srgb, var(--violet) 14%, transparent), transparent 70%);
}
.cta > * { position: relative; }

.foot { border-top: 0; background: var(--grad) top / 100% 1px no-repeat; }

/* --- animacje ---------------------------------------------------------------------------- */
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } }
@keyframes drift { to { transform: translate3d(3%, 4%, 0) rotate(4deg) scale(1.06); } }
@keyframes slide { to { transform: translateX(-50%); } }

/* Wejście nagłówka strony: kolejne elementy pojawiają się po sobie. */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero { --b1: var(--mint); --b2: var(--sky); --b3: var(--violet); }
.hero.tone, .tone > .hero { --b1: var(--c); --b2: var(--c); --b3: var(--sky); }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -20% -10%; pointer-events: none;
  background:
    radial-gradient(420px 320px at 18% 30%, color-mix(in srgb, var(--b1) 22%, transparent), transparent 70%),
    radial-gradient(400px 300px at 82% 18%, color-mix(in srgb, var(--b2) 20%, transparent), transparent 70%),
    radial-gradient(460px 340px at 62% 82%, color-mix(in srgb, var(--b3) 16%, transparent), transparent 70%);
  filter: blur(20px);
  animation: drift 20s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
}
.hero .eyebrow, .hero h1, .hero .lead, .hero .actions, .hero__list li, .hero .tags, .hero .post__meta, .hero .crumbs, .hero .marquee {
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) both;
}
.hero .crumbs { animation-delay: 0s; }
.hero .eyebrow { animation-delay: .05s; }
.hero h1 { animation-delay: .12s; }
.hero .post__meta { animation-delay: .2s; }
.hero .lead { animation-delay: .24s; }
.hero .actions, .hero .tags { animation-delay: .36s; }
.hero__list li:nth-child(1) { animation-delay: .3s; }
.hero__list li:nth-child(2) { animation-delay: .4s; }
.hero__list li:nth-child(3) { animation-delay: .5s; }
.hero .marquee { animation-delay: .55s; }

/* Pojawianie się przy przewijaniu — tam, gdzie przeglądarka obsługuje scroll-driven animations. */
@supports (animation-timeline: view()) {
  .section__head, .card, .steps li, .stack, .feature, .faq, .cta, .toc, .post__cta, .prose > h2 {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

/* Przesuwające się rzędy (zrzuty realizacji, zakres usług). Najechanie zatrzymuje ruch. */
.marquee {
  /* Przycinamy tylko na boki; w pionie nic nie może zostać ucięte (obramowanie pigułek, poświata kropek). */
  overflow: hidden;
  overflow-x: clip;
  overflow-y: visible;
  min-width: 0; /* bez tego element siatki rośnie do szerokości całej listy, a zanikanie ucieka poza ekran */
  /* Szerokie zanikanie przy brzegach: pigułki i zrzuty znikają łagodnie, zamiast urywać się na krawędzi ekranu. */
  --fade: clamp(90px, 18vw, 320px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
.marquee__track { display: flex; width: max-content; padding-block: 8px; animation: slide 40s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 46s; }
.marquee ul { list-style: none; margin: 0; padding: 0 0 0 14px; display: flex; gap: 14px; }

.marquee--shots { margin-top: clamp(48px, 7vw, 80px); }
.marquee--shots .marquee__track { animation-duration: 36s; }
.showcase { display: grid; gap: 12px; width: clamp(260px, 32vw, 420px); text-decoration: none; }
.showcase__name { color: var(--muted); font-size: 0.92rem; transition: color .2s; }
.showcase:hover .showcase__name { color: var(--accent); }

/* Zrzut strony w ramce okna przeglądarki. */
.shot {
  position: relative; display: block; padding-top: 22px; overflow: hidden;
  background: var(--field); border: 1px solid var(--line-2); border-radius: 14px;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .2s, box-shadow .35s;
}
.shot::before {
  content: ""; position: absolute; top: 8px; left: 10px; width: 6px; height: 6px; border-radius: 50%;
  background: #555; box-shadow: 10px 0 #555, 20px 0 #555;
}
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.showcase:hover .shot, .card--shot:hover .shot { transform: translateY(-4px); border-color: color-mix(in srgb, var(--mint) 50%, transparent); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--mint) 25%, transparent); }
.showcase:hover .shot img, .card--shot:hover .shot img { transform: scale(1.03); }
.card--shot .shot { margin-bottom: 8px; }

.ticker { padding: 36px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.ticker .marquee ul { gap: 18px; padding-left: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px;
  text-decoration: none; color: var(--muted); font-size: 0.98rem;
  transition: color .2s, border-color .2s, background-color .2s;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pill:hover { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--mint) 7%, transparent); }

/* Karty i przyciski: lekkie uniesienie zamiast samej zmiany koloru. */
.card--link { transition: border-color .2s, background-color .2s, transform .3s cubic-bezier(.2, .7, .2, 1); }
.card--link:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--mint) 35%, transparent); }
.btn { transition: background-color .15s, border-color .15s, color .15s, transform .2s, box-shadow .25s; }
.btn:not(.btn--ghost):hover { box-shadow: 0 8px 28px -10px color-mix(in srgb, var(--btn-b) 60%, transparent); transform: translateY(-1px); }

/* --- karty „Czym się zajmujemy”: ilustracja albo zrzut, etykieta w rogu, przycisk na dole -------- */
.sols { gap: 18px; }
.sol { padding: 0; gap: 0; overflow: hidden; transition: border-color .2s, transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.sol:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--c) 55%, transparent); }
.sol__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--illus-bg); }
.sol__media img, .sol__media .illus { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.sol:hover .sol__media img, .sol:hover .sol__media .illus { transform: scale(1.04); }
.sol__media::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; pointer-events: none; background: linear-gradient(transparent, color-mix(in srgb, var(--surface) 85%, transparent)); }
.sol__tag {
  position: absolute; top: 12px; right: 12px; z-index: 1; padding: 3px 10px; border-radius: 10px;
  font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; color: var(--c);
  background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--c-line);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-shadow: 0 0 18px color-mix(in srgb, var(--c) 50%, transparent);
}
.sol__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 20px 20px; }
.sol__body .card__price { align-self: flex-start; font-size: .85rem; }
.sol h3 { font-size: 1.12rem; }
.sol h3 a { text-decoration: none; }
.sol h3 a:hover { color: var(--c); }
.sol .muted { font-size: .94rem; }
.sol .offer { grid-template-columns: 1fr; gap: 6px; margin-top: 2px; font-size: .88rem; }
.sol .sol__cta { margin-top: auto; width: 100%; justify-content: center; min-height: 44px; font-size: .95rem;
  background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid var(--c-line); color: var(--text); }
.sol .sol__cta:hover { background: var(--c); border-color: var(--c); color: var(--bg); box-shadow: none; }
/* Ilustracje SVG: kolor usługi przez currentColor, reszta z tokenów motywu. */
.illus { color: var(--c); background: radial-gradient(70% 60% at 70% 30%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%), var(--illus-bg); }
.illus .i-panel { fill: var(--illus-panel); stroke: currentColor; stroke-opacity: .35; stroke-width: 2; }
.illus .i-strong { stroke-opacity: .85; }
.illus .i-line { fill: none; stroke: currentColor; stroke-opacity: .25; stroke-width: 2; }
.illus .i-soft, .illus .i-soft-fill { fill: var(--illus-soft); }
.illus .i-ink { stroke: var(--illus-ink); }
.illus .i-ink-fill { fill: var(--illus-ink); }
.illus .i-screen { fill: var(--illus-screen); }
.illus .i-text { fill: var(--text); }

/* --- cennik, ceny, opinie, kto to robi --------------------------------------------------- */
.section__lead { margin-top: 14px; max-width: 40em; }
.foot__bottom a { color: inherit; }
.foot__bottom a:hover { color: var(--accent); }
.section__title { margin-bottom: 32px; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.card__price { font-weight: 600; font-size: 0.95rem; color: var(--c, var(--mint)); padding: 4px 12px; border-radius: 999px; background: var(--c-soft); border: 1px solid var(--c-line); white-space: nowrap; }
.price { gap: 14px; }
.price h3 { margin-top: 4px; }
.price__value { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--c); }
.price__value span { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price .offer { grid-template-columns: 1fr; }
.price__cta { margin-top: auto; justify-content: center; }
.price-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.price-tag strong { color: var(--c, var(--mint)); font-weight: 600; }
.actions .price-tag { margin-left: 6px; }
.post__cta .price-tag { margin-top: 10px; }
.quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.6; }
.quote figcaption { display: grid; gap: 2px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.owner { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.owner > div:only-child { grid-column: 1 / -1; max-width: 760px; }
.owner__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; border: 1px solid var(--line-2); }
.owner__role { margin: 6px 0 18px; color: var(--mint); font-weight: 500; }
@media (max-width: 860px) { .owner { grid-template-columns: 1fr; } .owner__photo { width: min(240px, 60vw); } }

/* „Znasz to?”: obawa przekreślona, pod nią odpowiedź. */
.objection { gap: 14px; }
.objection__pain { position: relative; padding-left: 30px; font-weight: 600; font-size: 1.08rem; color: var(--text); }
.objection__pain::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, #ff6b6b 18%, transparent);
  -webkit-mask: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, #ff6b6b 45%, transparent); }
.objection__pain::after { content: ""; position: absolute; left: 6px; top: 12px; width: 8px; height: 2px; background: #ff8a8a; border-radius: 2px; }
.objection__answer { color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
#obawy .actions { margin-top: 32px; }

/* Wstawka z przyciskiem w połowie wpisu. */
.prose .inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 2.2em 0; padding: 18px 22px;
  border: 1px solid var(--c-line, var(--line-2)); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--c, var(--mint)) 8%, var(--surface)); }
.prose .inline-cta p { margin: 0; color: var(--text); }
.prose .inline-cta .btn { margin: 0; color: var(--on-accent); text-decoration: none; }

/* --- w stylu openbot.run: żywy znak, plakietka, okno projektu, ścieżka kroków ---------------- */
/* Znak: nawias kodu rozgląda się i „mruga”, po najechaniu szybciej. */
.mark-code { transform-box: fill-box; transform-origin: center; }
.brand .mark-code { animation: mark-alive 7s cubic-bezier(.77, 0, .175, 1) infinite; }
.brand:hover .mark-code { animation-duration: 2.2s; }
@keyframes mark-alive {
  0%, 22%, 56%, 100% { transform: none; }
  27%, 36% { transform: translateX(-14%); }
  41%, 50% { transform: translateX(14%); }
  62% { transform: scaleY(.12); }
  66% { transform: none; }
}

/* Menu w kapsule, nagłówek półprzezroczysty. */
.top { background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
.nav { padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.nav a { border-radius: 999px; padding: 7px 14px; }


/* „Jak pracujemy”: kropkowana ścieżka między krokami z wędrującym światłem. */
@media (min-width: 1001px) {
  .steps { position: relative; }
  .steps::before {
    content: ""; position: absolute; left: 44px; right: calc(25% - 16px); top: 41px; height: 3px;
    background: radial-gradient(circle, var(--line-2) 1.3px, transparent 1.8px) 0 50% / 14px 3px repeat-x;
  }
  .steps::after {
    content: ""; position: absolute; top: 37px; left: 44px; width: 90px; height: 11px; border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--mint) 90%, transparent), color-mix(in srgb, var(--sky) 35%, transparent) 55%, transparent);
    filter: blur(1px); animation: travel 6s cubic-bezier(.6, 0, .4, 1) infinite;
  }
  .steps li.tone .steps__num { position: relative; z-index: 1; background: color-mix(in srgb, var(--c) 16%, var(--bg)); }
}
@keyframes travel { 0% { left: 44px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(75% - 60px); opacity: 0; } }

/* --- szerokości --- */
@media (max-width: 1000px) {
  .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .nav, .top__cta { display: none; }
  .top__row { gap: 12px; }
  .menu { display: block; }
  .top__phone { margin-left: auto; }
  .top__phone + .top__cta + .menu { margin-left: 0; }
}
@media (max-width: 860px) {
  .cta__actions { width: 100%; }
  .hero__grid, .feature { grid-template-columns: 1fr; }
  .feature__shot { width: min(260px, 70vw); }
  .grid--2 { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid--4, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .btn--big { white-space: normal; word-break: break-all; }
  .actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .marquee { overflow-x: auto; }
  .marquee ul[aria-hidden] { display: none; }
}
