/* =========================================================
   M-Komputer — style strony
   Motyw: ciemny granat z niebieskimi akcentami
   ========================================================= */

:root {
  --bg: #0a1220;
  --bg-elev: #0f1b2e;
  --card: #12243d;
  --card-2: #16304f;
  --border: rgba(120, 160, 210, 0.14);
  --text: #eaf1fb;
  --muted: #a7b6cc;
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0; }

a { color: inherit; text-decoration: none; }

/* ===================== Nagłówek ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 40px; height: 40px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }

.nav-desktop { display: flex; gap: 30px; }
.nav-desktop a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav-desktop a:hover { color: var(--accent); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--card-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}
.menu-icon { display: inline-flex; flex-direction: column; gap: 3px; }
.menu-icon span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 20px 16px;
  border-top: 1px solid var(--border);
}
.nav-mobile a {
  padding: 12px 4px;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: flex; }

/* ===================== Hero ===================== */
.hero { padding-top: 32px; }
.hero-card {
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero-desc { color: var(--muted); font-size: 1.1rem; margin: 20px 0 30px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-logo {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ===================== Przyciski ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}
.btn span { transition: transform 0.2s ease; }
.btn:hover span { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(180deg, #244b7e, #1c3c66);
  color: var(--text);
  border-color: rgba(120, 160, 210, 0.22);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #2a578f, #204471);
  border-color: rgba(120, 160, 210, 0.38);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: rgba(120, 160, 210, 0.22);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(120, 160, 210, 0.4);
  transform: translateY(-2px);
}

/* ===================== Sekcje ===================== */
.section { padding: 56px 20px; }
.section-sub { color: var(--muted); margin: 12px 0 30px; max-width: 62ch; }

/* Jak to działa */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.step-num {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  font-weight: 700;
}
.step p { color: var(--muted); }
.info-line { color: var(--muted); font-size: 0.98rem; }
.info-line strong { color: var(--text); }
.dot { margin: 0 8px; color: var(--accent); }

/* O firmie */
.about-card {
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}
.about-card p { color: var(--muted); font-size: 1.1rem; margin-top: 14px; max-width: 70ch; }

/* Karty (usługi / zalety) */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  background: var(--card-2);
}
.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border-radius: 12px;
  color: var(--accent);
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ===================== Cennik ===================== */
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 28px);
  overflow-x: auto;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}
.pricing-table th,
.pricing-table td {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
}
.pricing-table th {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}
.pricing-table td:last-child,
.pricing-table th:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:hover { background: var(--card-2); }
.pricing-note { color: var(--muted); font-size: 0.85rem; margin-top: 16px; }

/* ===================== Kontakt ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.field input,
.field textarea {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form .btn { align-self: flex-start; }
.form-status { font-size: 0.9rem; color: var(--accent); min-height: 1em; }

.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.info-item h3 { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.info-item a { color: var(--accent); font-weight: 600; }
.info-item p { color: var(--text); }
.map-placeholder {
  flex: 1;
  min-height: 180px;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(45deg, #0d1a2c, #0d1a2c 12px, #0f1e33 12px, #0f1e33 24px);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===================== Stopka ===================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 44px 20px 28px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 340px; }
.footer-brand .brand-logo { display: inline-block; vertical-align: middle; }
.footer-brand .brand-name { margin-left: 10px; }
.footer-tag { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; align-content: flex-start; }
.footer-nav a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 20px;
  color: var(--muted);
  font-size: 0.85rem;
}

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

/* ===================== Responsywność ===================== */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

/* Podstrona prawna */
.legal { padding: 56px 0 72px; }
.legal-inner { max-width: 820px; }
.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}
.legal-back:hover { color: var(--text); }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.legal-lead { color: var(--muted); max-width: 640px; margin-bottom: 32px; }
.legal-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 18px;
}
.legal-block h2 { font-size: 1.2rem; margin-bottom: 10px; }
.legal-block p { color: var(--muted); }
.legal-updated { color: var(--muted); font-size: 0.9rem; margin-top: 28px; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}