/* Czcionki trzymane lokalnie (licencja OFL, pliki w /fonts/). */
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url('/fonts/plex-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url('/fonts/plex-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: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url('/fonts/jetbrains-mono-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: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url('/fonts/jetbrains-mono-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 {
  color-scheme: dark;
  --bg: #0F1214;
  --bg-deep: #0C0F11;
  --panel: #161B1F;
  --term: #0A0C0E;
  --line: #232A30;
  --line-card: #262D33;
  --line-strong: #5A6670;
  --text: #E8E6E1;
  --head: #F4F2ED;
  --soft: #C9CFD3;
  --muted: #A7B0B6;
  --dim: #8B969D;
  --accent: #7BD88F;
  --accent-hi: #A6E8B3;
  --err: #F08A6B;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1160px;
  --pad: clamp(56px, 7vw, 96px);
  --header-h: 73px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--accent); }
a:hover { color: var(--accent-hi); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 20;
  background: var(--accent); color: var(--bg); font-weight: 600;
  padding: 12px 16px; border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--bg); }

/* ---------- Nagłówek ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 18, 20, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 32px; padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--mono); font-weight: 700; font-size: 17px;
  color: var(--text); text-decoration: none;
}
.brand:hover { color: var(--head); }
.brand img { display: block; height: 34px; width: auto; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--soft); text-decoration: none;
}
.nav a:not(.btn):hover { color: var(--head); }

.lang {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--mono); font-size: 14px; color: var(--dim);
}
.lang [aria-current] { color: var(--head); font-weight: 700; }
.nav .lang a { min-width: 28px; justify-content: center; }

.nav-toggle {
  display: none; min-height: 44px; padding: 0 16px;
  background: transparent; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 6px;
  font: inherit; font-family: var(--mono); font-size: 14px; cursor: pointer;
}

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; border-radius: 6px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-small { min-height: 44px; padding: 0 18px; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hi); color: var(--bg); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: var(--soft); color: var(--head); }

/* ---------- Typografia sekcji ---------- */

.eyebrow { font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em; color: var(--accent); }

h1, h2 { font-family: var(--mono); font-weight: 700; color: var(--head); }
h1 { font-size: clamp(28px, 3.1vw + 10px, 42px); line-height: 1.16; letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 2vw + 10px, 34px); line-height: 1.2; }

.section { border-top: 1px solid var(--line); padding: var(--pad) 0; scroll-margin-top: var(--header-h); }
.section-deep { background: var(--bg-deep); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin-bottom: 48px; }

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 6vw, 88px) 0 var(--pad); scroll-margin-top: var(--header-h); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px 56px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.lead { font-size: 18px; color: var(--muted); max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-note { font-size: 15px; color: var(--dim); }

.terminal { background: var(--term); border: 1px solid #2A3238; border-radius: 10px; overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #3A434A; }
.terminal-title { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.terminal-body {
  padding: 20px; overflow-x: auto;
  font-family: var(--mono); font-size: 13px; line-height: 1.85; color: var(--soft);
}
.t-line { white-space: pre; }
.t-line b { color: var(--accent); font-weight: 400; }
.t-out { color: var(--dim); }
.t-err { color: var(--err); }
.t-ok { color: var(--accent); font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .t-line { opacity: 0; animation: t-in .25s ease forwards; }
  .t-line:nth-child(1) { animation-delay: .2s; }
  .t-line:nth-child(2) { animation-delay: .45s; }
  .t-line:nth-child(3) { animation-delay: .9s; }
  .t-line:nth-child(4) { animation-delay: 1.15s; }
  .t-line:nth-child(5) { animation-delay: 1.6s; }
  .t-line:nth-child(6) { animation-delay: 1.85s; }
  .t-line:nth-child(7) { animation-delay: 2.3s; }
  .t-line:nth-child(8) { animation-delay: 2.6s; }
  .t-line:nth-child(9) { animation-delay: 2.9s; }
  .t-line:nth-child(10) { animation-delay: 3.15s; }
}
@keyframes t-in { to { opacity: 1; } }

/* ---------- Usługi ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--panel); border: 1px solid var(--line-card); border-radius: 8px; padding: 28px;
  transition: border-color .15s ease;
}
.card:hover { border-color: #3A444C; }
.icon {
  width: 32px; height: 32px; color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-family: var(--mono); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--head); }
.card p { font-size: 16px; color: var(--muted); }
.card ul { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--soft); margin-top: auto; }
.card li { padding-left: 22px; position: relative; }
.card li::before { content: "—"; position: absolute; left: 0; color: var(--dim); }

/* ---------- Kroki ---------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.steps li { display: flex; flex-direction: column; gap: 12px; }
.step-no { font-family: var(--mono); font-weight: 700; font-size: 28px; color: var(--accent); }
.steps h3 { font-size: 20px; font-weight: 600; color: var(--head); }
.steps p { font-size: 16px; color: var(--muted); }

/* ---------- Układ dwukolumnowy ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 48px 64px; }
.split-top { align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.split-copy { display: flex; flex-direction: column; gap: 20px; }

.checks { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em;
  width: 13px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.bouquets {
  background: var(--panel); border: 1px solid var(--line-card); border-radius: 10px; overflow: hidden;
  font-family: var(--mono); font-size: 14px;
}
.bouquets-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  padding: 14px 20px; border-bottom: 1px solid var(--line-card);
  color: var(--dim); font-size: 12px;
}
.bouquets li { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-top: 1px solid #20262B; }
.bouquets li:first-child { border-top: 0; }
.bouquets li span { color: var(--dim); }
.bouquets li.is-active { background: var(--accent); color: var(--bg); font-weight: 700; }
.bouquets li.is-active span { color: var(--bg); }

/* ---------- Podstrony usług ---------- */

.page-hero { padding: clamp(32px, 4vw, 56px) 0 var(--pad); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 24px; }
.page-hero .lead { max-width: 680px; }
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  font-family: var(--mono); font-size: 13px; color: var(--dim);
}
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; }
.two-col h2, .narrow h2 { margin-bottom: 24px; }
.dashes { display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: var(--soft); }
.dashes li { position: relative; padding-left: 32px; }
.dashes li::before { content: "—"; position: absolute; left: 2px; color: var(--dim); }
.narrow { max-width: 868px; }
.prose { font-size: 18px; color: var(--muted); }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 32px; }
.related a {
  display: block; height: 100%; padding: 18px 20px;
  background: var(--panel); border: 1px solid var(--line-card); border-radius: 8px;
  font-family: var(--mono); font-weight: 700; font-size: 16px; line-height: 1.35;
  color: var(--head); text-decoration: none;
  transition: border-color .15s ease;
}
.related a:hover { border-color: var(--accent); color: var(--head); }
.related a span { display: block; margin-top: 6px; font-family: var(--sans); font-weight: 400; font-size: 14px; color: var(--muted); }

.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card .more { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: -10px; font-size: 15px; font-weight: 600; text-decoration: none; }
.card .more:hover { text-decoration: underline; }

/* ---------- Strony tekstowe (polityka prywatności) ---------- */

.doc { max-width: 760px; color: var(--soft); }
.doc h2 { margin: 40px 0 14px; font-size: 22px; }
.doc p, .doc ul { margin-bottom: 14px; }
.doc ul { display: flex; flex-direction: column; gap: 10px; }
.doc li { position: relative; padding-left: 28px; }
.doc li::before { content: "—"; position: absolute; left: 0; color: var(--dim); }
.doc strong { color: var(--head); font-weight: 600; }
.doc-date { font-family: var(--mono); font-size: 14px; color: var(--dim); }
.draft {
  padding: 12px 16px; border: 1px solid var(--err); border-radius: 6px;
  font-family: var(--mono); font-size: 14px; color: var(--err);
}

/* ---------- Pytania ---------- */

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--panel); border: 1px solid var(--line-card); border-radius: 8px; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 12px 22px; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--accent-hi); }
.faq details p { padding: 0 22px 20px; font-size: 16px; color: var(--muted); max-width: 68ch; }

/* ---------- Kontakt ---------- */

.contact-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-family: var(--mono); font-size: 16px; }
.contact-list > div { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.contact-list dt { color: var(--dim); min-width: 72px; }
.contact-list a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.contact-list a:hover { color: var(--accent); }

.form {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--panel); border: 1px solid var(--line-card); border-radius: 10px;
  padding: clamp(20px, 3vw, 32px);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 6px;
  font: inherit;
}
.field textarea { padding: 12px 14px; resize: vertical; min-height: 140px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.field [aria-invalid="true"] { border-color: var(--err); }
.field-error { font-size: 14px; color: var(--err); }
/* Pułapka na boty: pole niewidoczne dla ludzi. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button[disabled] { opacity: .6; cursor: progress; }
.form-status { font-size: 15px; color: var(--soft); min-height: 1.6em; }
.form-status.is-error { color: var(--err); }

/* ---------- Stopka ---------- */

.site-footer { border-top: 1px solid var(--line); }
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px 32px; padding-top: 24px; padding-bottom: 24px;
  font-size: 14px; color: var(--dim);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); text-decoration: none; }
.site-footer nav a:hover { color: var(--head); }

/* ---------- Mniejsze ekrany ---------- */

@media (max-width: 900px) {
  .hero-grid, .split, .split-top, .two-col { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .js .nav.is-open { display: flex; }
  .js .nav > a:not(.btn) { min-height: 48px; border-top: 1px solid var(--line); }
  .js .nav .lang { min-height: 48px; border-top: 1px solid var(--line); }
  .js .nav .lang a { min-width: 0; padding-right: 8px; }
  .js .nav .btn { margin-top: 12px; }
  .section-head { margin-bottom: 32px; }
  .actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
