/* kod. pyk — mobile first, bez zewnętrznych bibliotek */
:root {
  --ink: #151b30;
  --ink-muted: #667187;
  --line: #e5e9f0;
  --surface: #ffffff;
  --canvas: #f8fafc;
  --brand: #4d60ed;
  --brand-hover: #3549cf;
  --brand-pale: #eff1ff;
  --deep: #111a37;
  --shadow: 0 1rem 3.5rem rgba(22,35,67,.065);
  --radius: 1.25rem;
}
*, *::before, *::after {box-sizing: border-box;}
html {scroll-behavior: smooth;}
body {margin: 0; background: var(--surface); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; font-size: 1rem; -webkit-font-smoothing: antialiased;}
button, input {font: inherit;}
button {cursor: pointer;}
a {color: inherit; text-decoration: none;}
a:focus-visible, button:focus-visible, input:focus-visible {outline: .2rem solid #f6ae39; outline-offset: .22rem;}
button:disabled {opacity: .5; cursor: not-allowed;}
.inner {width: min(100% - 2rem, 78rem); margin-inline: auto;}
.narrow {width: min(100% - 2rem, 50rem); margin-inline: auto;}
.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;}
[hidden] {display: none !important;}

/* Header */
.site-header {position: relative; z-index: 25; background: #fff; border-bottom: .0625rem solid var(--line);}
.header-inner {height: 4.7rem; width: min(100% - 2rem, 82rem); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem;}
.brand {display: inline-flex; align-items: center; gap: .7rem; font-weight: 850; letter-spacing: -.065em; line-height: 1; flex-shrink: 0;}
.brand-mark {width: 2.6rem; height: 2.6rem; border-radius: .77rem; display: grid; place-items: center; background: #141d44; color: white; font-weight: 750; font-size: .87rem; letter-spacing: -.11em;}
.brand-mark span {transform: translateX(-.05rem);}
.brand-text {display: flex; align-items: baseline; font-size: 1.35rem;}
.brand-dot {color: #6675ff;}
.brand-text small {font-size: .98rem; font-weight: 850; letter-spacing: -.04em; margin-left: .32rem; color: #5366e9;}
.header-nav {display: flex; align-items: center; gap: .9rem;}
.header-link {display: none; font-size: .87rem; font-weight: 700; color: #5e677e; transition: color 150ms;}
.header-link:hover, .header-link.current {color: var(--brand);}
.language-label {border: .0625rem solid var(--line); border-radius: .5rem; padding: .38rem .6rem; font-weight: 800; color: #59647d; font-size: .75rem;}
.mobile-menu-button {display: inline-flex; gap: .45rem; align-items: center; padding: .48rem .68rem; border: .0625rem solid var(--line); border-radius: .5rem; color: var(--ink); background: white; font-size: .77rem; font-weight: 750;}

/* Buttons and general labels */
.eyebrow {display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; letter-spacing: .12em; font-weight: 850; text-transform: uppercase; color: #5365d7;}
.tiny-star {font-size: 1rem; line-height: 1;}
.button {display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; border: .0625rem solid transparent; border-radius: .7rem; padding: .88rem 1.18rem; font-size: .91rem; font-weight: 800; line-height: 1.2; transition: background 140ms, transform 140ms, border-color 140ms;}
.button:hover {transform: translateY(-.08rem);}
.button-primary {background: var(--brand); color: #fff; box-shadow: 0 .55rem 1.4rem rgba(74,91,233,.17);}
.button-primary:hover {background: var(--brand-hover);}

/* Home hero */
.hero-wrap {background: #f8f9ff; overflow: hidden; border-bottom: .0625rem solid #e8ebf6;}
.hero {display: grid; align-items: center; gap: 3rem; padding-block: 3.6rem 4.2rem;}
.hero-copy {position: relative; z-index: 2;}
.hero h1 {font-weight: 860; font-size: clamp(2.65rem, 7vw, 4.95rem); line-height: 1.09; letter-spacing: -.068em; margin: 1.2rem 0 1.35rem; max-width: 14ch;}
.hero h1 span {color: #5366e9;}
.hero-description {max-width: 35rem; color: #65718b; font-size: 1.03rem; line-height: 1.73; margin: 0 0 1.6rem;}
.hero-cta {padding: 1.03rem 1.25rem;}
.hero-facts {display: flex; flex-wrap: wrap; align-items: center; gap: 1.3rem; margin-top: 2.7rem;}
.hero-facts div {display: flex; align-items: baseline; flex-direction: column; gap: .13rem;}
.hero-facts strong {font-size: 1.45rem; font-weight: 840; letter-spacing: -.04em;}
.hero-facts span:not(.fact-divider) {font-size: .78rem; color: #69758c;}
.fact-divider {height: 2rem; width: .0625rem; background: #dbe0ee;}
.hero-visual {position: relative; min-width: 0; isolation: isolate;}
.hero-visual::before {content: ''; position: absolute; inset: -8% -13%; z-index: -1; background: radial-gradient(ellipse at 55% 55%, #dde4ff 0, rgba(221,228,255,.32) 48%, transparent 68%);}
.editor-window {width: 100%; border-radius: 1.1rem; overflow: hidden; background: #171e39; box-shadow: 0 1.7rem 3.6rem rgba(30,38,88,.23); transform: rotate(-1.5deg); border: .06rem solid rgba(255,255,255,.16);}
.editor-top {height: 3.25rem; display: flex; align-items: center; justify-content: space-between; padding-inline: 1rem; background: #202942; color: #a5b0ca; font-size: .71rem; font-weight: 550; letter-spacing: .015em;}
.window-dots {display: flex; gap: .36rem;}
.window-dots i {width: .52rem; height: .52rem; border-radius: 50%; background: #fa6c72;}
.window-dots i:nth-child(2) {background: #eeb95e;}
.window-dots i:nth-child(3) {background: #5ccf9a;}
.editor-gear {font-size: 1.2rem; color: #8490b1;}
.editor-body {display: flex; flex-direction: column; gap: .84rem; padding: 1.6rem 1rem 1.8rem .7rem; color: #e6eafd; white-space: nowrap; overflow: hidden; font: 500 clamp(.7rem, 2.8vw, .95rem)/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;}
.code-line {display: block;}
.code-line i {display: inline-block; width: 2rem; color: #68738f; font-style: normal; text-align: center; margin-right: .8rem;}
.code-line b {color: #cc9aff; font-weight: 600;}
.code-line em {color: #cc9aff; font-style: normal;}
.code-line mark {background: none; color: #a5e5a5;}
.code-line strong {color: #77d7f9; font-weight: 600;}
.editor-output {border-top: .06rem solid #374361; background: #11182d; padding: .8rem 1.25rem 1.35rem;}
.output-label {font-size: .63rem; letter-spacing: .13em; font-weight: 700; color: #8f9bb9;}
.editor-output p {margin: .6rem 0 0; color: #dbe6f4; font: 500 .78rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;}
.chevron-symbol {color: #7df1b5; font-size: 1.3em; margin-right: .4rem;}
.cursor {color: #a7b7ff;}
.floating-chip {position: absolute; z-index: 2; background: white; box-shadow: 0 .7rem 2rem rgba(35,49,102,.12); border: .06rem solid #eceefe; border-radius: .78rem; padding: .75rem 1rem; font-size: .74rem; font-weight: 800; white-space: nowrap;}
.chip-one {bottom: -1.5rem; left: -.3rem; color: #24664d;}
.chip-two {top: -1rem; right: -.1rem; color: #4058d4;}
.chip-two span {font-size: 1rem; margin-right: .25rem;}

/* Catalog */
.catalog-section {padding-block: 4.1rem 5.25rem; scroll-margin-top: 1.5rem;}
.section-heading {display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 1.5rem;}
.section-heading h2 {font-weight: 850; font-size: clamp(1.95rem, 3.6vw, 2.6rem); line-height: 1.2; letter-spacing: -.053em; margin: .5rem 0 .55rem;}
.section-heading p {color: #788398; margin: 0; font-size: .97rem;}
.search-field {width: 100%; display: flex; align-items: center; gap: .65rem; background: white; border: .0625rem solid var(--line); border-radius: .75rem; padding: 0 1rem; color: #8b95a9; transition: border-color .15s;}
.search-field:focus-within {border-color: #8190e8;}
.search-field input {width: 100%; height: 3rem; min-width: 0; border: 0; outline: none; color: var(--ink); background: transparent; font-size: .87rem;}
.search-field input::placeholder {color: #9aa4b6;}
.filter-group {display: flex; align-items: center; gap: .5rem; padding: 0 0 1.75rem; overflow-x: auto; scrollbar-width: none;}
.filter-group::-webkit-scrollbar {display: none;}
.filter-button {white-space: nowrap; background: white; color: #667187; border: .0625rem solid #e4e8f0; border-radius: 2rem; padding: .58rem .92rem; font-size: .79rem; font-weight: 750;}
.filter-button:hover {border-color: #c5cdf5;}
.filter-button.active {color: white; background: #232b55; border-color: #232b55;}
.filter-button span {opacity: .68; margin-left: .22rem;}
.course-grid {display: grid; grid-template-columns: 1fr; gap: 1rem;}
.course-card {position: relative; display: flex; flex-direction: column; background: white; border: .0625rem solid #e8eaf0; border-radius: 1rem; padding: 1.55rem 1.5rem 1.45rem; min-height: 17.1rem; overflow: hidden; transition: transform .16s, box-shadow .16s, border-color .16s;}
.course-card:hover {transform: translateY(-.2rem); border-color: #d1d8ff; box-shadow: 0 .9rem 2.7rem rgba(34,49,107,.095);}
.card-topline {display: flex; justify-content: space-between; align-items: start; margin-bottom: 1.2rem;}
.course-logo {width: 3.25rem; height: 3.25rem; display: inline-grid; place-items: center; border-radius: .82rem; font-weight: 850; font-size: 1.1rem; line-height: 1; letter-spacing: -.04em; flex-shrink: 0;}
.logo-gold {background: #e7f0fd; color: #3065ac;}
.logo-yellow {background: #fff3b9; color: #785e00;}
.logo-blue {background: #e6efff; color: #2865d4;}
.logo-violet {background: #f2e7ff; color: #7144b8;}
.logo-orange {background: #ffede2; color: #c35b23;}
.logo-indigo {background: #eceaff; color: #6756d2;}
.logo-cyan {background: #dff6f9; color: #258090;}
.logo-slate {background: #e8edf3; color: #38485d;}
.logo-green {background: #e5f6e9; color: #258347;}
.logo-coral {background: #ffe7e3; color: #d65745;}
.logo-pink {background: #ffe5ef; color: #b63e75;}
.card-arrow {color: #9ca6bd; font-size: 1.3rem; transition: transform .16s, color .16s;}
.course-card:hover .card-arrow {transform: translate(.15rem,-.15rem); color: var(--brand);}
.card-tag {text-transform: uppercase; color: #9aa2b0; font-size: .64rem; letter-spacing: .09em; font-weight: 850;}
.course-card h3 {font-size: 1.4rem; letter-spacing: -.045em; margin: .22rem 0 .38rem; line-height: 1.2; font-weight: 850;}
.course-card p {font-size: .86rem; line-height: 1.65; color: #7a8497; margin: 0 0 1.25rem; flex-grow: 1; max-width: 35ch;}
.card-bottom {display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .74rem; color: #7c879b; font-weight: 650; border-top: .0625rem solid #eff1f4; padding-top: 1.15rem; margin-top: auto;}
.card-level {color: #5364d9; font-size: .75rem; font-weight: 800;}
.card-level span {margin-left: .2rem;}
.card-progress {position: absolute; left: 0; right: 0; bottom: 0; height: .19rem; background: transparent;}
.card-progress > span {display: block; width: 0; height: 100%; background: #6574ee; transition: width .2s;}
.empty-state {padding: 2rem; text-align: center; border: .0625rem dashed #cbd2e0; border-radius: .8rem; color: #6a7385;}

/* How it works */
.how-it-works {display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0 5rem; border-top: .0625rem solid #edf0f4;}
.how-label h2 {font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -.05em; margin: .8rem 0 0;}
.how-steps {display: grid; grid-template-columns: 1fr; gap: 1.45rem;}
.how-step {border-left: .17rem solid #e7ebfa; padding-left: 1.1rem;}
.how-step > span {font-size: .76rem; font-weight: 850; color: #6a7aed;}
.how-step h3 {margin: .55rem 0 .35rem; font-size: .98rem; letter-spacing: -.015em;}
.how-step p {font-size: .85rem; line-height: 1.62; color: #828b9b; margin: 0;}

/* Course / lessons layout */
.learning-layout {min-height: calc(100vh - 9rem);}
.course-sidebar {position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: min(22rem, 88vw); background: #fff; border-right: .0625rem solid #e7ebf2; overflow: auto; overscroll-behavior: contain; transform: translateX(-105%); transition: transform .2s ease; box-shadow: .6rem 0 2rem rgba(0,0,0,.08);}
body.sidebar-open {overflow: hidden;}
body.sidebar-open .course-sidebar {transform: translateX(0);}
.sidebar-backdrop {position: fixed; z-index: 39; inset: 0; background: rgba(12,22,43,.36);}
.sidebar-inner {padding: 1.55rem 1rem 3rem;}
.sidebar-all {display: inline-flex; gap: .45rem; font-size: .8rem; font-weight: 750; color: #8b95a7; margin: .45rem .55rem 1.9rem;}
.sidebar-all:hover {color: var(--brand);}
.sidebar-course-heading {display: flex; align-items: center; gap: .8rem; padding: 0 .35rem 1.45rem; border-bottom: .0625rem solid #e9ecf3;}
.sidebar-course-heading .course-logo {width: 2.8rem; height: 2.8rem; font-size: .92rem; border-radius: .7rem;}
.sidebar-course-heading div {display: flex; flex-direction: column; min-width: 0; gap: .11rem;}
.sidebar-course-heading small {font-size: .61rem; letter-spacing: .09em; font-weight: 850; color: #9aa3b4;}
.sidebar-course-heading strong {font-size: 1.1rem; letter-spacing: -.04em;}
.sidebar-close {margin-left: auto; border: 0; background: #f1f4f8; border-radius: .5rem; width: 2rem; height: 2rem; font-size: 1.35rem; line-height: 1; color: #69768c;}
.sidebar-progress {padding: 1.4rem .35rem 1.4rem; border-bottom: .0625rem solid #e9ecf3;}
.sidebar-progress > div:first-child {display: flex; align-items: center; justify-content: space-between; font-size: .82rem; margin-bottom: .7rem;}
.sidebar-progress strong {font-weight: 780;}
.sidebar-progress > div > span {color: #5264e0; font-weight: 850;}
.sidebar-progress small {color: #8d97a7; font-size: .72rem; margin-top: .55rem; display: block;}
.progress-track {height: .42rem; overflow: hidden; border-radius: 1rem; background: #edf0f7;}
.progress-track > span {display: block; height: 100%; width: 0; background: #6174ed; border-radius: inherit; transition: width .2s;}
.lesson-nav {padding-top: .8rem;}
.nav-module {margin-top: 1.35rem;}
.nav-module-label {text-transform: uppercase; font-size: .67rem; font-weight: 850; letter-spacing: .11em; color: #9ca5b5; padding: .2rem .65rem .6rem;}
.lesson-nav-link {display: flex; align-items: center; gap: .75rem; border-radius: .55rem; padding: .65rem .7rem; color: #68758a; font-size: .82rem; min-height: 2.65rem; transition: background .15s, color .15s;}
.lesson-nav-link:hover {background: #f5f6fb; color: #2c3855;}
.lesson-nav-link.is-current {background: #eff1ff; color: #465bd7; font-weight: 800;}
.nav-lesson-number {font-size: .71rem; color: #aab1c1; font-weight: 780; width: 1.35rem; text-align: center; flex-shrink: 0;}
.is-current .nav-lesson-number {color: #5368df;}
.nav-lesson-title {flex: 1; min-width: 0;}
.nav-done {display: none; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #e0f4eb; color: #219765; align-items: center; justify-content: center; font-size: .62rem; font-weight: 900; flex-shrink: 0;}
.is-done .nav-done {display: inline-flex;}
.is-done .nav-lesson-number {display: none;}
.learning-main {min-width: 0;}
.learning-content {width: min(100% - 2rem, 56rem); padding: 1.5rem 0 5rem; margin-inline: auto;}
.breadcrumbs {display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; color: #8993a4; font-size: .76rem; margin: .2rem 0 3rem;}
.breadcrumbs a:hover {color: var(--brand);}
.breadcrumbs > span:last-child {color: #505d72; font-weight: 650;}

/* Course overview */
.course-intro {padding: .2rem 0 3.8rem; border-bottom: .0625rem solid var(--line);}
.logo-large {width: 4.75rem; height: 4.75rem; font-size: 1.65rem; border-radius: 1.2rem; margin-bottom: 1.45rem;}
.course-intro h1 {font-size: clamp(2.65rem, 5.5vw, 4.1rem); line-height: 1.13; letter-spacing: -.066em; margin: .75rem 0 1rem;}
.course-intro h1 span {color: #6977e7; display: block;}
.course-intro p {max-width: 40rem; color: #6e798c; font-size: 1.02rem; line-height: 1.78; margin: 0 0 1.65rem;}
.course-intro-info {display: flex; flex-wrap: wrap; gap: .9rem 1.5rem; font-size: .78rem; color: #7b8598; font-weight: 700; margin-bottom: 1.75rem;}
.overview-list {padding-top: 3.5rem;}
.overview-list-title h2 {font-size: 2rem; letter-spacing: -.05em; margin: .3rem 0 2rem;}
.overview-group {margin-bottom: 2.5rem;}
.overview-group h3 {font-size: .75rem; font-weight: 850; letter-spacing: .105em; text-transform: uppercase; color: #8390a2; margin: 0 0 .8rem;}
.overview-item {display: flex; align-items: center; gap: .9rem; border-bottom: .0625rem solid #edf0f3; padding: 1rem .6rem; color: #37435c; font-size: .92rem; font-weight: 650; transition: color .15s, background .15s;}
.overview-item:hover {color: #5366e3; background: #f8f9ff;}
.overview-number {color: #a4afbf; width: 1.8rem; font-size: .76rem; font-weight: 750;}
.overview-item-right {display: flex; gap: .7rem; margin-left: auto; align-items: center; color: #a8b2c2;}
.overview-item.is-done .overview-number {color: #219765;}

/* Lesson */
.lesson-view {min-width: 0;}
.lesson-header {padding: .1rem 0 1.55rem; border-bottom: .0625rem solid #e7ebf2;}
.lesson-kicker {display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; color: #8c97aa; font-size: .72rem; font-weight: 830; letter-spacing: .07em;}
.lesson-kicker .eyebrow {color: #5b6de9;}
.kicker-divider {color: #c4cbd8;}
.lesson-header h1 {font-size: clamp(2.4rem, 6vw, 3.65rem); line-height: 1.17; letter-spacing: -.063em; margin: 1rem 0 .75rem; font-weight: 870;}
.lesson-subtitle {color: #8a94a6; font-size: .88rem; line-height: 1.65; margin: 0;}
.lesson-prose {padding-top: 1.6rem; color: #526074;}
.lesson-prose p {font-size: .97rem; line-height: 1.82; margin: 0 0 1.2rem;}
.lesson-prose p.lead {font-size: 1.16rem; line-height: 1.75; color: #37435a; margin-bottom: 2.45rem; font-weight: 480;}
.lesson-prose h2 {color: #202b43; font-size: 1.44rem; font-weight: 840; line-height: 1.3; letter-spacing: -.035em; margin: 2.4rem 0 1rem;}
.lesson-prose p code {font: 500 .86em/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; color: #4b56b0; background: #f1f3ff; padding: .12rem .29rem; border-radius: .24rem; overflow-wrap: anywhere;}
.lesson-prose p strong {color: #202b43;}
.lesson-prose pre {position: relative; background: #131b33; color: #dce5fc; border-radius: .9rem; margin: 1.25rem 0 1rem; padding: 3.6rem 1.3rem 1.6rem; overflow-x: auto; max-width: 100%; border: .0625rem solid #283456; tab-size: 4;}
.lesson-prose pre::before {content: 'PRZYKŁAD KODU'; position: absolute; top: 1.15rem; left: 1.3rem; color: #8695bb; font: 800 .62rem/1.4 ui-sans-serif, system-ui, sans-serif; letter-spacing: .1em;}
.lesson-prose pre code {font: 500 .85rem/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; white-space: pre;}
.copy-code {position: absolute; right: .8rem; top: .72rem; background: #293553; border: .06rem solid #425074; color: #dae1f7; padding: .39rem .68rem; border-radius: .36rem; font-size: .68rem; font-weight: 750; line-height: 1.2;}
.copy-code:hover {background: #364365;}
.lesson-prose .example-note {padding: .15rem 0 0 1rem; border-left: .17rem solid #d5dcf8; color: #748298; font-size: .85rem; line-height: 1.8; margin: .9rem 0 2.5rem;}
.practice-box {display: flex; align-items: start; gap: 1rem; border: .06rem solid #dce5ff; background: #f7f9ff; padding: 1.3rem; border-radius: .85rem; margin: 2.2rem 0 2.9rem;}
.practice-symbol {flex-shrink: 0; width: 2rem; height: 2rem; display: grid; place-items: center; background: #e6eafd; border-radius: .56rem; color: #5c6de6;}
.practice-box h3 {margin: 0 0 .35rem; font-size: .95rem; color: #2f3e6f; font-weight: 830;}
.lesson-prose .practice-box p {margin: 0; color: #60708b; font-size: .87rem; line-height: 1.68;}
.lesson-complete-panel {display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; border-top: .06rem solid var(--line); border-bottom: .06rem solid var(--line); padding: 1.8rem 0; margin: 1.5rem 0 2rem;}
.lesson-complete-panel strong {font-size: 1rem; font-weight: 830;}
.lesson-complete-panel p {font-size: .83rem; color: #8994a6; margin: .35rem 0 0; line-height: 1.6;}
.button-complete {background: #edf1ff; color: #495fe1; border-color: #dfe5fd; font-size: .8rem; flex-shrink: 0;}
.button-complete:hover {background: #e4eafd;}
.button-complete.is-complete {background: #e8f8f0; border-color: #d1eddd; color: #258b59;}
.lesson-pagination {display: grid; grid-template-columns: 1fr; gap: .8rem;}
.page-control {display: flex; flex-direction: column; gap: .28rem; border: .0625rem solid #e5e9f0; border-radius: .75rem; padding: 1.2rem; transition: border-color .15s, background .15s;}
.page-control:hover {border-color: #bfc9fb; background: #fafbff;}
.pagination-top {font-size: .72rem; color: #8490a4; font-weight: 700;}
.page-control strong {font-size: .9rem; font-weight: 820; color: #303c55;}
.page-control.next {text-align: left;}

/* Footer */
.site-footer {background: #fff; border-top: .0625rem solid #e9edf3;}
.site-footer .inner {display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem 2rem; padding: 1.7rem 0; font-size: .72rem; color: #9099ab;}
.site-footer .inner > span:first-child {font-weight: 850; font-size: .88rem; color: #343b59; letter-spacing: -.02em;}
.error-view {padding: 7rem 0 10rem;}
.error-view h1 {font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.06em;}
.error-view p:not(.eyebrow) {color: #7d889b; margin-bottom: 2rem;}

@media (min-width: 34em) {
  .hero {padding-block: 4.3rem 4.8rem;}
  .hero-facts {gap: 2rem;}
  .course-grid {grid-template-columns: repeat(2, minmax(0, 1fr));}
  .lesson-pagination {grid-template-columns: repeat(2,minmax(0,1fr));}
  .page-control.next {text-align: right;}
  .lesson-complete-panel {flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem;}
  .learning-content {width: min(100% - 3rem, 56rem);}
  .how-steps {grid-template-columns: repeat(3,minmax(0,1fr));}
}
@media (min-width: 48em) {
  .inner {width: min(100% - 4rem, 78rem);}
  .header-inner {width: min(100% - 4rem, 82rem);}
  .header-link {display: inline;}
  .header-nav {gap: 1.6rem;}
  .hero {grid-template-columns: 1.08fr .92fr; gap: 2rem; padding-block: 5.5rem 6rem;}
  .hero h1 {font-size: clamp(2.8rem, 5.3vw, 4.95rem);}
  .hero-visual {padding: 2.3rem 0;}
  .editor-body {padding-block: 2rem 2.6rem; gap: 1.2rem;}
  .chip-one {left: -1rem; bottom: -.3rem;}
  .chip-two {right: -1rem; top: .7rem;}
  .section-heading {flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 2rem;}
  .search-field {max-width: 17rem;}
  .how-it-works {grid-template-columns: 1fr 2.2fr; gap: 3rem;}
}
@media (min-width: 67em) {
  .course-grid {grid-template-columns: repeat(3,minmax(0,1fr));}
  .mobile-menu-button, .sidebar-close {display: none;}
  .learning-layout {display: grid; grid-template-columns: 18.3rem minmax(0,1fr);}
  .course-sidebar {position: sticky; top: 0; transform: none; width: auto; height: 100vh; box-shadow: none; z-index: 1;}
  .sidebar-inner {padding: 1.5rem .8rem 3rem;}
  .learning-main {min-width: 0;}
  .learning-content {width: min(100% - 4.5rem, 54rem); padding-top: 1.9rem; padding-bottom: 7rem;}
  .lesson-nav-link {font-size: .78rem;}
}
@media (min-width: 82em) {
  .learning-layout {grid-template-columns: 20rem minmax(0,1fr);}
  .sidebar-inner {padding-inline: 1.3rem;}
}
@media (prefers-reduced-motion: reduce) {
  html {scroll-behavior: auto;}
  *, *::before, *::after {transition-duration: .01ms !important; animation-duration: .01ms !important;}
}

/* V2 — dydaktyczne lekcje: wynik, ćwiczenia, podglądy HTML i CSS */
.code-walkthrough{margin:1rem 0 1.3rem;padding:1rem;background:#f8f9fc;border:.0625rem solid #e4e8f0;border-radius:.85rem;}
.code-walkthrough h3{margin:0 0 .7rem;font-size:.91rem;font-weight:830;color:#36415b;}
.code-walkthrough ol{margin:0;padding-left:1.6rem;display:grid;gap:.6rem;}
.code-walkthrough li{padding-left:.2rem;color:#758197;font-size:.86rem;line-height:1.6;}
.code-walkthrough li code{display:block;color:#4a5b7b;overflow-wrap:anywhere;background:#eef1f8;padding:.32rem .52rem;border-radius:.35rem;font:500 .8rem/1.5 ui-monospace,Consolas,monospace;}
.code-walkthrough li span{display:block;margin-top:.2rem;}

.lesson-prose .lesson-goal {padding:1rem 1.2rem;margin:0 0 2rem;background:#f4f6ff;border:0.0625rem solid #e4e9ff;border-radius:0.8rem;}
.lesson-goal strong {color:#3d4b95;font-size:.78rem;letter-spacing:.04em;text-transform:uppercase;}
.lesson-prose .lesson-goal p {margin:.35rem 0 0;font-size:.9rem;line-height:1.65;}
.lesson-prose .code-environment {color:#67738a;font-size:.86rem;}
.result-box {margin:1.1rem 0 2.1rem;border:.0625rem solid #dce7df;border-radius:.85rem;overflow:hidden;background:#f8fcf9;}
.result-heading {display:flex;align-items:center;gap:.6rem;padding:.72rem 1rem;border-bottom:.0625rem solid #e0eae2;color:#347452;font-size:.8rem;flex-wrap:wrap;}
.result-heading strong {font-weight:800;}
.result-heading small {color:#81968a;font-size:.72rem;margin-left:auto;}
.result-indicator {font-size:1.25rem;font-weight:900;line-height:1;}
.lesson-prose pre.result-content {border:0;background:transparent;color:#244a37;padding:.9rem 1.1rem;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:0;font:500 .85rem/1.7 ui-monospace,Consolas,monospace;}
.lesson-prose pre.result-content::before {content:none;}
.understand-box {padding:1.1rem 1.2rem;background:#fffdf5;border:.0625rem solid #f1e6b7;border-radius:.8rem;margin:2rem 0;}
.understand-box strong {display:block;font-size:.9rem;color:#86601b;margin-bottom:.4rem;}
.lesson-prose .understand-box p {margin:0;font-size:.9rem;}
.lesson-prose .run-tip {border-left:.18rem solid #e4b860;padding:.6rem .9rem;background:#fffcf6;font-size:.87rem;}
.live-preview {border:.0625rem solid #d6dce9;border-radius:.85rem;margin:1.2rem 0 2.2rem;overflow:hidden;background:#fff;}
.preview-label {display:flex;align-items:center;flex-wrap:wrap;gap:.45rem;background:#f1f4f9;border-bottom:.0625rem solid #e4e8ef;padding:.7rem 1rem;font-size:.81rem;color:#42516b;}
.preview-label span {color:#5273d9;font-weight:800;}
.preview-label small {font-size:.72rem;color:#8795a9;margin-left:auto;}
.live-preview iframe {width:100%;height:15rem;display:block;border:0;background:#fff;}
.lesson-prose .preview-hint {background:#f2f6fb;border-radius:.7rem;padding:1rem;font-size:.86rem;color:#67738b;}
@media (min-width: 48em){.lesson-prose .lesson-goal{padding:1.2rem 1.5rem}.live-preview iframe{height:17rem}}
