/* Fonty hostowane lokalnie, warianty zmienne (jeden plik na rodzinę i podzbiór znaków).
   Wcześniej szły z Google Fonts, co przy każdym wejściu wysyłało adres IP odwiedzającego
   do Google, zanim zdążył cokolwiek kliknąć. Licencja OFL 1.1, pełny tekst w assets/fonts/. */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/jost-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;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/jost-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: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/manrope-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;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/manrope-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;
}

/* ==========================================================================
   Delikatesy AI Lab
   Dwa motywy sterowane tokenami (html[data-theme]). Hero i stopka są ciemne w obu motywach,
   sekcja Wdrożenia też. Jeden akcent: fiolet logo.
   Kształty: panele mają zaokrąglenie 28px z ostrym lewym dolnym rogiem (dymek z logo),
   elementy interaktywne są pigułkami, pola formularza 10px, zdjęcia w kołach.
   ========================================================================== */

:root {
  color-scheme: light;

  --accent: #A56FE2;
  --accent-hover: #9660D8;
  --accent-deep: #6F3FB8;        /* tekst akcentowy na jasnym tle */
  --accent-light: #C9A8F2;       /* tekst akcentowy na ciemnym tle */
  --accent-soft: #F1EAFB;
  --accent-tint: rgba(165, 111, 226, .14);
  --on-accent: #16141A;          /* tekst na fioletowych przyciskach, stały */

  --ink: #16141A;
  --ink-2: #2B2733;
  --gray: #767171;               /* szary z briefu */
  --line: #E7E3EA;
  --input-border: #C7C1CB;
  --ghost-border: rgba(22, 20, 26, .28);
  --bg: #FCFBFD;
  --bg-2: #F5F2F9;
  --surface: #FFFFFF;
  --shadow: 0 24px 60px rgba(22, 20, 26, .07);

  --dark: #16141A;               /* hero, wdrożenia, stopka */
  --dark-2: #221E2B;
  --on-dark: #F4F1F7;
  --on-dark-muted: #B8B2BD;
  --dark-line: rgba(255, 255, 255, .12);

  --nav-bg: rgba(252, 251, 253, .86);
  --error: #B3261E;
  --spotlight: rgba(111, 63, 184, .32);    /* reflektor na kartach narzędzi: głębszy fiolet, żeby był widoczny na jasnym tle */

  --f-display: "Jost", "Segoe UI", system-ui, sans-serif;
  --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --r-panel: 28px;
  --r-inner: 16px;
  --r-input: 10px;
  --blob: var(--r-panel) var(--r-panel) var(--r-panel) 0;

  --gutter: 24px;
  --nav-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --accent-hover: #B585EA;
  --accent-deep: #C9A8F2;
  --accent-soft: rgba(165, 111, 226, .16);
  --accent-tint: rgba(165, 111, 226, .24);
  --ink: #F4F1F7;
  --ink-2: #D9D4DE;
  --gray: #A39DA8;
  --line: rgba(255, 255, 255, .1);
  --input-border: rgba(255, 255, 255, .22);
  --ghost-border: rgba(255, 255, 255, .32);
  --bg: #141119;
  --bg-2: #1B1822;
  --surface: #211D29;
  --shadow: none;
  --dark: #0E0C12;
  --dark-2: #1A1622;
  --nav-bg: rgba(20, 17, 25, .86);
  --error: #FF8A80;
  --spotlight: rgba(165, 111, 226, .34);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); scrollbar-gutter: stable; }
html.modal-open { overflow: hidden; }   /* strona pod otwartym oknem stoi w miejscu */
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 3.9vw, 3.5rem); line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); max-width: 22ch; }
h3 { font-size: 1.35rem; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
section { padding: clamp(72px, 9vw, 128px) 0; }
.products { padding-bottom: clamp(56px, 6vw, 84px); }   /* sekcja kończy się zaraz pod „W przygotowaniu” */

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--accent); color: var(--on-accent); border-radius: 999px;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.logo { height: 38px; width: auto; color: inherit; }

/* Ujawnianie przy przewijaniu. Bez JS treść jest widoczna od razu. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; white-space: nowrap;
  font-weight: 600; font-size: 1rem; line-height: 1;
  transition: background-color .2s, color .2s, transform .15s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 11px 20px; font-size: .95rem; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border: 1.5px solid var(--ghost-border); color: inherit; background: transparent; }
.btn-ghost:hover { border-color: currentColor; background: rgba(165, 111, 226, .08); }
/* Wypełniony odwrotnie do motywu: czarny na jasnej stronie, biały na ciemnej. */
.btn-invert { background: var(--ink); color: var(--bg); }
.btn-invert:hover { background: var(--ink-2); }
.btn-light { background: var(--on-dark); color: #16141A; }
.btn-light:hover { background: var(--accent-light); }

/* ---------- Nawigacja ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  color: var(--on-dark);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, color .3s, border-color .3s;
}
.nav.scrolled {
  color: var(--ink); background: var(--nav-bg); border-bottom-color: var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-menu { display: flex; align-items: center; gap: 24px; }
.nav-menu ul { display: flex; align-items: center; gap: 24px; }
.nav-menu ul a { font-weight: 500; font-size: .95rem; opacity: .85; display: inline-flex; align-items: center; justify-content: center; gap: 3px; transition: color .2s, opacity .2s; }
.nav-menu ul a:hover { opacity: 1; color: var(--nav-hover, var(--accent-light)); }
.nav.scrolled .nav-menu ul a:hover { color: var(--nav-hover, var(--accent-deep)); }
/* Linki do serwisów Delikatesów Badawczych mają własne kolory podświetlenia (strzałka też je dziedziczy).
   Barwy marki działają na ciemnym tle: nad hero w obu motywach i na pasku w motywie ciemnym. */
.ext-badania { --nav-hover: #D4CF2C; }
.ext-szkolenia { --nav-hover: #70A9DC; }
/* Na jasnym pasku po przewinięciu te same barwy w ciemniejszych wariantach, dla lepszego kontrastu. */
:root:not([data-theme="dark"]) .nav.scrolled .ext-badania { --nav-hover: #A09D20; }
:root:not([data-theme="dark"]) .nav.scrolled .ext-szkolenia { --nav-hover: #2E6CA8; }
.nav-menu .ext svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.nav-tools { display: flex; align-items: center; gap: 12px; }

.lang { display: flex; padding: 3px; border: 1px solid var(--ghost-border); border-radius: 999px; }
.nav:not(.scrolled) .lang { border-color: rgba(255, 255, 255, .32); }
.lang button { padding: 5px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; opacity: .75; }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); opacity: 1; }

.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--ghost-border); transition: border-color .2s, background-color .2s;
}
.nav:not(.scrolled) .theme-toggle { border-color: rgba(255, 255, 255, .32); }
.theme-toggle:hover { background: var(--accent-tint); }
.theme-toggle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .i-moon, :root:not([data-theme="dark"]) .i-sun { display: none; }

.nav-burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border-radius: 999px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .25s; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero (ciemne w obu motywach) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--dark); color: var(--on-dark);
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 88px)) 0 clamp(64px, 8vw, 104px);
}
.hero::before {
  content: ""; position: absolute; top: -30%; right: -12%; width: min(60vw, 820px); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(165, 111, 226, .26), transparent); pointer-events: none;
}
/* Soft Aurora (aurora.js) rysuje na tym canvasie; gdy działa, poświata CSS z ::before znika. */
.hero-aurora { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero.has-aurora::before { display: none; }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero-copy .lead { margin-top: 24px; font-size: 1.2rem; color: var(--on-dark-muted); max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .btn-ghost { --ghost-border: rgba(255, 255, 255, .4); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* Panel leży nad zorzą: ciemne, lekko matowe tło z rozmyciem, żeby wstęga była tylko poświatą za tekstem. */
.hero-panel {
  position: relative; z-index: 1;
  padding: clamp(24px, 3vw, 36px);
  background: rgba(14, 12, 18, .78);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(165, 111, 226, .35);
  border-radius: var(--blob);
}
.hero-panel-title { font-family: var(--f-display); font-weight: 500; color: var(--accent-light); font-size: .95rem; margin-bottom: 8px; }
.tool-index li + li { border-top: 1px solid var(--dark-line); }
.tool-index a { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; align-items: center; padding: 12px 4px; transition: color .2s, transform .25s var(--ease); }
.idx-logo { width: 30px; height: 30px; }
.idx-text { display: grid; gap: 2px; }
.tool-index a:hover { color: var(--accent-light); transform: translateX(4px); }
.tool-index b { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; }
.tool-index span { color: var(--on-dark-muted); font-size: .95rem; }
.tool-index a:hover span { color: inherit; }

/* ---------- Kim jesteśmy ---------- */
.about-band { background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.statement { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.45; color: var(--ink-2); letter-spacing: -.01em; }
.principles li { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles b { font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; }
.principles span { color: var(--gray); font-size: .95rem; }

/* ---------- Problemy ---------- */
.pains-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); margin-top: 48px; }
.pain-col h3 { color: var(--accent-deep); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; margin-bottom: 8px; }
.pain-col li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.pain-col p { font-size: 1.1rem; line-height: 1.45; color: var(--ink-2); font-weight: 500; }
.tag {
  font-size: .8rem; font-weight: 700; color: var(--accent-deep);
  background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.tag:hover { background: var(--accent); color: var(--on-accent); }
/* ---------- Audytoria: wolno przewijający się pas, bez pigułek ---------- */
.audiences { margin-top: 56px; }
.aud-label {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  letter-spacing: -.01em; color: var(--ink); margin-bottom: 18px;
}
/* Dwie kopie listy jadą obok siebie; przesunięcie o pełną szerokość jednej daje ciągłą pętlę.
   Maska wygasza tekst przy krawędziach, żeby nie urywał się ostro. */
.aud-marquee {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.aud-track {
  display: flex; flex: none; align-items: center;
  animation: aud-scroll 52s linear infinite;
}
.aud-marquee:hover .aud-track { animation-play-state: paused; }
.aud-track li {
  display: flex; align-items: center; white-space: nowrap;
  font-size: 1.05rem; color: var(--ink-2);
}
.aud-track li::after {                       /* separator zamiast pigułki */
  content: ""; width: 1px; height: 20px; flex: none;
  background: var(--accent); opacity: .55; margin: 0 clamp(20px, 2.2vw, 34px);
}
@keyframes aud-scroll { to { transform: translateX(-100%); } }

/* ---------- Rozwiązania ---------- */
.section-head p { margin-top: 16px; color: var(--gray); font-size: 1.1rem; max-width: 52ch; }
.tabs { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 3vw, 44px); margin-top: 56px; align-items: start; }
.tablist { display: grid; gap: 4px; position: sticky; top: calc(var(--nav-h) + 24px); }
.tablist [role="tab"] {
  display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; text-align: left; padding: 14px 18px 14px 20px;
  border-radius: 0 var(--r-inner) var(--r-inner) 0; border-left: 2px solid var(--line);
  transition: background-color .2s, border-color .2s, color .2s;
}
.tab-logo { width: 34px; height: 34px; }
.tab-text { display: grid; gap: 2px; }
.tablist [role="tab"] b { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; }
.tab-text span { color: var(--gray); font-size: .9rem; }
.tablist [role="tab"]:hover { background: var(--bg-2); }
.tablist [role="tab"][aria-selected="true"] { background: var(--bg-2); border-left-color: var(--accent); }
.tablist [role="tab"][aria-selected="true"] b { color: var(--accent-deep); }

/* Wszystkie panele leżą w tej samej komórce siatki i rozciągają się do najwyższego,
   dzięki czemu przełączanie zakładek nie zmienia wysokości strony. */
.panel {
  grid-column: 2; grid-row: 1; align-self: stretch;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 64px); align-content: start;
  padding: clamp(28px, 3.5vw, 48px); background: var(--bg-2); border-radius: var(--blob);
  border: 1px solid var(--line);
  animation: panel-in .45s var(--ease);
  /* Spotlight Card: reflektor podąża za kursorem (script.js ustawia --mouse-x/--mouse-y). */
  position: relative; overflow: hidden; --mouse-x: 50%; --mouse-y: 50%;
}
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight), transparent 80%);
  opacity: 0; transition: opacity .5s ease;
}
.panel:hover::before, .panel:focus-within::before { opacity: .6; }
.panel > * { position: relative; z-index: 1; }
.panel.is-hidden { visibility: hidden; pointer-events: none; animation: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.15; }
.panel-head { display: flex; gap: 20px; align-items: flex-start; }
.panel-logo { width: 68px; height: 68px; flex: none; margin-top: 2px; }
.ps { margin-top: 24px; }
.ps dt { font-weight: 700; font-size: .82rem; color: var(--accent-deep); margin-bottom: 4px; }
.ps dd { margin: 0 0 18px; color: var(--ink-2); }
.ps dd:last-child { margin-bottom: 0; }
.panel-side { display: grid; gap: 22px; align-content: start; padding-top: 8px; }
.checks { display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316141A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.proof { font-size: .95rem; color: var(--gray); padding-left: 16px; border-left: 2px solid var(--accent); }
.panel-side .btn { justify-self: start; }

.soon { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 3vw, 44px); }
.soon h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; color: var(--gray); }
.soon ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.soon b { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; display: block; margin-bottom: 6px; }
.soon p { color: var(--gray); font-size: .95rem; }
/* align-content: start, bo kolumna rozciąga się do wysokości listy narzędzi obok,
   a bez tego rozciągałby się razem z nią także przycisk. */
.soon-head { display: grid; justify-items: start; align-content: start; gap: 30px; }

/* ---------- Wdrożenia (ciemny blok) ---------- */
.custom { background: var(--dark); color: var(--on-dark); }
.custom-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.custom-copy p { margin: 20px 0 32px; color: var(--on-dark-muted); font-size: 1.1rem; max-width: 46ch; }
.capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.capabilities li {
  padding: 24px; background: var(--dark-2); border-radius: var(--blob);
  /* Tilt: script.js ustawia transform według pozycji kursora; tu tylko płynne przejścia. */
  transition: transform .18s ease-out, box-shadow .35s var(--ease); will-change: transform;
}
.capabilities li:hover { box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.capabilities li:nth-child(1) { background: radial-gradient(120% 120% at 100% 0%, rgba(165, 111, 226, .38), var(--dark-2) 70%); }
.capabilities li:nth-child(4) { background: radial-gradient(120% 120% at 0% 100%, rgba(165, 111, 226, .3), var(--dark-2) 70%); }
.capabilities b { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; display: block; margin-bottom: 6px; }
.capabilities p { color: var(--on-dark-muted); font-size: .95rem; }
.process-title { margin-top: clamp(56px, 7vw, 88px); font-size: 1.5rem; }
.process { margin-top: 28px; padding-top: 32px; border-top: 1px solid var(--dark-line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.process li { display: grid; gap: 6px; }
.process b { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; }
.process b::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; color: var(--accent); font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.process span { color: var(--on-dark-muted); font-size: .95rem; }

/* ---------- Zespół ---------- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: 48px; }
/* Zdjęcia są już wycięte w kształt łezki z logo (PNG z przezroczystością), więc nie maskujemy ich.
   Monogram w kole pojawia się tylko wtedy, gdy plik się nie wczyta. */
.avatar { width: 136px; height: 136px; margin-bottom: 20px; }
.avatar img { width: 100%; height: 100%; object-fit: contain; }
.avatar span {
  display: none; width: 100%; height: 100%; place-items: center;
  border-radius: 50% 50% 50% 0; background: var(--accent-soft); color: var(--accent-deep);
  font-family: var(--f-display); font-weight: 600; font-size: 2rem;
}
.avatar:not(:has(img)) span { display: grid; }
.person h3 { font-size: 1.3rem; }
.person .role { color: var(--accent-deep); font-weight: 600; font-size: .9rem; margin: 4px 0 12px; }
.person p { color: var(--ink-2); font-size: .98rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-2); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq-head p { margin-top: 16px; color: var(--gray); max-width: 36ch; }
.faq-list details { border-top: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 20px 0; font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; transition: color .2s;
}
.faq-list summary:hover { color: var(--accent-deep); }
.faq-list summary::-webkit-details-marker { display: none; }
/* Chevron po lewej, obraca się o 90 stopni po rozwinięciu. Maska pozwala kolorować go currentColor. */
.faq-list summary::before {
  content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s var(--ease);
}
.faq-list details[open] summary::before { transform: rotate(90deg); }
/* Płynna wysokość (Chromium 131+, inne przeglądarki po prostu rozwijają od razu). */
.faq-list details::details-content { height: 0; overflow: hidden; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
.faq-list details[open]::details-content { height: auto; }
.faq-list details p { padding: 0 0 22px 28px; color: var(--ink-2); max-width: 62ch; transform-origin: left center; }
.faq-list details[open] p { animation: faq-in .45s cubic-bezier(.34, 1.4, .64, 1) both; }
@keyframes faq-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-copy > p { margin-top: 20px; color: var(--gray); font-size: 1.1rem; max-width: 44ch; }
.contact-data { display: grid; gap: 12px; margin-top: 32px; }
.contact-data div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: baseline; }
.contact-data dt { color: var(--gray); font-size: .9rem; font-weight: 600; }
.contact-data a { font-weight: 600; color: var(--accent-deep); border-bottom: 1px solid transparent; }
.contact-data a:hover { border-bottom-color: currentColor; }

.newsletter { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }

/* ---------- Okno zapisu na powiadomienia ----------
   Natywny <dialog>: górna warstwa, pułapka fokusu i Escape działają bez kodu.
   Treść strony rozmywa się przez ::backdrop. */
.modal {
  width: min(460px, calc(100% - 2 * var(--gutter)));
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--line); border-radius: var(--blob);
  background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .32);
  /* Jawne wyśrodkowanie w oknie przeglądarki. Bez tego wystarczy własne `position`,
     żeby nadpisać pozycjonowanie modala i okno wylądowało poza widokiem po przewinięciu strony.
     Wyśrodkowanie marginesem, a nie transformem, bo transform należy do animacji wejścia. */
  position: fixed; inset: 0; margin: auto;
  height: fit-content; max-height: calc(100dvh - 48px); overflow: auto;
}
.modal::backdrop { background: rgba(14, 12, 18, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal h3 { font-size: 1.3rem; padding-right: 40px; }
.modal-sub { margin: 10px 0 24px; color: var(--gray); font-size: .98rem; }
.modal form { display: grid; gap: 14px; }
.modal form .btn { justify-self: end; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  display: grid; place-items: center; border-radius: 999px; color: var(--gray);
  transition: background-color .2s, color .2s;
}
.modal-close:hover { background: var(--bg-2); color: var(--ink); }
.modal-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }

/* Wejście i wyjście: przezroczystość, skala 0.95 i przesunięcie o 40 px, bez odbicia. */
.modal[open] { animation: modal-in .25s var(--ease); }
.modal[open]::backdrop { animation: modal-fade .25s var(--ease); }
.modal.closing { animation: modal-out .25s var(--ease) forwards; }
.modal.closing::backdrop { animation: modal-fade .25s var(--ease) reverse forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(40px) scale(.95); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(40px) scale(.95); } }
@keyframes modal-fade { from { opacity: 0; } }

.contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--blob); box-shadow: var(--shadow);
  padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 18px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field label em { font-style: normal; font-weight: 400; color: var(--gray); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--input-border); border-radius: var(--r-input); padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.error { font-size: .85rem; color: var(--error); }
.error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .86rem; color: var(--gray); line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.consent a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.contact-form .btn { justify-self: start; }
.form-status { font-size: .95rem; font-weight: 600; color: var(--accent-deep); }
.form-status:empty { display: none; }
.form-status.err { color: var(--error); }

/* ---------- Stopka (ciemna) ---------- */
.footer { padding: 64px 0 40px; background: var(--dark); color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer .logo { height: 34px; }
.footer-grid > div p { margin-top: 16px; color: var(--on-dark-muted); font-size: .92rem; max-width: 34ch; }
.footer ul { display: grid; gap: 10px; padding-top: 6px; align-content: start; }
.footer ul a { font-size: .95rem; color: var(--on-dark-muted); transition: color .2s; }
.footer ul a:hover { color: var(--on-dark); }
.legal { grid-column: 1 / -1; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--dark-line); color: var(--on-dark-muted); font-size: .85rem; }

/* ---------- Responsywność ---------- */
@media (max-width: 1080px) {
  .tabs, .soon { grid-template-columns: 240px 1fr; }
  .nav-menu ul { gap: 18px; }
}

@media (max-width: 960px) {
  .nav-burger { display: flex; }
  .nav-menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px var(--gutter) 24px; background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-menu ul a { display: flex; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; opacity: 1; }
  .nav-tools { justify-content: space-between; margin-top: 12px; }
  .nav:not(.scrolled) .lang, .nav:not(.scrolled) .theme-toggle { border-color: var(--ghost-border); }

  .hero-grid, .about-grid, .pains-grid, .custom-grid, .faq-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 560px; }
  .faq-head { position: static; }
  .people { grid-template-columns: 1fr; gap: 40px; }
  .process { grid-template-columns: 1fr 1fr; }

  .tabs { grid-template-columns: 1fr; }
  .tablist {
    position: static; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    padding-bottom: 8px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none;
  }
  .tablist::-webkit-scrollbar { display: none; }
  .tablist [role="tab"] { flex: none; scroll-snap-align: start; grid-template-columns: 22px auto; column-gap: 8px; border-left: 0; border-radius: 999px; padding: 8px 16px 8px 10px; border: 1.5px solid var(--line); background: var(--surface); }
  .tab-logo { width: 22px; height: 22px; }
  .tab-text span { display: none; }
  .tablist [role="tab"] b { font-size: 1rem; }
  .tablist [role="tab"][aria-selected="true"] { background: var(--accent); border-color: var(--accent); }
  .tablist [role="tab"][aria-selected="true"] b { color: var(--on-accent); }
  .panel { grid-template-columns: 1fr; grid-column: 1; grid-row: 2; }
  .panel-logo { width: 52px; height: 52px; }
  /* Jedna kolumna: nagłówek, lista narzędzi, a przycisk dopiero pod nią. */
  .soon { display: flex; flex-direction: column; gap: 28px; }
  .soon-head { display: contents; }
  .soon-head h3 { order: 0; }
  .soon ul { order: 1; grid-template-columns: 1fr; gap: 24px; }
  .soon-head .nl-open { order: 2; align-self: start; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .field-row, .process { grid-template-columns: 1fr; }
  .pain-col li { grid-template-columns: 1fr; gap: 10px; }
  .pain-col li .tag { justify-self: start; }
  .cta-row .btn { width: 100%; }
  .capabilities { grid-template-columns: 1fr; }
  .contact-data div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .panel { animation: none; }
  .modal[open], .modal.closing, .modal[open]::backdrop, .modal.closing::backdrop { animation: none; }
  .aud-track { animation: none; flex-wrap: wrap; }
  .aud-marquee { -webkit-mask-image: none; mask-image: none; }
  .aud-marquee [aria-hidden="true"] { display: none; }
  .faq-list details[open] p { animation: none; }
  .faq-list details::details-content { transition: none; }
  .tool-index a, .btn, .faq-list summary::before, body, .nav, .capabilities li { transition: none; }
}
