@charset "UTF-8";
:root{--bg:#f6f7f3;--paper:#fff;--ink:#202f2b;--muted:#65736d;--green:#285f50;--green-dark:#194638;--mint:#e9f1e9;--line:#dce3db;--yellow:#f6e9bb;--radius:18px;--shadow:0 8px 28px #203d2a05}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:155px}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 "Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}button,a,input,summary{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a,summary{touch-action:manipulation}a{color:var(--green);text-underline-offset:4px}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #c28818;outline-offset:4px}button,a,summary{border-radius:6px}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.2}h2{font-size:30px;letter-spacing:-.9px}h3{font-size:18px}strong{font-weight:650}[hidden]{display:none!important}.skip-link{position:fixed;top:8px;left:12px;z-index:100;background:white;padding:10px 16px;transform:translateY(-160%)}.skip-link:focus{transform:none}.topbar{height:90px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;background:rgba(246,247,243,.97);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:13px;font-size:23px;letter-spacing:-.6px;font-weight:800;color:var(--ink);text-decoration:none}.brand-mark{width:42px;height:42px;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;border-radius:12px;font-family:Georgia,serif;font-size:29px;line-height:1}.brand-mark span{font-size:17px;align-self:flex-start;margin-top:6px;margin-left:1px}.top-note{color:var(--muted);font-size:13px;display:flex;align-items:center;gap:9px}.small-dot{width:6px;height:6px;border-radius:50%;background:#77a183}.layout{max-width:1550px;margin:auto;display:grid;grid-template-columns:290px minmax(0,1fr)}.sidebar{padding:35px 24px 30px 34px;border-right:1px solid var(--line);align-self:start;position:sticky;top:90px;max-height:calc(100vh - 90px);overflow-y:auto;scrollbar-width:thin}.course-menu summary{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;font-weight:650;letter-spacing:.4px;text-transform:uppercase;list-style:none;padding:0 4px 20px;cursor:pointer}.course-menu summary::-webkit-details-marker{display:none}.course-total{color:var(--muted);font-weight:400;font-size:11px;letter-spacing:0}.menu-chevron{display:none}.chapter{display:flex;align-items:center;gap:10px;width:100%;min-height:49px;padding:11px 10px;border:0;background:transparent;text-align:left;color:var(--muted);line-height:1.3;font-size:13px;border-radius:9px}.chapter-number{font-variant-numeric:tabular-nums;font-size:11px;min-width:22px;color:#8b958f}.chapter.active{color:var(--green);background:var(--mint);font-weight:650}.chapter.active .chapter-number{color:var(--green)}.chapter-title{flex:1}.chapter .chapter-tag{font-size:10px;color:#738178;white-space:nowrap}.chapter:disabled{opacity:1}.chapter.future{color:#7b8580}.topic-list{list-style:none;margin:8px 0 13px 21px;padding:0 0 0 14px;border-left:1px solid #cbd8cc}.topic{display:flex;align-items:center;gap:10px;text-decoration:none;color:#7d8982;font-size:13px;padding:8px 9px;min-height:40px;line-height:1.3;width:100%;text-align:left;border:0;background:none}.topic-dot{width:5px;height:5px;border-radius:50%;border:1px solid #abb6ad;flex-shrink:0}.topic.active{color:var(--green);font-weight:700}.topic.active .topic-dot{background:var(--green);border-color:var(--green);width:6px;height:6px}.topic.active:after{content:'TERAZ';font-size:8px;margin-left:auto;letter-spacing:.6px;background:#e6ede4;padding:3px 6px;border-radius:4px}.sidebar-note{margin:25px 6px 0;padding:20px 0 0;border-top:1px solid var(--line);display:flex;gap:12px;align-items:center;color:#768276;font-size:12px;line-height:1.5}.note-icon{font-size:27px;color:#8a9e80}.sidebar-note strong{font-weight:500;color:#4a5b50}.content{min-width:0;padding:31px 54px 0;max-width:1160px;width:100%}.breadcrumb{font-size:12px;color:var(--muted);display:flex;gap:12px;align-items:center}.breadcrumb strong{font-weight:500;color:var(--ink)}.welcome{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:36px 0 33px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:var(--green);margin-bottom:12px}h1{font-size:68px;font-weight:750;letter-spacing:-3.8px;margin-bottom:16px}.title-dot{color:#a8b990}.welcome p:not(.eyebrow){font-size:17px;line-height:1.6;color:var(--muted)}.lesson-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px;font-size:11px;color:#647064}.meta-dot{color:#9ba991}.notebook{width:275px;height:188px;flex-shrink:0;position:relative;border:1px solid #d9e0d0;border-radius:15px;background-color:#edf1e4;background-image:linear-gradient(#ccd7bd66 1px,transparent 1px),linear-gradient(90deg,#ccd7bd66 1px,transparent 1px);background-size:23px 23px;transform:rotate(3deg);padding:19px 19px 15px;text-align:center;box-shadow:5px 6px 0 #e6eada}.notebook-label{font-size:9px;letter-spacing:.3px;color:#5a6c4f;background:#edf1e4;padding:3px 6px}.notebook-math{font-family:Georgia,serif;font-size:68px;line-height:1.1;margin-top:10px;color:#365b44}.notebook-math sup{font-size:33px;vertical-align:super}.notebook-math>span{font-size:39px;color:#7a8b66;padding:0 4px}.notebook-caption{font-family:Georgia,serif;font-style:italic;font-size:16px;color:#5e7453}.notebook-spark{position:absolute;font-size:43px;color:#aa8234;bottom:-23px;right:9px}.lesson-nav{display:flex;align-items:center;gap:9px;position:sticky;top:90px;z-index:10;background:var(--bg);padding:13px 0 19px;border-bottom:1px solid var(--line);margin-bottom:27px}.lesson-link{display:flex;align-items:center;gap:9px;text-decoration:none;padding:9px 12px;font-size:13px;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:8px;min-height:41px}.lesson-link:hover{border-color:#93ad99}.step-number{font-size:10px;color:#849181}.count-badge{font-size:10px;color:var(--green);background:var(--mint);padding:0 6px;border-radius:4px}.nav-hint{font-size:10px;color:#7e897f;margin-left:auto}.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:32px;box-shadow:var(--shadow)}.section-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}.section-head .eyebrow{margin-bottom:8px}.pill{background:#f4f6ef;border:1px solid #e6eadf;border-radius:30px;font-size:10px;color:#647059;padding:5px 10px;white-space:nowrap}.section-intro{color:var(--muted);font-size:13px;max-width:580px;margin-bottom:23px}.types-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.type-card{padding:20px 17px;border-radius:12px;background:#f1f5ec;min-width:0}.type-card:nth-child(2){background:#f7f0e0}.type-card:nth-child(3){background:#eef1f7}.type-card .type-label{font-size:9px;letter-spacing:.9px;text-transform:uppercase;font-weight:650;color:#6d7b62;display:block;margin-bottom:8px}.type-card:nth-child(2) .type-label{color:#8c7954}.type-card:nth-child(3) .type-label{color:#687694}.type-card h3{font-size:15px;margin-bottom:11px}.type-card p{font-size:11px;line-height:1.65;color:#657064;margin-top:10px}.type-card .math-line{font-size:22px;margin:9px 0 5px;min-height:39px;display:flex;align-items:center;flex-wrap:wrap;gap:8px}.small-example{font-size:17px!important}.math{font-family:"Cambria Math","STIX Two Math",serif;font-size:1.16em;line-height:1.6}.math[display="block"]{display:block;margin:8px 0}.table-heading{font-size:17px;margin:29px 0 9px}.table-caption{font-size:11px;color:var(--muted);margin-bottom:14px;max-width:680px;line-height:1.7}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px}.rules-table{border-collapse:collapse;width:100%;text-align:left;font-size:12px;min-width:420px}.rules-table th{font-size:10px;letter-spacing:.3px;color:#76806f;background:#f8f9f5;font-weight:600;padding:11px 16px}.rules-table td{padding:14px 16px;border-top:1px solid #e9ede5}.rules-table td:first-child{font-weight:600}.rules-table td:first-child small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:2px}.rules-table .math{font-size:19px}.advice{display:flex;gap:15px;margin-top:23px;padding:19px;background:#f7f4e9;border:1px solid #ece5d0;border-radius:11px}.advice-symbol{display:flex;align-items:center;justify-content:center;width:25px;height:25px;flex-shrink:0;border:1px solid #bda867;color:#978348;border-radius:50%;font:italic 19px Georgia,serif}.advice h3{font-size:13px;margin:3px 0 5px}.advice p{font-size:11px;color:#756f5a;line-height:1.7}.advice-examples{font-size:17px;display:flex;flex-wrap:wrap;gap:8px 24px;margin-top:10px}.extra-theory{margin-top:19px;font-size:12px;color:var(--muted)}.extra-theory summary{cursor:pointer;font-weight:600;color:var(--green);padding:8px 0}.extra-theory p{margin:9px 0;line-height:1.9}.extra-theory .math{font-size:18px}.theory-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:25px;margin-top:20px;border-top:1px solid #e9ede5}.source-link{font-size:11px;font-weight:500;text-decoration:none}.source-link:hover{text-decoration:underline}.primary{display:inline-flex;align-items:center;justify-content:center;gap:19px;color:#fff;background:var(--green);border:1px solid var(--green);padding:12px 19px;border-radius:9px;font-size:12px;font-weight:650;text-decoration:none;min-height:45px;transition:background .15s,transform .15s}.primary:hover{background:var(--green-dark);transform:translateY(-1px)}.primary span{font-size:17px}.test-section{padding-top:47px}.back-theory{font-size:12px;text-decoration:none;font-weight:600}.test-intro{font-size:13px;color:var(--muted);margin:0 0 20px;max-width:650px}.progress-card{display:flex;align-items:center;gap:20px;justify-content:space-between;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px 0;margin-bottom:23px}.progress-card strong{font-size:12px;font-weight:600;display:block}.progress-card span{font-size:10px;color:var(--muted)}progress{appearance:none;-webkit-appearance:none;width:170px;height:6px;border:0;border-radius:20px;overflow:hidden;background:#e2e7de}progress::-webkit-progress-bar{background:#e2e7de;border-radius:20px}progress::-webkit-progress-value{background:#709678;border-radius:20px;transition:width .2s}progress::-moz-progress-bar{background:#709678;border-radius:20px}.question{border:1px solid var(--line);border-radius:15px;background:#fff;margin:0 0 17px;padding:25px;min-width:0;box-shadow:var(--shadow)}.question legend{padding:0;float:left;width:100%;margin-bottom:16px}.question legend+*{clear:both}.question-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.question-label{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:650;letter-spacing:.2px}.question-number{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;background:#f1f4ec;border-radius:7px;color:var(--green);font-size:11px}.question-points{color:#84907e;font-size:10px}.question-prompt{display:block;line-height:2;font-size:16px;font-weight:400}.question-prompt .math{font-size:23px}.answers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;clear:both}.answer{display:flex;align-items:center;gap:10px;min-height:65px;position:relative;border:1px solid #e0e6dc;border-radius:9px;padding:12px;cursor:pointer;transition:border-color .12s,background .12s;min-width:0;color:var(--ink)}.answer:hover{background:#f7f9f4;border-color:#a7b7a2}.answer input{appearance:none;-webkit-appearance:none;position:absolute;inset:0;width:100%;height:100%;margin:0;border-radius:9px;cursor:pointer}.answer input:focus-visible{outline:3px solid #c28818;outline-offset:2px}.answer:has(input:checked){border-color:var(--green);background:#edf4eb;box-shadow:inset 0 0 0 1px var(--green)}.letter{font-size:10px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;background:#f3f5ef;border:1px solid #e2e6dc;border-radius:5px;flex-shrink:0;color:#6a7564}.answer:has(input:checked) .letter{background:var(--green);color:white;border-color:var(--green)}.answer-value{font-size:18px;min-width:0}.answer .math{font-size:21px}.question.long-answers .answers{grid-template-columns:repeat(2,minmax(0,1fr))}.answer.correct{border-color:#72977a;background:#edf5ec;box-shadow:inset 0 0 0 1px #72977a}.answer.incorrect{border-color:#c98b79;background:#fcf0eb;box-shadow:inset 0 0 0 1px #c98b79}.answer.incorrect .letter{background:#a4533b;border-color:#a4533b}.answer:has(input:disabled){cursor:default}.answer input:disabled{cursor:default}.feedback{font-size:12px;margin-top:17px;padding-top:16px;border-top:1px solid #e6eae0}.feedback strong{display:block;color:#37693e;margin-bottom:6px}.feedback.wrong strong{color:#9c543f}.feedback p{color:#66715f;line-height:1.9}.feedback .math{font-size:19px}.submit-card{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:25px;background:#edf1e7;border:1px solid #d7e0ce;border-radius:14px;margin-top:25px}.submit-card h3{font-size:16px;margin-bottom:5px}.submit-card p{font-size:11px;color:#6a7563;max-width:370px}.submit-card .primary{white-space:nowrap}.bottom-actions{display:flex;justify-content:space-between;align-items:center;margin-top:17px}.text-button{border:0;padding:8px 0;background:none;color:var(--muted);font-size:11px;text-decoration:underline;text-underline-offset:4px}.result{background:#eaf2e6;border:1px solid #becfb7;border-radius:16px;padding:30px;margin-top:24px;display:grid;grid-template-columns:auto 1fr;gap:25px;align-items:center;scroll-margin-top:165px}.result-score{font-size:59px;letter-spacing:-3px;line-height:1;font-weight:750;color:var(--green)}.result-score span{font-size:28px}.result h2{font-size:22px;letter-spacing:-.4px;margin:0 0 8px}.result p{font-size:12px;color:#53664c;margin-bottom:6px}.result small{font-size:10px;color:#6d7c64}.result-links{display:flex;gap:15px;margin-top:12px;font-size:11px}.result-links a{font-weight:600}.review-badge{font-size:10px;color:#577849;font-weight:600}.noscript{background:#fff1c8;padding:16px;border-radius:12px;margin-bottom:20px}footer{display:flex;justify-content:space-between;gap:15px;color:#85907d;font-size:10px;border-top:1px solid var(--line);padding:25px 0;margin-top:50px}.footer-brand{font-weight:750;letter-spacing:.5px;color:#63735d}
@media(min-width:1500px){.content{padding-right:70px;padding-left:65px}.layout{grid-template-columns:300px minmax(0,1fr)}}
@media(max-width:1200px){.layout{grid-template-columns:240px minmax(0,1fr)}.sidebar{padding-left:20px;padding-right:16px}.content{padding-left:30px;padding-right:30px}.notebook{width:220px;height:175px}.notebook-math{font-size:60px}.notebook-label{font-size:8px}.panel{padding:25px}.nav-hint{display:none}.type-card{padding:16px 12px}.type-card .math-line{font-size:20px}.answer{padding:10px 8px;gap:7px}.answer .math{font-size:19px}}
@media(max-width:980px){.types-grid{grid-template-columns:1fr}.type-card{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.type-card .type-label,.type-card h3{grid-column:1}.type-card .math-line{grid-column:2;grid-row:1/4;margin:0;font-size:22px}.type-card p{grid-column:1/-1}.type-card .small-example{grid-column:1/-1;grid-row:auto}.answers{grid-template-columns:repeat(2,minmax(0,1fr))}.notebook{width:170px;height:153px;padding:13px 8px}.notebook-label{font-size:7px}.notebook-math{font-size:49px}.notebook-math sup{font-size:25px}.notebook-math>span{font-size:28px}.welcome{gap:12px}h1{font-size:61px}.welcome p:not(.eyebrow){font-size:15px}.lesson-meta{font-size:10px;gap:6px}.pill{display:none}.submit-card{align-items:stretch;flex-direction:column;gap:14px}.submit-card .primary{align-self:flex-start}.topbar{padding:0 28px}.top-note-extra{display:none}}
@media(max-width:760px){html{scroll-padding-top:140px}.topbar{height:72px;padding:0 20px}.brand{font-size:20px;gap:9px}.brand-mark{width:34px;height:34px;border-radius:9px;font-size:24px}.brand-mark span{font-size:14px;margin-top:4px}.top-note{font-size:10px;gap:5px}.layout{display:block}.sidebar{position:static;padding:16px 20px 0;border-right:0;max-height:none;overflow:visible}.course-menu{border:1px solid var(--line);border-radius:10px;background:#fff}.course-menu summary{padding:13px 15px;font-size:11px}.course-total{font-size:10px}.menu-chevron{display:inline;margin-left:9px}.course-menu[open] .menu-chevron{display:inline-block;transform:rotate(180deg)}#course-nav{padding:0 12px 12px}.sidebar-note{display:none}.content{padding:24px 20px 0}.breadcrumb{font-size:10px;gap:9px}.welcome{padding:25px 0 24px}.welcome .eyebrow{font-size:9px;letter-spacing:1.5px}h1{font-size:54px;letter-spacing:-3px;margin-bottom:11px}.welcome p:not(.eyebrow){font-size:14px}.notebook{width:150px;height:143px}.notebook-label{font-size:6px}.notebook-math{font-size:46px}.notebook-caption{font-size:14px}.notebook-spark{font-size:33px;bottom:-18px}.lesson-meta{margin-top:15px;max-width:200px}.lesson-nav{top:72px;padding:10px 0 13px;margin-bottom:20px}.lesson-link{font-size:12px;padding:8px 10px;min-height:39px}.panel{padding:22px;border-radius:14px}h2{font-size:25px}.section-head{margin-bottom:14px}.types-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.type-card{display:block;padding:15px 12px}.type-card h3{font-size:13px}.type-card .math-line{font-size:19px}.type-card p{font-size:10px}.type-card .type-label{font-size:8px;letter-spacing:.5px}.theory-actions{align-items:center}.theory-actions .primary{font-size:11px;padding:11px 14px;gap:10px}.source-link{font-size:10px}.test-section{padding-top:34px}.question{padding:21px}.question-prompt{font-size:15px}.question-prompt .math{font-size:22px}.answer{min-height:60px;padding:12px}.answer .math{font-size:22px}.progress-card{gap:12px}progress{width:130px}.result{scroll-margin-top:140px}}
@media(max-width:500px){.top-note{font-size:9px;max-width:94px;line-height:1.4}.top-note .small-dot{display:none}.content{padding-left:15px;padding-right:15px}.sidebar{padding-left:15px;padding-right:15px}.topbar{padding:0 15px}.brand{font-size:18px}.welcome{gap:8px}.notebook{width:120px;height:128px}.notebook-label{display:none}.notebook-math{margin-top:14px;font-size:42px}.notebook-math>span{font-size:25px;padding:0}.notebook-math sup{font-size:24px}.notebook-caption{font-size:13px}.welcome p:not(.eyebrow){font-size:12px}.welcome .eyebrow{font-size:8px;letter-spacing:1px}h1{font-size:49px}.lesson-meta{font-size:9px;gap:5px}.panel{padding:20px 17px}.section-intro{font-size:12px}.types-grid{grid-template-columns:1fr}.type-card{display:grid;grid-template-columns:1fr 1fr;column-gap:16px;padding:17px}.type-card h3{font-size:15px}.type-card p{font-size:11px}.type-card .type-label{font-size:9px}.type-card .math-line{font-size:22px}.table-heading{font-size:16px}.rules-table{min-width:390px}.rules-table td,.rules-table th{padding:12px}.rules-table .math{font-size:17px}.advice{padding:15px 12px;gap:10px}.advice-symbol{width:21px;height:21px}.advice h3{font-size:12px}.advice-examples{font-size:16px;gap:10px}.extra-theory{font-size:11px}.theory-actions{flex-direction:column-reverse;align-items:stretch;gap:16px;text-align:center}.theory-actions .primary{font-size:12px}.back-theory{font-size:10px}.question{padding:20px 16px}.question-prompt{font-size:14px}.question-prompt .math{font-size:21px}.answer{padding:10px;gap:8px;min-height:64px}.answer .math{font-size:20px}.answer-value{font-size:16px}.question.long-answers .answers{grid-template-columns:1fr}.letter{width:23px;height:23px}.progress-card strong{font-size:11px}.progress-card span{font-size:9px}progress{width:94px}.submit-card{padding:21px}.submit-card .primary{align-self:stretch}.result{grid-template-columns:1fr;gap:14px;padding:25px}.result-score{font-size:57px}.result h2{font-size:21px}.test-intro{font-size:12px}footer{margin-top:37px;font-size:9px}.breadcrumb{font-size:9px}}
.type-card p .math{font-size:16px}.question-prompt .math{margin:0 2px}.type-card p{line-height:1.8}
@media(max-width:380px){.type-card{display:block}.type-card .math-line{margin:12px 0}.type-card .small-example{margin-bottom:0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
/* Cztery tematy korzystają z tego samego układu; dłuższe wzory mają więcej miejsca. */
.notebook[data-topic]:not([data-topic="potegi"]) .notebook-math{font-size:30px;line-height:1.7;margin-top:18px}
.notebook[data-topic] .notebook-math .math{font-size:1em}
.notebook[data-topic]:not([data-topic="potegi"]) .notebook-label{white-space:normal;display:block;line-height:1.4}
.chapter{font-size:14px}.topic{font-size:14px}.chapter-tag{display:none}.chapter-number,.course-total,.topic.active:after{font-size:12px}.topic.active:after{content:'•';background:none;padding:0}.eyebrow{font-size:12px;letter-spacing:1.2px}.type-card .type-label{font-size:12px;letter-spacing:0}.type-card h3{font-size:17px}.type-card p{font-size:14px}.type-card .math-line{font-size:21px;overflow-wrap:anywhere}.type-card p .math{font-size:17px}
.section-intro,.test-intro,.question-prompt{font-size:16px}.table-caption,.advice p,.extra-theory,.feedback,.source-link,.back-theory{font-size:14px}.rules-table{font-size:15px}.rules-table th,.rules-table td:first-child small{font-size:12px}.advice h3{font-size:16px}.primary,.lesson-link,.progress-card strong,.text-button{font-size:14px}.progress-card span,.question-points,.submit-card p,.result p,.result small,.lesson-meta,.breadcrumb,.pill{font-size:12px}.question-label,.letter{font-size:13px}.question-prompt{line-height:2.1}.type-card .math-line{min-width:0}.types-grid{align-items:stretch}.result-links{flex-wrap:wrap}
@media(max-width:1100px){h1{font-size:51px}.types-grid{grid-template-columns:1fr}.type-card{display:block}.type-card .math-line{margin:12px 0}.notebook{width:175px}}
@media(max-width:760px){.welcome{flex-wrap:wrap}.welcome>div:first-child{flex:1;min-width:180px}.notebook{width:145px}.notebook[data-topic]:not([data-topic="potegi"]) .notebook-math{font-size:23px}.types-grid{grid-template-columns:1fr}.type-card{display:block}.rules-table{min-width:0}.rules-table thead{display:none}.rules-table,.rules-table tbody,.rules-table tr,.rules-table td{display:block;width:100%}.rules-table tr{padding:13px 15px;border-bottom:1px solid var(--line)}.rules-table tr:last-child{border-bottom:0}.rules-table td{border:0;padding:6px 0}.rules-table td:nth-child(3)::before{content:'Przykład: ';display:block;font:12px/1.6 "Segoe UI",sans-serif;color:var(--muted);margin-bottom:4px}.rules-table .math{font-size:18px}.theory-actions{flex-wrap:wrap}.nav-hint{display:none}.question.long-answers .answers{grid-template-columns:1fr}.answer-value{overflow-wrap:anywhere}.primary{white-space:normal}.theory-actions .primary,.source-link,.back-theory{font-size:14px}.advice-examples{gap:12px}.extra-theory p,.feedback p{overflow-wrap:anywhere}.feedback .math{font-size:17px}.top-note{font-size:12px}.lesson-meta{max-width:none}.type-card p{font-size:14px}.welcome .eyebrow{font-size:12px}.table-heading{line-height:1.4}}
@media(max-width:450px){h1{font-size:42px;letter-spacing:-2px}.welcome .notebook{display:none}.question{padding:18px 14px}.answers{grid-template-columns:1fr}.type-card .math-line{font-size:19px}.type-card .math-line .math{font-size:1em}.lesson-meta{font-size:12px}.breadcrumb{font-size:12px;flex-wrap:wrap}.top-note{display:none}.section-head{flex-wrap:wrap}.result-score{font-size:51px}.rule-table .math{font-size:17px}}
.home-welcome{display:grid;grid-template-columns:1.15fr .95fr;align-items:center;gap:32px;padding:25px 0 40px}.home-copy h1{font-size:42px;line-height:1.13;letter-spacing:-1.8px;margin:0 0 25px}.home-copy h1>span{color:var(--green)}.home-copy .eyebrow{font-size:12px;letter-spacing:1.3px}.commandments{margin:0 0 24px}.commandments h2{font-size:13px;letter-spacing:1.2px;line-height:1.5;margin-bottom:14px}.commandments ol{list-style:none;margin:0;padding:0}.commandments li{display:flex;gap:12px;align-items:baseline;padding:9px 0;font-size:16px;line-height:1.55}.commandments li span{color:#84916d;font-size:12px;flex-shrink:0;font-weight:700}.einstein{margin:0;min-width:0}.einstein img{display:block;width:100%;height:auto;border-radius:22px}.einstein figcaption{text-align:center;color:var(--muted);font-size:12px;margin-top:12px}.home-topics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:23px}.home-topic-card{display:flex;flex-direction:column;position:relative;text-decoration:none;background:#fff;border:1px solid var(--line);border-radius:15px;padding:23px;color:var(--ink);transition:border-color .15s,transform .15s}.home-topic-card:hover{border-color:var(--green);transform:translateY(-2px)}.home-topic-number{font-size:12px;color:#7b8e6d;letter-spacing:1px;margin-bottom:12px}.home-topic-card h3{font-size:23px;letter-spacing:-.5px;margin-bottom:9px}.home-topic-card p{font-size:14px;color:var(--muted);margin-bottom:22px}.home-topic-meta{font-size:12px;color:var(--green);margin-top:auto;display:flex;justify-content:space-between}.home-topic-meta>span{font-size:20px;line-height:1}.set-picker{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:18px}.set-picker label{font-size:14px;font-weight:600}.set-picker select{font:inherit;font-size:14px;max-width:100%;border:1px solid #bacbb7;border-radius:8px;background:#fff;color:var(--ink);padding:10px 34px 10px 12px;min-height:44px}.set-picker select:focus-visible{outline:3px solid #c28818;outline-offset:3px}#single-set{font-size:13px;border:1px solid var(--line);border-radius:20px;padding:5px 12px;color:var(--green);background:#edf2e8}.notebook[data-topic="potegi"] .notebook-math{font-size:48px}.notebook[data-topic="potegi"] .notebook-caption{font-size:12px}.notebook[data-topic="potegi"] .notebook-math sup{font-size:28px}
@media(max-width:1150px){.home-welcome{grid-template-columns:1fr .8fr;gap:20px}.home-copy h1{font-size:35px}.commandments li{font-size:15px}.notebook[data-topic="potegi"] .notebook-math{font-size:36px}.notebook[data-topic="potegi"] .notebook-math sup{font-size:22px}.notebook[data-topic="potegi"] .notebook-math>span{font-size:25px}.notebook[data-topic="potegi"] .notebook-caption{font-size:11px}}
@media(max-width:950px){.home-welcome{grid-template-columns:1fr}.home-copy h1{max-width:570px}.einstein{max-width:270px;justify-self:center}.home-topic-card{padding:18px}.home-topic-card h3{font-size:21px}.home-topics-grid{gap:12px}}
@media(max-width:760px){.home-welcome{padding-top:0;gap:25px}.home-copy h1{font-size:35px}.home-copy .primary{width:100%}.einstein{max-width:235px}.home-topic-card p{font-size:14px}.home-topics-grid{grid-template-columns:1fr}.commandments li{font-size:16px}}
@media(prefers-reduced-motion:reduce){.home-topic-card{transition:none}}
/* Działy 2 i 3: kroki rozwiązań i laboratoria wykresów. */
.chapter-link{text-decoration:none;margin:5px 0}.chapter-link:hover{background:var(--mint)}
.function-basics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:25px 0}.function-basics article{padding:20px;background:#f1f5ef;border:1px solid var(--line);border-radius:12px}.function-basics h3{margin-bottom:12px}.function-basics p{font-size:15px}.function-basics .step-formula{font-size:20px;margin:14px 0}
.type-switch{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.type-switch button,.walk-controls button{font:inherit;font-size:14px;padding:10px 15px;border:1px solid #bacbbb;background:white;color:var(--green);min-height:44px}.type-switch button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.type-switch button:hover{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}
.walk-hint{font-size:18px;margin:20px 0;color:var(--green);font-weight:600}.walk-step{display:flex;gap:15px;background:#f5f7f2;border:1px solid var(--line);border-radius:12px;padding:20px;margin:12px 0;animation:step-enter .2s ease-out}.walk-step>div{min-width:0}.walk-step h3{font-size:17px}.walk-step p:not(.step-formula){font-size:15px;color:var(--muted)}.step-formula{font-family:Cambria,"Segoe UI",serif;font-size:23px;line-height:1.65;margin:12px 0;overflow-wrap:anywhere}.walk-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:20px 0}.walk-controls span{font-size:13px;color:var(--muted)}.walk-controls button:disabled{opacity:.45}
.graph-lab{margin:32px 0;padding:24px;border:1px solid var(--line);border-radius:16px;background:#fbfcf9}.graph-lab h3{font-size:23px;margin-bottom:14px}.graph-lab>p{font-size:15px}.coordinate-graph{display:block;width:100%;max-width:660px;height:auto;margin:18px auto;font-family:"Segoe UI",sans-serif;font-size:12px;overflow:visible}.question-visual{margin:10px 0 25px;max-width:660px}.question-visual figcaption,.graph-caption{font-size:13px;color:var(--muted);line-height:1.6}.question-visual .coordinate-graph{margin:10px auto}.lab-note{background:#eaf1e7;border-left:4px solid var(--green);padding:16px 18px;border-radius:0 10px 10px 0;margin:18px 0;line-height:1.7;font-size:16px}.lab-note .step-formula{margin:0 0 8px}.shift-controls{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:25px}.shift-controls label{display:block;font-size:15px;font-weight:600}.shift-controls input{display:block;width:100%;min-height:44px;accent-color:var(--green)}.shift-controls output{font-variant-numeric:tabular-nums;color:var(--green)}.values-table{border-collapse:collapse;margin:20px auto;max-width:100%;font-size:18px}.values-table td,.values-table th{border:1px solid #bacbbb;padding:9px 15px;text-align:center}.values-table th{background:var(--mint)}.values-table caption{font:14px/1.5 "Segoe UI",sans-serif;color:var(--muted);margin-bottom:10px}.test-source{margin:8px 0 20px}.formula-text{font-family:Cambria,serif;font-size:1.15em}.welcome>div:first-child{min-width:0}.welcome h1{overflow-wrap:anywhere;font-size:clamp(32px,4vw,58px)}
@keyframes step-enter{from{opacity:.3;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1100px){.function-basics{grid-template-columns:1fr}.welcome .notebook[data-topic=rownania],.welcome .notebook[data-topic=funkcje]{display:none}}
@media(max-width:760px){.graph-lab{padding:14px}.shift-controls{grid-template-columns:1fr;gap:10px}.walk-step{padding:14px;gap:10px}.walk-controls{justify-content:flex-start}.walk-controls span{order:-1;width:100%}.step-formula{font-size:20px}.values-table td,.values-table th{padding:8px}.type-switch button{flex:1 1 130px}.graph-lab h3{font-size:21px}.coordinate-graph{min-width:0}.question-visual{margin-left:0;margin-right:0}}
@media(prefers-reduced-motion:reduce){.walk-step{animation:none}}
.equation-line{display:block;margin:16px 0}.step-formula .math{font-size:1.05em}.answer-value .math,.question-prompt .math{vertical-align:middle}.step-formula{overflow-x:auto;padding-bottom:4px}.extra-theory .math{vertical-align:middle}.walk-step .equation-line{line-height:2.2}

/* V6: czytelny skład wzorów i nowe pracownie. */
.math{font-family:"Cambria Math",Cambria,serif;math-style:normal;vertical-align:-.15em}
.math mfrac{padding:0 .12em}.math mo{font-family:"Cambria Math",Cambria,serif}
.formula-block{font-family:"Cambria Math",Cambria,serif;font-size:23px;line-height:1.8;margin:18px 0;overflow-x:auto;padding:4px 0}.formula-block .math{font-size:1em}
.v6-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:24px 0}.v6-card{background:#f1f5ef;border:1px solid var(--line);border-radius:12px;padding:22px;margin:16px 0}.v6-cards .v6-card{margin:0}.v6-card h3{margin-bottom:12px}.v6-card p+p{margin-top:14px}
.graph-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.graph-options figure{margin:0}.graph-options figcaption{font-weight:700;font-size:16px}.statement-list{font-size:17px;line-height:1.65;padding-left:24px;margin:12px 0}.statement-list li+li{margin-top:8px}
.sequence-values{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.sequence-values>div{flex:1;min-width:65px;background:#eaf1e7;border-radius:12px;padding:12px;text-align:center}.sequence-values small,.sequence-values strong{display:block}.sequence-values strong{font-size:25px;color:var(--green)}
.shift-controls select{display:block;padding:8px;width:100%;border:1px solid var(--line);border-radius:6px;background:white;min-height:44px;font:inherit}
@media(max-width:600px){.formula-block{font-size:20px}.v6-card{padding:16px}.graph-options{grid-template-columns:1fr}.statement-list{font-size:16px}}
