/* Konkurs „Twój pomysł. Lepszy GoWork!” – HR Arena 2026
   Kolory i typografia wg brandbooka GoWork.pl */

:root {
  --red: #ec0000;
  --red-text: #c80000;
  --red-hover: #c80000;
  --ink: #050505;
  --ink-2: #555555;
  --paper: #ffffff;
  --paper-2: #f7f7f6;
  --card: #f3f3f3;
  --line: #e6e6e3;
  --display: Anton, "Bebas Neue", Impact, sans-serif;
  --sans: Carlito, Calibri, "Open Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  padding: 48px 16px 40px;
  background: var(--paper-2);
  font-family: var(--sans);
  color: var(--ink);
}

a { color: var(--red-text); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
img, svg { display: block; }

/* Karta */
.card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.card--wide { max-width: 840px; gap: 40px; padding: clamp(20px, 5vw, 48px); }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.top__logo { height: 40px; width: auto; }
.top__event {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

/* Nagłówki Anton: linia 1 ink, linia 2 red */
.headline {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 72px);
  line-height: 1.02;
  text-transform: uppercase;
}
.headline span { display: block; }
.headline .l1 { color: var(--ink); }
.headline .l2 { color: var(--red); }
.headline--section { font-size: clamp(30px, 5vw, 40px); line-height: 1.08; }
.headline--rules { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; }

/* Blok konkursu */
.hero {
  background: var(--red);
  color: #ffffff;
  border-radius: 8px;
  padding: clamp(24px, 5vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px;
}
.hero--stack { flex-direction: column; align-items: flex-start; gap: 20px; }
.hero__body {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.hero .headline .l1 { color: #ffffff; }
.hero .headline .l2 { color: var(--ink); }
.hero__lead { margin: 0; font-size: 22px; line-height: 28px; font-weight: 700; }
.hero__text { margin: 0; font-size: 18px; line-height: 26px; }
.hero__icon { flex: 0 0 auto; width: 96px; height: 96px; color: #ffffff; }

.tag {
  margin: 0;
  padding: 6px 12px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--red);
  font-size: 14px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.done-badge {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.done-badge svg { width: 32px; height: 32px; }

/* Treść */
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--24 { gap: 24px; }
.text { margin: 0; font-size: 18px; line-height: 28px; }
.text strong { color: var(--red); }

.prizes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.prize {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
}

.badge {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.badge svg { width: 24px; height: 24px; }

.slogan {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  line-height: 34px;
  text-transform: uppercase;
  color: var(--ink);
}
.slogan span { color: var(--red); }

.sep { border: 0; border-top: 1px solid var(--line); margin: 0; }

.notice {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--card);
  border-radius: 8px;
  padding: 24px;
}
.notice .badge { width: 56px; height: 56px; }
.notice .badge svg { width: 28px; height: 28px; }
.notice p { margin: 0; font-size: 20px; line-height: 28px; }
.notice strong { color: var(--red-text); }

/* Formularz */
.form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 20px 16px; }
.row .field { flex: 1 1 260px; }

.label { font-size: 18px; line-height: 22px; font-weight: 700; }
.label small { font-size: inherit; font-weight: 400; color: var(--ink-2); }
.hint { margin: 0; font-size: 16px; line-height: 22px; color: var(--ink-2); }

.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 18px;
  line-height: 24px;
  color: var(--ink);
  background: #ffffff;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
}
textarea.input { min-height: 168px; padding: 14px 16px; line-height: 26px; resize: vertical; }
.input::placeholder { color: var(--ink-2); opacity: 1; }
.input[aria-invalid="true"] { border-color: var(--red-text); }

.counter-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 15px;
  line-height: 20px;
}
.counter-row p { margin: 0; }
.counter-row .muted { color: var(--ink-2); }
.counter { font-weight: 700; color: var(--ink-2); }
.counter.is-ok { color: var(--ink); }
.counter.is-bad { color: var(--red-text); }

.error { margin: 0; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--red-text); }
.error[hidden] { display: none; }
.form-error { text-align: center; }

.consents {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.consents legend { padding: 0; margin: 0 0 12px; font-size: 18px; line-height: 22px; font-weight: 700; }
.consent { display: flex; flex-direction: column; gap: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input {
  width: 22px;
  height: 22px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--red);
  cursor: pointer;
}
.check label { font-size: 16px; line-height: 22px; cursor: pointer; }
.check label a { font-weight: 700; }
.consent .error { margin-left: 34px; }

.notes { display: flex; flex-direction: column; gap: 4px; }
.note { margin: 0; font-size: 15px; line-height: 20px; color: var(--ink-2); }

.submit { display: flex; flex-direction: column; gap: 12px; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  padding: 12px 24px;
  background: var(--red);
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  font-family: inherit;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--red-hover); color: #ffffff; }
.btn[disabled] { opacity: 0.7; cursor: wait; }

/* Pułapka na boty – pole niewidoczne dla ludzi */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Numer zgłoszenia na ekranie podziękowania */
.ticket-no { margin: 0; padding: 10px 14px; border-radius: 6px; background: #ffffff; color: var(--ink); font-size: 18px; line-height: 24px; }
.ticket-no strong { color: var(--red); letter-spacing: 0.04em; }
.ticket-no[hidden] { display: none; }

/* Stopka */
.foot {
  max-width: 720px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
.foot--wide { max-width: 840px; }
.foot nav { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; font-size: 15px; line-height: 20px; }
.foot nav span { color: var(--ink-2); }
.foot p { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }

/* Regulamin */
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  text-decoration: none;
}
.back svg { width: 20px; height: 20px; }

.rules { display: flex; flex-direction: column; gap: 40px; }
.rules section { display: flex; flex-direction: column; gap: 16px; }
.rules h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  line-height: 34px;
  text-transform: uppercase;
}
.rules ol { margin: 0; padding-left: 28px; display: flex; flex-direction: column; gap: 12px; }
.rules li { font-size: 16px; line-height: 24px; padding-left: 4px; }
.rules ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }

@media (max-width: 480px) {
  body { padding: 24px 12px 32px; }
  .hero__icon { width: 72px; height: 72px; }
  .notice { align-items: flex-start; }
}
