/* ==========================================================================
   BezpiecznySerwer.pl — style główne
   ========================================================================== */

:root {
  --bg: #081120;
  --bg-section: #0F172A;
  --bg-card: #111827;
  --bg-card-elevated: #1E293B;
  --text-main: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --primary: #38BDF8;
  --primary-hover: #0EA5E9;
  --accent: #8B5CF6;
  --success: #22C55E;
  --border: #334155;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-strong: 0 20px 45px rgba(0, 0, 0, 0.35);

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1200px;
  --container-narrow: 920px;
}

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

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.8em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

h4 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
  color: var(--text-secondary);
}

ul, ol {
  padding-left: 1.3em;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.4em;
}

code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--primary);
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 17, 32, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.nav-brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-brand .brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
}

.nav-brand span.accent {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text-main);
  background: var(--bg-card);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #041221;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #041221;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  color: var(--text-main);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--primary);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.88rem;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- Sections ---------- */
section {
  padding: 90px 0;
}

.section-tight {
  padding: 60px 0;
}

.section-dark {
  background: var(--bg-section);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.section-header p.lead {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.text-left {
  text-align: left;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(ellipse at 82% 70%, rgba(139, 92, 246, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  max-width: 560px;
}

.hero-proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.hero-proof-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  flex-shrink: 0;
}

/* Hero visual panel */
.hero-visual {
  position: relative;
  background: linear-gradient(135deg, var(--bg-card-elevated), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-strong);
}

.terminal {
  background: #050b17;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  overflow: hidden;
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #0b1426;
  border-bottom: 1px solid var(--border);
}

.terminal-head span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #374151;
}

.terminal-head span:first-child { background: #ef4444; }
.terminal-head span:nth-child(2) { background: #eab308; }
.terminal-head span:nth-child(3) { background: #22c55e; }

.terminal-body {
  padding: 18px 20px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.terminal-body .prompt { color: var(--success); }
.terminal-body .cmd { color: var(--text-main); }
.terminal-body .out { color: var(--text-muted); }
.terminal-body .ok { color: var(--success); }
.terminal-body .hi { color: var(--primary); }

.hero-stats {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-stat {
  background: rgba(8, 17, 32, 0.6);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: var(--radius-md);
  text-align: center;
}

.hero-stat strong {
  display: block;
  color: var(--text-main);
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.hero-stat small {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Page header (podstrony) ---------- */
.page-header {
  padding: 80px 0 50px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(56, 189, 248, 0.10), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(139, 92, 246, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.page-header > * {
  position: relative;
  z-index: 1;
}

.page-header .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.page-header p.lead {
  max-width: 720px;
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 18px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.breadcrumbs li + li::before {
  content: '/';
  margin: 0 10px;
  color: var(--text-muted);
  opacity: 0.6;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text-secondary);
}

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.45);
  background: var(--bg-card-elevated);
}

.card-elevated {
  background: var(--bg-card-elevated);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.card-link {
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link::after {
  content: '→';
  transition: transform var(--transition);
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* ---------- Service block (uslugi.html) ---------- */
.service-block {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block h2 {
  margin-bottom: 10px;
}

.service-block .service-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.service-side {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.service-side h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  padding-left: 30px;
  position: relative;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.check-list li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 11px;
  width: 6px;
  height: 10px;
  border-right: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(45deg);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
}

.pricing-card.is-featured {
  background: var(--bg-card-elevated);
  border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.18);
}

.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
}

.pricing-card h3 {
  margin-bottom: 8px;
}

.pricing-card .positioning {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
  min-height: 40px;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.pricing-price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-period {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.pricing-features li {
  padding: 9px 0 9px 28px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.93rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 9px;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  color: var(--success);
  font-weight: 700;
  font-size: 0.9rem;
}

.pricing-for {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
  font-style: italic;
}

.billing-switch {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 999px;
  margin: 0 auto 36px;
}

.billing-switch button {
  padding: 8px 20px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background var(--transition), color var(--transition);
}

.billing-switch button.is-active {
  background: var(--primary);
  color: #041221;
}

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}

.process-step .step-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ---------- FAQ ---------- */
.faq-category {
  margin-bottom: 40px;
}

.faq-category h2 {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 18px 22px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.is-open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-answer p {
  margin: 0 0 0.6em;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Configurator ---------- */
.configurator {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-strong);
}

.progress-bar {
  height: 6px;
  background: var(--bg-card-elevated);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 300ms ease;
}

.step-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.step-meta strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.step-question {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.step-options {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.step-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition);
  font-family: inherit;
  font-size: 1rem;
  text-align: left;
  width: 100%;
}

.step-option:hover {
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--text-main);
}

.step-option.is-selected {
  border-color: var(--primary);
  background: rgba(56, 189, 248, 0.08);
  color: var(--text-main);
}

.step-option .radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--transition);
}

.step-option.is-selected .radio {
  border-color: var(--primary);
}

.step-option.is-selected .radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--primary);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Configurator result */
.result-card {
  background: linear-gradient(135deg, var(--bg-card-elevated), var(--bg-card));
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-xl);
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 65%);
  pointer-events: none;
}

.result-card > * { position: relative; }

.result-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(139, 92, 246, 0.15);
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.result-card h2 {
  margin-bottom: 14px;
}

.result-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 20px 0;
}

.result-reason {
  background: rgba(8, 17, 32, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px 0;
  font-size: 0.95rem;
}

.result-reason strong {
  color: var(--primary);
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}

.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-info h3 {
  margin-bottom: 18px;
}

.contact-info dl {
  margin: 0;
}

.contact-info dt {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 20px;
  font-weight: 600;
}

.contact-info dt:first-child {
  margin-top: 0;
}

.contact-info dd {
  margin: 6px 0 0;
  color: var(--text-main);
  font-size: 1rem;
}

.contact-info a {
  color: var(--text-main);
}

.contact-info a:hover {
  color: var(--primary);
}

.form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.form-field label {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-field label .req {
  color: var(--primary);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card-elevated);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-field input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
  accent-color: var(--primary);
}

.form-field.is-invalid input,
.form-field.is-invalid textarea {
  border-color: #ef4444;
}

.form-field .error {
  color: #f87171;
  font-size: 0.85rem;
  margin-top: 6px;
  display: none;
}

.form-field.is-invalid .error {
  display: block;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.form-checkbox input {
  margin-top: 3px;
  width: auto;
  flex-shrink: 0;
}

.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.form-status {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.92rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.form-status.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.form-note {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.form-note strong {
  color: var(--primary);
}

/* ---------- CTA ---------- */
.cta-block {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.06), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-xl);
  padding: 56px 44px;
  text-align: center;
  margin: 40px 0;
}

.cta-block h2 {
  margin-bottom: 12px;
}

.cta-block p {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

.cta-actions {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Related services ---------- */
.related-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.related-link {
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: block;
  transition: all var(--transition);
}

.related-link:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
  background: var(--bg-card-elevated);
}

.related-link span {
  display: block;
  font-size: 0.78rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-weight: 600;
}

.related-link h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--text-main);
}

.related-link p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Audience / use-cases ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.audience-item {
  padding: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.audience-item h4 {
  color: var(--text-main);
  margin-bottom: 8px;
  font-size: 1rem;
}

.audience-item p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

/* ---------- Article content (policy, about etc) ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.prose h3 {
  margin-top: 1.6em;
}

.prose p,
.prose ul,
.prose ol {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.prose ul li {
  margin-bottom: 0.5em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
  display: none !important;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeUp 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* staggered delays */
.animate-in.delay-1 { animation-delay: 80ms; }
.animate-in.delay-2 { animation-delay: 160ms; }
.animate-in.delay-3 { animation-delay: 240ms; }

/* ---------- Responsywność ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .service-split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .related-links { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .hero { padding: 70px 0 60px; }
  .page-header { padding: 56px 0 30px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta-desktop { display: none; }
  .mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-section);
    border-bottom: 1px solid var(--border);
    padding: 18px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 999;
  }
  .mobile-menu a {
    color: var(--text-secondary);
    padding: 13px 12px;
    border-radius: var(--radius-sm);
    font-weight: 500;
  }
  .mobile-menu a:hover,
  .mobile-menu a.is-active {
    background: var(--bg-card);
    color: var(--text-main);
  }
  .mobile-menu .btn {
    margin-top: 12px;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-block { padding: 40px 24px; }
  .configurator { padding: 28px 20px; }
  .result-card { padding: 32px 22px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-proof { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
  .btn-lg { padding: 14px 22px; }
  .step-question { font-size: 1.2rem; }
  .step-actions { flex-direction: column-reverse; }
  .step-actions .btn { width: 100%; }
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Missing utility classes & accents ---------- */
.muted { color: var(--text-muted); }
.required { color: var(--primary); font-weight: 600; margin-left: 2px; }

/* FAQ icon & answer polish */
.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--text-muted);
}
.faq-item.is-open .faq-icon { transform: rotate(180deg); color: var(--primary); }

.faq-category {
  margin-bottom: 48px;
}
.faq-category > h2 {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Form error state & checkbox */
input.has-error,
textarea.has-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.form-error {
  display: block;
  margin-top: 6px;
  color: #f87171;
  font-size: 0.875rem;
}
.form-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.form-checkbox .has-error + span {
  color: #f87171;
}

/* Result card — colour variants by recommendation key */
.result-card.result-doraźna { border-top: 3px solid var(--text-muted); }
.result-card.result-podstawowa { border-top: 3px solid var(--primary); }
.result-card.result-devops { border-top: 3px solid var(--accent); }
.result-card.result-indywidualna {
  border-top: 3px solid var(--success);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.04), transparent 40%), var(--card);
}


/* ---------- Tables for prose (privacy policy) ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.data-table thead th {
  background: var(--card-elevated);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(56, 189, 248, 0.04); }
.data-table td:first-child {
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .data-table th, .data-table td { padding: 12px 12px; font-size: 0.9rem; }
  .data-table td:first-child { white-space: normal; }
}

/* Inline code in prose */
.prose code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 2px 7px;
  background: var(--card-elevated);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--primary);
}
