.visual-lesson{margin:28px 0 36px}.visual-hero{display:grid;grid-template-columns:1fr 1.15fr;align-items:center;background:#e8f6fc;border:1px solid #c7e6f5;border-radius:18px;overflow:hidden}.visual-hero-copy{padding:32px}.visual-hero-copy h2{font-size:clamp(25px,3vw,38px);line-height:1.18;letter-spacing:-.7px;margin:20px 0}.visual-hero-copy p{color:#345873;line-height:1.75;font-size:14px}.visual-hero-picture{margin:0;align-self:stretch;position:relative;background:#e1f4ff}.visual-hero-picture img{display:block;width:100%;height:100%;object-fit:cover;min-height:300px}.visual-hero-picture figcaption{position:absolute;bottom:8px;right:12px;font-size:10px;color:#345873;background:#eefaffdf;padding:3px 8px;border-radius:6px}.data-route{list-style:none;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0 26px}.data-route li{border:1px solid var(--line);border-radius:12px;padding:18px;background:white;position:relative;border-top:3px solid #0ba5df}.data-route span{color:var(--accent);font-size:11px;font-weight:700}.data-route strong,.data-route small{display:block}.data-route strong{margin:8px 0 4px}.data-route small{font-size:11px;color:var(--muted)}.data-explorer{border-top:4px solid var(--accent);scroll-margin-top:24px}.data-explorer h2{margin:9px 0}.explorer-steps{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}.explorer-steps button{border:1px solid var(--line);background:var(--paper);border-radius:8px;padding:10px 13px;font-size:12px;cursor:pointer;color:var(--ink)}.explorer-steps button[aria-current]{background:var(--accent);border-color:var(--accent);color:white}.explorer-grid{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.2fr);gap:24px}.explorer-code-panel,.explorer-result{min-width:0}.explorer-code-panel>.row-between{font-size:12px}.explorer-code-panel>.row-between span{color:var(--muted)}.explorer-code{background:#112b45;color:#e8f7ff;border-left:4px solid #0ba5df;border-radius:10px;padding:20px;font:12px/1.8 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;min-height:150px;margin:16px 0}.explorer-code-panel>p{font-size:13px;line-height:1.8}.explorer-controls{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.explorer-controls .button{font-size:12px;padding:10px 15px}.explorer-controls button:disabled{opacity:.45;cursor:default}.explorer-result>[role=status]{font-size:13px;padding:14px;background:var(--accent-soft);border-radius:8px;margin:0 0 15px;min-height:64px}.explorer-table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:10px}.explorer-table-scroll table{font-size:12px}.explorer-table-scroll caption{text-align:left;padding:12px;font-weight:600;color:var(--accent);background:#f4faff}.explorer-table-scroll th,.explorer-table-scroll td{padding:10px 11px}.explorer-table-scroll thead th{font-size:10px;font-weight:600}.explorer-highlight{background:#def3ff}.explorer-highlight .mask-value{font-weight:800;color:#005da6}.missing-value{font-style:italic;color:#985511;background:#fff4df}.explorer-filter{border:1px solid #c7e6f5;background:#f0faff;padding:14px 18px;border-radius:10px}.explorer-filter label{margin-top:0}.explorer-filter input[type=range]{padding:0;border:0;accent-color:var(--accent);height:30px;background:transparent}.explorer-filter p{font-size:12px;margin:7px 0 0;color:#345873}.explorer-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.explorer-summary>div{padding:14px;border:1px solid #c7e6f5;border-radius:10px;background:#f5fbff}.explorer-summary span,.explorer-summary small{display:block;font-size:11px;color:var(--muted)}.explorer-summary strong{display:block;font-size:19px;color:var(--accent);margin:8px 0}.explorer-plot{margin:24px 0;border:1px solid var(--line);border-radius:12px;padding:20px;background:#fcfeff}.explorer-plot svg{display:block;width:100%;max-width:780px;margin:auto;overflow:visible}.explorer-plot svg text{font:13px system-ui,sans-serif;fill:#345873}.plot-grid{stroke:#dce8f2;stroke-width:1}.plot-dot{fill:#057bbc;stroke:white;stroke-width:2}.plot-dot:focus{stroke:#112b45;stroke-width:3;outline:none}.plot-overlap{fill:none;stroke:#057bbc;stroke-width:1.5}.explorer-plot figcaption{font-size:12px;color:var(--muted);margin-top:16px;line-height:1.7}.explorer-full-code{border-top:1px solid var(--line);padding-top:20px;margin-top:22px}.explorer-full-code summary{font-size:13px}.explorer-full-code .small{margin-left:12px}.visual-lesson button:focus-visible,.explorer-table-scroll:focus-visible{outline:3px solid #0ba5df;outline-offset:3px}
.brand-logo{transform-origin:50% 80%;transition:transform .25s ease-out}.brand:hover .brand-logo,.brand:focus-visible .brand-logo{transform:translateY(-3px) rotate(-6deg) scale(1.04)}
@media(max-width:1100px){.visual-hero-copy{padding:24px}.explorer-grid{grid-template-columns:1fr}.data-route{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.visual-hero{grid-template-columns:1fr}.visual-hero-copy{padding:25px 22px}.visual-hero-picture img{height:210px;min-height:0;object-fit:cover;object-position:50% 55%}.data-route{gap:9px}.data-route li{padding:13px}.data-route strong{font-size:13px}.data-route small{font-size:10px}.data-explorer .section-heading{align-items:flex-start;flex-wrap:wrap}.explorer-steps{display:grid;grid-template-columns:1fr 1fr;gap:8px}.explorer-steps button{text-align:left;font-size:11px;padding:10px}.explorer-summary{gap:8px}.explorer-summary>div{padding:12px 10px}.explorer-summary strong{font-size:16px}.explorer-plot{padding:12px 5px}.explorer-plot figcaption{padding:0 7px}.explorer-code{font-size:11px;padding:15px}}
@media(prefers-reduced-motion:reduce){.brand-logo,.brand:hover .brand-logo,.brand:focus-visible .brand-logo{animation:none;transition:none;transform:none}}

.sidebar nav a{position:relative;transition:background-color .22s ease,color .22s ease,transform .22s ease,box-shadow .22s ease}.sidebar nav a>span{display:inline-flex;align-items:center;justify-content:center;min-width:22px;transform-origin:center;transition:transform .25s ease,color .22s ease}.sidebar nav a::before{content:"";position:absolute;left:0;top:22%;bottom:22%;width:3px;border-radius:0 4px 4px 0;background:var(--cyan);opacity:0;transform:scaleY(.35);transition:opacity .22s ease,transform .22s ease}.sidebar nav a[aria-current]{background:#e5f2fc;color:#075496;box-shadow:inset 0 0 0 1px #d5e9f9}.sidebar nav a[aria-current]::before{opacity:1;transform:scaleY(1)}.sidebar nav a:focus-visible{background:#eef8ff;outline:2px solid var(--cyan);outline-offset:2px}
@media(hover:hover) and (pointer:fine){.sidebar nav a:hover{background:#f0f8fd;color:#075496;transform:translateX(4px);box-shadow:0 4px 12px #0754960d}.sidebar nav a:hover>span{transform:scale(1.12) translateY(-1px);color:#009bce}.sidebar nav a[aria-current]:hover{background:#e0effb}.sidebar nav a:active{transform:translateX(2px)}}
@media(max-width:760px){.sidebar nav a::before{left:15%;right:15%;width:auto;top:auto;bottom:0;height:2px;border-radius:3px}.sidebar nav a:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.sidebar nav a,.sidebar nav a>span,.sidebar nav a::before{transition:none!important}.sidebar nav a:hover,.sidebar nav a:hover>span,.sidebar nav a:active{transform:none}}

.quiz-question{border:1px solid #cddfec;border-left:3px solid #0ba5df;border-radius:10px;padding:18px 20px;margin:20px 0;background:#fbfdff;min-width:0}.quiz-question legend{padding:0 8px;font-size:14px;font-weight:650;max-width:100%}.quiz-option{display:flex;align-items:flex-start;gap:12px;margin:10px 0;padding:12px;border:1px solid var(--line);border-radius:8px;background:white;cursor:pointer;line-height:1.65;font-weight:400}.quiz-option:has(input:checked){border-color:#158bc5;background:#eaf7ff}.quiz-option input[type=radio],.quiz-option input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;margin:3px 0 0;padding:0;accent-color:var(--accent)}.order-option{display:grid;grid-template-columns:65px minmax(0,1fr);gap:12px;align-items:center}.prose pre{padding:18px 22px;border-radius:10px;border-left:3px solid #0ba5df;background:#112b45;color:#e9f5ff;white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.8 ui-monospace,monospace}.prose :not(pre)>code{background:#eaf3fb;color:#075496;padding:2px 5px;border-radius:4px;font-size:.9em}.prose h2{margin-top:30px;border-left:4px solid #0ba5df;padding:12px 16px;background:#f0f8fd;border-radius:0 8px 8px 0}.prose h3{margin-top:23px}.prose blockquote{margin:20px 0;padding:12px 20px;border:1px solid #c8e6f6;border-left:4px solid #075496;border-radius:8px;background:#f4faff}.prose table{display:block;max-width:100%;overflow:auto;white-space:normal}.prose th,.prose td{min-width:100px;padding:10px 14px}.prose th{background:#eef6fc}

.topbar .daily-phrase{display:flex;align-items:center;gap:13px;max-width:460px;min-width:0;padding:10px 16px;border:1px solid #d4e9f7;border-radius:12px;background:linear-gradient(110deg,#f0f9ff,#fbfdff);box-shadow:0 2px 7px #07549604}.daily-phrase-icon{display:grid;place-items:center;flex:0 0 31px;height:31px;border:1px solid #cae9fa;border-radius:10px;background:#e0f3fe;color:#087ab4;font-size:19px}.daily-phrase-copy{display:block;min-width:0}.daily-phrase-label{display:block;margin-bottom:2px;font-size:9px;letter-spacing:1.3px;text-transform:uppercase;font-weight:750;color:#2a789e}.daily-phrase-text{display:block;font-size:12px;line-height:1.5;color:#385974;font-weight:450}@media(max-width:1100px){.topbar .daily-phrase{display:none}}

/* Журнал сохраняет единую шкалу и читаемость на узких экранах. */
.results-table {width:100%; border-collapse:separate; border-spacing:0; font-variant-numeric:tabular-nums;}
.results-table th,.results-table td {padding:16px 14px; border-bottom:1px solid #dce8f3; text-align:left;}
.results-table thead th {background:#eaf5fc; color:#07528d; white-space:nowrap;}
.results-table small {display:block; margin-top:5px; font-size:.78rem; color:#65778d; font-weight:400;}
.results-table tbody tr:hover {background:#f5faff;}
.result-total {font-size:2.7rem; font-weight:750; color:#075da0; white-space:nowrap;}
.result-total small {font-size:.9rem; font-weight:400; display:block; text-align:right;}
.attempt-result {text-align:right;min-width:100px;}
.attempt-result strong,.attempt-result small {display:block;}
.attempt-result small {margin-top:4px;font-size:11px;}
@media(max-width:760px){.journal-course-heading{flex-direction:column;align-items:flex-start;gap:13px;}.journal-course-heading>a{font-size:13px;}.attempt-result{min-width:90px;}.attempt-result strong{font-size:12px;}}
