:root {
  --red: #c8102e;
  --yellow: #ffc72c;
  --dark: #27251f;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --soft: #f6f4ef;
  --line: #e5e1d8;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--red); }

/* ---------- Nagłówek i menu ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  min-height: 64px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1.2;
}
.brand small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--yellow);
}

.burger-icon {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 15px;
}
.menu a:hover { background: rgba(255,255,255,.1); }
.menu a.active { color: var(--yellow); }

@media (max-width: 760px) {
  header { flex-wrap: wrap; padding: 0 16px; }
  .burger-icon { display: block; }
  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-bottom: 12px;
  }
  .menu.show { display: flex; }
}

/* ---------- Strona główna ---------- */
.image-container {
  position: relative;
  width: 100%;
  height: calc(100vh - 64px);
  min-height: 380px;
  background: var(--dark) center / cover no-repeat;
  overflow: hidden;
}
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 48px 24px 32px;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff;
}
.hero-text h1 { margin: 0 0 4px; font-size: clamp(24px, 4vw, 40px); }
.hero-text p { margin: 0; color: #eee; }

/* ---------- Podstrony ---------- */
main.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}
main.page h1 {
  font-size: 30px;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 4px solid var(--yellow);
  display: inline-block;
}
main.page h2 { font-size: 21px; margin-top: 36px; }
.lead { color: var(--muted); font-size: 17px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 4px 0; }

.empty {
  background: var(--soft);
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  font-size: 18px;
  color: var(--muted);
}

ol.legal > li, ul.legal > li { margin-bottom: 10px; }

/* ---------- Formularz ---------- */
.form-container { margin-bottom: 16px; }
.form-container label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-container .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
input[type=text], input[type=email], select, textarea {
  width: 100%;
  padding: 12px;
  font: inherit;
  border: 1px solid #c9c4b8;
  border-radius: 8px;
  background: #fff;
}
textarea { min-height: 220px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--yellow); border-color: var(--yellow); }

.guide {
  background: var(--soft);
  border-left: 4px solid var(--yellow);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 15px;
}
.guide ul { margin: 6px 0 0; padding-left: 20px; }

.checkbox-container { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.checkbox-container input { margin-top: 5px; width: 18px; height: 18px; }
.declarations { font-size: 14px; color: var(--muted); margin: 8px 0 20px 28px; padding: 0; }

button[type=submit] {
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 14px 32px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button[type=submit]:hover { filter: brightness(1.1); }
button[type=submit]:disabled { opacity: .6; cursor: wait; }

#formMessage { margin-top: 16px; padding: 12px 16px; border-radius: 8px; display: none; }
#formMessage.ok { display: block; background: #e7f6ea; color: #1f6b2e; }
#formMessage.err { display: block; background: #fdeaea; color: #8a1c1c; }

/* ---------- Stopka ---------- */
footer {
  background: var(--dark);
  color: #cfcac0;
  font-size: 14px;
  padding: 24px 16px;
  text-align: center;
}
footer a { color: var(--yellow); }

/* ---------- Strona sygnalistów ---------- */
.btn {
  display: inline-block;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.btn:hover { filter: brightness(1.3); }
.note {
  background: #fff8e1;
  border: 1px solid #f3dd9a;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
}
html { scroll-behavior: smooth; }
#formularz { scroll-margin-top: 80px; }

/* ---------- Nagłówek z logo (biały, jak w stopce mailowej) ---------- */
header {
  background: #fff;
  color: var(--dark);
  min-height: 88px;
  border-bottom: 4px solid var(--yellow);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.brand { display: flex; align-items: center; padding: 10px 0; }
.brand img { height: 64px; width: auto; display: block; }
.menu a { color: var(--dark); font-weight: 500; }
.menu a:hover { background: var(--soft); }
.menu a.active { color: var(--dark); background: var(--yellow); }
.burger-icon { color: var(--dark); }
.image-container { height: calc(100vh - 92px); }
#formularz { scroll-margin-top: 108px; }
@media (max-width: 760px) {
  .brand img { height: 48px; }
}
