/* Google Fonts - Inter to standard dla nowoczesnego software'u */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
  --bg-body: #f8fafc;        /* Bardzo jasny szary/błękit */
  --bg-card: #ffffff;        /* Czysta biel kart */
  --primary: #0284c7;        /* Profesjonalny błękit (szczery) */
  --primary-hover: #0369a1;
  --text-main: #1e293b;      /* Ciemny granat/szary dla tekstu */
  --text-muted: #64748b;     /* Tekst pomocniczy */
  --accent: #f1f5f9;         /* Tła dla tagów i sekcji bocznych */
  --border: #e2e8f0;         /* Delikatne ramki */
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* --- Nawigacja --- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 40px;
}

.brand h1 { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.brand small { color: var(--text-muted); font-size: 0.85rem; }

.nav { display: flex; gap: 15px; align-items: center; }
.nav a { text-decoration: none; color: var(--text-main); font-size: 0.9rem; font-weight: 500; }
.nav .pill:hover { color: var(--primary); }

/* --- Karty i Układ --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}

/* --- Hero Section --- */
.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.kickerDot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; }

.heroTitle { font-size: 2.2rem; line-height: 1.2; margin-bottom: 15px; }
.heroSub { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 25px; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.tag { background: var(--accent); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; }

.heroSide { background: var(--accent); border: none; }
.sideTitle { font-weight: 700; margin-bottom: 20px; color: var(--primary); border-bottom: 2px solid var(--border); padding-bottom: 10px; }
.sideList { list-style: none; }
.sideItem { margin-bottom: 20px; }
.sideItem b { display: block; font-size: 0.95rem; }
.sideItem span { font-size: 0.85rem; color: var(--text-muted); }

/* --- Siatka Usług --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.svcCard { border-top: 4px solid var(--primary); transition: transform 0.2s; }
.svcCard:hover { transform: translateY(-5px); }
.sectionTitle { font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; font-size: 0.85rem; }

/* --- Elementy UI --- */
.btn {
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--primary-hover); }

.btnGhost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 11px 23px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.btnGhost:hover { background: var(--accent); }

.ctaRow { display: flex; gap: 15px; margin-bottom: 40px; }

.miniInfo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; border-top: 1px solid var(--border); pt: 20px; padding-top: 25px;}
.miniBox b { display: block; font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); }
.miniBox span { font-size: 0.85rem; font-weight: 500; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.list { list-style: none; }
.li { margin-bottom: 12px; padding-left: 20px; position: relative; }
.li::before { content: "→"; position: absolute; left: 0; color: var(--primary); font-weight: bold; }

/* --- Formularz --- */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; }
input, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  background: #fcfcfc;
}
input:focus, textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.helper { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsywność */
@media (max-width: 850px) {
  .hero, .split, .row2 { grid-template-columns: 1fr; }
  .nav { display: none; } /* Uproszczenie dla mobile */
  .heroTitle { font-size: 1.8rem; }
}
.lin-visual {
  margin-top: 15px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  text-align: center;
}

.lin-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 5px;
  text-align: left;
}

.lin-wave {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 2px rgba(2, 132, 199, 0.2));
}

.lin-caption {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 5px;
  font-style: italic;
}

/* Podstawowy styl dla komunikatu */
.status {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  font-weight: bold;
  display: block; /* Upewnij się, że jest widoczny */
}

/* Styl dla błędu - CZERWONY */
.status.err {
  color: #d9534f; /* Ładny czerwony */
  background-color: #f2dede; /* Opcjonalnie: jasnoczerwone tło */
  border: 1px solid #ebccd1;
}

/* Styl dla sukcesu - ZIELONY */
.status.ok {
  color: #3c763d; /* Ciemnozielony */
  background-color: #dff0d8; /* Jasnozielone tło */
  border: 1px solid #d6e9c6;
}