/* nMath — style.css
   One font (Host Grotesk), one ground (#fff), one accent (#2e5bff) for the main action
   and the tutor's pen on the board. Flat cards, 8px surfaces, pill controls. */

/* Host Grotesk — SIL OFL 1.1, self-hosted (no Google request = no RODO issue). Variable wght 300–800. */
@font-face { font-family: "Host Grotesk"; src: url("../fonts/HostGrotesk-latin-ext.woff2") format("woff2"); font-weight: 300 800; font-style: normal; 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: "Host Grotesk"; src: url("../fonts/HostGrotesk-latin.woff2") format("woff2"); font-weight: 300 800; font-style: normal; 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; }

:root {
  --bg: #ffffff;
  --surface: #f7f6f6;
  --ink: #201f20;
  --ink-2: #494949;
  --ink-3: #606060;
  --inv: #141314;
  --inv-ink: #fcfcfd;
  --inv-ink-2: #c9c8ca;
  --accent: #2e5bff;
  --logo-blue: #5271ff;     /* niebieski z logo nMath */
  --accent-hover: #1f47e6;
  --accent-press: #1a3cc4;
  --on-accent: #fcfcfd;
  --line: #e0e0df;
  --line-strong: #c8c7c6;
  --field-line: #8c8b8a;
  --dot: #e3e2e1;

  --r-surface: 8px;
  --r-pill: 9999px;

  --container: 1200px;
  --gutter: 24px;
  --band-top: 96px;
  --band-bottom: 64px;

  --fs-display: 48px;
  --fs-h3: 24px;
  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-cap: 13px;

  --font: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (max-width: 720px) {
  :root { --fs-display: 36px; --band-top: 64px; --band-bottom: 48px; --fs-h3: 21px; --fs-lead: 17px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: lining-nums; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--line-strong) var(--bg); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 100; background: var(--ink); color: var(--inv-ink); padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none; }
.skip:focus { top: 12px; }
.nowrap { white-space: nowrap; }

/* ---------- type ---------- */
.display { font-size: var(--fs-display); font-weight: 500; line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
.h2 { font-size: 40px; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.body-2 { color: var(--ink-2); text-wrap: pretty; }
.cap { font-size: var(--fs-cap); line-height: 1.45; color: var(--ink-3); }
@media (max-width: 720px) { .h2 { font-size: 30px; } }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--r-pill); border: 1px solid transparent; font-size: 16px; font-weight: 500; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); }
.btn-secondary { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color .15s; }
.link:hover { text-decoration-color: var(--ink); }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; color: var(--accent); }
.arrow-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
/* backdrop-filter makes the header a containing block for the fixed mobile menu — drop it while the menu is open */
.site-header.menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; border-radius: 6px; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 15px; color: var(--ink-2); text-decoration: none; padding: 6px 0; transition: color .15s; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-actions .text-action { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.header-actions .text-action:hover { color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--bg); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.mobile-nav { display: none; }

@media (max-width: 900px) {
  .nav, .header-actions .text-action, .header-actions .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .header-row { height: 64px; }
  .brand img { height: 24px; }
  .mobile-nav { position: fixed; inset: 64px 0 0 0; background: var(--bg); padding: 24px var(--gutter) 32px; flex-direction: column; justify-content: space-between; overflow-y: auto; }
  .mobile-nav.open { display: flex; }
  .mobile-nav ul a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 24px; font-weight: 500; text-decoration: none; letter-spacing: -.01em; }
  .mobile-nav .mobile-cta { display: grid; gap: 12px; padding-top: 32px; }
  .mobile-nav .mobile-cta .btn { width: 100%; }
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 var(--band-bottom); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; }
.hero-copy .display { max-width: none; }
.h1-a { white-space: nowrap; }
@media (max-width: 720px) { .h1-a { white-space: normal; } }
.hero-copy .lead { margin-top: 24px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.trust { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.avatars { display: flex; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 500; color: var(--ink); background: var(--surface); border: 2px solid var(--bg); flex: none; }
.avatars .avatar + .avatar { margin-left: -8px; }
.trust p { font-size: var(--fs-small); color: var(--ink-3); line-height: 1.45; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat dt { order: 2; font-size: var(--fs-cap); color: var(--ink-3); line-height: 1.4; margin-top: 6px; }
.stat { display: flex; flex-direction: column; }
.stat dd { order: 1; font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* browser frame + lesson board */
.browser { border: 1px solid var(--line); border-radius: var(--r-surface); background: var(--bg); overflow: hidden; box-shadow: 0 1px 0 rgba(20,19,20,.03), 0 24px 48px -28px rgba(20,19,20,.22); }
.browser-bar { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; height: 40px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #d4d3d2; }
.addr { justify-self: center; display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 14px; border-radius: var(--r-pill); background: var(--bg); border: 1px solid var(--line); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.addr svg { width: 11px; height: 11px; }

.lesson { display: grid; grid-template-columns: 48px minmax(0, 1fr) 156px; min-height: 552px; }
.note-ln { color: var(--accent); font-size: 15px; font-weight: 500; }
.tools { border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; }
.tool { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3); }
.tool svg { width: 17px; height: 17px; }
.tool.on { background: var(--ink); color: var(--inv-ink); }
.swatch { width: 14px; height: 14px; border-radius: 50%; margin-top: 4px; }
.tools hr { width: 20px; border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

.board { position: relative; overflow: hidden; padding: 26px 28px 20px; background-color: var(--bg); background-image: radial-gradient(var(--dot) 1.1px, transparent 1.2px); background-size: 22px 22px; background-position: 11px 11px; display: flex; flex-direction: column; }
.task-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.task-label b { font-weight: 500; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px 10px; }
.task { margin-top: 10px; font-size: 17px; line-height: 1.45; color: var(--ink); max-width: 26em; }
.work { position: relative; margin-top: 18px; display: grid; gap: 14px; font-size: 20px; line-height: 1.3; letter-spacing: -0.005em; }
.work .ln { position: relative; white-space: nowrap; width: max-content; }
.work .mark { position: relative; display: inline-block; }
.work sup { font-size: .62em; line-height: 0; }
.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; font-size: .78em; line-height: 1.05; margin: 0 2px; }
.frac > span:first-child { border-bottom: 1.5px solid currentColor; padding: 0 3px 1px; }
.frac > span:last-child { padding-top: 1px; }
.ink { position: absolute; pointer-events: none; overflow: visible; max-width: none; }
.ink path { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.note { position: absolute; color: var(--accent); font-size: 15px; font-weight: 500; line-height: 1.25; white-space: nowrap; }
.board-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pages { display: flex; gap: 6px; }
.pages span { width: 28px; height: 22px; border-radius: 5px; border: 1px solid var(--line); background: var(--bg); font-size: 11px; color: var(--ink-3); display: grid; place-items: center; }
.pages span.on { border-color: var(--ink); color: var(--ink); }
.side .saved { margin-top: auto; justify-content: center; }
.side .saved + .cmp { margin-top: 0; }
.saved { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 12px 5px 8px; }
.saved svg { width: 15px; height: 15px; color: var(--ink); }

.side { border-left: 1px solid var(--line); background: var(--surface); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.cam { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3.3; background: #e9e8e7; }
.cam img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.cam .who { position: absolute; left: 6px; bottom: 6px; font-size: 11px; line-height: 1; color: var(--inv-ink); background: rgba(20,19,20,.72); padding: 5px 7px; border-radius: 4px; }
.cam.you { display: grid; place-items: center; background: #ecebea; }
.cam.you .initial { width: 44px; height: 44px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.cmp { margin-top: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px; font-size: 12px; line-height: 1.35; }
.cmp p { color: var(--ink-3); }
.cmp .row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; color: var(--ink-2); }
.cmp .row b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.cmp .row.win b { color: var(--accent); }
.meter { height: 4px; border-radius: 4px; background: var(--surface); margin-top: 4px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--line-strong); border-radius: inherit; }
.meter.win i { background: var(--accent); }

/* draw-in of the tutor's ink; static frame = finished state */
@media (prefers-reduced-motion: no-preference) {
  .js .draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s cubic-bezier(.6,0,.3,1) forwards; animation-delay: var(--d, .4s); }
  .js .fade-in { opacity: 0; animation: fade .5s ease forwards; animation-delay: var(--d, .6s); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy .display { max-width: 14em; }
  .hero-grid { row-gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy > * { grid-column: 1; }
  .hero .browser { order: 2; margin-top: 48px; }
  .hero .stats { order: 3; }
}
@media (max-width: 720px) {
  .hero { padding-top: 40px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .trust { align-items: flex-start; }
  .trust .nowrap { white-space: normal; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; margin-top: 40px; }
  .lesson { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .tools, .side { display: none; }
  .board { padding: 18px 16px 14px; }
  .task { font-size: 15px; }
  .work { font-size: 17px; gap: 12px; }
  .board-foot .saved { font-size: 11px; }
  .note { font-size: 13px; }
  .browser-bar { grid-template-columns: 48px 1fr 0; }
}

/* ---------- shared band layout ---------- */
.band { padding: var(--band-top) 0 var(--band-bottom); }
.band-head { display: grid; gap: 16px; margin-bottom: 64px; }
.band-head.center { text-align: center; justify-items: center; }
.band-head.center .h2 { max-width: 18em; }
.band-head.center .lead { max-width: 36em; }
.band-title-left { margin-bottom: 48px; }

/* ---------- 3. marks ---------- */
.marks { padding: 40px 0 0; }
.marks-cap { text-align: center; }
.marks-row { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.marks-row li { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: var(--ink-3); letter-spacing: -0.01em; white-space: nowrap; }
.marks-row svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 1100px) {
  .marks-row { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; row-gap: 20px; }
}
@media (max-width: 720px) {
  .marks-row { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .marks-row li { font-size: 14px; white-space: normal; line-height: 1.3; }
}

/* ---------- 4. features ---------- */
.rows { display: grid; gap: 96px; }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; align-items: center; }
.feat.flip .illo { order: 2; }
.row-copy { display: grid; gap: 16px; max-width: 460px; }
.row-copy .body-2 { font-size: 17px; }
.fact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fact span { font-size: var(--fs-cap); color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 12px; }

.illo { border: 1px solid var(--line); border-radius: var(--r-surface); padding: 14px; background: var(--bg); }
.illo > div { position: relative; aspect-ratio: 4 / 3; border-radius: 4px; background: var(--surface); overflow: hidden; }

/* pdf illo */
.illo-pdf { padding: 24px 28px; }
.drive-bar { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 14px 6px 10px; }
.drive-bar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.drive-bar i { font-style: normal; color: var(--ink-3); }
.drive-bar span:last-child { color: var(--ink); font-weight: 500; }
.sheets { position: absolute; left: 28px; right: 28px; top: 78px; bottom: -40px; }
.sheet { position: absolute; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; width: 62%; }
.sheet b { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.sheet.s3 { left: 38%; top: 0; bottom: 0; }
.sheet.s2 { left: 19%; top: 18px; bottom: 0; }
.sheet.s1 { left: 0; top: 36px; bottom: 0; box-shadow: 0 18px 30px -24px rgba(20,19,20,.35); }
.sh-t { font-size: 17px; font-weight: 500; color: var(--ink); }
.sh-l { font-size: 15px; color: var(--ink); }
.sh-l sup { font-size: .65em; }
.sh-l.acc { color: var(--accent); }
.sh-bar { height: 6px; border-radius: 6px; background: var(--surface); flex: none; }
.w80 { width: 80%; } .w60 { width: 60%; } .w70 { width: 70%; }
.sh-box { margin-top: 4px; align-self: flex-start; font-size: 13px; color: var(--ink); border: 1.5px solid var(--accent); border-radius: 6px; padding: 6px 10px; }

/* checklist illo */
.illo-list { padding: 28px; display: flex; flex-direction: column; }
.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.list-head b { font-weight: 500; }
.list-head span { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter-lg { height: 6px; border-radius: 6px; background: var(--line); margin: 14px 0 18px; overflow: hidden; flex: none; }
.meter-lg i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.illo-list ul { display: grid; gap: 8px; }
.illo-list li { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; font-size: 14px; color: var(--ink-2); }
.illo-list li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; box-sizing: border-box; }
.illo-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.illo-list li b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.illo-list li.ok::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2 4.8-5' fill='none' stroke='%23fcfcfd' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; border-color: var(--ink); }
.illo-list li.ok span { color: var(--ink); }
.illo-list li.now { border-color: var(--accent); }
.illo-list li.now::before { border-color: var(--accent); border-width: 2px; }

/* chart illo */
.illo-chart { padding: 28px; display: flex; flex-direction: column; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.chart-head b { font-weight: 500; }
.chart-head span { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.chart { flex: 1; display: flex; flex-direction: column; margin-top: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 28px 18px 10px; }
.bars { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; border-bottom: 1px solid var(--line-strong); }
.bars .bar { height: var(--h); background: var(--line-strong); border-radius: 4px 4px 0 0; position: relative; }
.bars .bar span { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bars .bar.last { background: var(--accent); }
.bars .bar.last span { color: var(--ink); font-weight: 500; }
.months { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; padding-top: 8px; }
.months span { text-align: center; font-size: 12px; color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .js .bars .bar { transform: scaleY(0); transform-origin: bottom; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
  .js .bars .bar:nth-child(2) { transition-delay: .06s } .js .bars .bar:nth-child(3) { transition-delay: .12s } .js .bars .bar:nth-child(4) { transition-delay: .18s }
  .js .bars .bar:nth-child(5) { transition-delay: .24s } .js .bars .bar:nth-child(6) { transition-delay: .3s } .js .bars .bar:nth-child(7) { transition-delay: .36s }
  .js .illo.seen .bars .bar { transform: none; }
}

@media (max-width: 900px) {
  .rows { gap: 64px; }
  .feat { grid-template-columns: 1fr; gap: 28px; }
  .feat.flip .illo { order: 0; }
  .row-copy { max-width: none; }
}
@media (max-width: 520px) {
  .illo { padding: 8px; }
  .illo > div { aspect-ratio: 1 / 1; }
  .illo-pdf, .illo-list, .illo-chart { padding: 18px; }
  .sheets { left: 18px; right: 18px; top: 66px; }
  .sheet { width: 78%; padding: 14px 16px; }
  .sheet.s3 { left: 22%; } .sheet.s2 { left: 11%; }
  .illo-list li { padding: 8px 10px; font-size: 13px; }
  .illo-list li:last-child { display: none; }
  .bars, .months { gap: 6px; }
}

/* ---------- 5. process ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; align-items: start; }
.split-head { display: grid; gap: 20px; justify-items: start; position: sticky; top: 112px; }
.split-head .btn { margin-top: 12px; }
.steps { display: grid; }
.step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 24px; padding-bottom: 44px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 19.5px; top: 48px; bottom: 8px; width: 1px; background: var(--line-strong); }
.step:last-child::before { display: none; }
.step-n { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--inv-ink); display: grid; place-items: center; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.step .h3 { margin-top: 6px; }
.step .body-2 { margin-top: 8px; max-width: 34em; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-head { position: static; }
}

/* ---------- 6. testimonials ---------- */
.quote-lead { display: grid; gap: 28px; max-width: 880px; }
.result { display: inline-flex; align-items: baseline; gap: 12px; font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.result svg { width: 24px; height: 12px; fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; align-self: center; }
.result span:first-child { color: var(--ink-3); }
.result small { font-size: var(--fs-cap); font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.result.sm { font-size: 16px; }
.quote-lead blockquote p { font-size: 32px; line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; text-wrap: pretty; }
.person { display: flex; align-items: center; gap: 12px; }
.person > span:last-child { display: grid; line-height: 1.35; }
.person b { font-weight: 500; font-size: 15px; }
.avatar.lg { width: 44px; height: 44px; font-size: 16px; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.quote { display: grid; gap: 18px; align-content: start; }
.quote blockquote p { font-size: 18px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
@media (max-width: 720px) {
  .quote-lead blockquote p { font-size: 23px; }
  .quotes { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
}

/* ---------- 7. pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--r-surface); padding: 32px 28px; display: flex; flex-direction: column; background: var(--bg); }
.plan.featured { border: 1.5px solid var(--ink); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-name { font-size: 18px; font-weight: 500; }
.badge { font-size: 12px; font-weight: 500; background: var(--ink); color: var(--inv-ink); border-radius: var(--r-pill); padding: 4px 10px; white-space: nowrap; }
.plan-for { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.price { margin: 28px 0 24px; display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 44px; font-weight: 500; letter-spacing: -0.025em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price span { font-size: 15px; color: var(--ink-3); }
.plan .btn { width: 100%; }
.ticks { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.5 9.3l2.3 2.3 4.7-5' fill='none' stroke='%23201f20' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .plan.featured { order: -1; }
}

/* ---------- 8. faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 500; cursor: pointer; border-radius: 4px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover .plus { border-color: var(--ink); }
.plus { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; transition: border-color .15s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); translate: -50% -50%; }
.plus::after { rotate: 90deg; transition: rotate .25s; }
.faq details[open] .plus::after { rotate: 0deg; }
.faq-a { padding: 0 56px 24px 0; }
.faq-a p { color: var(--ink-2); max-width: 40em; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .faq-a { animation: faqIn .3s ease; }
}
@keyframes faqIn { from { opacity: 0; translate: 0 -4px; } }
@media (max-width: 720px) { .faq summary { font-size: 16px; padding: 18px 0; } .faq-a { padding-right: 0; } }

/* ---------- 9. closing ---------- */
.closing { background: var(--inv); color: var(--inv-ink); padding: 64px 0; margin-top: var(--band-top); }
.closing-row { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.closing-title { font-size: 32px; font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.closing-actions { display: flex; gap: 12px; flex: none; }
.btn-ghost-inv { color: var(--inv-ink); border-color: rgba(252,252,253,.38); background: transparent; }
.btn-ghost-inv:hover { border-color: var(--inv-ink); }
.closing :focus-visible { outline-color: var(--inv-ink); }
@media (max-width: 900px) {
  .closing { padding: 56px 0; }
  .closing-row { flex-direction: column; align-items: flex-start; }
  .closing-title { font-size: 28px; }
}
@media (max-width: 520px) { .closing-actions { flex-direction: column; width: 100%; } .closing-actions .btn { width: 100%; } }

/* ---------- 10. footer ---------- */
.site-footer { padding: 64px 0 32px; }
#faq { padding-bottom: 136px; border-bottom: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
.footer-brand { display: grid; gap: 16px; justify-items: start; align-content: start; max-width: 340px; }
.footer-brand img { height: 32px; width: auto; }
.footer-brand .body-2 { font-size: 15px; }
.social { display: flex; gap: 8px; margin-top: 4px; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--ink); transition: border-color .15s; }
.social a:hover { border-color: var(--ink); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.footer-col h3 { font-size: var(--fs-cap); font-weight: 500; color: var(--ink-3); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; }
.footer-base .cap:last-child { max-width: 44em; text-align: right; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
  .footer-base { flex-direction: column; }
  .footer-base .cap:last-child { text-align: left; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-col:last-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}

/* ---------- booking dialog & form ---------- */
:root { --error: #b42318; --success: #14733f; }
.booking { width: min(100% - 32px, 560px); max-height: min(92vh, 860px); padding: 0; border: 1px solid var(--line); border-radius: var(--r-surface); background: var(--bg); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(20,19,20,.45); overflow: auto; overscroll-behavior: contain; }
.booking:focus, .booking:focus-visible { outline: none; }
.booking::backdrop { background: rgba(20,19,20,.55); }
.booking.wide { width: min(100% - 32px, 760px); }
.booking-inner { padding: 28px; display: grid; gap: 22px; }
.booking-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.booking-head .cap { margin-top: 4px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); display: grid; place-items: center; cursor: pointer; flex: none; color: var(--ink); }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .booking[open] { animation: dlgIn .22s cubic-bezier(.2,.8,.2,1); }
  .booking[open]::backdrop { animation: fade .22s ease; }
}
@keyframes dlgIn { from { opacity: 0; translate: 0 12px; } }
@media (max-width: 520px) { .booking-inner { padding: 20px; gap: 18px; } }

.tabs, .seg { display: flex; padding: 4px; gap: 4px; background: var(--surface); border-radius: var(--r-pill); border: 1px solid var(--line); }
.tabs[hidden] { display: none; }
.tabs button { flex: 1; min-height: 40px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); font-size: 15px; font-weight: 500; cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(20,19,20,.12), 0 0 0 1px var(--line); }
.cal-wrap { border: 1px solid var(--line); border-radius: var(--r-surface); overflow: hidden; height: 600px; max-height: 62vh; background: var(--surface); }
.cal-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.panel { display: grid; gap: 12px; }
.panel[hidden] { display: none; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 500; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--ink-3); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: var(--r-surface); background: var(--bg); color: var(--ink); font: 400 16px/1.4 var(--font); caret-color: var(--accent); transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder, .field textarea::placeholder { color: #707070; }
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,91,255,.22); }
.field [aria-invalid="true"] { border-color: var(--error) !important; }
.err { font-size: 13px; color: var(--error); }
.err[hidden] { display: none; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 40px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--ink-2); text-align: center; line-height: 1.2; transition: background-color .15s, color .15s; }
.seg input:hover + span { color: var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--inv-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; position: relative; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.check .box { width: 22px; height: 22px; border: 1.5px solid var(--field-line); border-radius: 6px; display: grid; place-items: center; background: var(--bg); transition: background-color .15s, border-color .15s; }
.check:hover .box { border-color: var(--ink-3); }
.check .box svg { width: 14px; height: 14px; fill: none; stroke: var(--inv-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.check input:checked + .box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .box svg { opacity: 1; }
.check input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check input[aria-invalid="true"] + .box { border-color: var(--error); }
.check .cap { color: var(--ink-2); padding-top: 1px; }
.btn-block { width: 100%; }
.form-status { font-size: 14px; }
.form-status:empty { display: none; }
.form-status.bad { color: var(--error); }
.hp { position: absolute; left: -9999px; }
.done { display: grid; gap: 12px; justify-items: start; padding: 8px 0; }
.done .tick { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.done .tick svg { width: 20px; height: 20px; fill: none; stroke: var(--inv-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- sub-pages ---------- */
.page { padding: 72px 0 var(--band-bottom); }
.prose { max-width: 720px; }
.container.prose { max-width: none; }
.container.prose > * { max-width: 720px; }
.prose .display { margin-bottom: 24px; }
.prose h2 { font-size: 22px; font-weight: 500; margin: 40px 0 12px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-top: 12px; }
.prose a:not(.btn) { color: var(--ink); text-underline-offset: 3px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.card { border: 1px solid var(--line); border-radius: var(--r-surface); padding: 28px; display: grid; gap: 14px; align-content: start; justify-items: start; }
.card-ico { width: 44px; height: 44px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; }
.card-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card .btn { margin-top: 8px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }


/* ================= widgets (landing) ================= */
.text-action.with-ico { display: inline-flex; align-items: center; gap: 6px; }
.text-action.with-ico svg { width: 18px; height: 18px; }

/* hero board: mode switch */
.mode { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); }
.mode button { border: 0; background: transparent; border-radius: var(--r-pill); min-height: 32px; padding: 0 12px; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: background-color .15s, color .15s; }
.mode button span { font-weight: 400; color: var(--ink-3); }
.mode button:hover { color: var(--ink); }
.mode button[aria-checked="true"] { background: var(--ink); color: var(--inv-ink); }
.mode button[aria-checked="true"] span { color: var(--inv-ink-2); }
.mode button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.work[hidden] { display: none; }
.work.school { font-size: 15px; gap: 4px; line-height: 1.35; margin-top: 14px; color: var(--ink); }
.work.school .frac { font-size: .82em; }
.work.school .op { color: var(--ink-3); font-size: .85em; margin-left: 8px; }
.work.school .note-ln { margin-top: 4px; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .js .work.school .ln { animation: lineIn .32s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 70ms); }
}
@keyframes lineIn { from { opacity: 0; translate: -6px 0; } }
.cmp .row { transition: opacity .2s; }
.cmp .row.dim { opacity: .45; }
@media (max-width: 520px) {
  .board-foot .saved { display: none; }
  .mode button { padding: 0 10px; }
  .work.school { font-size: 13.5px; gap: 6px; }
}

/* pewniaki: interactive */
.illo-list li { display: block; padding: 0; border: 0; background: none; }
.illo-list li::before { content: none; }
.pw { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: border-color .15s, background-color .15s; }
.pw::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--field-line); flex: none; box-sizing: border-box; transition: background-color .15s, border-color .15s; }
.pw span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pw:hover { border-color: var(--ink-3); }
.pw[aria-pressed="true"] { color: var(--ink); }
.pw[aria-pressed="true"]::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2 4.8-5' fill='none' stroke='%23fcfcfd' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; border-color: var(--ink); }
.pw.now { border-color: var(--accent); }
.pw.now::before { border-color: var(--accent); border-width: 2px; }
.meter-lg i { transition: width .45s cubic-bezier(.2,.8,.2,1); }
.list-head output { font: inherit; }
.pw-hint { margin-top: auto; padding-top: 10px; text-align: center; font-size: 12px; color: var(--ink-3); }
@media (max-width: 520px) { .pw { padding: 8px 10px; font-size: 13px; } }

/* chart: focusable bars */
.bars .bar { border: 0; padding: 0; margin: 0; font: inherit; cursor: pointer; display: block; width: 100%; }
.bars .bar:hover, .bars .bar.on { background: var(--ink-3); }
.bars .bar.last:hover, .bars .bar.last.on { background: var(--accent-hover); }
.bars .bar.on span { color: var(--ink); font-weight: 500; }
.bars .bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.readout { font-variant-numeric: tabular-nums; }
.readout b { font-weight: 500; color: var(--ink); font-size: 13px; }
.readout .delta { color: var(--accent); font-weight: 500; }

/* ================= panel ucznia ================= */
.panel-page { padding: 48px 0 var(--band-bottom); min-height: 70vh; }
.panel-actions { gap: 12px; }
.who-chip { font-size: 13px; color: var(--ink-3); }
@media (max-width: 900px) {
  .panel-actions .btn { display: inline-flex; }
  .who-chip, .panel-actions [data-home] { display: none; }
}
.demo-banner { display: flex; gap: 12px; align-items: flex-start; border: 1px dashed var(--line-strong); border-radius: var(--r-surface); padding: 12px 16px; margin-bottom: 32px; font-size: 14px; color: var(--ink-2); background: var(--surface); }
.demo-banner[hidden] { display: none; }
.demo-banner b { font-weight: 500; color: var(--ink); }

.p-auth { display: grid; place-items: center; padding: 24px 0 48px; }
.auth-card { width: min(100%, 460px); display: grid; gap: 20px; justify-items: start; }
.auth-card .form { width: 100%; }
.sent-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.sent-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }

.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.dash-head .cap::first-letter { text-transform: uppercase; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.dash-main, .dash-side { display: grid; gap: 24px; }
.pcard { border: 1px solid var(--line); border-radius: var(--r-surface); padding: 24px; background: var(--bg); }
.pcard-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; min-height: 32px; }
.pcard-label { font-size: 15px; font-weight: 500; color: var(--ink); }
.pcard-label span::first-letter { text-transform: uppercase; }
.arrow-link.sm { font-size: 14px; }

/* next lesson */
.next { padding: 28px; }
.next-row { display: flex; align-items: center; gap: 20px; }
.date-block { width: 48px; flex: none; border: 1px solid var(--line); border-radius: var(--r-surface); display: grid; justify-items: center; padding: 6px 0 5px; line-height: 1.1; }
.date-block b { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.date-block span { font-size: 12px; color: var(--ink-3); }
.date-block.lg { width: 72px; padding: 10px 0 8px; border-color: var(--ink); }
.date-block.lg b { font-size: 30px; letter-spacing: -0.02em; }
.date-block.lg span { font-size: 14px; }
.next-title { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.next-info .body-2::first-letter { text-transform: uppercase; }
.countdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0 24px; }
.countdown[hidden] { display: none; }
.countdown div { background: var(--surface); border-radius: var(--r-surface); padding: 16px 18px; display: grid; gap: 2px; }
.countdown b { font-size: 40px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 13px; color: var(--ink-3); }
.next-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.next-actions [hidden] { display: none; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--accent); }
.live[hidden] { display: none; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.empty { display: grid; gap: 16px; justify-items: start; }
.empty[hidden] { display: none; }
[data-next-body][hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .live::before { animation: pulse 1.6s ease-in-out infinite; }
}
@keyframes pulse { 50% { opacity: .35; } }

/* lessons */
.tabs.sm { padding: 3px; }
.tabs.sm button { min-height: 32px; font-size: 13px; padding: 0 14px; flex: none; }
.lesson-list { display: grid; }
.lesson-item { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.lesson-item:first-child { border-top: 0; padding-top: 0; }
.lesson-txt { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.lesson-txt b { font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-txt span { font-size: 13px; color: var(--ink-3); }
.lesson-item.is-past .date-block b { color: var(--ink-2); }
.chip { font-size: 12px; color: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px 10px; white-space: nowrap; }
.chip-link { font-size: 13px; font-weight: 500; color: var(--on-accent); background: var(--accent); border-radius: var(--r-pill); padding: 6px 14px; text-decoration: none; white-space: nowrap; }
.chip-link:hover { background: var(--accent-hover); }
.empty-line { padding: 4px 0; }
.empty-line[hidden] { display: none; }

/* kpis */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpis > div { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-surface); padding: 16px; }
.kpis dt { order: 2; font-size: 13px; color: var(--ink-3); line-height: 1.3; margin-top: 4px; }
.kpis dd { order: 1; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }

/* mini calendar */
.cal-nav { display: flex; gap: 6px; }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.sm svg { width: 16px; height: 16px; }
.cal-grid { display: grid; gap: 4px; }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd span { font-size: 12px; color: var(--ink-3); text-align: center; padding-bottom: 4px; }
.cal-row > span { display: grid; place-items: center; }
.cal-cell { position: relative; width: 40px; height: 40px; justify-self: center; display: grid; place-items: center; border-radius: 50%; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; border: 1px solid transparent; background: none; padding: 0; font-family: inherit; }
.cal-cell.empty { visibility: hidden; }
.cal-cell.today { border-color: var(--ink); color: var(--ink); font-weight: 500; }
button.cal-cell { cursor: pointer; color: var(--ink); font-weight: 500; }
button.cal-cell:hover { background: var(--surface); }
.cal-cell .dot { position: absolute; bottom: 5px; left: 50%; translate: -50% 0; }
.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.has-up .dot, .dot.up { background: var(--accent); }
.has-past .dot, .dot.past { background: var(--field-line); }
button.cal-cell.sel { background: var(--ink); color: var(--inv-ink); border-color: var(--ink); }
button.cal-cell.sel .dot { background: var(--inv-ink); }
.cal-legend { display: flex; gap: 16px; margin-top: 14px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-day:not(:empty) { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.cal-day .cap::first-letter { text-transform: uppercase; }
.cal-ev { font-size: 14px; color: var(--ink-2); }
.cal-ev b { font-weight: 500; color: var(--ink); margin-right: 6px; font-variant-numeric: tabular-nums; }

/* files */
.files { display: grid; }
.files li + li { border-top: 1px solid var(--line); }
.files a { display: flex; align-items: center; gap: 14px; padding: 12px 0; text-decoration: none; color: inherit; border-radius: 4px; }
.files li:first-child a { padding-top: 0; }
.files a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.file-ico { position: relative; width: 36px; height: 36px; flex: none; border-radius: 8px; background: var(--surface); display: grid; place-items: center; }
.file-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 1.3; stroke-linejoin: round; }
.file-ico em { position: absolute; bottom: 3px; right: 2px; font-style: normal; font-size: 8px; font-weight: 600; color: var(--on-accent); background: var(--ink); border-radius: 3px; padding: 0 2px; line-height: 1.3; }
.file-ico em:empty { display: none; }
.file-txt { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.file-txt b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-txt span { font-size: 12.5px; color: var(--ink-3); }
.file-go { color: var(--ink-3); }

/* skeleton */
.sk { display: block; border-radius: var(--r-surface); background: linear-gradient(90deg, var(--surface) 0%, #efeeed 50%, var(--surface) 100%); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .sk { animation: shimmer 1.4s linear infinite; } }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-head { display: grid; gap: 10px; margin-bottom: 32px; }
.sk-s { width: 160px; height: 14px; } .sk-l { width: 320px; max-width: 80%; height: 44px; }
.sk-card { height: 240px; } .sk-card.tall { height: 340px; } .sk-card.short { height: 96px; }

@media (max-width: 960px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-side { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .panel-page { padding-top: 32px; }
  .dash-head { flex-direction: column; align-items: flex-start; }
  .dash-head .btn { width: 100%; }
  .pcard, .next { padding: 20px; }
  .countdown b { font-size: 32px; }
  .countdown div { padding: 12px 14px; }
  .next-title { font-size: 19px; }
  .next-actions .btn { width: 100%; }
  .kpis dd { font-size: 24px; }
  .kpis > div { padding: 12px; }
}



/* ================= editorial layer (arkusz) ================= */
.js .ink-view path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.6,0,.3,1) .25s; }
.ink-view.seen path { stroke-dashoffset: 0; }
.circled { position: relative; display: inline-block; white-space: nowrap; }

.task-no { font-size: 14px; color: var(--ink-3); margin-bottom: 20px; display: flex; align-items: baseline; gap: 8px; }
.task-no b { color: var(--ink); font-weight: 600; }
.h2xl { font-size: clamp(34px, 4.3vw, 60px); font-weight: 500; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; max-width: 15em; }
.sec { padding: 136px 0 0; }
.sec-head { margin-bottom: 56px; }
.sec-head .lead.narrow { margin-top: 20px; max-width: 36em; }
.sec-head.two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; }
.sec-head.two > .lead, .sec-side { padding-bottom: 6px; }
.sec-side { display: grid; gap: 24px; justify-items: start; }

/* hero */
.hero2 { padding: 48px 0 0; }
.hero2-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; }
.hero2-copy { padding: 40px 0 72px; }
.kicker { font-size: 15px; font-weight: 500; color: var(--ink-2); margin-bottom: 28px; }
.mega { font-size: clamp(54px, 7.6vw, 112px); font-weight: 500; line-height: .94; letter-spacing: -0.045em; }
.mega .circled { margin-top: .04em; }
.mega .ink path { stroke-width: 2.2; }
.hero2-copy .lead { margin-top: 36px; max-width: 31em; font-size: 19px; }
.hero2-copy .hero-actions { margin-top: 36px; }
.trust-line { margin-top: 20px; font-size: 14px; color: var(--ink-3); }
.hero2-photo { align-self: end; justify-self: end; width: 100%; max-width: 520px; margin-bottom: -1px; }
.hero2-photo img { width: 100%; height: auto; }
.stats2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 22px; position: relative; z-index: 1; }
.hero-rule { position: relative; display: block; width: 100%; height: 20px; margin-top: -10px; z-index: 2; }
.hero-rule path { stroke-width: 2.6; vector-effect: non-scaling-stroke; }
.hero-rule .rule-fill { fill: var(--bg); stroke: none; }
.hero2-photo img { position: relative; top: 8px; } /* dół zdjęcia schodzi pod kreskę; .rule-fill przycina go po fali */
.stats2 > div { display: flex; flex-direction: column; }
.stats2 dt { order: 2; margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.stats2 dd { color: var(--ink); order: 1; font-size: clamp(36px, 4vw, 56px); font-weight: 500; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats2 dd .n.blue { color: var(--logo-blue); }
.subjects { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 15px; color: var(--ink-2); }
.subjects span + span::before { content: "/"; color: var(--line-strong); margin: 0 14px; }

/* zadanie 1: board */
.board-stage { width: 100%; }
@media (min-width: 1101px) {
  .board-stage .lesson { grid-template-columns: 56px minmax(0, 1fr) 188px; min-height: 600px; }
  .board-stage .board { padding: 36px 48px 28px; }
  .board-stage .task { font-size: 20px; max-width: 34em; }
  .board-stage .work { font-size: 26px; gap: 18px; }
  .board-stage .work.school { font-size: 18px; gap: 6px; }
  .board-stage .note, .board-stage .note-ln { font-size: 17px; }
}
.board-stage .browser { box-shadow: 0 40px 80px -48px rgba(20,19,20,.35); }

/* zadanie 2 */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.trio li { border-top: 1px solid var(--ink); padding-top: 20px; }
.trio-n { display: block; font-size: 15px; font-weight: 500; color: var(--ink-3); margin-bottom: 18px; }
.trio .h3 { margin-bottom: 12px; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 64px; align-items: stretch; }
.illo.widget { border: 0; padding: 0; background: none; display: flex; flex-direction: column; }
.illo.widget > div { flex: 1; aspect-ratio: auto; overflow: visible; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-surface); padding: 28px; }
.w-cap { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.widget .illo-chart { min-height: 400px; }
.widget .chart { border: 0; padding: 28px 0 0; background: none; }
.widget .illo-list ul { gap: 8px; }

/* zadanie 3 */
.steps2 { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.steps2::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line-strong); }
.step2-n { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--inv-ink); display: grid; place-items: center; font-size: 16px; font-weight: 500; box-shadow: 0 0 0 10px var(--bg); }
.steps2 .h3 { margin: 28px 0 10px; }
.steps2 .body-2 { max-width: 30em; }

/* opinie */
.q-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; border-top: 1px solid var(--ink); }
.q-card { display: flex; flex-direction: column; padding-top: 40px; }
.q-card + .q-card { border-left: 1px solid var(--line); padding-left: 64px; margin-left: -32px; }
.q-card .q-score { font-size: clamp(44px, 4.6vw, 72px); }
.q-bars { display: grid; gap: 10px; margin-top: 32px; max-width: 420px; }
.q-bar { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); }
.q-bar i { display: block; height: 6px; border-radius: 3px; background: linear-gradient(var(--ink-3), var(--ink-3)) no-repeat 0 0 / var(--v) 100%, var(--line); }
.q-bar.to i { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / var(--v) 100%, var(--line); }
.js .q-bars i { background-size: 0 100%, auto; transition: background-size 1.1s cubic-bezier(.6,0,.3,1) .2s; }
.js .q-bars .to i { transition-delay: .45s; }
.js .q-bars.seen i { background-size: var(--v) 100%, auto; }
.q-card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; }
.q-card.wide .q-main blockquote p { margin-top: 0; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.3; }
.q-card blockquote p { margin-top: 32px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; text-wrap: pretty; }
.q-card figcaption { margin-top: 20px; font-size: 15px; color: var(--ink-3); }
.q-card figcaption b { color: var(--ink); font-weight: 500; }
@media (max-width: 900px) {
  .q-grid { grid-template-columns: 1fr; }
  .q-card.wide { grid-template-columns: 1fr; }
  .q-card + .q-card { border-left: 0; padding-left: 0; margin-left: 0; margin-top: 48px; border-top: 1px solid var(--line); }
}
.q-lead { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: start; border-top: 1px solid var(--ink); padding-top: 40px; }
.q-score { display: flex; align-items: center; gap: .18em; font-size: clamp(48px, 5.4vw, 80px); font-weight: 500; letter-spacing: -0.05em; line-height: .9; font-variant-numeric: tabular-nums; white-space: nowrap; }
.q-score .from { color: var(--ink-3); }
.q-score svg { width: .42em; height: .21em; fill: none; stroke: var(--ink-3); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.q-score .to { position: relative; }
.q-score .ink path { stroke-width: 2.4; }
.q-body blockquote p { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; text-wrap: pretty; }
.q-lead figcaption, .q-more figcaption { margin-top: 20px; font-size: 15px; color: var(--ink-3); }
.q-lead figcaption b, .q-more figcaption b { color: var(--ink); font-weight: 500; }
.q-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; margin-top: 80px; }
.q-more figure { border-top: 1px solid var(--line); padding-top: 28px; }
.q-more.single > figure { grid-column: 2; }
@media (max-width: 900px) { .q-more.single > figure { grid-column: auto; } }
.q-score.sm { font-size: 40px; letter-spacing: -0.035em; }
.q-more blockquote p { margin-top: 18px; font-size: 18px; line-height: 1.55; text-wrap: pretty; }

/* cennik */
.plist { border-top: 1px solid var(--ink); }
.pl { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 2.4fr) 150px; gap: 32px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--line); }
.pl-name h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.pl-name p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.pl-feat { display: grid; gap: 6px; }
.pl-feat li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.pl-feat li::before { content: "–"; position: absolute; left: 0; color: var(--ink-3); }
.pl-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pl-price b { font-size: 44px; font-weight: 500; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-price > span:last-child { font-size: 14px; color: var(--ink-3); }
.pl-note { flex-basis: 100%; font-size: 13px; font-weight: 500; color: var(--accent); margin-bottom: 10px; }
.pl-price .ink path { stroke-width: 2.4; }
.pl .btn { width: 100%; }

/* faq heading inside split */
.split-head .h2xl { font-size: clamp(32px, 3.4vw, 48px); }

/* zamknięcie */
.closing2 { background: var(--inv); color: var(--inv-ink); padding: 112px 0; margin-top: 64px; }
.closing2-title { font-size: clamp(40px, 5.8vw, 84px); font-weight: 500; line-height: 1; letter-spacing: -0.045em; max-width: 12em; text-wrap: balance; }
.closing2-title .dim { color: #8f8e90; }
.closing2 .closing-actions { margin-top: 48px; }
.closing2 :focus-visible { outline-color: var(--inv-ink); }

@media (max-width: 1100px) {
  .hero2-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
}
@media (max-width: 900px) {
  .sec { padding-top: 96px; }
  .sec-head.two { grid-template-columns: 1fr; gap: 20px; }
  .hero2-grid { grid-template-columns: 1fr; gap: 0; }
  .hero2-copy { padding: 24px 0 40px; }
  .hero2-photo { justify-self: center; max-width: 440px; }
  .stats2 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .trio, .duo, .q-more { grid-template-columns: 1fr; gap: 40px; }
  .duo { gap: 32px; margin-top: 48px; }
  .q-lead { grid-template-columns: 1fr; gap: 28px; }
  .steps2 { grid-template-columns: 1fr; gap: 36px; }
  .steps2::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; }
  .steps2 li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 20px; }
  .steps2 li > :not(.step2-n) { grid-column: 2; }
  .steps2 .h3 { margin-top: 8px; }
  .pl { grid-template-columns: 1fr auto; gap: 16px 24px; padding: 28px 0; }
  .pl-name, .pl-feat { grid-column: 1 / -1; }
  .pl .btn { width: auto; }
  .closing2 { padding: 72px 0; margin-top: 40px; }
}
@media (max-width: 520px) {
  .hero2 { padding-top: 24px; }
  .kicker { font-size: 14px; margin-bottom: 20px; }
  .hero2-copy .lead { font-size: 17px; margin-top: 24px; }
  .subjects { font-size: 14px; margin-top: 40px; }
  .subjects { gap: 8px 18px; }
  .subjects span + span::before { content: none; }
  .widget .illo-chart { min-height: 340px; }
  .illo.widget > div { padding: 20px; }
  .pl { grid-template-columns: 1fr; }
  .pl .btn { width: 100%; }
  .q-score.sm { font-size: 34px; }
}


/* cennik: dwa plany obok siebie */
.plans2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan2 { display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: var(--r-surface); padding: 40px; background: var(--bg); }
.plan2-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 30px; }
.plan2-top h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.plan2-tag { font-size: 13px; font-weight: 500; border-radius: var(--r-pill); padding: 5px 12px; white-space: nowrap; }
.plan2-for { margin-top: 8px; font-size: 16px; color: var(--ink-2); }
.plan2-price { margin: 44px 0 32px; display: flex; align-items: baseline; gap: 12px; }
.plan2-price b { font-size: clamp(56px, 6vw, 80px); font-weight: 500; letter-spacing: -0.045em; line-height: .9; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan2-price > span:last-child { font-size: 16px; color: var(--ink-3); }
.plan2-price .ink path { stroke-width: 1.4; }
.plan2 .btn { width: 100%; min-height: 52px; }
.plan2-feat { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.plan2-feat li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); line-height: 1.45; }
.plan2-feat svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.plan2.featured { background: var(--inv); color: var(--inv-ink); border-color: var(--inv); }
.plan2.featured .plan2-for, .plan2.featured .plan2-feat li { color: var(--inv-ink-2); }
.plan2.featured .plan2-price > span:last-child { color: #9d9c9e; }
.plan2.featured .plan2-feat { border-top-color: rgba(252,252,253,.16); }
.plan2.featured .plan2-feat svg { stroke: var(--inv-ink); }
.plan2.featured .plan2-tag { background: var(--inv-ink); color: var(--ink); }
.plan2.featured :focus-visible { outline-color: var(--inv-ink); }

@media (max-width: 900px) {
  .plans2 { grid-template-columns: 1fr; max-width: 560px; }
  .plan2.featured { order: -1; }
}
@media (max-width: 520px) {
  .plan2 { padding: 28px 24px; }
  .plan2-price { margin: 32px 0 24px; }
}


/* widget: pewniaki → potencjał */
.pk-wide { margin-top: 64px; }
.pk-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; flex-wrap: wrap; }
.pk-top .pk-switch { width: 340px; max-width: 100%; }
.pk { display: flex; flex-direction: column; }
.pk-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); }
.pk-switch::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--r-pill); background: var(--accent); box-shadow: 0 4px 12px -4px rgba(46,91,255,.55); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.pk-switch[data-level="r"]::before { transform: translateX(100%); }
.pk-switch button { position: relative; z-index: 1; min-height: 42px; border: 0; background: none; border-radius: var(--r-pill); font: 500 15px/1 var(--font); color: var(--ink-3); cursor: pointer; transition: color .25s; }
.pk-switch button:hover { color: var(--ink); }
.pk-switch button[aria-checked="true"] { color: var(--on-accent); }
.pk-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.pk-score { margin: 0; }
.pk-label { font-size: 14px; color: var(--ink-3); }
.pk-big { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.pk-big b { font-size: 48px; font-weight: 500; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pk-big span { font-size: 14px; color: var(--ink-2); }
.pk-meter { position: relative; height: 8px; border-radius: 8px; background: var(--surface); margin: 18px 0 24px; overflow: hidden; }
.pk-meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; transition: width .45s cubic-bezier(.2,.8,.2,1); }
.pk-meter .hi { background: rgba(46,91,255,.28); }
.pk-meter .lo { background: var(--accent); }

.pk-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
@media (max-width: 760px) { .pk-list { grid-template-columns: 1fr; gap: 6px; } .pk-top .pk-switch { width: 100%; order: -1; } .pk-wide { margin-top: 48px; } }
.pk-item { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: border-color .15s, background-color .15s; }
.pk-item::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.5px solid var(--field-line); box-sizing: border-box; transition: background-color .15s, border-color .15s; }
.pk-item:hover { border-color: var(--ink-3); }
.pk-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pk-item[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); background: #f4f6ff; }
.pk-item[aria-pressed="true"]::before { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6 5.4-6' fill='none' stroke='%23fcfcfd' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.pk-name { flex: 1; min-width: 0; line-height: 1.3; }
.pk-meta { display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pk-prob { font-size: 12px; color: var(--ink-3); }
.pk-meta b { font-weight: 500; color: var(--ink); min-width: 3.6em; text-align: right; }
.pk-more { margin-top: 12px; align-self: center; border: 0; background: none; font: 500 14px var(--font); color: var(--accent); cursor: pointer; padding: 8px 12px; border-radius: var(--r-pill); }
.pk-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.pk-note { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
@media (max-width: 520px) {
  .pk-big b { font-size: 40px; }
  .pk-item { padding: 9px 10px; font-size: 13px; gap: 10px; }
  .pk-prob { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}

/* closing: cena lekcji diagnostycznej */
.closing2-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: end; }
.trial { border: 1px solid rgba(252,252,253,.16); border-radius: var(--r-surface); background: rgba(252,252,253,.04); padding: 32px; }
.trial-label { font-size: 15px; color: var(--inv-ink-2); }
.trial-price { margin-top: 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.trial-price b { font-size: clamp(48px, 5vw, 72px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.trial-price span { font-size: 15px; color: var(--inv-ink-2); }
.trial-range { --p: 50%; -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 28px 0 0; background: transparent; cursor: pointer; }
.trial-range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--accent) var(--p), rgba(252,252,253,.18) var(--p)); }
.trial-range::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(252,252,253,.18); }
.trial-range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
.trial-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--inv-ink); border: 6px solid var(--accent); box-shadow: 0 4px 14px -2px rgba(46,91,255,.6); transition: transform .15s; }
.trial-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--inv-ink); border: 6px solid var(--accent); box-shadow: 0 4px 14px -2px rgba(46,91,255,.6); }
.trial-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.trial-range:focus { outline: none; }
.trial-range:focus-visible { outline: 2px solid var(--inv-ink); outline-offset: 6px; border-radius: 6px; }
.trial-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--inv-ink-2); font-variant-numeric: tabular-nums; }
.trial-cta { width: 100%; margin-top: 28px; }
.trial-note { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--inv-ink-2); }
@media (max-width: 900px) {
  .closing2-grid { grid-template-columns: 1fr; gap: 48px; }
  .trial { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .trial-range::-webkit-slider-thumb { transition: none; } }

/* formularz: dyspozycyjność */
.avail .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.avail .chips + .chips, .avail .chips + label + input, .avail input[type="text"] { margin-top: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-grid; grid-auto-flow: column; align-items: baseline; gap: 6px; min-width: 44px; min-height: 38px; place-content: center; padding: 0 14px; border: 1px solid var(--field-line); border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--bg); transition: background-color .15s, color .15s, border-color .15s; }
.chip small { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.chip input:hover + span { border-color: var(--ink); color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--inv-ink); }
.chip input:checked + span small { color: var(--inv-ink-2); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips-time .chip { flex: 1; }
.chips-time .chip span { width: 100%; }

/* panel: Zaloguj przez Google */
.g-login { width: 100%; }
.g-btn { display: flex; justify-content: center; min-height: 44px; }
.or { display: flex; align-items: center; gap: 14px; margin: 22px 0 4px; font-size: 13px; color: var(--ink-3); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* podstrony SEO (generuj-podstrony.js) */
.page.sub { padding: 56px 0 96px; }
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 28px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.sub-h1 { max-width: 16em; text-wrap: balance; }
.sub-lead { max-width: 640px; margin-top: 20px; }
.sub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; margin-top: 64px; border-top: 1px solid var(--ink); padding-top: 40px; }
.sub-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.sub-h2 { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 20px; }
.sub-h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 10px; }
.sub-card p { color: var(--ink-2); }
.sub-prose { margin-top: 64px; }
.sub-cta { margin-top: 64px; padding: 40px; border-radius: var(--r-surface); background: var(--inv); color: var(--inv-ink); display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.sub-cta p { flex: 1 1 100%; font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 8px; }
.sub-cta .btn-secondary { background: transparent; color: var(--inv-ink); border-color: rgba(255,255,255,.35); }
.sub-other { margin-top: 40px; }
.sub-links { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; font-size: 14px; }
.pk-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pk-table caption { text-align: left; font-size: 13px; color: var(--ink-3); padding-bottom: 12px; }
.pk-table th, .pk-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: middle; }
.pk-table thead th { font-size: 13px; color: var(--ink-3); border-bottom-color: var(--ink); }
.pk-table tbody th { color: var(--ink); padding-right: 16px; }
.pk-table td { white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pk-table td:last-child { text-align: right; }
.pk-bar { display: inline-block; width: 56px; height: 5px; border-radius: 3px; margin-right: 10px; vertical-align: middle; background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / var(--v) 100%, var(--line); }
@media (max-width: 900px) {
  .sub-grid, .sub-grid.three { grid-template-columns: 1fr; }
  .page.sub { padding: 32px 0 64px; }
  .sub-cta { padding: 28px 24px; }
  .sub-cta .btn { flex: 1 1 100%; }
  .pk-bar { width: 32px; }
}
