/* ArtiIT — arkusz stylów */
:root {
  --bg: #0b1220;
  --bg-2: #111a2e;
  --surface: #ffffff;
  --surface-2: #f4f6fa;
  --text: #1b2433;
  --text-muted: #5a6577;
  --text-inv: #e8edf5;
  --text-inv-muted: #9aa6ba;
  --accent: #19b8a6;
  --accent-dark: #11907f;
  --accent-soft: #e3f7f4;
  --line: #e1e6ee;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(11, 18, 32, .18);
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.3rem; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 36px; height: 36px; }
.logo-text b { color: var(--accent); font-weight: inherit; }
.nav-menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--text-inv-muted); font-size: .95rem; font-weight: 500;
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.07); text-decoration: none; }
.nav-menu .nav-cta { background: var(--accent); color: #fff; }
.nav-menu .nav-cta:hover { background: var(--accent-dark); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(25,184,166,.22), transparent 60%), var(--bg);
  color: var(--text-inv);
  padding: 96px 0 104px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 30%, transparent);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .82rem; letter-spacing: .06em;
  color: var(--accent); background: rgba(25,184,166,.1); border: 1px solid rgba(25,184,166,.3);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.15rem; color: var(--text-inv-muted); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.terminal {
  background: #070c16; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); font-family: var(--mono); font-size: .88rem; overflow: hidden;
}
.terminal-bar { display: flex; gap: 7px; padding: 12px 14px; background: rgba(255,255,255,.04); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4458; }
.terminal-bar i:first-child { background: #ff5f57; } .terminal-bar i:nth-child(2) { background: #febc2e; } .terminal-bar i:nth-child(3) { background: #28c840; }
.terminal pre { margin: 0; padding: 18px 20px 22px; color: #c7d2e3; white-space: pre-wrap; line-height: 1.8; }
.terminal .ok { color: #28c840; } .terminal .p { color: var(--accent); } .terminal .c { color: #5f6b80; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: rgba(255,255,255,.25); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { border-color: var(--accent); color: var(--accent-dark); }
.btn-outline:hover { background: var(--accent-soft); }

/* ---------- Sekcje ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--bg); color: var(--text-inv); }
.section-dark h2 { color: #fff; }
.section-dark p { color: var(--text-inv-muted); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }
.kicker { font-family: var(--mono); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px; display: block; }

/* Podstrona — nagłówek */
.page-hero { background: var(--bg); color: var(--text-inv); padding: 64px 0 56px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.page-hero p { color: var(--text-inv-muted); max-width: 640px; font-size: 1.1rem; margin: 0; }
.breadcrumbs { font-size: .88rem; color: var(--text-inv-muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--text-inv-muted); }
.breadcrumbs a:hover { color: #fff; }

/* ---------- Karty ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--text-muted); margin: 0; }
.icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center; margin-bottom: 20px;
}
.icon svg { width: 26px; height: 26px; }
.card-link { display: inline-block; margin-top: 16px; font-weight: 600; }

/* Usługi szczegółowe */
.service { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service:last-child { border-bottom: 0; }
.service .icon { margin: 0; width: 64px; height: 64px; }
.service .icon svg { width: 30px; height: 30px; }
.service p { color: var(--text-muted); }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311907f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* Proces */
.steps { counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); color: var(--accent); font-size: .9rem; display: block; margin-bottom: 12px; }
.step h3 { color: #fff; }
.step p { margin: 0; font-size: .96rem; }

/* Statystyki / atuty */
.stat { text-align: center; }
.stat strong { display: block; font-size: 2.4rem; color: var(--accent-dark); line-height: 1.1; }
.stat span { color: var(--text-muted); font-size: .95rem; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.panel { background: var(--surface-2); border-radius: var(--radius); padding: 36px; }

/* CTA */
.cta-band {
  background: linear-gradient(120deg, var(--accent-dark), var(--accent));
  color: #fff; border-radius: 20px; padding: 52px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .btn { background: #fff; color: var(--accent-dark); flex-shrink: 0; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-dark); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--text-muted); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.company-card { background: var(--bg); color: var(--text-inv); border-radius: var(--radius); padding: 36px; }
.company-card h2 { color: #fff; font-size: 1.4rem; }
.company-card dl { margin: 0; display: grid; gap: 18px; }
.company-card dt { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.company-card dd { margin: 2px 0 0; color: #fff; }
.company-card a { color: #fff; }
form .field { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--text-muted); font-weight: 400; }
.consent input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; display: none; }
.form-msg.ok { display: block; background: #e5f7ec; color: #17633a; }
.form-msg.err { display: block; background: #fdecec; color: #9b1c1c; }
.map-wrap { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

/* Treść prawna */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--bg); color: var(--text-inv-muted); padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text-inv-muted); }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; }

/* Animacje wejścia */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsywność ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); padding: 12px 20px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 14px; }
  .nav-menu .nav-cta { margin-top: 8px; text-align: center; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 72px; }
  .grid-3, .grid-4, .grid-2, .field-row, .checklist { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 16px; }
  .terminal { font-size: .78rem; }
}

/* Klasy pomocnicze (zamiast stylów inline — wymagane przez ścisłe CSP) */
.footer-about { margin-top: 14px; }
.hero-full { min-height: 100vh; display: flex; align-items: center; }
.hero-inner { position: relative; z-index: 1; }
.kicker-light { color: var(--accent); }
.map-link { margin: 28px 0 0; }
.checklist-auto { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.faq-narrow { max-width: 780px; margin: 0 auto; }
.page-hero p a { color: var(--accent); font-weight: 600; }
