:root {
  /* Motyw „Granat i mandarynka” */
  --brand: #13294b; --brand-2: #1d3a66; --brand-deep: #0c1c35; --brand-soft: #fff1e8; --brand-line: #f3c9ae;
  --ink: #13294b; --ink-2: #3a4a63; --muted: #6a7487; --bg: #ffffff; --bg-alt: #f7f4ee; --line: #e7e1d6;
  --or: #ef6c2f; --or-dark: #e05a1c; --or-ink: #c24e16; --or-head: #d4561a;
  --ok: #157347; --ok-bg: #e8f6ee; --warn: #9a5b00; --warn-bg: #fff4e0; --err: #b3261e; --err-bg: #fdecea;
  --radius: 10px; --shadow: none; --hard: 4px 4px 0 var(--ink);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h3 { font-size: 1.15rem; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.page { padding: 32px 0 64px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.right { text-align: right; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.inline { display: inline; margin: 0; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Nawigacja ---------- */
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.15rem; }
.brand b { color: var(--brand); }
.logo-mark { width: 34px; height: 34px; color: var(--brand); }
nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--brand); }

/* ---------- Przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 2px solid var(--brand);
  background: var(--brand); color: #fff !important; font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .12s, background .12s, box-shadow .12s; }
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(239, 108, 47, .28); }
.btn:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, .link-btn:focus-visible { outline: 3px solid #f4a37c; outline-offset: 2px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--brand) !important; }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-deep) !important; border-color: var(--brand); }
.btn-light { background: #fff; color: var(--brand-deep) !important; border-color: #fff; }
.btn-light:hover { background: var(--brand-soft); border-color: var(--brand-soft); }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-sm { padding: 7px 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: var(--err); }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #fbe3d3 0, transparent 60%), linear-gradient(180deg, #f7f4ee, #fff); padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--brand); margin: 0 0 12px; }
.accent { color: var(--brand); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 20px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ticks li { padding-left: 28px; position: relative; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.hero .ticks { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.hero-visual { position: relative; min-height: 440px; }
.stack { position: relative; width: min(330px, 80%); margin: 0 auto; aspect-ratio: 420 / 594; }
.sheet { position: absolute; inset: 0; width: 100%; border-radius: 6px; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.s1 { transform: rotate(-2deg); } .s2 { transform: translate(14px, -8px) rotate(2deg); } .s3 { transform: translate(28px, -16px) rotate(5deg); }
.s4 { transform: translate(40px, -22px) rotate(8deg); } .s5 { transform: translate(52px, -28px) rotate(11deg); }
.s2, .s3, .s4, .s5 { filter: brightness(.98); }
.price-bubble { position: absolute; left: 0; bottom: 18px; background: var(--brand); color: #fff; border-radius: 50%; width: 132px; height: 132px; display: grid; place-content: center; text-align: center;
  box-shadow: 0 10px 30px rgba(239, 108, 47, .4); transform: rotate(-8deg); line-height: 1.15; }
.price-bubble strong { font-size: 2.1rem; }
.price-bubble small { font-size: .75rem; opacity: .9; }

/* ---------- Sekcje ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-lead { color: var(--ink-2); font-size: 1.08rem; max-width: 46em; margin-bottom: 32px; }
.stats { background: var(--brand-deep); color: #fff; padding: 26px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stats-grid strong { display: block; font-size: 2rem; line-height: 1.1; }
.stats-grid span { font-size: .92rem; opacity: .85; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.cards-3 .card { margin: 0; }
.card-ico { font-size: 1.6rem; width: 52px; height: 52px; display: grid; place-items: center; background: var(--brand-soft); border-radius: 12px; margin-bottom: 14px; }
.card p { color: var(--ink-2); margin: 0 0 .6em; }
.sample { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; margin-top: 56px; }
.sample-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 6px; }
.steps li::before { content: counter(s); width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: 6px; }
.steps span { color: var(--ink-2); }
.consult { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.consult .ticks { margin-bottom: 24px; }
.slot-list { list-style: none; padding: 0; margin: 0 0 12px; }
.slot-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.slot-list li span::first-letter { text-transform: uppercase; }
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; justify-content: center; margin-bottom: 16px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--brand); }
.price-card .ticks { margin-bottom: 16px; flex: 1; }
.price { font-size: 2.6rem; font-weight: 800; margin: 0; color: var(--brand-deep); }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.tag { align-self: flex-start; margin: 0; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--brand); color: #fff; padding: 4px 10px; border-radius: 999px; }
.tag-muted { background: var(--brand-soft); color: var(--brand); }
details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; background: #fff; }
summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--brand); }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); margin: 0 0 16px; }
.cta-final { background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; }
.cta-final .section-lead { color: #ffd9c2; margin-inline: auto; }

/* ---------- Formularze ---------- */
.auth { max-width: 440px; margin: 24px auto; }
.form { display: grid; gap: 14px; margin: 20px 0 12px; }
.form label, .inline-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], input:not([type]), input[inputmode] {
  font: inherit; padding: 11px 14px; border: 1.5px solid #cfd6e2; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px #ffd9c2; }
.hint { font-size: .85rem; color: var(--muted); margin: -8px 0 0; }
.flash { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; border: 1px solid transparent; }
.flash-ok { background: var(--ok-bg); color: var(--ok); border-color: #bfe6cf; }
.flash-warn { background: var(--warn-bg); color: var(--warn); border-color: #f5d9a8; }
.flash-error { background: var(--err-bg); color: var(--err); border-color: #f4c7c3; }
.wrap > .flash { margin-top: 20px; }

.order-form { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.order-summary { position: sticky; top: 84px; }
.order-summary dl { margin: 0 0 12px; }
.order-summary dl div, .transfer div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.order-summary dd, .transfer dd { margin: 0; font-weight: 600; text-align: right; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; margin: 14px 0; }
.total strong { font-size: 1.6rem; color: var(--brand-deep); }
.product, .method, .check { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; margin-bottom: 10px; }
.product:has(input:checked), .method:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.product span, .method span { display: grid; gap: 2px; flex: 1; }
.product small, .method small { color: var(--muted); font-weight: 400; }
.product b { white-space: nowrap; }
.check { border: 0; padding: 6px 0; font-size: .93rem; color: var(--ink-2); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.week { border: 1px solid var(--line); border-radius: 12px; padding: 8px 16px 12px; margin: 0 0 14px; }
.week legend { font-weight: 700; color: var(--brand); padding: 0 6px; font-size: .9rem; }
.day { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.day:last-child { border-bottom: 0; }
.day-name { width: 230px; font-weight: 500; }
.day-name::first-letter { text-transform: uppercase; }
.times { display: flex; gap: 8px; flex-wrap: wrap; }
.time { position: relative; }
.time input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.time span { display: inline-block; padding: 7px 14px; border: 1.5px solid var(--brand-line); border-radius: 999px; font-weight: 600; font-variant-numeric: tabular-nums; }
.time input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.time input:focus-visible + span { outline: 3px solid #f4a37c; outline-offset: 2px; }
.time input:disabled + span { opacity: .35; }

/* ---------- Konto / zamówienie ---------- */
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; }
.pay-box { border: 2px solid var(--brand); }
.pay-steps li { margin-bottom: 6px; }
.copy { cursor: copy; background: var(--brand-soft); padding: 2px 8px; border-radius: 6px; }
.copy.copied::after { content: " ✔ skopiowano"; font-family: var(--font); font-size: .8rem; color: var(--ok); }
.items { list-style: none; padding: 0; margin: 0 0 12px; }
.items li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.files { list-style: none; padding: 0; margin: 0; }
.files li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.files form { margin: 0; }
.file-ico { width: 44px; height: 52px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: .75rem; display: grid; place-items: center; flex: none; }
.file-meta { flex: 1; display: grid; }
.file-meta small { color: var(--muted); }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; vertical-align: middle; letter-spacing: .02em; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-muted { background: #efe9df; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.card { overflow-x: auto; }
.actions { display: flex; gap: 10px; align-items: center; }
.actions form { margin: 0; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.inline-form input { width: auto; flex: 1; min-width: 160px; }
.admin-stats { background: var(--brand-deep); color: #fff; padding: 20px; border-radius: var(--radius); margin-bottom: 20px; }
.narrow-card { max-width: 520px; margin: 40px auto; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.2rem; margin-top: 1.6em; }

/* ---------- Stopka ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; align-items: start; }
.footer-links { display: grid; gap: 6px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }

/* ---------- Responsywność ---------- */
@media (max-width: 900px) {
  .hero-grid, .sample, .consult, .two-col, .order-form, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; order: -1; }
  .cards-3, .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: minmax(0, 1fr); }
  .order-summary { position: static; }
  .day-name { width: 100%; }
}
@media (max-width: 560px) {
  nav { gap: 12px; font-size: .92rem; }
  nav a[href^="/#"] { display: none; }
  .section { padding: 52px 0; }
  .price-bubble { width: 104px; height: 104px; }
  .price-bubble strong { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .footer { display: none; } }

/* ---------- Testy on-line: strona główna ---------- */
.online { background: linear-gradient(180deg, #fff, var(--brand-soft)); }
.online-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.online .ticks { margin-bottom: 26px; }
.mock { max-width: 380px; justify-self: center; width: 100%; transform: rotate(1.5deg); }
.mock-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.mock-choices { display: flex; gap: 8px; margin: 10px 0; }
.mock-choices span { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--brand-line); display: grid; place-items: center; font-weight: 700; }
.mock-choices .on, .mock-choices .good { background: var(--ok); border-color: var(--ok); color: #fff; }
.mock-choices .bad { background: var(--err); border-color: var(--err); color: #fff; }
.mock-line { height: 8px; border-radius: 4px; background: #efe9df; margin: 6px 0; }
.mock-line.short { width: 60%; }
.mock-score { margin-top: 12px; background: var(--brand-deep); color: #fff; border-radius: 12px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.mock-score strong { font-size: 1.6rem; }
.mt-s { margin-top: 14px; }
.mt { margin-top: 36px; }
.teacher { display: flex; gap: 14px; align-items: flex-start; background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 22px; }
.teacher-ico { font-size: 1.7rem; line-height: 1; }
.teacher p { margin: 4px 0 0; color: var(--ink-2); }
.online-cta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--brand-soft); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; }
.badge-err { background: var(--err-bg); color: var(--err); }

/* ---------- Testy on-line: lista ---------- */
.sheets { display: grid; gap: 16px; }
.sheet-card { display: flex; gap: 20px; align-items: center; margin: 0; flex-wrap: wrap; }
.sheet-no { width: 56px; height: 56px; border-radius: 14px; background: var(--brand); color: #fff; font-size: 1.6rem; font-weight: 800; display: grid; place-items: center; flex: none; }
.sheet-body { flex: 1; min-width: 220px; }
.sheet-body h2 { margin: 0 0 4px; font-size: 1.25rem; }
.sheet-body p { margin: 0 0 6px; }
.sheet-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bar { display: block; height: 8px; background: #efe9df; border-radius: 99px; overflow: hidden; max-width: 360px; }
.bar-fill { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width .6s; }
.bar-fill.full { background: var(--ok); }
.bar-fill.zero { background: var(--err); }

/* ---------- Testy on-line: rozwiązywanie ---------- */
.exam-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.timer { position: fixed; right: 20px; bottom: 20px; z-index: 6; margin: 0; padding: 10px 18px; text-align: center; min-width: 150px; box-shadow: 0 8px 30px rgba(19, 41, 75,.18); }
.timer small { display: block; color: var(--muted); }
.timer strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--brand-deep); }
.timer.low strong { color: var(--err); }
.task-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 20px; position: sticky; top: 64px; background: rgba(255,255,255,.95); padding: 10px 0; z-index: 2; }
.task-nav a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1.5px solid var(--brand-line); text-decoration: none; color: var(--ink-2); font-size: .85rem; font-weight: 600; }
.task-nav a.nav-open { border-style: dashed; }
.task-nav a.done { background: var(--brand); border-color: var(--brand); color: #fff; }
.task { scroll-margin-top: 130px; }
.task-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 700; margin-bottom: 10px; }
.task-img { position: relative; background: #fff; border-radius: 8px; overflow: hidden; user-select: none; -webkit-user-select: none; }
.task-img img { width: 100%; max-width: 940px; }
.task-img::after { content: attr(data-wm); position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(1rem, 3vw, 2rem); font-weight: 800; color: rgba(239, 108, 47, .07); transform: rotate(-18deg); pointer-events: none; white-space: nowrap; }
.choices { border: 0; padding: 0; margin: 14px 0 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.choices legend { font-weight: 600; font-size: .9rem; color: var(--ink-2); margin-bottom: 8px; width: 100%; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: grid; place-items: center; min-width: 54px; height: 48px; padding: 0 14px; border: 2px solid var(--brand-line); border-radius: 12px; font-weight: 800; font-size: 1.1rem; color: var(--ink-2); transition: all .12s; }
.choice input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid #f4a37c; outline-offset: 2px; }
.choice:hover span { border-color: var(--brand); }
.pf { display: flex; gap: 28px; flex-wrap: wrap; }
.open-answer { display: grid; gap: 8px; margin-top: 14px; font-weight: 600; }
textarea { font: 1rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 12px 14px; border: 1.5px solid #cfd6e2; border-radius: 10px; width: 100%; resize: vertical; color: var(--ink); }
textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px #ffd9c2; }
.exam-submit { text-align: center; }

/* ---------- Testy on-line: wynik ---------- */
.result-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 4px; }
.score-card { display: grid; gap: 6px; margin: 0 0 20px; }
.score-card strong { font-size: 2.4rem; line-height: 1.1; color: var(--brand-deep); }
.score-card strong span { font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.score-card.total { background: var(--brand-deep); color: #fff; border: 0; }
.score-card.total strong, .score-card.total strong span { color: #fff; }
.sections { list-style: none; padding: 0; margin: 0 0 12px; }
.sections li { display: grid; grid-template-columns: 1fr 160px 44px; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.sections b { text-align: right; }
.task.is-ok { border-left: 5px solid var(--ok); }
.task.is-bad { border-left: 5px solid var(--err); }
.answers { margin: 12px 0 4px; }
.answers .ok { color: var(--ok); }
.answers .bad { color: var(--err); }
.solution { margin-top: 12px; background: var(--bg-alt); }
.solution .task-img { margin-bottom: 14px; }
.compare { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 16px; }
.compare h3 { font-size: 1rem; margin-bottom: 8px; }
pre.mine { white-space: pre-wrap; word-break: break-word; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0; font-size: .95rem; }
.self { border-top: 1px dashed var(--line); padding-top: 14px; }

@media (max-width: 900px) {
  .online-grid, .compare, .result-top { grid-template-columns: 1fr; }
  .sections li { grid-template-columns: 1fr 90px 40px; }
  .timer { bottom: 12px; right: 12px; min-width: 0; padding: 8px 12px; }
  .timer strong { font-size: 1.1rem; }
}

/* ---------- Informacja o zadaniach otwartych + pasek symboli ---------- */
.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--warn-bg); border: 1px solid #f5d9a8; border-radius: var(--radius); padding: 16px 18px; margin: 0 0 20px; color: #5c3a00; }
.notice-ico { font-size: 1.5rem; line-height: 1; }
.notice p { margin: 4px 0 6px; }
.notice ul { margin: 0; padding-left: 20px; }
.notice li { margin-bottom: 4px; }
.notice a { color: var(--brand-deep); font-weight: 600; }
.symbols { display: flex; flex-wrap: wrap; gap: 4px; }
.sym { font: 600 1rem/1 var(--font); min-width: 34px; height: 32px; border: 1.5px solid var(--brand-line); background: #fff; border-radius: 8px; cursor: pointer; color: var(--ink); }
.sym:hover { background: var(--brand-soft); border-color: var(--brand); }
.online-shot { position: relative; justify-self: center; max-width: 520px; width: 100%; }
.online-shot figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(19, 41, 75, .22); background: #fff; }
.online-shot .browser-bar { display: flex; gap: 6px; align-items: center; padding: 9px 12px; background: #f1ede4; border-bottom: 1px solid var(--line); }
.online-shot .browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6dbe4; }
.online-shot .browser-bar span { margin-left: 10px; font-size: .75rem; color: var(--muted); background: #fff; border-radius: 6px; padding: 3px 10px; }
.online-shot .figcap { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 10px; }
.online-shot .score-chip { position: absolute; right: -10px; bottom: 64px; background: var(--brand-deep); color: #fff; border-radius: 14px; padding: 10px 16px; box-shadow: 0 10px 30px rgba(19, 41, 75,.35); text-align: center; line-height: 1.2; }
.online-shot .score-chip strong { display: block; font-size: 1.5rem; }
.online-shot .score-chip small { font-size: .72rem; opacity: .85; }
@media (max-width: 560px) { .online-shot .score-chip { right: 6px; } }

/* ---------- Admin: wyniki testów ---------- */
.row-active td { background: var(--brand-soft); }
.row-ok td:last-child { color: var(--ok); font-weight: 700; }
.row-bad td:last-child { color: var(--err); font-weight: 700; }
.inline-bar { display: inline-block; width: 70px; vertical-align: middle; }
.pct { font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.pct.easy { background: var(--ok-bg); color: var(--ok); }
.pct.mid { background: var(--warn-bg); color: var(--warn); }
.pct.hard { background: var(--err-bg); color: var(--err); }
.dist { display: inline-block; background: #efe9df; border-radius: 6px; padding: 1px 6px; margin: 1px 2px; }
.dist.ok { background: var(--ok-bg); color: var(--ok); font-weight: 700; }
select { font: inherit; padding: 8px 10px; border: 1.5px solid #cfd6e2; border-radius: 10px; background: #fff; }
pre.mine.small { font-size: .85rem; padding: 8px 10px; }

/* ---------- Nowość + pasek konsultacji ---------- */
.new-badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--brand-line); border-radius: 999px; padding: 6px 14px 6px 6px; margin: 0 0 16px; font-size: .93rem; box-shadow: var(--shadow); }
.new-badge span { background: #e0a100; color: #fff; font-weight: 800; font-size: .72rem; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; }
.consult-band { background: linear-gradient(120deg, var(--brand-deep), #1d3a66 60%, var(--brand)); color: #fff; padding: 44px 0; }
.consult-band-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.consult-band-ico { font-size: 3rem; width: 84px; height: 84px; border-radius: 22px; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.consult-band h2 { color: #fff; margin-bottom: 10px; }
.consult-band p { color: #ffd9c2; margin: 0; max-width: 46em; }
.consult-band strong { color: #fff; }
.eyebrow.light { color: #f3c96b; }
.consult-band-cta { text-align: center; display: grid; gap: 8px; justify-items: center; }
.consult-band-cta small { color: #f3c9ae; }
.consult-price { font-size: 2.2rem; font-weight: 800; color: #fff !important; line-height: 1; }
.consult-price small { font-size: 1rem; font-weight: 500; color: #f3c9ae; }
@media (max-width: 900px) { .consult-band-grid { grid-template-columns: 1fr; text-align: left; } .consult-band-cta { justify-items: start; text-align: left; } }
.consult-inline { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 20px; }

/* ---------- Logowanie dwuetapowe ---------- */
.twofa { max-width: 720px; }
.twofa-steps { padding-left: 22px; display: grid; gap: 18px; }
.twofa-steps li::marker { font-weight: 800; color: var(--brand); }
.qr { display: inline-block; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 12px 0 6px; }
.qr svg { display: block; width: 220px; height: 220px; }
.secret { font-size: 1.05rem; letter-spacing: .08em; display: inline-block; }
.code-input { font: 700 1.3rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; letter-spacing: .2em; max-width: 220px; text-align: center; }
.backup-codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 180px)); gap: 8px; margin: 16px 0; }
.backup-codes li { background: var(--bg-alt); border: 1px dashed var(--brand-line); border-radius: 8px; padding: 8px 12px; text-align: center; font-size: 1.05rem; }

/* ---------- Ważność dostępu ---------- */
.access-box { display: flex; gap: 14px; align-items: flex-start; border-radius: var(--radius); padding: 14px 18px; margin: 0 0 20px; border: 1px solid; }
.access-box.ok { background: var(--ok-bg); border-color: #bfe6cf; }
.access-box.warn { background: var(--warn-bg); border-color: #f5d9a8; }
.access-box.expired { background: var(--err-bg); border-color: #f4c7c3; }
.access-ico { font-size: 1.5rem; line-height: 1; }
.access-box small { color: var(--ink-2); }

/* ---------- Egzamin ósmoklasisty + terminy zmiany cen ---------- */
:root { --e8: #0e7c86; --e8-deep: #0a5961; --e8-soft: #e6f4f5; --e8-line: #bfe3e6; }
.price-deadline { background: var(--warn-bg); border: 1px solid #f5d9a8; color: #5c3a00; border-radius: 10px; padding: 8px 14px; font-size: .93rem; margin: 0 0 16px; }
p.price-deadline.center { max-width: 760px; margin: 18px auto 8px; }
.e8-strip { background: var(--e8-soft); border-block: 1px solid var(--e8-line); padding: 14px 0; }
.e8-strip-grid { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.e8-strip-grid p { margin: 0; flex: 1 1 380px; }
.e8-strip-badge { background: var(--e8); color: #fff; font-weight: 800; font-size: .72rem; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; }
.e8-strip .btn { background: var(--e8); border-color: var(--e8); }
.btn-e8 { background: var(--e8); border-color: var(--e8); color: #fff; }
.btn-e8:hover { background: var(--e8-deep); border-color: var(--e8-deep); color: #fff; }
.hero-e8 { background: radial-gradient(1200px 500px at 85% -10%, #d7f0f2 0, transparent 60%), linear-gradient(180deg, #f5fbfc, #fff); }
.hero-e8 .accent, .stats-e8 strong { color: var(--e8); }
.e8-badge span { background: var(--e8); }
.e8-bubble { background: var(--e8); }
.deadline-box { display: flex; gap: 14px; align-items: flex-start; background: #fff7e6; border: 2px solid #f0b43c; border-radius: var(--radius); padding: 14px 16px; margin: 0 0 20px; color: #4d3100; }
.deadline-box p { margin: 4px 0 0; }
.deadline-ico { font-size: 1.6rem; line-height: 1; }
.timeline { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: none; }
.timeline li { border: 1px solid var(--e8-line); border-top: 4px solid var(--e8-line); border-radius: 12px; padding: 14px 16px; background: #fff; display: grid; gap: 4px; }
.timeline li.now { border-top-color: var(--e8); background: var(--e8-soft); }
.timeline strong { color: var(--e8-deep); }
.consult-band-e8 { background: linear-gradient(120deg, var(--e8-deep), #0b6a73 60%, var(--e8)); }
.consult-band-e8 p { color: #d9f1f3; }
.consult-band-e8 .consult-band-cta small { color: #c4e7ea; }
.e8-card { border-color: var(--e8); }
.e8-card .tag { background: var(--e8); }
.cta-e8 { background: linear-gradient(120deg, var(--e8-deep), var(--e8)); }
.paper-note { background: var(--e8-soft); border: 1px solid var(--e8-line); border-radius: 10px; padding: 10px 14px; margin: 12px 0; font-size: .95rem; }
fieldset.topic { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px 4px; margin: 0 0 14px; }
fieldset.topic legend { font-weight: 600; font-size: .93rem; padding: 0 6px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; } }
.stats-e8 { background: var(--e8-deep); }
.stats-e8 strong { color: #fff; }
.e8-card .price, .hero-e8 h1 .accent { color: var(--e8-deep); }
.code-gen { flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.code-gen label { display: grid; gap: 4px; }
.code-gen input[type=number] { width: 90px; }
/* ---------- Korepetycje i materiały ---------- */
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 24px 0; }
.article-card h2 { font-size: 1.15rem; }
.article-card h2 a { color: var(--ink); text-decoration: none; }
.article details { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin: 8px 0 18px; background: var(--bg-alt); }
.article summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.steps-simple { padding-left: 20px; }
.steps-simple li { margin-bottom: 6px; }
/* ---------- Darmowe testy ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-free.e8 { background: radial-gradient(1200px 500px at 85% -10%, #dff1f2 0, transparent 60%), linear-gradient(180deg, #f6fbfb, #fff); }
.free-rules ul { padding-left: 20px; margin: 8px 0; }
.free-rules li { margin-bottom: 4px; }
.ftask-text { font-size: 1.05rem; line-height: 1.7; }
.ftask-st { margin: 10px 0 0; padding-left: 22px; line-height: 1.7; }
.ftask-gaps { display: grid; gap: 6px; margin-top: 10px; }
.gap-opt { display: inline-block; border: 1px solid var(--brand-line); border-radius: 8px; padding: 2px 10px; margin: 0 4px; background: #fff; }
.fr { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; font-size: .92em; line-height: 1.15; margin: 0 2px; }
.fr > span:first-child { border-bottom: 1.5px solid currentColor; padding: 0 3px; }
.fr > span:last-child { padding: 0 3px; }
.opts { border: 0; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt > span { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 14px; border: 2px solid var(--brand-line); border-radius: 12px; color: var(--ink); transition: all .12s; }
.opt > span b { color: var(--brand); }
.opt:hover > span { border-color: var(--brand); }
.opt input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.opt input:checked + span b { color: #fff; }
.opt input:focus-visible + span { outline: 3px solid #f4a37c; outline-offset: 2px; }
.opts-result { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.opts-result li { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; display: flex; gap: 8px; align-items: center; }
.opts-result li.is-right { border-color: var(--ok); background: var(--ok-bg); }
.opts-result li.is-wrong { border-color: var(--err); background: var(--err-bg); }
.fsol, .fhint { border-radius: 10px; padding: 12px 16px; margin-top: 12px; line-height: 1.7; }
.fsol { background: var(--bg-alt); border: 1px solid var(--line); }
.fhint { background: var(--warn-bg); border: 1px solid #f3dcae; }
.fsol h3, .fhint h3 { font-size: .95rem; margin: 0 0 4px; }
.fsol p, .fhint p, .fsol ul { margin: 0; }
.fsol ul { padding-left: 20px; }
.free-cta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 32px 0; }
.free-cta .card { margin: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.free-cta .card p { flex: 1; }
.section-tight { margin: 36px 0; }
.section-tight details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.section-tight summary { cursor: pointer; font-weight: 600; }
.free-band { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.free-band .card { margin: 0; }
/* Korepetycje – jak przygotowuję */
.how-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center; }
.how-photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; }
.how-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.how-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.how-list .n { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep); font-weight: 800; display: grid; place-items: center; }
.how-list p { margin: 2px 0 0; color: var(--ink-2); }
@media (max-width: 860px) { .free-cta, .free-band, .how-grid { grid-template-columns: 1fr; } }
.free-link { margin: 14px 0 0; font-size: .97rem; color: var(--ink-2); }
.fformula { border-radius: 10px; padding: 12px 16px; margin-top: 12px; line-height: 1.8; background: #eef4ff; border: 1px solid #cfdcf5; }
.fformula h3 { font-size: .95rem; margin: 0 0 4px; }
.fformula h3 + ul + h3 { margin-top: 8px; }
.fformula ul { margin: 0; padding-left: 20px; }

/* ================= Motyw „Granat i mandarynka” – wygląd wspólny ================= */
h1, h2 { font-weight: 800; letter-spacing: -.025em; }
.brand b { color: var(--or-ink); }
.eyebrow, .accent { color: var(--or-ink); }
h1 .accent { color: var(--or-head); }
a:hover { color: var(--or-ink); }
nav a:hover { color: var(--or-ink); }
.hero, .hero-free { background: var(--bg-alt); border-bottom: 2px solid var(--ink); }
.hero-free.e8 { background: #eef6f6; }
.btn { background: var(--or); border-color: var(--ink); color: var(--ink) !important; box-shadow: 3px 3px 0 var(--ink); font-weight: 700; border-radius: 10px; }
.btn:hover { background: var(--or-dark); border-color: var(--ink); color: var(--ink) !important; box-shadow: 1px 1px 0 var(--ink); transform: translate(2px, 2px); }
.btn-ghost, .btn-ghost:hover { background: #fff; color: var(--ink) !important; }
.btn-light, .btn-light:hover { background: var(--or); color: var(--ink) !important; border-color: var(--ink); box-shadow: 3px 3px 0 #000; }
.btn[disabled] { box-shadow: none; }
.btn-sm { box-shadow: 2px 2px 0 var(--ink); }
.card, .steps li, .price-card, details, .sheet, .online-shot figure, .sample-img { border: 2px solid var(--ink); }
.card, .price-card { box-shadow: var(--hard); }
.price-card.featured { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--or); }
.steps li::before { background: var(--or); color: var(--ink); border: 2px solid var(--ink); }
.price-bubble { background: var(--or); color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--hard); }
.new-badge { border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); border-radius: 10px; }
.new-badge span { background: var(--ink); border-radius: 6px; }
.card-ico { background: var(--brand-soft); border: 2px solid var(--ink); border-radius: 10px; }
.ticks li::before { background-color: var(--or); }
.stats, .consult-band, .cta-final { background: var(--ink); }
.stats strong, .stats-grid strong { color: var(--or); }
.cta-final .section-lead, .consult-band p { color: #d6deea; }
.section.alt { background: var(--bg-alt); border-block: 2px solid var(--ink); }
.online { background: #fff; }
.price-deadline { background: #fff; border: 2px solid var(--ink); border-radius: 10px; }
.price { color: var(--ink); }
.tag { background: var(--or); color: var(--ink); }
.tag-muted { background: var(--brand-soft); color: var(--ink); }
summary::after { color: var(--or-ink); }
.task-nav a.done { background: var(--or); border-color: var(--ink); color: var(--ink); }
.choice input:checked + span, .opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt > span b { color: var(--or-ink); }
.choice > span, .opt > span { border-color: #cfd6e2; }
.choice:hover > span, .opt:hover > span { border-color: var(--ink); }
.timer { border: 2px solid var(--ink); box-shadow: var(--hard); }
.timer strong { color: var(--ink); }
.score-card.total { background: var(--ink); }
.topbar { border-bottom: 2px solid var(--ink); }
.how-list .n { background: var(--or); color: var(--ink); border: 2px solid var(--ink); }
.how-photo { border: 2px solid var(--ink); box-shadow: var(--hard); }
.consult-inline { border: 2px solid var(--ink); }
input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px #ffd9c2; }
.fhint { border-color: #f3c9ae; background: #fff4ec; }
.fformula { background: #eef2f8; border-color: #cfd8e6; }
.btn.btn-e8 { background: var(--e8); border-color: var(--ink); color: #fff !important; }
.btn.btn-e8:hover { background: var(--e8-deep); color: #fff !important; }
.e8-strip .btn { background: var(--e8); border-color: var(--ink); color: #fff !important; }
.e8-strip .btn:hover { background: var(--e8-deep); color: #fff !important; }
.e8-strip { border-block: 2px solid var(--ink); }
/* Pierwiastek jak w tablicach maturalnych: znak rysowany (SVG), kreska nad liczbą, liczba na linii tekstu */
.rad { position: relative; display: inline-block; padding-left: .62em; line-height: 1; white-space: nowrap; margin: 0 .04em; }
.rad3 { padding-left: .78em; }
.rad-in { display: inline-block; border-top: 1.5px solid currentColor; padding: .14em .12em 0 .04em; line-height: 1.12; }
.rad-svg { position: absolute; left: 0; top: 0; width: .64em; height: 100%; overflow: visible; }
.rad3 .rad-svg { left: .14em; }
.rad-svg path { fill: none; stroke: currentColor; stroke-width: 1.5px; stroke-linejoin: round; stroke-linecap: round; }
.rad-i { position: absolute; left: .04em; top: .3em; font-size: .56em; line-height: 1; }
/* Darmowy test – tak samo widoczny jak zakup i korepetycje */
.btn-dark { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; box-shadow: 3px 3px 0 var(--or) !important; }
.btn-dark:hover { background: var(--brand-2) !important; color: #fff !important; box-shadow: 1px 1px 0 var(--or) !important; }
.free-band { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.free-test-band { background: var(--or); border-block: 2px solid var(--ink); padding: 34px 0; }
.free-test-band h2 { margin: 0 0 6px; color: var(--ink); }
.free-test-band p { margin: 0; color: var(--ink); }
.free-test-band .eyebrow { color: var(--ink); opacity: .85; }
.free-test-band .free-ico { font-size: 2.6rem; width: 84px; height: 84px; border-radius: 18px; background: #fff; border: 2px solid var(--ink); display: grid; place-items: center; box-shadow: var(--hard); }
.free-test-band .free-btns { display: grid; gap: 10px; }
.free-test-band .btn-ghost { background: #fff; }
.pricing.pricing-3 { grid-template-columns: repeat(3, minmax(0, 340px)); }
.price-card.free-card { border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); background: #fffaf6; }
.tag-free { background: var(--ink); color: #fff; }
nav a.nav-free { color: var(--or-ink); font-weight: 700; }
@media (max-width: 960px) { .pricing.pricing-3 { grid-template-columns: minmax(0, 1fr); } .free-band { grid-template-columns: 1fr; } .free-test-band .free-ico { display: none; } }
.cta-center { justify-content: center; }
.cta-final .btn-ghost { background: #fff; }
/* Wskazówka graficzna (rysunki SVG) */
.ffig { margin: 12px 0 0; border-radius: 10px; padding: 12px 16px; background: #fff; border: 1px solid #cfd8e6; }
.ffig h3 { font-size: .95rem; margin: 0 0 8px; }
.ffig-img { overflow-x: auto; }
.ffig figcaption { font-size: .92rem; color: var(--ink-2); margin-top: 6px; }
.fig { display: block; max-width: 100%; height: auto; margin: 0 auto; font-family: var(--font); }
.fig-grid { stroke: #e8ebf1; stroke-width: 1; }
.fig-axis { stroke: #6a7487; stroke-width: 1.4; fill: none; }
.fig-arrowhead { fill: #6a7487; }
.fig-arrowhead-acc { fill: var(--or); }
.fig-main { stroke: var(--ink); stroke-width: 2; fill: none; stroke-linejoin: round; }
.fig-thin { stroke: var(--ink); stroke-width: 1.2; fill: none; }
.fig-curve { stroke: var(--ink); stroke-width: 2.4; fill: none; stroke-linejoin: round; }
.fig-ray, .fig-ray-y, .fig-ray-d { stroke: var(--or); stroke-width: 4; fill: none; stroke-linecap: round; }
.fig-ray-y { stroke-width: 6; opacity: .85; }
.fig-ray-d { stroke-width: 3; stroke-dasharray: 7 5; }
.fig-acc { stroke: var(--or); stroke-width: 2.2; fill: none; }
.fig-dash { stroke: #8a93a6; stroke-width: 1.3; stroke-dasharray: 5 4; fill: none; }
.fig-dot { fill: var(--ink); }
.fig-open { fill: #fff; stroke: var(--or); stroke-width: 2.5; }
.fig-acc-fill { fill: var(--or); stroke: var(--ink); stroke-width: 1.5; }
.fig-t, .fig-t-b, .fig-t-acc, .fig-t-s, .fig-tick, .fig-ax-l { fill: var(--ink); font-size: 14px; }
.fig-t-b { font-weight: 700; }
.fig-t-acc { fill: var(--or-ink); font-weight: 700; }
.fig-t-s { font-size: 12px; fill: var(--ink-2); }
.fig-tick { font-size: 11px; fill: #6a7487; }
.fig-ax-l { font-style: italic; fill: #6a7487; }
.fig-bar { fill: #dfe5ef; stroke: var(--ink); stroke-width: 1.5; }
.fig-bar-acc { fill: #fbd3bd; stroke: var(--ink); stroke-width: 1.5; }
.fig-cell { fill: #fff; stroke: #cfd6e2; }
.fig-cell-acc { fill: #fbd3bd; stroke: var(--or); stroke-width: 1.5; }
.fig-tri-a { fill: #fbe3d3; stroke: var(--or); stroke-width: 1.5; }
.fig-tri-b { fill: #e3e9f3; stroke: var(--or); stroke-width: 1.5; }
.fig-base { fill: #fbe3d3; stroke: none; }
.fig-ball-w { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.fig-ball-b { fill: #1b2230; }
.fig-ball-g { fill: #2e9d5b; stroke: var(--ink); stroke-width: 1.5; }
.fig-ring { fill: none; stroke: var(--or); stroke-width: 2.5; }
.fig-t, .fig-t-b, .fig-t-acc, .fig-t-s { paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.fig-cell-acc + .fig-t-b, .fig-cell + .fig-t-s { stroke-width: 0; }

/* ======================= Przełącznik trybu ======================= */
.theme-toggle { width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; display: inline-grid; place-items: center; font-size: 1.15rem; line-height: 1; padding: 0; order: 99; }
.theme-toggle:hover { background: var(--brand-soft); }
.theme-toggle:focus-visible { outline: 3px solid #f4a37c; outline-offset: 2px; }
.theme-toggle .ico-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: inline; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
html:not([data-theme]) .theme-toggle { display: none; }

/* ======================= TRYB CIEMNY ======================= */
html[data-theme="dark"] {
  color-scheme: dark;
  --brand: #8fb4ff; --brand-2: #a9c4ff; --brand-deep: #d6e2fb; --brand-soft: #22324e; --brand-line: #3a4c6d;
  --ink: #e8edf5; --ink-2: #c3cbd9; --muted: #9aa5b9; --bg: #0e1626; --bg-alt: #152137; --line: #2a3854;
  --surf: #18253d;
  --or-ink: #ff9a66; --or-head: #ff8a4f;
  --ok: #5fd39a; --ok-bg: #12301f; --warn: #f5c26b; --warn-bg: #33270f; --err: #ff8a80; --err-bg: #3a1714;
  --e8: #2bb3bf; --e8-deep: #8fe3ea; --e8-soft: #0f3036; --e8-line: #1d5a61;
  --hard: 4px 4px 0 #000;
}
html[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] .topbar { background: rgba(14, 22, 38, .94); border-bottom-color: #3a4c6d; }
html[data-theme="dark"] .skip, html[data-theme="dark"] .footer { background: var(--bg-alt); }
html[data-theme="dark"] .logo-mark { color: #2b4a7e; }
html[data-theme="dark"] .hero, html[data-theme="dark"] .hero-free, html[data-theme="dark"] .hero-e8,
html[data-theme="dark"] .hero-free.e8, html[data-theme="dark"] .section.alt { background: var(--bg-alt); }
html[data-theme="dark"] .card, html[data-theme="dark"] .steps li, html[data-theme="dark"] .price-card, html[data-theme="dark"] details,
html[data-theme="dark"] .timeline li, html[data-theme="dark"] .new-badge, html[data-theme="dark"] .price-deadline, html[data-theme="dark"] .online,
html[data-theme="dark"] .online-shot figure, html[data-theme="dark"] .sym, html[data-theme="dark"] select, html[data-theme="dark"] .gap-opt,
html[data-theme="dark"] .free-test-band .free-ico, html[data-theme="dark"] .price-card.free-card, html[data-theme="dark"] .ffig,
html[data-theme="dark"] .opts-result li { background: var(--surf); }
html[data-theme="dark"] input[type=text], html[data-theme="dark"] input[type=email], html[data-theme="dark"] input[type=password],
html[data-theme="dark"] input[type=url], html[data-theme="dark"] input[type=date], html[data-theme="dark"] input:not([type]),
html[data-theme="dark"] input[inputmode], html[data-theme="dark"] input[type=number], html[data-theme="dark"] textarea, html[data-theme="dark"] select {
  background: #0f1a2d; color: var(--ink); border-color: #3a4c6d; }
html[data-theme="dark"] input:focus, html[data-theme="dark"] textarea:focus { box-shadow: 0 0 0 3px #5a3420; border-color: var(--or); }
/* ciemne pasy (statystyki, konsultacje, wezwanie do działania) */
html[data-theme="dark"] .stats, html[data-theme="dark"] .consult-band, html[data-theme="dark"] .cta-final,
html[data-theme="dark"] .score-card.total, html[data-theme="dark"] .stats-e8 { background: #08101e; border-block: 1px solid #2a3854; }
html[data-theme="dark"] .consult-band-e8, html[data-theme="dark"] .cta-e8 { background: #08262a; }
/* przyciski: granatowy tekst na mandarynce, czarny cień */
html[data-theme="dark"] .btn { color: #13294b !important; border-color: #e8edf5; box-shadow: 3px 3px 0 #000; }
html[data-theme="dark"] .btn:hover { color: #13294b !important; box-shadow: 1px 1px 0 #000; }
html[data-theme="dark"] .btn-ghost, html[data-theme="dark"] .btn-ghost:hover,
html[data-theme="dark"] .free-test-band .btn-ghost, html[data-theme="dark"] .cta-final .btn-ghost { background: var(--surf); color: var(--ink) !important; }
html[data-theme="dark"] .btn-dark { background: #2b4a7e !important; color: #fff !important; border-color: #e8edf5 !important; box-shadow: 3px 3px 0 var(--or) !important; }
html[data-theme="dark"] .btn.btn-e8, html[data-theme="dark"] .e8-strip .btn { color: #fff !important; }
html[data-theme="dark"] .card, html[data-theme="dark"] .price-card { box-shadow: var(--hard); }
html[data-theme="dark"] .price-card.featured { box-shadow: 6px 6px 0 var(--or); }
html[data-theme="dark"] .price-card.free-card { box-shadow: 6px 6px 0 #000; }
/* elementy pomarańczowe – tekst zawsze granatowy */
html[data-theme="dark"] .steps li::before, html[data-theme="dark"] .how-list .n, html[data-theme="dark"] .price-bubble,
html[data-theme="dark"] .tag, html[data-theme="dark"] .task-nav a.done, html[data-theme="dark"] .free-test-band h2,
html[data-theme="dark"] .free-test-band p, html[data-theme="dark"] .free-test-band .eyebrow { color: #13294b; }
html[data-theme="dark"] .tag-free, html[data-theme="dark"] .new-badge span { background: #2b4a7e; color: #fff; }
html[data-theme="dark"] .tag-muted { background: var(--brand-soft); color: var(--ink); }
html[data-theme="dark"] .choice input:checked + span, html[data-theme="dark"] .opt input:checked + span { background: var(--or); border-color: var(--or); color: #13294b; }
html[data-theme="dark"] .opt input:checked + span b { color: #13294b; }
html[data-theme="dark"] .choice > span, html[data-theme="dark"] .opt > span { border-color: #3a4c6d; }
html[data-theme="dark"] .task-nav { background: rgba(14, 22, 38, .95); }
/* ramki wskazówek, wzorów, informacji */
html[data-theme="dark"] .fhint { background: #33210f; border-color: #6b4322; }
html[data-theme="dark"] .fformula { background: #16263f; border-color: #2f4468; }
html[data-theme="dark"] .fsol, html[data-theme="dark"] .solution { background: #121d31; border-color: var(--line); }
html[data-theme="dark"] .notice { color: #f3dcb0; border-color: #5c4519; }
html[data-theme="dark"] .deadline-box { background: #33270f; border-color: #8a6a1e; }
html[data-theme="dark"] .bar, html[data-theme="dark"] .badge-muted, html[data-theme="dark"] .dist, html[data-theme="dark"] .mock-line { background: #2a3854; }
html[data-theme="dark"] .flash-ok { border-color: #1f5a3a; } html[data-theme="dark"] .flash-warn { border-color: #5c4519; }
html[data-theme="dark"] .online-shot .browser-bar { background: #1e2c47; }
html[data-theme="dark"] .online-shot .browser-bar span { background: var(--bg); }
html[data-theme="dark"] .paper-note { color: var(--ink); }
/* obrazki zadań i rozwiązań (skany na białym tle) zostają jasne – jak kartka papieru */
html[data-theme="dark"] .task-img, html[data-theme="dark"] .qr { background: #fff; border-radius: 8px; }
/* rysunki SVG we wskazówkach */
html[data-theme="dark"] .fig-grid { stroke: #24324d; }
html[data-theme="dark"] .fig-axis { stroke: #9aa5b9; } html[data-theme="dark"] .fig-arrowhead { fill: #9aa5b9; }
html[data-theme="dark"] .fig-tick, html[data-theme="dark"] .fig-ax-l { fill: #9aa5b9; }
html[data-theme="dark"] .fig-t, html[data-theme="dark"] .fig-t-b, html[data-theme="dark"] .fig-t-acc, html[data-theme="dark"] .fig-t-s { stroke: var(--surf); }
html[data-theme="dark"] .fig-open { fill: var(--surf); }
html[data-theme="dark"] .fig-dot { fill: #e8edf5; }
html[data-theme="dark"] .fig-acc-fill { stroke: #0e1626; }
html[data-theme="dark"] .fig-bar { fill: #2a3854; stroke: #c3cbd9; } html[data-theme="dark"] .fig-bar-acc { fill: #6b3a1f; stroke: #c3cbd9; }
html[data-theme="dark"] .fig-cell { fill: var(--surf); stroke: #3a4c6d; } html[data-theme="dark"] .fig-cell-acc { fill: #6b3a1f; }
html[data-theme="dark"] .fig-tri-a, html[data-theme="dark"] .fig-base { fill: #4a2a17; } html[data-theme="dark"] .fig-tri-b { fill: #22324e; }
html[data-theme="dark"] .fig-dash { stroke: #7d889c; }
html[data-theme="dark"] .fig-ball-w { stroke: #9aa5b9; } html[data-theme="dark"] .fig-ball-b { fill: #000; stroke: #9aa5b9; stroke-width: 1.5; }
html[data-theme="dark"] .fig-cell-acc + .fig-t-b, html[data-theme="dark"] .fig-cell + .fig-t-s { stroke-width: 0; }
html[data-theme="dark"] img.how-photo, html[data-theme="dark"] .sheet { border-color: #e8edf5; }
html[data-theme="dark"] .price-deadline { color: #f5d9a8; }
html[data-theme="dark"] .online-shot .score-chip { background: #2b4a7e; }
html[data-theme="dark"] .admin-stats, html[data-theme="dark"] .stats-grid.admin-stats { background: #08101e; border: 1px solid #2a3854; }
.ftable { border-collapse: collapse; margin: 8px 0; }
.ftable td, .ftable th { border: 1px solid #9aa3b5; padding: 4px 12px; text-align: center; }
/* ---------- Promocja i powtórki działami ---------- */
.old-price { color: var(--muted); font-weight: 600; font-size: .55em; margin-left: .3em; text-decoration-thickness: 2px; }
.price .old-price { font-size: .5em; }
.omnibus { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; margin: 2px 0 6px; }
.promo-band { background: var(--bg-alt); border-bottom: 2px solid var(--ink); padding: 34px 0; }
.promo-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; }
.promo-card { border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--hard); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.promo-card h2 { margin: 0; font-size: 1.6rem; }
.promo-card p { margin: 0; }
.promo-price { background: var(--or); color: #13294b; }
.promo-price h2, .promo-price .promo-tag { color: #13294b; }
.promo-price .omnibus { color: #3a2a1f; }
.promo-price .btn { background: #fff; color: #13294b !important; }
.promo-new { background: var(--bg); }
.promo-tag { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: var(--or-ink); }
.promo-prices { list-style: none; padding: 0; margin: 0; width: 100%; display: grid; gap: 6px; }
.promo-prices li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; border-bottom: 1px dashed rgba(19,41,75,.35); padding-bottom: 6px; }
.promo-prices b { font-size: 1.5rem; }
.promo-prices s { opacity: .7; }
.promo-steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0; counter-reset: ps; }
.promo-steps li { counter-increment: ps; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px 4px 6px; font-weight: 600; font-size: .92rem; }
.promo-steps li::before { content: counter(ps); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--or); color: #13294b; margin-right: 6px; font-weight: 800; }
@media (max-width: 860px) { .promo-grid { grid-template-columns: 1fr; } }
html[data-theme="dark"] .promo-new { background: var(--surf); }
html[data-theme="dark"] .promo-steps li { border-color: #3a4c6d; }
/* lista działów */
.review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 20px 0; }
.review-card { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.review-card h2 { font-size: 1.2rem; margin: 0; }
.review-card .meta { color: var(--muted); font-size: .88rem; }
.review-card .btn { align-self: flex-start; margin-top: auto; }
.review-no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--or); color: #13294b; font-weight: 800; border: 2px solid var(--ink); }
.freq { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: var(--brand-soft); }
.freq.hi { background: var(--or); color: #13294b; }
.strategy-steps { counter-reset: st; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.strategy-steps li { counter-increment: st; border: 2px solid var(--ink); border-radius: var(--radius); padding: 14px 16px; background: var(--bg-alt); }
.strategy-steps li::before { content: counter(st) "."; font-weight: 800; color: var(--or-ink); margin-right: 6px; }

/* ---------- Black Friday & Cyber Monday ---------- */
.promo-ribbon { background: #13294b; color: #fff; font-size: .92rem; border-bottom: 3px solid var(--or); }
.promo-ribbon.is-bf { background: #0b0b0d; }
.promo-ribbon .wrap { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.promo-ribbon strong { letter-spacing: .06em; }
.promo-ribbon em { font-style: normal; font-weight: 800; background: var(--or); color: #0b0b0d; border-radius: 6px; padding: 1px 7px; margin: 0 2px; }
.promo-ribbon s { opacity: .65; }
.promo-ribbon a { color: #ffb48f; font-weight: 700; white-space: nowrap; }
.promo-price.is-bf { background: #0b0b0d; color: #fff; border-color: #0b0b0d; box-shadow: 6px 6px 0 var(--or); }
.promo-price.is-bf h2, .promo-price.is-bf .promo-tag { color: #fff; }
.promo-price.is-bf h2 { color: var(--or); }
.promo-price.is-bf .promo-prices li { border-color: rgba(255,255,255,.25); }
.promo-price.is-bf .promo-prices b { color: #fff; }
.promo-price.is-bf .promo-prices s, .promo-price.is-bf .omnibus { color: #c9c9cf; }
.promo-price.is-bf .btn { background: var(--or); color: #0b0b0d !important; border-color: #fff; }
.promo-left { font-weight: 700; font-size: .9rem; }
html[data-theme=dark] .promo-price.is-bf { border-color: #3a3a44; }

/* ---------- Panel: klienci, darmowe testy ---------- */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-2 > .card { margin: 0; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
td .bad, .small.bad, small.bad { color: var(--err); }
.table.clients td { vertical-align: top; }
.dist-chart { display: grid; gap: 4px; }
.dist-row { display: grid; grid-template-columns: 54px 1fr 34px; gap: 8px; align-items: center; font-size: .88rem; }
.dist-row .bar { margin: 0; }
.stats-grid strong a { color: inherit; text-decoration: none; }
@media (max-width: 600px) { .promo-ribbon { font-size: .8rem; } .promo-ribbon .wrap { padding-top: 6px; padding-bottom: 6px; } }

/* ---------- Potęgi: czytelne wykładniki (także wymierne) ---------- */
sup { font-size: .74em; line-height: 0; vertical-align: .52em; }
.sf { display: inline-block; font-size: .7em; line-height: 1; vertical-align: baseline; position: relative; top: -.78em; margin: 0 1px; white-space: nowrap; }
.sf-f { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.04; vertical-align: middle; }
.sf-f > span:first-child { border-bottom: 1px solid currentColor; padding: 0 2px 1px; }
.sf-f > span:last-child { padding: 1px 2px 0; }
.tfig { margin: 8px 0 12px; }
.tfig .ffig-img { max-width: 420px; }
.tfig svg { width: 100%; height: auto; }

/* ---------- Kod dostępu – wyróżnione wejście ---------- */
.code-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 16px 0 22px; padding: 16px 20px; border: 2px dashed var(--or); border-radius: var(--radius); background: #fff4ec; color: #13294b; }
.code-cta > span:nth-child(2) { flex: 1 1 260px; }
.code-cta-ico { font-size: 1.8rem; line-height: 1; }
.code-cta .btn { white-space: nowrap; }
.code-note { background: #fff4ec; border-left: 4px solid var(--or); padding: 10px 14px; border-radius: 8px; color: #13294b; margin: 8px 0 16px; }
.code-note a { font-weight: 700; }
.copy-link { cursor: pointer; color: var(--or-ink); font-weight: 600; white-space: nowrap; }
.copy-link.copied::after { content: ' ✔ skopiowano'; color: var(--ok, #1a7f4b); }
html[data-theme="dark"] .code-cta, html[data-theme="dark"] .code-note { background: #2a2420; color: inherit; }

/* ---------- Powtórki: działy jeden pod drugim ---------- */
.review-list { grid-template-columns: 1fr; gap: 12px; }
.review-row { display: grid; grid-template-columns: auto 1fr minmax(190px, 240px) auto; align-items: center; gap: 8px 18px; padding: 14px 20px; }
.review-row h2 { font-size: 1.15rem; margin: 0; }
.review-row h2 a { color: inherit; text-decoration: none; }
.review-row h2 a:hover { text-decoration: underline; }
.review-row .meta { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.review-row .review-progress p { margin: 0 0 4px; }
.review-row .review-progress .bar { margin: 0; }
.review-row .btn { margin: 0; align-self: center; white-space: nowrap; min-width: 160px; text-align: center; }
@media (max-width: 760px) {
  .review-row { grid-template-columns: auto 1fr; }
  .review-row .review-progress, .review-row .btn { grid-column: 1 / -1; }
  .review-row .btn { justify-self: start; }
  .review-row .review-no { align-self: start; }
  .review-row { padding: 14px 16px; }
}
