/* HeySystem AI: styl wspólny całej witryny i sekcje strony głównej (podstrony: podstrony.css). Styl wzorowany na układzie Rhive (wooof.design), kod i treść własne. */
/* Fonty z własnego serwera (bez połączeń z Google): Albert Sans i Gilda Display, licencja SIL Open Font License. */
@font-face { font-family: 'Albert Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/assets/fonty/albert-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Albert Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/assets/fonty/albert-sans-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: 'Gilda Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonty/gilda-display-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Gilda Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonty/gilda-display-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; }

:root {
  --bg: #f9fbfb;
  --bg-2: #f6f8f9;
  --card: #f2f6f7;
  --card-2: #e8edee;
  --line: #e3e9ea;
  --ink: #1b2223;
  --ink-2: #425357;
  --ink-3: #4f6469;
  --ink-4: #587074;
  --dark: #121617;
  --dark-2: #1b2223;
  --white: #ffffff;
  --serif: "Gilda Display", Georgia, "Times New Roman", serif;
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1000px;
  --r-xl: 44px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

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

/* typografia */
.serif { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -0.02em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -0.035em; margin: 0; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(40px, 4.6vw, 62px); line-height: 1.08; }
h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.14; }
.br-d { display: inline; }
@media (max-width: 809px) { .br-d { display: none; } }
h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
p { margin: 0; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-3); max-width: 600px; margin-inline: auto; }

/* przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: var(--r-sm);
  font-size: 16px; font-weight: 500; letter-spacing: 0; white-space: nowrap;
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #2a3536; }
.btn-soft { background: var(--card-2); color: var(--ink); }
.btn-soft:hover { background: #dde5e6; }
.btn-light { background: #e8eef0; color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }

/* etykieta sekcji */
.pill {
  display: inline-flex; align-items: center; padding: 12px 20px; border-radius: var(--r-sm);
  background: var(--card); color: var(--ink-3); font-size: 15px; line-height: 1;
}
.tag {
  display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 8px;
  background: var(--card); color: var(--ink-3); font-size: 14px; line-height: 1.2;
}

/* znak marki */
.mark { display: inline-grid; grid-template-columns: repeat(2, 5px); gap: 4px; }
.mark i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: block; }
.mark i:nth-child(1) { opacity: .45; }
.mark i:nth-child(4) { opacity: .45; }


:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: var(--r-sm); transition: top .2s; }
.skip:focus { top: 12px; }

/* nagłówek strony */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .3s ease;
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; transition: height .35s cubic-bezier(.2,.7,.2,1); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo-mark { width: 42px; height: 42px; flex: none; margin: -6px -4px -6px -5px; transition: width .35s cubic-bezier(.2,.7,.2,1), height .35s cubic-bezier(.2,.7,.2,1); }
.hs { width: 28px; height: 28px; flex: none; }
.logo-text { font-family: var(--serif); font-size: 28px; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; transition: font-size .35s cubic-bezier(.2,.7,.2,1); }
.logo-text em { font-style: italic; color: var(--ink-4); padding-right: 2px; }
/* menu po przewinięciu: niższy pasek, mniejsze logo i przycisk (klasę is-scrolled ustawia main.js) */
.nav .btn-sm { transition: min-height .35s cubic-bezier(.2,.7,.2,1), padding .35s cubic-bezier(.2,.7,.2,1), transform .25s ease, background-color .25s ease; }
.nav.is-scrolled .nav-in { height: 58px; }
.nav.is-scrolled .logo-mark { width: 34px; height: 34px; }
.nav.is-scrolled .logo-text { font-size: 23px; }
.nav.is-scrolled .btn-sm { min-height: 38px; padding: 0 16px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { font-size: 15px; color: var(--ink-3); padding: 10px 14px; border-radius: 10px; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current] { color: var(--ink); background: var(--card); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--card); align-items: center; justify-content: center; }
.nav-burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); }
.nav-burger span::before { top: -6px; } .nav-burger span::after { top: 6px; }
.nav-mobile { display: none; }

/* hero */
.hero { text-align: center; padding: 48px 0 0; }
.hero h1 { margin-inline: auto; }
.hero .lead { margin-top: 24px; max-width: 600px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* ciemna karta z „pryzmatem” (własna grafika CSS) */
.prism-card { position: relative; overflow: hidden; border-radius: var(--r-xl); background: #0c0f10; color: var(--white); isolation: isolate; }
.prism { position: absolute; inset: -20%; z-index: -1; filter: saturate(1.25); transition: filter .7s ease; }
.prism .p1, .prism .p3, .prism .p4 { opacity: .42; }
.prism .p2 { opacity: .5; }
.prism span { position: absolute; border-radius: 50%; mix-blend-mode: screen; filter: blur(40px); animation: drift 18s ease-in-out infinite alternate; }
.prism .p1 { width: 46%; height: 34%; left: 30%; top: 28%; background: radial-gradient(closest-side, rgba(255,214,170,.95), rgba(255,122,48,.55) 45%, transparent 75%); transform: rotate(-24deg); }
.prism .p2 { width: 38%; height: 26%; left: 48%; top: 18%; background: radial-gradient(closest-side, rgba(255,255,255,.9), rgba(120,170,255,.5) 50%, transparent 78%); animation-duration: 22s; }
.prism .p3 { width: 30%; height: 44%; left: 18%; top: 44%; background: radial-gradient(closest-side, rgba(255,90,40,.75), rgba(150,40,120,.4) 55%, transparent 80%); animation-duration: 26s; }
.prism .p4 { width: 28%; height: 22%; left: 62%; top: 52%; background: radial-gradient(closest-side, rgba(110,200,255,.7), rgba(80,60,200,.35) 55%, transparent 80%); animation-duration: 20s; }
.prism .p5 { width: 54%; height: 10%; left: 22%; top: 42%; background: linear-gradient(90deg, transparent, rgba(255,244,230,.95), transparent); transform: rotate(-28deg); filter: blur(5px); animation-duration: 16s; }
.prism .p6 { width: 50%; height: 40%; left: 34%; top: 22%; border-radius: 50%; background: radial-gradient(closest-side, transparent 80%, rgba(255,225,195,.95) 85%, rgba(255,120,60,.6) 88%, transparent 93%); transform: rotate(-32deg) scaleX(1.25); filter: blur(2.5px); animation-duration: 24s; }
.prism .p7 { width: 36%; height: 30%; left: 50%; top: 40%; border-radius: 50%; background: radial-gradient(closest-side, transparent 78%, rgba(150,200,255,.85) 84%, rgba(160,90,255,.5) 88%, transparent 93%); transform: rotate(18deg) scaleX(1.4); filter: blur(3px); animation-duration: 28s; }
.prism-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
@keyframes drift {
  0% { translate: 0 0; rotate: 0deg; }
  50% { translate: 4% -3%; rotate: 8deg; }
  100% { translate: -3% 4%; rotate: -6deg; }
}
.prism-alt .p1 { left: 52%; top: 8%; } .prism-alt .p3 { left: 64%; top: 30%; } .prism-alt .p2 { left: 10%; top: 60%; }
.prism-soft .prism { opacity: .65; }


/* tło ciemnej karty: grafika strumieni pyłu (assets/tla/, oryginały w ZASOBY/heysystem-ai/tla/) */
.card-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero-card, .quotes, .cta, .compare-us { background: #070b0d; }
.hero-card .card-bg { object-position: 50% 0; }
.quotes .card-bg { object-position: 100% 50%; }
.cta .card-bg { object-position: 0 0; }
.compare-us .card-bg { object-position: 70% 100%; }

/* hero: karta ze słowem marki i trzema krokami pracy */
.hero-card { margin-top: 48px; padding: 12px; text-align: left; }
.hero-card .prism { inset: -30% -10% 10%; }
.hero-word { display: grid; place-items: center; height: clamp(210px, 25vw, 300px); font-family: var(--serif); font-size: clamp(60px, 10vw, 124px); letter-spacing: -0.03em; line-height: 1; color: rgba(255,255,255,.97); text-shadow: 0 0 44px rgba(255,255,255,.18); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.flow li {
  padding: 22px 24px 24px; border-radius: 32px;
  background: rgba(12,15,16,.6); border: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.flow b { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; color: var(--white); }
.flow small { display: block; margin-top: 8px; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.66); }

/* pasek narzędzi i liczby */
.strip { padding: 72px 0 0; text-align: center; }
.strip-ttl { color: var(--ink-4); font-size: 15px; }
.marquee { margin-top: 24px; overflow: hidden; border-radius: var(--r-sm); -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 44s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 24px; color: #7d9093; letter-spacing: -0.02em; white-space: nowrap; }
.marquee-track img { width: 24px; height: 24px; opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }
.stats { margin-top: 72px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--card); padding: 32px 20px 30px; }
.stat-num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.stat p { margin: 12px auto 0; max-width: 220px; color: var(--ink-3); font-size: 14px; line-height: 1.45; }

/* sekcje */
.section { padding: 128px 0 0; }
.section-head { text-align: center; }
.section-head h2 { margin-top: 20px; }
.section-head .lead { margin-top: 20px; max-width: 600px; font-size: 17px; }
.section-body { margin-top: 56px; }

/* dla kogo */
.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.who-card { position: relative; overflow: hidden; isolation: isolate; background: var(--card); border-radius: var(--r-lg); padding: 22px 22px 26px; }
.who-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: #0c0f10; opacity: 0; transition: opacity .7s ease; }
.who-card .prism { inset: -35% -25% -10% -5%; opacity: 0; transition: opacity .9s ease, transform 1.4s cubic-bezier(.2,.7,.2,1); transform: scale(1.15); }
.who-card .prism span { animation-play-state: paused; }
.who-card:nth-child(2) .prism, .who-card:nth-child(7) .prism { filter: hue-rotate(200deg) saturate(1.2); }
.who-card:nth-child(3) .prism, .who-card:nth-child(8) .prism { filter: hue-rotate(75deg) saturate(1.1); }
.who-card:nth-child(4) .prism, .who-card:nth-child(5) .prism { filter: hue-rotate(290deg) saturate(1.2); }
.who-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--white); color: var(--ink); display: grid; place-items: center; transition: background-color .7s ease, color .7s ease; }
.who-ic svg { width: 22px; height: 22px; }
.who-card h3 { margin-top: 36px; font-size: 24px; transition: color .7s ease; }
.who-card p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-3); transition: color .7s ease; }
@media (hover: hover) {
  .who-card:hover::before { opacity: 1; }
  .who-card:hover .prism { opacity: .85; transform: none; }
  .who-card:hover .prism span { animation-play-state: running; }
  .who-card:hover h3 { color: var(--white); }
  .who-card:hover p { color: rgba(255,255,255,.78); }
  .who-card:hover .who-ic { background: rgba(255,255,255,.12); color: var(--white); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}

/* system: lista po lewej, grafika i opis po prawej, samo przechodzi między częściami */
.sys { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: repeat(4, auto) 1fr; column-gap: 64px; padding-inline: 60px; }
.sys-item { display: contents; }
.sys-tab { grid-column: 1; position: relative; display: flex; align-items: baseline; gap: 20px; width: 100%; text-align: left; padding: 22px 0 24px; color: var(--ink); }
.sys-tab .num, .sys-tab .ttl { opacity: .4; transition: opacity .35s; }
.sys-tab[aria-expanded="true"] .num, .sys-tab[aria-expanded="true"] .ttl, .sys-tab:hover .num, .sys-tab:hover .ttl { opacity: 1; }
.sys-tab .num { font-family: var(--serif); font-size: 19px; color: var(--ink-4); }
.sys-tab .ttl { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; letter-spacing: -0.02em; }
.sys-tab .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); overflow: hidden; }
.sys-tab .bar::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.sys.is-playing .sys-tab[aria-expanded="true"] .bar::after { animation: bar 6.5s linear forwards; }
.sys.is-playing:hover .sys-tab .bar::after, .sys.is-playing:focus-within .sys-tab .bar::after { animation-play-state: paused; }
@keyframes bar { to { transform: scaleX(1); } }
.sys-pane { grid-column: 2; grid-row: 1 / span 5; align-self: start; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s .2s; }
.sys-pane.is-active { opacity: 1; visibility: visible; transition: opacity .5s ease .2s; }
.sys-pane .prism-card { height: 220px; border-radius: var(--r-lg); }
.sys-pane p { margin-top: 26px; font-size: 16px; line-height: 1.6; color: var(--ink-3); }
.sys-pane .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
/* realizacje (case studies) */
.case { background: var(--card); border-radius: var(--r-lg); display: flex; flex-direction: column; }
.case-media { position: relative; height: 280px; border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center; isolation: isolate; background: #0c0f10; }
.case-media .prism { inset: -25%; opacity: .8; filter: blur(0px) saturate(1.25); transition: transform 1.4s cubic-bezier(.2,.7,.2,1), filter 1.4s ease; }
.case-logo { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.case:hover .case-logo { transform: scale(.9); }
.case-logo { filter: brightness(0) invert(1) drop-shadow(0 2px 18px rgba(0,0,0,.55)); }
.case-nd .prism { filter: hue-rotate(68deg) blur(0px) saturate(1.05); }
.case:hover .case-media .prism { filter: blur(22px) saturate(1.4); transform: scale(1.3); }
.case:hover .case-nd .prism { filter: hue-rotate(68deg) blur(22px) saturate(1.2); }
.case-media::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }
.case-tag { position: absolute; top: 14px; right: 14px; padding: 8px 14px; border-radius: 12px; background: rgba(18,22,23,.82); color: var(--white); font-size: 15px; line-height: 1.2; }
.case-logo-nd { width: 220px; height: auto; }
.case-logo-gk { width: 250px; height: auto; }
.case-body { padding: 26px 28px 24px; display: flex; flex-direction: column; gap: 32px; flex: 1; }
.case-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: var(--ink); }
.case-foot svg { transition: transform .3s ease; }
.case-foot:hover svg { transform: translateX(4px); }
.case-body p { font-size: 15px; color: var(--ink-3); line-height: 1.6; }
@media (max-width: 809px) {
  .case-media { height: 200px; }
  .case-logo-nd { width: 180px; }
  .case-logo-gk { width: 200px; }
  .case-body { padding: 24px 20px; }
}


/* wdrożenie: lista kroków w jednej karcie */
.steps { list-style: none; max-width: 680px; margin-inline: auto; padding: 0; display: grid; gap: 6px; }
.step { display: grid; grid-template-columns: 52px 1fr 32px; gap: 24px; align-items: center; padding: 30px 36px; background: var(--card); border-radius: var(--r-lg); }
.step .num { font-family: var(--serif); font-size: 22px; color: var(--ink-4); }
.step-ttl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.step-ttl h3 { font-size: 30px; }
.step-ttl .tag { background: var(--white); }
.step p { margin-top: 10px; font-size: 15px; color: var(--ink-3); line-height: 1.55; }
.step .mark { color: var(--ink); justify-self: end; }

/* suwak z cytatami na ciemnym tle */
.quotes { padding: 64px 72px 36px; }
.quotes .prism { opacity: .72; inset: -20% -30% -20% 20%; }
.quotes-track { display: grid; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(14px); filter: blur(8px); transition: opacity .55s ease, transform .55s ease, filter .55s ease, visibility 0s .55s; }
.quote.is-active { opacity: 1; visibility: visible; transform: none; filter: none; transition: opacity 1s cubic-bezier(.2,.7,.2,1) .35s, transform 1s cubic-bezier(.2,.7,.2,1) .35s, filter 1s cubic-bezier(.2,.7,.2,1) .35s; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); line-height: 1.22; letter-spacing: -0.02em; color: var(--white); max-width: 780px; }
.quote figcaption { margin-top: 32px; display: flex; gap: 14px; align-items: center; color: var(--white); }
.quote-photo { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.quote-photo img { width: 100%; height: 100%; object-fit: cover; }
.quote figcaption b { display: block; font-weight: 400; font-size: 16px; }
.quote figcaption small { display: block; font-size: 14px; color: rgba(255,255,255,.6); }
.quotes-bar { margin-top: 28px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.quotes-dots { grid-column: 2; display: flex; gap: 4px; }
.quotes-dots button { width: 24px; height: 24px; display: grid; place-items: center; }
.quotes-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.4); transition: width .4s ease, background-color .4s ease; }
.quotes-dots button[aria-current="true"]::before { width: 18px; background: var(--white); }
.quotes-nav { grid-column: 3; justify-self: end; display: flex; gap: 6px; margin-right: -36px; }
.quotes-nav button { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--white); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background-color .25s ease; }
.quotes-nav button:hover { background: rgba(255,255,255,.18); }

/* porównanie */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.compare-col { border-radius: var(--r-xl); padding: 40px 32px 32px; }
.compare-col h3 { font-size: 34px; display: flex; align-items: center; gap: 14px; }
.compare-col h3 .hs { width: 38px; height: 38px; margin: -4px -6px -4px -4px; }
.compare-col ul { list-style: none; margin: 28px 0 0; padding: 24px; border-radius: var(--r-lg); display: grid; gap: 22px; }
.compare-col li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 16px; line-height: 1.55; }
.compare-col li svg { margin-top: 3px; }
.compare-them { background: var(--card); }
.compare-them ul { background: #ecf1f2; color: var(--ink-3); }
.compare-us { color: var(--white); }
.compare-us h3 { color: var(--white); }
.compare-us ul { background: rgba(0,0,0,.42); backdrop-filter: blur(7px); color: rgba(255,255,255,.9); }


/* FAQ */
.faq { display: grid; gap: 6px; max-width: 800px; margin-inline: auto; }
.faq details { background: var(--card); border-radius: var(--r-md); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-size: 17px; font-weight: 500; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .mark { flex: none; transition: transform .3s ease; color: var(--ink-4); }
.faq details[open] summary .mark { transform: rotate(45deg); color: var(--ink); }
.js .faq details[open]:not(.is-open) summary .mark { transform: none; color: var(--ink-4); }
.faq .ans-wrap { display: grid; grid-template-rows: 1fr; }
.js .faq .ans-wrap { grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2,.7,.2,1); }
.js .faq details.is-open .ans-wrap { grid-template-rows: 1fr; }
.faq .ans-in { overflow: hidden; min-height: 0; }
.faq .ans { padding: 0 22px 22px; font-size: 16px; color: var(--ink-3); line-height: 1.6; max-width: 680px; opacity: 1; transition: opacity .4s ease; }
.js .faq details:not(.is-open) .ans { opacity: 0; }

/* CTA */
.cta { text-align: center; padding: 104px 32px 88px; }
.rays { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(60% 80% at 100% 60%, rgba(120,70,40,.22), transparent 70%); }
.rays::before, .rays::after { content: ""; position: absolute; inset: -40% -10% -10% -20%; transform-origin: 22% 0; }
.rays::before {
  background: conic-gradient(from 128deg at 22% 0%, transparent 0deg, rgba(185,208,255,.78) 5deg, rgba(175,200,255,.06) 9deg, rgba(225,235,255,.64) 13deg, transparent 18deg, rgba(170,195,250,.46) 23deg, rgba(160,185,250,.04) 27deg, rgba(205,220,255,.36) 31deg, transparent 37deg, rgba(160,185,240,.24) 43deg, transparent 50deg, transparent 360deg);
  filter: blur(7px);
  -webkit-mask-image: radial-gradient(75% 85% at 22% 0%, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%); mask-image: radial-gradient(75% 85% at 22% 0%, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%);
  animation: rays 14s ease-in-out infinite alternate;
}
.rays::after {
  background: conic-gradient(from 120deg at 22% 0%, transparent 0deg, rgba(255,255,255,.2) 12deg, transparent 22deg, rgba(190,210,255,.16) 34deg, transparent 46deg, transparent 360deg);
  filter: blur(36px);
  -webkit-mask-image: radial-gradient(70% 80% at 22% 0%, #000, transparent 100%); mask-image: radial-gradient(70% 80% at 22% 0%, #000, transparent 100%);
}
@keyframes rays { from { transform: rotate(-2.5deg); opacity: .85; } to { transform: rotate(3deg); opacity: 1; } }
.cta h2 { color: var(--white); }
.cta p { margin-top: 20px; color: rgba(255,255,255,.85); font-size: 18px; }
.cta .btn { margin-top: 32px; }
.cta small { display: block; margin-top: 22px; color: rgba(255,255,255,.72); font-size: 14px; }

/* stopka: logo i kolumny na jasnym tle, pod spodem grafika kosmosu na całą szerokość */
.foot { padding: 136px 0 0; }
.foot-in { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; }
.foot-brand p { margin-top: 18px; color: var(--ink-3); font-size: 15px; max-width: 300px; }
.foot-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.foot h4 { margin: 0 0 18px; font-family: var(--sans); font-weight: 500; font-size: 16px; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot li a { color: var(--ink-3); font-size: 15px; transition: color .2s; }
.foot li a:hover { color: var(--ink); }
/* grafika podchodzi pod kolumny stopki: jej górna, pusta część jest przezroczysta, więc ujemny margines zbliża samą planetę */
.foot-art { position: relative; pointer-events: none; margin-top: clamp(-190px, -11vw, -90px); aspect-ratio: 3 / 1; min-height: 320px; max-height: 720px; overflow: hidden; }
.foot-art img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 80% 100%; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%); }
.foot-bottom { pointer-events: auto; position: absolute; left: 0; right: 0; bottom: 28px; color: rgba(255,255,255,.62); font-size: 14px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-docs { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-bottom a, .foot-bottom button { transition: color .2s; font-size: 14px; }
.foot-bottom a:hover, .foot-bottom button:hover { color: var(--white); }
.foot-firma { font-size: 14px; line-height: 1.6; }
.foot-firma a:hover { color: var(--ink); }

/* animacje wejścia (tylko gdy działa JS) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* tablet */
@media (max-width: 1100px) {
  .who { grid-template-columns: repeat(2, 1fr); }
  .sys { padding-inline: 0; column-gap: 40px; }
}
/* telefon */
@media (max-width: 809px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-in { height: 64px; }
  .nav-mobile.is-open { display: grid; padding: 4px 0 16px; }
  .nav-mobile a { padding: 13px 4px; font-size: 18px; color: var(--ink); border-top: 1px solid var(--line); }
  .logo { gap: 9px; }
  .logo-text { font-size: 20px; }
  .nav .btn-sm { padding: 0 14px; min-height: 40px; font-size: 13px; }
  .nav-burger { width: 40px; height: 40px; }
  .nav-in { gap: 8px; }
  .hero { padding-top: 28px; }
  .lead, .section-head .lead { font-size: 16px; }
  .hero-cta .btn { flex: 1 1 100%; }
  h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  .hero-card { margin-top: 36px; padding: 8px; border-radius: 32px; }
  .hero-card .prism { inset: -12% -45% 50%; }
  .flow { grid-template-columns: 1fr; }
  .hero-word { height: 170px; }
  .flow li { border-radius: 24px; padding: 18px 20px 20px; }
  .flow b { font-size: 21px; }
  .flow small { margin-top: 4px; }
  .strip { padding-top: 56px; }
  .stats { margin-top: 48px; grid-template-columns: 1fr; }
  .stat { padding: 24px 12px; }
  .stat-num { font-size: 36px; }
  .section { padding-top: 88px; }
  .section-body { margin-top: 36px; }
  .proof, .compare, .who { grid-template-columns: 1fr; }
  .who-card { padding: 20px 20px 22px; }
  .sys { display: block; }
  .sys-item { display: block; }
  .sys-tab { padding: 18px 0 20px; }
  .sys-tab .ttl { font-size: 24px; }
  .sys-pane { display: none; opacity: 1; visibility: visible; padding: 20px 0 28px; }
  .sys-pane.is-active { display: block; animation: fade .4s ease; }
  .sys-pane .prism-card { height: 160px; }
  .sys-pane p { margin-top: 20px; }
  .step { grid-template-columns: 34px 1fr; gap: 14px; padding: 24px 20px; align-items: start; }
  .step .num { padding-top: 5px; }
  .step .mark { display: none; }
  .step-ttl h3 { font-size: 25px; }
  .quotes { padding: 44px 24px 20px; border-radius: 32px; }
  .quote figcaption { margin-top: 24px; }
  .quotes-nav { margin-right: -8px; }
  .quotes-nav button { width: 44px; height: 44px; }
  .who-card h3 { margin-top: 24px; }
  .logo-mark { width: 36px; height: 36px; }
  .compare-col { padding: 32px 20px 20px; border-radius: 32px; }
  .compare-col ul { padding: 20px; }
  .compare-col h3 { font-size: 28px; }
  .cta { padding: 72px 24px 64px; border-radius: 32px; }
  .foot { padding-top: 96px; }
  .nav.is-scrolled .nav-in { height: 54px; }
  .nav.is-scrolled .logo-mark { width: 31px; height: 31px; }
  .nav.is-scrolled .logo-text { font-size: 18px; }
  .nav.is-scrolled .btn-sm { min-height: 36px; padding: 0 12px; }
  .foot-cols { gap: 28px 40px; }
  .foot-art { aspect-ratio: auto; height: 320px; margin-top: -110px; }
  .foot-art img { object-position: 100% 100%; }
  .quotes .card-bg, .cta .card-bg { opacity: .55; }
  .foot-bottom { bottom: 20px; }
}
@media (max-width: 359px) { .nav .btn-sm { display: none; } }

/* menu: 6 pozycji nie mieści się obok logo i przycisku poniżej 980 px, wcześniej przechodzimy na przycisk menu */
@media (max-width: 979px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-mobile.is-open { display: grid; padding: 4px 0 16px; }
  .nav-mobile a { padding: 13px 4px; font-size: 18px; color: var(--ink); border-top: 1px solid var(--line); }
  .nav-mobile a[aria-current] { color: var(--ink-4); }
}

/* baner cookies: karta w rogu, nie zasłania treści; trzy przyciski tej samej wagi */
.zgoda { position: fixed; left: 16px; bottom: 16px; z-index: 60; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--white); color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 22px 20px; box-shadow: 0 18px 50px rgba(18,22,23,.16); }
.zgoda[hidden] { display: none; }
.zgoda h2 { font-size: 24px; }
.zgoda p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.zgoda p a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.zgoda-ustawienia { margin-top: 14px; display: grid; gap: 6px; }
.zgoda-ustawienia[hidden] { display: none; }
.zgoda-kat { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; background: var(--card); border-radius: var(--r-sm); padding: 12px 14px; cursor: pointer; }
.zgoda-kat input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.zgoda-kat b { display: block; font-weight: 500; font-size: 15px; color: var(--ink); }
.zgoda-kat small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.zgoda-przyciski { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.zgoda-przyciski .btn { flex: 1 1 auto; min-height: 42px; padding: 0 14px; border: 0; cursor: pointer; }
@media (max-width: 809px) { .zgoda { left: 8px; bottom: 8px; width: calc(100vw - 16px); padding: 18px 16px 16px; } .foot-docs { gap: 4px 14px; } }
