:root {
  --navy: #095695;
  --navy-dark: #0b2540;
  --blue: #1e73be;
  --red: #e30808;
  --ink: #1a1a1a;
  --muted: #5b6270;
  --line: #d5dbe3;
  --soft: #f3f6fa;
  --good: #1a7f37;
  --mid: #b45f06;
  --bad: #c62828;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  font-size: 17px;
}
@font-face { font-family: 'Source Sans 3'; src: url('/fonts/source-sans-3-latin-ext.woff2') format('woff2'); font-weight: 200 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; src: url('/fonts/source-sans-3-latin.woff2') format('woff2'); font-weight: 200 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
a { color: var(--navy); }

.top { border-bottom: 1px solid var(--line); background: #fff; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-dark); font-weight: 800; font-size: 19px; }
.top-tag { color: var(--muted); font-size: 15px; }

.hero { background: linear-gradient(180deg, var(--soft), #fff 70%); padding: 48px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.kicker { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; margin: 0 0 8px; }
h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; margin: 0 0 16px; color: var(--navy-dark); font-weight: 800; letter-spacing: -0.01em; }
h1 span { color: var(--navy); }
.lead { font-size: 19px; color: #333a45; margin: 0 0 20px; }
.platforms { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.platforms li { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; color: var(--navy-dark); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; color: #333a45; }
.checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.3 11.3 3 8l1.1-1.1 2.2 2.2 5.6-5.6L13 4.6z'/%3E%3C/svg%3E") center/12px no-repeat; }
.checks b { color: var(--navy-dark); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 30px rgba(11, 37, 64, .08); }
.card h2 { margin: 0 0 16px; font-size: 24px; color: var(--navy-dark); }
.field { margin: 0 0 14px; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--navy-dark); }
input[type=text], input:not([type]), input[type=email], input[type=tel] {
  width: 100%; padding: 12px 14px; font: inherit; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(9, 86, 149, .15); }
input.invalid { border-color: var(--bad); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { margin: 0; font-weight: 500; cursor: pointer; }
.pills input { position: absolute; opacity: 0; }
.pills span { display: inline-block; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 15px; }
.pills input:checked + span { border-color: var(--navy); background: rgba(9, 86, 149, .08); color: var(--navy-dark); font-weight: 700; }
.pills input:focus-visible + span { box-shadow: 0 0 0 3px rgba(9, 86, 149, .25); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consents { display: grid; gap: 8px; margin: 6px 0 12px; }
.consent { display: flex; gap: 10px; font-size: 14px; color: #3c4350; line-height: 1.4; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.consent .req { color: var(--red); }
.consent-note { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.btn { display: block; width: 100%; text-align: center; padding: 14px 18px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; font: inherit; font-weight: 700; font-size: 18px; cursor: pointer; text-decoration: none; }
.btn:hover { background: #074678; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-alt { background: var(--red); margin-top: 16px; }
.btn-alt:hover { background: #c00707; }
.small { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.error { color: var(--bad); font-weight: 600; font-size: 15px; min-height: 0; margin: 4px 0 8px; }
.error:empty { display: none; }
.link { background: none; border: 0; padding: 0; color: var(--navy); font: inherit; text-decoration: underline; cursor: pointer; }
.link:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.code-input { font-size: 28px !important; letter-spacing: .4em; text-align: center; font-weight: 700; }
.code-actions { display: flex; justify-content: space-between; margin-top: 12px; font-size: 15px; }

.progress { height: 10px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 2%; background: linear-gradient(90deg, var(--navy), var(--blue)); border-radius: 999px; transition: width .6s ease; }
.progress-label { font-weight: 600; color: var(--navy-dark); margin: 10px 0 12px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; }
.steps li { color: var(--muted); padding-left: 26px; position: relative; }
.steps li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); }
.steps li.active { color: var(--navy-dark); font-weight: 600; }
.steps li.active::before { border-color: var(--navy); border-top-color: transparent; animation: spin 1s linear infinite; }
.steps li.done { color: var(--good); }
.steps li.done::before { background: var(--good); border-color: var(--good); }
@keyframes spin { to { transform: rotate(360deg); } }

.result-head { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.result-head h2 { margin: 0; }
.ring-wrap { position: relative; width: 116px; height: 116px; flex: none; }
.ring { width: 116px; height: 116px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--soft); stroke-width: 12; }
.ring-val { fill: none; stroke: var(--navy); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 0 400; transition: stroke-dasharray 1s ease; }
.ring-num { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 38px; }
.ring-num b { font-size: 34px; color: var(--navy-dark); line-height: 1; }
.ring-num span { color: var(--muted); font-size: 14px; }
.level { margin: 4px 0 0; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.lvl-niska { color: var(--bad); } .lvl-umiarkowana { color: var(--mid); } .lvl-dobra { color: var(--blue); } .lvl-wysoka { color: var(--good); }
.pillars { display: grid; gap: 10px; margin-bottom: 14px; }
.pillar-top { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; color: var(--navy-dark); }
.pillar-bar { height: 8px; background: var(--soft); border-radius: 999px; overflow: hidden; margin-top: 4px; }
.pillar-bar span { display: block; height: 100%; border-radius: 999px; }
.pillar-detail { font-size: 13px; color: var(--muted); }
.finding { border-left: 3px solid var(--red); padding-left: 12px; margin: 0 0 10px; }
.competitors { font-size: 15px; color: #333a45; margin: 0 0 14px; }
.competitors:empty { display: none; }
.sent { background: var(--soft); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; font-size: 15px; }
.sent span { color: var(--muted); font-size: 14px; }

.how { padding: 48px 0 56px; }
.how h2 { font-size: 28px; color: var(--navy-dark); margin: 0 0 20px; }
.how-grid { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-grid li { counter-increment: s; border-top: 3px solid var(--navy); padding-top: 12px; display: grid; gap: 4px; }
.how-grid li::before { content: '0' counter(s); color: var(--red); font-weight: 800; }
.how-grid b { color: var(--navy-dark); font-size: 19px; }
.how-grid span { color: var(--muted); }
.note { color: var(--muted); margin-top: 20px; }
.foot { border-top: 1px solid var(--line); padding: 20px 0; font-size: 14px; color: var(--muted); }

/* Regulamin */
.legal { max-width: 820px; padding-top: 32px; padding-bottom: 48px; }
.legal h1 { font-size: clamp(26px, 3.5vw, 34px); margin-bottom: 20px; }
.legal h2 { font-size: 20px; color: var(--navy-dark); margin: 28px 0 8px; }
.legal ol, .legal ul { padding-left: 24px; }
.legal li { margin-bottom: 6px; }
.legal ol ol { margin-top: 6px; list-style: lower-alpha; }
.legal > p:first-of-type strong { display: block; background: #fff4e5; border-left: 3px solid var(--mid); padding: 8px 12px; font-weight: 700; }
.legal-back { margin-top: 32px; }
@media print { .top, .foot, .legal-back { display: none; } .legal { padding: 0; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .card { order: -1; }
  .hero-copy .checks { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 24px 0 32px; }
  .card { padding: 20px 16px; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .how-grid { grid-template-columns: 1fr; }
  .top-tag { display: none; }
  .result-head { flex-direction: column; text-align: center; }
}
