:root { --ink:#22302a; --muted:#607068; --line:#d9e2db; --accent:#176f62; --accent-dark:#0f554a; --soft:#dff4ed; --paper:#fff; --page:#f4f8f6; --success:#167444; --error:#b42318; font-family:Inter,Aptos,"Segoe UI",sans-serif; color:var(--ink); background:var(--page); }
* { box-sizing:border-box; } body { min-width:320px; min-height:100vh; margin:0; font:16px/1.55 system-ui,sans-serif; } button,input { font:inherit; } button { border:0; border-radius:11px; padding:12px 18px; color:#fff; background:var(--accent); cursor:pointer; font-weight:800; } button:hover { background:var(--accent-dark); } button:focus-visible,input:focus-visible { outline:3px solid #70c9b6; outline-offset:3px; }
.quiz-shell { display:grid; min-height:100vh; place-items:center; padding:24px; } .quiz-card { width:min(100%,850px); padding:clamp(22px,5vw,46px); border:1px solid var(--line); border-radius:24px; background:var(--paper); box-shadow:0 18px 50px rgb(26 65 52 / 9%); } .quiz-header { margin-bottom:28px; } .eyebrow,.question-type,.mode-number,.session-label { margin:0 0 5px; color:var(--accent); font-size:.78rem; font-weight:850; letter-spacing:.12em; text-transform:uppercase; } h1,h2,h3,p { margin-top:0; } h1,h2 { line-height:1.15; } h1 { font-size:clamp(2rem,6vw,3.45rem); } h2 { font-size:clamp(1.5rem,4vw,2.2rem); } .intro,.answer-help,.summary p:not(.eyebrow),.mode-card span:last-child,.session-box { color:var(--muted); } .intro { margin:12px 0 0; }
.home-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; } .mode-card { display:flex; min-height:210px; flex-direction:column; align-items:flex-start; padding:26px; color:var(--ink); text-align:left; background:#eef8f4; border:1px solid #cce6dc; } .mode-card.practice-mode { background:#e5f2f5; border-color:#c7e0e5; } .mode-card strong { margin:16px 0 8px; font-size:1.5rem; } .mode-card:hover { transform:translateY(-2px); } .session-box { grid-column:1 / -1; padding:18px 22px; border-left:4px solid var(--accent); background:#f5f8f6; } .session-box p { margin-bottom:0; } .session-label { color:var(--accent); }
.section-top { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; } .section-top .eyebrow { margin:0; } .back-button,.secondary-button { color:var(--accent); background:var(--soft); } .back-button:hover,.secondary-button:hover { background:#c9ebe0; } .learning-intro { color:var(--muted); } .chapters { display:grid; gap:12px; margin-top:22px; } .chapter { overflow:hidden; border:1px solid var(--line); border-radius:16px; background:#fcfffd; } .chapter summary { display:flex; align-items:center; gap:15px; padding:18px; cursor:pointer; list-style:none; } .chapter summary::-webkit-details-marker { display:none; } .chapter summary::after { margin-left:auto; color:var(--accent); content:'+'; font-size:1.5rem; font-weight:400; } .chapter[open] summary { border-bottom:1px solid var(--line); background:#f1faf6; } .chapter[open] summary::after { content:'−'; } .chapter-number { display:grid; width:34px; height:34px; flex:0 0 34px; place-items:center; border-radius:50%; color:#fff; background:var(--accent); font-weight:850; } .chapter summary strong,.chapter summary small { display:block; } .chapter summary small { margin-top:2px; color:var(--muted); } .chapter-content { padding:20px; color:#405149; } .chapter-content p:last-child { margin-bottom:0; } .example,.equation,.equation-list { margin:16px 0; padding:14px 16px; border-radius:10px; background:#e8f6f0; color:#29483e; } .equation,.equation-list { text-align:center; font-weight:750; } .equation-list { display:grid; gap:8px; } .fact-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; } .fact-grid article { padding:14px; border-radius:11px; background:#f2f7f4; } .fact-grid h3 { margin-bottom:7px; font-size:1rem; } .fact-grid p { margin-bottom:0; } .remember { padding:12px 14px; border-left:4px solid var(--accent); background:#f4fbf8; } .note { margin:20px 0 0; padding:16px; border-radius:12px; background:#fff3d9; color:#6b4a0d; }
.start-screen { padding:24px; border-radius:16px; background:var(--soft); } .start-screen p { margin-bottom:18px; color:var(--muted); } .status-row { display:flex; justify-content:space-between; gap:12px; margin-bottom:14px; color:var(--muted); font-size:.92rem; font-weight:800; } .question-panel { min-height:265px; padding:clamp(22px,4vw,34px); border:1px solid var(--line); border-radius:16px; background:#fbfefc; } .question-type { margin-bottom:12px; } .answer-help { min-height:24px; margin:14px 0 0; font-size:.94rem; } .answer-form { margin-top:22px; } .answer-controls,.choice-buttons { display:flex; gap:10px; } input { width:100%; min-width:0; flex:1; padding:12px 14px; border:1px solid #bfcfc7; border-radius:10px; color:var(--ink); } .choice-button { flex:1; min-height:58px; } .choice-button[data-choice="nie"] { color:#784f09; background:#fae6b9; } .feedback { min-height:54px; margin-top:16px; font-weight:750; } .feedback p { margin:0; } .feedback.correct { color:var(--success); } .feedback.wrong { color:var(--error); } .summary { padding:18px 0 0; text-align:center; } .summary h2 { margin-top:10px; } noscript { display:block; margin-top:20px; color:var(--error); }
@media (max-width:600px) { .quiz-shell { padding:12px; } .quiz-card { border-radius:16px; } .home-grid,.fact-grid { grid-template-columns:1fr; } .question-panel { min-height:310px; } .answer-controls { flex-wrap:wrap; } .answer-controls input { flex-basis:100%; } .answer-controls button { flex:1; } }
