:root {
  --bg:            #f2f6f9;
  --surface:       #ffffff;
  --ink:           #16232e;
  --ink-soft:      #4c5c6b;
  --ink-faint:     #7c8b98;
  --line:          #dbe3ea;
  --brand:         #1560a8;   /* granat z logo */
  --brand-dark:    #10457c;
  --brand-light:   #009bd7;   /* błękit z logo */
  --brand-tint:    #e9f3fb;
  --amber:         #a4600d;
  --amber-tint:    #fdf3e4;
  --danger:        #b3261e;
  --radius:        14px;
  --shadow:        0 1px 2px rgba(22,35,46,.05), 0 12px 32px -18px rgba(22,35,46,.35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: 20px; }

/* ---------- topbar ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar::before {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand));
}
.topbar__inner { display: flex; align-items: center; gap: 10px; height: 60px; }
.topbar__brand { font-weight: 650; letter-spacing: -.01em; }
.logo { width: auto; height: 30px; flex: none; display: block; }

/* ---------- intro ---------- */
.intro { padding: 44px 0 26px; }
.eyebrow {
  margin: 0 0 10px; font-size: 12px; font-weight: 650; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand);
}
h1 { margin: 0 0 12px; font-size: clamp(28px, 5vw, 38px); line-height: 1.15; letter-spacing: -.025em; }
.lead { margin: 0; color: var(--ink-soft); max-width: 58ch; }

/* ---------- card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 28px 28px;
}

.section { padding: 24px 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.section__title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 18px; font-size: 17px; letter-spacing: -.01em;
}
.section__num {
  display: grid; place-items: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand);
  font-size: 12px; font-weight: 700;
}

/* ---------- fields ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field--wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 550; }
.req { color: var(--brand); }

input[type=text], input[type=tel], input[type=email], select {
  width: 100%; padding: 11px 13px;
  font: inherit; color: inherit;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--ink-faint); }
input:hover, select:hover { border-color: #c2d1de; }
input:focus-visible, select:focus-visible, .choice input:focus-visible + span, button:focus-visible {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(21,96,168,.18);
}
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 14px; top: 50%; pointer-events: none;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg);
}
select { appearance: none; padding-right: 36px; }

.field.is-invalid input { border-color: var(--danger); }
.err { margin: 6px 0 0; font-size: 13px; color: var(--danger); }
.hint { margin: 14px 0 0; font-size: 13px; color: var(--ink-faint); }

/* ---------- pytania ---------- */
.qa { border: 0; margin: 0 0 22px; padding: 0; }
.qa:last-of-type { margin-bottom: 0; }
.qa legend { padding: 0; margin-bottom: 12px; font-size: 15px; font-weight: 550; }
.qa a { color: var(--brand-dark); }

.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { position: relative; }
.choice input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: pointer;
}
.choice span {
  display: block; min-width: 96px; text-align: center;
  padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 550; background: var(--surface);
  transition: all .15s;
}
.choice:hover span { border-color: #b6c9da; }
.choice input:checked + span {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 4px 12px -4px rgba(21,96,168,.45);
}
.qa.is-invalid .choice span { border-color: var(--danger); }

/* ---------- panel wyniku ---------- */
.outcome { padding-top: 4px; }
.panel {
  border-radius: 12px; padding: 22px 24px;
  animation: rise .25s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .panel { animation: none; } }

.panel--info  { background: var(--brand-tint); border: 1px solid #cfe1f1; }
.panel--offer { background: var(--amber-tint); border: 1px solid #f0dcbc; }

.panel__title { margin: 0 0 14px; font-size: 17px; line-height: 1.35; letter-spacing: -.01em; }
.panel--info  .panel__title { color: var(--brand-dark); }
.panel--offer .panel__title { color: var(--amber); }
.panel p { margin: 0 0 12px; }
.panel p:last-child { margin-bottom: 0; }
.panel a { color: inherit; }

.panel__list { margin: 0; padding-left: 20px; }
.panel__list > li { margin-bottom: 14px; }
.panel__list > li:last-child { margin-bottom: 0; }
.panel__list ul { margin: 8px 0 0; padding-left: 20px; }
.panel__list ul li { margin-bottom: 4px; }

.panel__note {
  padding-top: 12px; border-top: 1px solid rgba(164,96,13,.22);
  font-size: 14px; color: var(--ink-soft);
}

/* ---------- akcje ---------- */
.actions { padding-top: 24px; border-top: 1px solid var(--line); margin-top: 24px; }
.btn {
  appearance: none; border: 0; cursor: pointer;
  padding: 13px 30px; border-radius: 10px;
  background: var(--brand); color: #fff;
  font: inherit; font-weight: 600;
  transition: background .15s, transform .08s;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent; color: var(--brand-dark);
  border: 1px solid var(--line); margin-top: 8px;
}
.btn--ghost:hover { background: var(--brand-tint); }
.actions__note { margin: 12px 0 0; font-size: 13px; color: var(--ink-faint); }

/* ---------- podziękowanie ---------- */
.card--thanks { text-align: center; padding: 48px 28px; }
.card--thanks:focus { outline: none; }
.thanks__mark {
  width: 52px; height: 52px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--brand-tint); color: var(--brand);
  font-size: 24px; font-weight: 700;
}
.card--thanks h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.02em; }
.card--thanks p { margin: 0 auto; max-width: 46ch; color: var(--ink-soft); }

/* ---------- stopka ---------- */
.footer { padding: 32px 20px 48px; font-size: 13px; color: var(--ink-faint); }
.footer a { color: var(--ink-soft); }

/* ---------- pułapka na boty ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Turnstile ---------- */
.turnstile:not(:empty) { margin-bottom: 18px; }

/* ---------- komunikat błędu wysyłki ---------- */
.alert {
  margin: 0 0 16px; padding: 12px 14px;
  background: #fdecea; border: 1px solid #f3c9c5; border-radius: 10px;
  color: #8c1d16; font-size: 14px;
}

/* ---------- przycisk w trakcie wysyłki ---------- */
.btn[disabled] { opacity: .6; cursor: progress; }
.btn__spinner {
  display: inline-block; width: 14px; height: 14px; margin-right: 8px;
  vertical-align: -2px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn__spinner { animation-duration: 2s; } }
