/* --- PODSTAWOWE RESETY I STRUKTURA --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
  color: #1f2937;
  background: #fff;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- NAGŁÓWEK --- */
header {
  background: #0f172a; /* pełne, ciemne tło */
  color: white;
  height: 240px;
  position: sticky;
  top: 0;
  z-index: 9999; /* wyższy priorytet nad treścią */
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.brand img {
  height: 480px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Wszystkie przyciski w menu jak "Kontakt" --- */
.nav-links a {
  color: white;
  background: #06b6d4;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #06b6d4;
  transition: background 0.2s, border-color 0.2s;
}

.nav-links a:hover {
  background: #0891b2;
  border-color: #0891b2;
}

.btn-primary {
  background: #06b6d4;
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #06b6d4;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #0891b2;
  border-color: #0891b2;
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  padding: 6px;
  border-radius: 8px;
  color: white;
  font-size: 18px;
}

/* --- GŁÓWNA TREŚĆ --- */
main {
  padding: 48px 0;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.footer {
  padding: 20px 0;
  text-align: center;
  color: #475569;
}

h1,
h2,
h3 {
  color: #0f172a;
  margin-bottom: 12px;
}

p {
  margin-bottom: 12px;
}

ul {
  margin-left: 20px;
  line-height: 1.7;
  color: #334155;
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: inline-block;
  }
}

/* --- HERO --- */
.hero {
  position: relative;
  z-index: 10;
}

/* --- POPRAWKA: klikalne i podświetlane linki w "Zakres usług" --- */
.hero .card {
  position: relative;
  z-index: 10;
}

.hero .card ul {
  margin-top: 10px;
  line-height: 1.6;
  color: #000;
  list-style: disc;
  padding-left: 20px;
}

.hero .card ul li {
  position: relative;
  z-index: 10;
}

.hero .card ul li a {
  color: #000 !important;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.hero .card ul li a:hover {
  color: #0ea5e9 !important;
  text-decoration: underline;
}


/* --- FORMULARZ KONTAKTOWY --- */
.contact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

input,
textarea {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  font-size: 15px;
  font-family: inherit;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.25);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  grid-column: 1 / -1;
  width: fit-content;
}

#formStatus {
  grid-column: 1 / -1;
  color: #06b6d4;
  margin-top: 4px;
  font-weight: 500;
}
