: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); }

/* ---------- 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); }
.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 { 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; }
}
