/* Reset */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #111827;
  background-color: #f7fafc;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Layout */
header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  gap: 1rem;
}

/* Branding */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-logo img {
  height: 32px;
  width: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: #4b5563;
}
.brand-text strong {
  font-size: 0.95rem;
  color: #111827;
}
.lisy-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #9a3412;
  font-size: 0.8rem;
}

/* Reset underline */
a:hover {
  text-decoration: none;
}

/* Podstawowe linki */
nav a {
  color: #000;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}

/* Hover – lekkie zielone tło */
nav a:hover {
  background: rgba(21, 128, 61, 0.12);
  color: #15803d;
}

/* Active – zielone podkreślenie */
nav a.active {
  border-bottom-color: #15803d;
  color: #15803d;
  font-weight: 600;
}

/* Kontakt – czerwony tekst, bez podkreślenia na start */
.nav-alert {
  color: #b91c1c !important;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  border-radius: 0.4rem;
}

/* Kontakt hover – lekkie czerwone tło */
.nav-alert:hover {
  background: rgba(185, 28, 28, 0.12);
  color: #7f1d1d !important;
}

/* Kontakt active – czerwone podkreślenie */
.nav-alert.active {
  border-bottom-color: #b91c1c;
  color: #7f1d1d !important;
}

/* Page layout */
main {
  padding: 1.5rem 0 2.5rem;
}
.page-header {
  margin-bottom: 1.4rem;
}
.page-header h1 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  color: #0f172a;
}
.page-header p {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
}

/* Cards */
.card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e5e7eb;
  margin-bottom: 1rem;
}
.card h2 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
  color: #111827;
}
.card h3 {
  margin-top: 0.4rem;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  color: #111827;
}
.card p {
  margin: 0 0 0.4rem;
  font-size: 0.94rem;
}
.card ul {
  margin: 0.2rem 0 0.4rem 1.1rem;
  padding: 0;
  font-size: 0.94rem;
}
.card-image {
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: block;
}
.card .icon {
  margin-bottom: 0.5rem;
}
.card .icon svg {
  width: 32px;
  height: 32px;
  stroke: #1d4ed8;
}

/* Table */
.table-wrapper { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
th, td {
  padding: 0.55rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
th {
  background: #f9fafb;
  font-weight: 600;
  font-size: 0.9rem;
}
tr:last-child td { border-bottom: none; }

/* Footer */
footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 0.85rem;
  color: #6b7280;
}
.footer-inner {
  padding: 0.8rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

/* Mobile */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, #fefce8 0%, #fff7ed 100%);
  padding: 3rem 1rem 2.5rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-icon svg {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
}

.hero-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.5rem;
  color: #0f172a;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #4b5563;
  margin: 0 auto 1.5rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-btn {
  background: #1d4ed8;
  color: #ffffff;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.hero-btn:hover {
  background: #1e40af;
}

.hero-btn.secondary {
  background: #f97316;
}

.hero-btn.secondary:hover {
  background: #ea580c;
}

.hero-illustration {
  margin: 2rem auto 2.5rem;
  max-width: 720px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hero-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

.card .hero-title {
  font-size: 1.4rem;
  margin: 0.6rem 0 0.4rem;
  color: #0f172a;
}

.card .hero-subtitle {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

.card .hero-buttons {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
