:root {
  color-scheme: light;
  --ink: #111629;
  --muted: #5d6477;
  --line: #dde1ea;
  --soft-line: #ebedf3;
  --paper: #ffffff;
  --surface: #f6f7fb;
  --surface-2: #eef1f8;
  --navy: #0b1020;
  --navy-2: #151c38;
  --accent: #5b55e7;
  --accent-2: #3374e5;
  --cyan: #2bb7d6;
  --coral: #f87378;
  --success: #167d5c;
  --warning: #a05812;
  --shadow: 0 18px 50px rgba(20, 28, 64, .10);
  --radius: 18px;
  --max: 1240px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2f4ff;
  --muted: #aab1c7;
  --line: #2e3654;
  --soft-line: #242b45;
  --paper: #10162a;
  --surface: #0b1020;
  --surface-2: #171e35;
  --navy: #080c18;
  --navy-2: #111830;
  --accent: #8b83ff;
  --accent-2: #65a0ff;
  --cyan: #4dd5ee;
  --coral: #ff9297;
  --success: #56d6a9;
  --warning: #ffc07c;
  --shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    color-scheme: dark;
    --ink: #f2f4ff; --muted: #aab1c7; --line: #2e3654; --soft-line: #242b45;
    --paper: #10162a; --surface: #0b1020; --surface-2: #171e35; --navy: #080c18;
    --navy-2: #111830; --accent: #8b83ff; --accent-2: #65a0ff; --cyan: #4dd5ee;
    --coral: #ff9297; --success: #56d6a9; --warning: #ffc07c;
    --shadow: 0 20px 60px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { max-width: 100%; margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
code, pre, kbd { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 58%, white); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 100; top: 0; height: 68px; border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(18px); }
.header-inner { width: min(var(--max), calc(100% - 32px)); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 780; letter-spacing: -.03em; white-space: nowrap; }
.brand i { color: var(--accent); font-style: normal; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(145deg, var(--accent), var(--accent-2)); color: white; font-family: Consolas, monospace; font-size: 13px; box-shadow: 0 7px 22px color-mix(in srgb, var(--accent) 25%, transparent); }
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: 12px; }
.main-nav a { color: var(--muted); font-size: 14px; font-weight: 650; }
.main-nav a:hover { color: var(--accent); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-trigger, .icon-button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.search-trigger { min-width: 210px; height: 39px; padding: 0 9px 0 12px; border-radius: 10px; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.search-trigger kbd { margin-left: auto; padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--muted); font-size: 10px; }
.icon-button { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 10px; }
.icon-button:hover, .search-trigger:hover { border-color: var(--accent); color: var(--accent); }
.menu-button { display: none; }
.main-nav.open { position: fixed; inset: 68px 0 auto; padding: 20px; border-bottom: 1px solid var(--line); background: var(--paper); display: grid; gap: 4px; box-shadow: var(--shadow); }
.main-nav.open a { padding: 10px 14px; border-radius: 9px; }
.main-nav.open a:hover { background: var(--surface); }

.hero { position: relative; min-height: 690px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(560px, 1.05fr); align-items: center; background: var(--navy); color: white; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 17% 22%, rgba(91,85,231,.22), transparent 34%), linear-gradient(90deg, rgba(11,16,32,.1), rgba(11,16,32,.03)); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; width: min(610px, calc(100vw - 40px)); margin-left: max(20px, calc((100vw - var(--max))/2)); padding: 68px 0 74px; }
.eyebrow, .section-kicker { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { color: #8cdff1; }
.section-kicker.light { color: #9ee9f8; }
.hero h1 { margin: 17px 0 22px; font-size: clamp(56px, 6vw, 84px); line-height: .95; letter-spacing: -.065em; }
.hero h1 span { background: linear-gradient(90deg,#9be6f5,#9c94ff 55%,#ffaaa9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy > p { max-width: 580px; margin: 0; color: #b8c0d9; font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.button { min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-weight: 750; line-height: 1; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 28%, transparent); }
.button.secondary { border-color: var(--line); background: var(--paper); color: var(--ink); }
.hero .button.secondary { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: white; }
.button.white { background: white; color: #15192b; }
.hero-search { width: min(580px, 100%); min-height: 54px; margin-top: 24px; padding: 0 12px 0 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(255,255,255,.07); color: #cbd1e3; display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left; }
.hero-search span { flex: 1; }
.hero-search kbd { padding: 4px 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; color: #9fa8c4; font-size: 11px; }
.hero-search:hover { border-color: #7c77f2; background: rgba(255,255,255,.1); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; color: #8e98b4; font-size: 12px; }
.hero-proof b { color: white; font-size: 14px; }
.hero-visual { position: relative; height: 100%; min-height: 690px; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,var(--navy),transparent 22%), linear-gradient(0deg,var(--navy),transparent 18%); pointer-events: none; }
.hero-visual img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.visual-orbit { position: absolute; z-index: 2; width: 320px; height: 320px; right: 12%; top: 21%; border: 1px solid rgba(114,169,255,.18); border-radius: 50%; box-shadow: 0 0 110px rgba(49,116,229,.18); }
.floating-code { position: absolute; z-index: 4; right: 9%; bottom: 17%; padding: 13px 17px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(10,14,31,.7); backdrop-filter: blur(10px); box-shadow: 0 15px 40px rgba(0,0,0,.25); }
.floating-code span { margin-right: 10px; color: #65d6ef; font: 700 10px/1 system-ui; letter-spacing: .12em; }
.floating-code code { color: #ffaaa9; font-size: 13px; }

.path-section, .content-section { padding-block: 96px; }
.section-heading { margin-bottom: 34px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-heading h2, .learning-copy h2, .feature-band h2, .start-cta h2 { margin: 7px 0 0; max-width: 720px; font-size: clamp(34px, 4vw, 50px); line-height: 1.08; letter-spacing: -.045em; }
.section-heading > p { max-width: 500px; margin: 0; color: var(--muted); }
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.path-card { position: relative; overflow: hidden; min-height: 300px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; gap: 22px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.path-card::after { content: ""; position: absolute; right: -70px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: color-mix(in srgb, var(--tone) 16%, transparent); }
.path-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--tone) 55%, var(--line)); box-shadow: var(--shadow); }
.path-card.html { --tone: var(--coral); } .path-card.css { --tone: var(--accent); } .path-card.practice { --tone: var(--cyan); }
.path-icon { position: relative; z-index: 1; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--tone) 16%, var(--paper)); color: var(--tone); font: 800 20px/1 Consolas, monospace; }
.path-card small { color: var(--tone); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.path-card h3 { margin: 5px 0 10px; font-size: 30px; letter-spacing: -.04em; }
.path-card p { position: relative; z-index: 1; margin: 0 0 24px; color: var(--muted); }
.path-card b, .content-card b, .catalog-card b { color: var(--tone, var(--accent)); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }

.feature-band { padding-block: 100px; background: linear-gradient(135deg,#131a35,#0a1022); color: white; }
.feature-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 100px; align-items: center; }
.feature-grid > *, .learning-split > * { min-width: 0; }
.feature-band p { max-width: 570px; color: #aeb6d0; font-size: 18px; }
.mini-reference pre { max-width: 100%; overflow: auto; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 750; }
.text-link.light { color: #83dff1; }
.mini-reference { padding: 28px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: rgba(255,255,255,.06); box-shadow: 0 35px 80px rgba(0,0,0,.25); transform: rotate(1.5deg); }
.mini-top { display: flex; justify-content: space-between; color: #9ea8c5; font-size: 12px; }
.mini-top i { padding: 4px 8px; border-radius: 999px; background: rgba(74,205,159,.14); color: #78e1bc; font-style: normal; }
.mini-reference h3 { margin: 17px 0 0; font: 800 38px/1 Consolas, monospace; }
.mini-reference pre { overflow: auto; padding: 18px; border-radius: 14px; background: #070b17; color: #dce2f7; line-height: 1.7; }
.mini-reference pre b { color: #72d8ef; } .mini-reference pre em { color: #ff9fa4; font-style: normal; }
.mini-tags { display: flex; gap: 8px; }
.mini-tags span { padding: 5px 9px; border-radius: 7px; background: rgba(255,255,255,.07); color: #aeb6d0; font-size: 11px; }

.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.topic-link { min-height: 86px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; }
.topic-link svg { color: var(--muted); transition: transform .2s; }
.topic-link:hover { background: var(--surface); color: var(--accent); }
.topic-link:hover svg { transform: translateX(4px); }

.learning-split { padding-block: 100px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.learning-copy > p { max-width: 570px; color: var(--muted); font-size: 18px; }
.check-list { padding: 0; margin: 26px 0; list-style: none; }
.check-list li { margin: 10px 0; display: flex; align-items: center; gap: 9px; }
.check-list svg { color: var(--success); }
.lesson-stack { position: relative; display: grid; gap: 14px; }
.lesson-stack::before { content: ""; position: absolute; z-index: -1; inset: -30px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent), transparent 68%); }
.lesson-stack article { padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.lesson-stack article:nth-child(2) { margin-left: 40px; }
.lesson-stack article span { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lesson-stack article h3 { margin: 6px 0 14px; font-size: 23px; }
.lesson-stack article > div { height: 7px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.lesson-stack article i { display: block; width: var(--p); height: 100%; background: linear-gradient(90deg,var(--accent),var(--cyan)); }
.lesson-stack article small { display: block; margin-top: 8px; color: var(--muted); }
.lesson-stack .project-card { margin-left: 80px; background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: white; border: 0; }
.lesson-stack .project-card span, .lesson-stack .project-card p { color: rgba(255,255,255,.78); }
.tools-preview { padding-top: 50px; }
.tool-row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tool-row .topic-link { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.start-cta { width: min(var(--max), calc(100% - 40px)); margin: 30px auto 100px; padding: 55px 60px; border-radius: 26px; background: linear-gradient(120deg,#5148d8,#316fd2 58%,#259cb7); color: white; display: flex; align-items: center; justify-content: space-between; gap: 40px; box-shadow: 0 30px 70px rgba(67,83,201,.25); }
.start-cta p { max-width: 760px; color: rgba(255,255,255,.82); }

.page-main { padding-block: 28px 90px; }
.breadcrumbs { margin: 5px 0 38px; color: var(--muted); font-size: 13px; }
.breadcrumbs ol { padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: color-mix(in srgb, var(--muted) 55%, transparent); }
.breadcrumbs a:hover { color: var(--accent); }
.page-hero { max-width: 860px; padding: 34px 0 55px; }
.page-hero h1, .article-head h1, .playground-head h1 { margin: 10px 0 16px; font-size: clamp(42px,5.3vw,68px); line-height: 1.03; letter-spacing: -.055em; }
.page-hero > p, .article-head > p, .playground-head p { color: var(--muted); font-size: 19px; }
.page-meta, .article-meta { display: flex; gap: 20px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.page-meta span::before, .article-meta span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.catalog-toolbar { margin-bottom: 26px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: flex; align-items: center; gap: 20px; }
.alphabet { margin-left: auto; display: flex; flex-wrap: wrap; gap: 3px; }
.alphabet a { width: 26px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 750; }
.alphabet a:hover { background: var(--paper); color: var(--accent); }
.catalog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.catalog-card { min-height: 230px; padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); display: flex; flex-direction: column; transition: transform .18s, border-color .18s, box-shadow .18s; }
.catalog-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow); }
.catalog-card > span { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.catalog-card h2 { margin: 8px 0; font-size: 22px; line-height: 1.2; }
.catalog-card p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.catalog-card b { margin-top: auto; }
.catalog-note { margin-top: 38px; padding: 24px 28px; border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--surface); }
.catalog-note p { margin-bottom: 0; color: var(--muted); }
.catalog-all { margin-top: 58px; }
.catalog-all > h2 { margin: 8px 0 28px; font-size: clamp(30px,4vw,44px); letter-spacing: -.04em; }
.catalog-letter { scroll-margin-top: 100px; display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.catalog-letter h3 { margin: 2px 0; color: var(--accent); font: 850 24px/1.1 Consolas, monospace; }
.catalog-letter > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px 20px; }
.catalog-letter a { color: var(--muted); font-size: 14px; line-height: 1.35; }
.catalog-letter a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.article-main { padding-block: 28px 90px; }
.doc-layout { display: grid; grid-template-columns: 200px minmax(0,760px) 180px; gap: 42px; align-items: start; }
.doc-nav, .page-toc { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; font-size: 13px; }
.doc-nav strong, .page-toc strong { display: block; margin-bottom: 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.doc-nav a, .page-toc a { display: block; padding: 7px 9px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.35; }
.doc-nav a:hover, .page-toc a:hover { color: var(--accent); }
.doc-nav a[aria-current="page"] { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent); }
.page-toc { border-left: 1px solid var(--line); padding-left: 16px; }
.doc-article { min-width: 0; }
.article-head { padding-bottom: 45px; border-bottom: 1px solid var(--line); }
.article-badges { display: flex; gap: 8px; }
.article-badges span { padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); font-size: 11px; font-weight: 800; }
.article-badges .status { background: color-mix(in srgb, var(--success) 11%, transparent); color: var(--success); }
.article-badges .status.experimental { background: color-mix(in srgb, #d97706 13%, transparent); color: #b45309; }
.article-badges .status.obsolete { background: color-mix(in srgb, var(--coral) 12%, transparent); color: var(--coral); }
.article-badges .obsolete { background: color-mix(in srgb, var(--coral) 12%, transparent); color: var(--coral); }
.doc-article section { padding-block: 38px; border-bottom: 1px solid var(--soft-line); }
.doc-article h2 { margin: 0 0 16px; font-size: 31px; line-height: 1.15; letter-spacing: -.035em; }
.doc-article h3 { margin: 28px 0 10px; font-size: 21px; }
.doc-article p, .doc-article li { color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.doc-article li { margin: 8px 0; }
.note { margin: 24px 0; padding: 20px 22px; border: 1px solid color-mix(in srgb, var(--accent) 23%, var(--line)); border-radius: 13px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.note p { margin: 4px 0 0; }
.alert.warning { margin-top: 24px; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--coral) 38%, var(--line)); border-radius: 13px; background: color-mix(in srgb, var(--coral) 8%, var(--surface)); }
.alert.warning p { margin: 5px 0 0; }
.comparison-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.comparison-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.comparison-grid p { margin-bottom: 0; }
.diagnostic-list, .cause-list { padding-left: 1.3rem; }
.diagnostic-list li, .cause-list li { padding-left: .25rem; margin-block: 12px; }
.code-block { margin: 22px 0 12px; overflow: hidden; border: 1px solid #202944; border-radius: 14px; background: #0a0f1d; color: #dbe2f7; }
.code-head { min-height: 41px; padding: 0 12px 0 16px; border-bottom: 1px solid #202944; background: #11182b; display: flex; align-items: center; justify-content: space-between; color: #8f99b6; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.code-head button { border: 0; background: transparent; color: #aab3ca; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 11px; }
.code-head button:hover { color: white; }
.code-block pre { margin: 0; padding: 23px; overflow: auto; font-size: 14px; line-height: 1.75; tab-size: 2; }
.code-actions { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.snippet-preview { min-height: 120px; margin-top: 14px; padding: 20px; border: 1px dashed var(--line); border-radius: 13px; background: var(--surface); }
.demo-surface { min-height: 230px; padding: 35px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), color-mix(in srgb, var(--cyan) 9%, var(--surface))); display: grid; place-items: center; }
.demo-card { width: min(340px,100%); padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
.demo-card span { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.demo-card strong { display: block; margin-top: 8px; font-size: 20px; }
.display-switcher { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.switch-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.switch-buttons button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); cursor: pointer; font: 12px/1.2 Consolas, monospace; }
.switch-buttons button.active { border-color: var(--accent); background: var(--accent); color: white; }
.display-stage { min-height: 170px; margin-top: 16px; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; background: var(--paper); }
.display-stage > div { margin: 4px; padding: 16px; border-radius: 9px; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); font-weight: 800; }
.display-switcher > p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.mistake-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.mistake-grid article { padding: 18px; border-radius: 12px; background: var(--surface); }
.mistake-grid article > span { color: var(--coral); font-weight: 850; }
.mistake-grid h3 { margin: 8px 0; font-size: 17px; }
.mistake-grid p { margin: 0; font-size: 13px; }
.browser-row { display: grid; grid-template-columns: repeat(6,1fr); gap: 7px; }
.browser-row span { padding: 12px 6px; border: 1px solid var(--line); border-radius: 10px; text-align: center; font-size: 12px; }
.browser-versions { grid-template-columns: repeat(4,1fr); }
.browser-versions span { display: grid; gap: 2px; }
.browser-versions b { color: var(--ink); font-size: 12px; }
.browser-versions small { color: var(--muted); font-size: 10px; }
.source-inline { margin-top: 12px; color: var(--muted); font-size: 13px; }
.source-inline a { color: var(--accent); font-weight: 700; }
.doc-article details { padding: 16px 0; border-top: 1px solid var(--line); }
.doc-article details:last-child { border-bottom: 1px solid var(--line); }
.doc-article summary { cursor: pointer; font-weight: 750; }
.related .card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.content-card { min-height: 210px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; }
.content-card > span { color: var(--accent); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.content-card > strong { margin-top: 8px; line-height: 1.3; }
.content-card p { font-size: 12px; }
.content-card b { margin-top: auto; }
.sources { font-size: 14px; }
.sources a, .about-page a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.about-page { max-width: 860px; margin-inline: auto; }
.about-page > section { padding-block: 36px; border-top: 1px solid var(--line); }
.about-page h2 { margin: 0 0 15px; font-size: 32px; letter-spacing: -.035em; }
.about-page p, .about-page li { color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.lesson-progress { margin: 28px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.lesson-progress span { color: var(--accent); font-size: 12px; font-weight: 800; }
.lesson-progress div { grid-column: 1/-1; height: 6px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.lesson-progress i { display: block; height: 100%; background: linear-gradient(90deg,var(--accent),var(--cyan)); }
.assignment { padding: 24px; border-radius: 15px; background: var(--surface); }
.assignment span { margin-left: 12px; color: var(--success); font-size: 13px; }

.tool-workspace { display: grid; gap: 13px; }
.tool-workspace label { color: var(--muted); font-size: 13px; font-weight: 700; }
.tool-workspace textarea { width: 100%; min-height: 180px; margin-top: 7px; padding: 16px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 13px/1.6 Consolas, monospace; }
.tool-preview { width: 100%; min-height: 260px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tool-buttons { display: flex; gap: 10px; }
.quiz fieldset { margin: 0 0 20px; padding: 22px; border: 1px solid var(--line); border-radius: 13px; }
.quiz legend { padding-inline: 8px; font-weight: 800; }
.quiz label { margin: 8px 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.quiz label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb,var(--accent) 7%,transparent); }
.quiz output { display: block; margin-top: 14px; font-weight: 800; }

.playground-page { width: min(1500px, calc(100% - 32px)); margin-inline: auto; padding-block: 26px 60px; }
.playground-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.playground-head > div:first-child { max-width: 840px; }
.playground-actions { max-width: 650px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.playground-actions .button { min-height: 40px; padding-inline: 12px; font-size: 12px; }
.playground { height: min(720px, calc(100vh - 185px)); min-height: 520px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow); }
.editor-pane, .preview-pane { min-width: 0; background: #0c1121; }
.editor-pane { border-right: 1px solid #27304c; }
.editor-tabs { height: 45px; padding-inline: 8px; border-bottom: 1px solid #27304c; display: flex; align-items: end; gap: 3px; }
.editor-tabs button { height: 37px; padding: 0 15px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #8791ad; cursor: pointer; }
.editor-tabs button.active { border-bottom-color: #8078ff; color: white; }
.editor { height: calc(100% - 45px); display: none; }
.editor.active { display: block; }
.editor > span { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.editor textarea { width: 100%; height: 100%; padding: 22px; resize: none; border: 0; outline: 0; background: #0c1121; color: #dbe2f7; font: 14px/1.65 Consolas, monospace; tab-size: 2; }
.preview-pane { background: white; display: flex; flex-direction: column; }
.preview-head { min-height: 45px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--muted); display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.preview-head label { display: flex; gap: 6px; align-items: center; }
.preview-pane iframe { width: 100%; flex: 1; border: 0; background: white; }

.search-dialog { width: min(720px, calc(100% - 24px)); max-height: min(680px, calc(100vh - 50px)); padding: 0; border: 0; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.search-dialog::backdrop { background: rgba(8,11,24,.68); backdrop-filter: blur(6px); }
.search-box { overflow: hidden; }
.search-head { height: 62px; padding: 0 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.search-head input { flex: 1; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.search-head button { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 11px; }
.search-results { max-height: 540px; overflow: auto; padding: 10px; }
.search-empty { padding: 20px; color: var(--muted); }
.search-empty button { border: 0; background: transparent; color: var(--accent); cursor: pointer; }
.search-result { padding: 12px 14px; border-radius: 10px; display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; }
.search-result:hover, .search-result.active { background: var(--surface); }
.search-result strong { line-height: 1.35; }
.search-result span { color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.search-result p { grid-column: 1/-1; margin: 2px 0 0; color: var(--muted); font-size: 12px; }

.site-notice-wrap { padding: 18px 20px 72px; background: var(--paper); }
.site-notice { position: relative; width: min(1040px,100%); margin-inline: auto; overflow: hidden; padding: 28px 30px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: linear-gradient(125deg,#111936,#273b78 58%,#356cac); color: white; box-shadow: 0 24px 60px rgba(25,42,96,.22); display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 22px; }
.site-notice::after { content: "</>"; position: absolute; right: 24%; color: rgba(255,255,255,.045); font: 900 116px/1 Consolas,monospace; transform: rotate(-8deg); pointer-events: none; }
.site-notice-mark { position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 17px; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.site-notice-copy { position: relative; z-index: 1; }
.site-notice-copy > span { color: #9ddff2; font-size: 11px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.site-notice-copy h2 { margin: 3px 0 2px; font-size: clamp(23px,3vw,31px); line-height: 1.12; letter-spacing: -.035em; }
.site-notice-copy p { margin: 0; color: rgba(255,255,255,.78); font-size: 14px; }
.site-notice-copy strong { display: block; margin-top: 5px; color: rgba(255,255,255,.94); font-size: 13px; }
.notice-button { position: relative; z-index: 1; border-color: rgba(255,255,255,.22); background: white; color: #151b34; white-space: nowrap; }

.contacts-page { padding: 28px 0 100px; }
.contacts-page > .breadcrumbs { width: min(var(--max),calc(100% - 40px)); margin: 5px auto 28px; }
.contacts-hero { position: relative; width: min(var(--max),calc(100% - 40px)); margin-inline: auto; overflow: hidden; padding: 70px; border-radius: 30px; background: radial-gradient(circle at 85% 12%,rgba(77,213,238,.2),transparent 27%), linear-gradient(135deg,#0b1020,#182653 58%,#234d7f); color: white; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(330px,.72fr); gap: 72px; align-items: center; box-shadow: 0 36px 90px rgba(13,28,71,.3); }
.contacts-hero::before { content: ""; position: absolute; width: 420px; height: 420px; left: -180px; bottom: -260px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025),0 0 0 140px rgba(255,255,255,.018); }
.contacts-hero-copy, .contacts-hero-panel { position: relative; z-index: 1; min-width: 0; }
.contacts-hero h1 { max-width: 760px; margin: 12px 0 20px; font-size: clamp(46px,5.4vw,76px); line-height: .99; letter-spacing: -.058em; }
.contacts-hero-copy > p { max-width: 700px; margin: 0; color: rgba(255,255,255,.76); font-size: 19px; }
.contacts-hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.contact-ghost { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.07); color: white; }
.contact-proof { padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none; }
.contact-proof li { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.76); font-size: 12px; }
.contact-proof svg { color: #70e2bc; }
.contacts-hero-panel { padding: 28px; border: 1px solid rgba(255,255,255,.14); border-radius: 21px; background: rgba(255,255,255,.075); box-shadow: inset 0 1px rgba(255,255,255,.1); backdrop-filter: blur(12px); }
.contacts-hero-panel > span { color: #75d7ed; font-size: 11px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.contacts-hero-panel > strong { display: block; margin: 8px 0 24px; font-size: 21px; line-height: 1.35; }
.contacts-hero-panel > div { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: 34px 1fr; gap: 11px; }
.contacts-hero-panel i { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #79def4; font-style: normal; font-size: 11px; font-weight: 850; }
.contacts-hero-panel p { margin: 0; }
.contacts-hero-panel b, .contacts-hero-panel small { display: block; }
.contacts-hero-panel small { margin-top: 2px; color: rgba(255,255,255,.62); font-size: 12px; }
.contact-section { padding-block: 105px; }
.service-offer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.service-offer-grid article { min-height: 255px; padding: 27px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.service-offer-grid article > span { color: var(--accent); font: 850 12px/1 Consolas,monospace; }
.service-offer-grid h3 { margin: 35px 0 10px; font-size: 23px; letter-spacing: -.025em; }
.service-offer-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.contact-value { padding-block: 90px; background: linear-gradient(125deg,#111936,#1e3068 58%,#255b88); color: white; }
.contact-value h2 { max-width: 900px; margin: 8px 0 36px; font-size: clamp(38px,5vw,60px); line-height: 1.04; letter-spacing: -.05em; }
.contact-value-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.contact-value-grid article { padding: 25px; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; background: rgba(255,255,255,.06); }
.contact-value-grid strong { font-size: 18px; }
.contact-value-grid p { margin-bottom: 0; color: rgba(255,255,255,.67); font-size: 14px; }
.contact-process { padding: 0; margin: 0; border-top: 1px solid var(--line); list-style: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.contact-process li { padding: 28px 24px 5px 0; display: flex; gap: 14px; }
.contact-process li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.contact-process span { flex: 0 0 auto; width: 33px; height: 33px; border-radius: 10px; background: color-mix(in srgb,var(--accent) 11%,var(--surface)); color: var(--accent); display: grid; place-items: center; font-weight: 850; }
.contact-process strong { font-size: 17px; }
.contact-process p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.contacts-direct { padding-top: 20px; }
.contacts-direct-head { padding: 46px; border-radius: 22px 22px 0 0; background: var(--surface); display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.contacts-direct-head > div { max-width: 720px; }
.contacts-direct-head h2 { margin: 6px 0 9px; font-size: clamp(38px,5vw,58px); letter-spacing: -.05em; }
.contacts-direct-head p { margin: 0; color: var(--muted); }
.contact-methods { padding: 14px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 22px 22px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.contact-method { min-width: 0; min-height: 130px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 16px; transition: transform .18s,border-color .18s,box-shadow .18s; }
a.contact-method:hover { transform: translateY(-2px); border-color: color-mix(in srgb,var(--accent) 55%,var(--line)); box-shadow: var(--shadow); }
.contact-method-icon { width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb,var(--accent) 10%,var(--surface)); color: var(--accent); display: grid; place-items: center; font-size: 13px; font-weight: 900; }
.contact-method.max .contact-method-icon { background: #7867ff; color: white; }
.contact-method.tg .contact-method-icon { background: #229ed9; color: white; }
.contact-method.vk .contact-method-icon { background: #1674e7; color: white; }
.contact-method.phone .contact-method-icon { background: color-mix(in srgb,var(--success) 13%,var(--surface)); color: var(--success); font-size: 22px; }
.contact-method small, .contact-method strong, .contact-method p { display: block; }
.contact-method small { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.contact-method strong { margin-top: 2px; overflow-wrap: anywhere; font-size: 18px; }
.contact-method p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.contact-method > svg { color: var(--muted); }
.contact-method.email button { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 750; }
.contact-method.email button:hover { border-color: var(--accent); color: var(--accent); }
.contact-final { margin-top: 18px; padding: 34px 38px; border-radius: 19px; background: linear-gradient(115deg,var(--accent),#316fd2 65%,#279bb7); color: white; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.contact-final span, .contact-final strong { display: block; }
.contact-final span { color: rgba(255,255,255,.72); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.contact-final strong { margin-top: 5px; font-size: 22px; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; padding-block: 60px; display: grid; grid-template-columns: 1.8fr repeat(3,1fr); gap: 40px; }
.footer-inner > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 7px; }
.footer-inner strong { margin-bottom: 8px; font-size: 13px; }
.footer-inner a:not(.brand) { color: var(--muted); font-size: 13px; }
.footer-inner a:hover { color: var(--accent); }
.footer-brand p { max-width: 320px; color: var(--muted); font-size: 13px; }
.footer-inner > .footer-privacy { grid-column: 1/-1; margin-top: 18px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 190px minmax(0,1fr) minmax(0,1fr); gap: 12px 28px; }
.footer-privacy > strong { grid-row: 1/3; }
.footer-privacy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.footer-policy-links { grid-column: 2/-1; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-policy-links button { padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.footer-policy-links button:hover { color: var(--accent); }
.footer-bottom { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; padding: 20px 0 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.cookie-consent { position: fixed; z-index: 500; left: 50%; bottom: 16px; width: min(1040px,calc(100% - 24px)); padding: 20px 22px; border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line)); border-radius: 17px; background: color-mix(in srgb, var(--paper) 96%, transparent); box-shadow: 0 24px 80px rgba(4,8,24,.32); backdrop-filter: blur(16px); transform: translateX(-50%); display: flex; align-items: center; gap: 28px; }
.cookie-consent[hidden] { display: none; }
.cookie-copy { flex: 1; min-width: 0; }
.cookie-copy strong { display: block; margin-bottom: 4px; font-size: 16px; }
.cookie-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.cookie-copy a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex: 0 0 auto; gap: 9px; }
.cookie-actions button { min-height: 44px; }
.cookie-reject { padding: 0 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; font: 750 13px/1 system-ui,sans-serif; }
.cookie-reject:hover { border-color: var(--accent); color: var(--accent); }
.error-page { min-height: 62vh; padding: 100px 20px; text-align: center; }
.error-page > span { color: var(--accent); font: 900 120px/1 Consolas, monospace; opacity: .25; }
.error-page h1 { margin: -15px 0 6px; font-size: 48px; }
.error-page p { color: var(--muted); }
.error-page .button { margin: 14px 4px; }

@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-button { display: grid; }
  .hero { grid-template-columns: 1fr 44%; }
  .hero-visual { min-height: 650px; }
  .hero-visual img { object-position: 54% center; }
  .path-grid { grid-template-columns: 1fr; }
  .path-card { min-height: 230px; }
  .feature-grid { gap: 50px; }
  .doc-layout { grid-template-columns: 170px minmax(0,1fr); }
  .page-toc { display: none; }
  .catalog-grid { grid-template-columns: repeat(2,1fr); }
  .catalog-letter > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contacts-hero { padding: 55px; grid-template-columns: minmax(0,1fr) minmax(300px,.75fr); gap: 42px; }
  .service-offer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-process { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-process li:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .contact-process li:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .search-trigger { min-width: 39px; width: 39px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding: 76px 0 30px; }
  .hero-visual { min-height: 420px; }
  .hero-visual::after { background: linear-gradient(180deg,var(--navy),transparent 25%), linear-gradient(0deg,var(--navy),transparent 16%); }
  .hero-visual img { object-position: center; }
  .section-heading, .playground-head { align-items: start; flex-direction: column; }
  .feature-grid, .learning-split { grid-template-columns: 1fr; gap: 50px; }
  .topic-grid { grid-template-columns: repeat(2,1fr); }
  .tool-row { grid-template-columns: repeat(2,1fr); }
  .start-cta { padding: 40px; align-items: start; flex-direction: column; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { position: static; display: flex; overflow: auto; gap: 4px; padding-bottom: 10px; }
  .doc-nav strong { display: none; }
  .doc-nav a { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; }
  .mistake-grid, .related .card-grid { grid-template-columns: 1fr; }
  .playground { height: auto; min-height: 900px; grid-template-columns: 1fr; grid-template-rows: 470px 430px; }
  .editor-pane { border-right: 0; border-bottom: 1px solid #27304c; }
  .footer-inner { grid-template-columns: repeat(2,1fr); }
  .footer-brand { grid-column: 1/-1; }
  .footer-inner > .footer-privacy { grid-template-columns: 1fr; }
  .footer-privacy > strong, .footer-policy-links { grid-column: auto; grid-row: auto; }
  .cookie-consent { align-items: stretch; flex-direction: column; gap: 15px; }
  .cookie-actions { align-self: flex-end; }
  .site-notice { grid-template-columns: auto 1fr; }
  .notice-button { grid-column: 2; justify-self: start; }
  .contacts-hero { padding: 46px; grid-template-columns: 1fr; }
  .contacts-hero-panel { max-width: 620px; }
  .contact-value-grid { grid-template-columns: 1fr; }
  .contacts-direct-head { align-items: start; flex-direction: column; }
  .contact-methods { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap, .start-cta { width: min(calc(100% - 28px),var(--max)); }
  .header-inner { width: calc(100% - 20px); gap: 8px; }
  .brand > span:last-child { display: none; }
  .hero-copy { width: calc(100vw - 28px); margin-left: 14px; }
  .hero h1 { font-size: 49px; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 330px; }
  .floating-code { right: 5%; bottom: 11%; }
  .path-section, .content-section, .learning-split { padding-block: 70px; }
  .section-heading h2, .learning-copy h2, .feature-band h2, .start-cta h2 { font-size: 34px; }
  .path-card { min-height: 0; padding: 22px; flex-direction: column; }
  .topic-grid, .tool-row, .catalog-grid { grid-template-columns: 1fr; }
  .feature-band { padding-block: 70px; }
  .mini-reference { padding: 20px; transform: none; }
  .lesson-stack article:nth-child(n) { margin-left: 0; }
  .start-cta { margin-bottom: 70px; padding: 30px 24px; }
  .alphabet { display: none; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .page-hero h1, .article-head h1, .playground-head h1 { font-size: 41px; }
  .article-meta, .page-meta { flex-direction: column; gap: 3px; }
  .code-block pre { padding: 17px; font-size: 12px; }
  .code-actions { align-items: start; flex-direction: column; }
  .browser-row { grid-template-columns: repeat(2,1fr); }
  .playground-page { width: calc(100% - 20px); }
  .playground-head h1 { font-size: 36px; }
  .playground-actions { width: 100%; }
  .playground-actions .button { flex: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { align-items: start; flex-direction: column; gap: 6px; }
  .catalog-letter { grid-template-columns: 34px 1fr; gap: 8px; }
  .catalog-letter > div { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .cookie-consent { bottom: 8px; padding: 17px; }
  .cookie-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .cookie-actions button { width: 100%; }
  .site-notice-wrap { padding-inline: 14px; }
  .site-notice { padding: 23px; grid-template-columns: 1fr; gap: 15px; }
  .site-notice-mark { width: 48px; height: 48px; }
  .notice-button { grid-column: auto; width: 100%; }
  .contacts-page > .breadcrumbs, .contacts-hero { width: calc(100% - 28px); }
  .contacts-hero { padding: 33px 24px; border-radius: 22px; }
  .contacts-hero h1 { font-size: 42px; }
  .contacts-hero-copy > p { font-size: 16px; }
  .contacts-hero-actions .button { width: 100%; }
  .contact-proof { align-items: start; flex-direction: column; }
  .contacts-hero-panel { padding: 21px; }
  .contact-section { padding-block: 75px; }
  .service-offer-grid, .contact-process { grid-template-columns: 1fr; }
  .service-offer-grid article { min-height: 0; }
  .contact-process li:nth-child(n) { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .contacts-direct-head { padding: 28px 22px; }
  .contacts-direct-head .button { width: 100%; }
  .contact-method { padding: 17px; grid-template-columns: 43px minmax(0,1fr); }
  .contact-method-icon { width: 43px; height: 43px; }
  .contact-method > svg { display: none; }
  .contact-method.email button { grid-column: 2; justify-self: start; }
  .contact-final { padding: 28px 22px; align-items: stretch; flex-direction: column; }
  .contact-final .button { width: 100%; }
}

@media print {
  .site-header, .site-footer, .doc-nav, .page-toc, .code-actions, .search-dialog, .cookie-consent, .site-notice-wrap { display: none !important; }
  body { background: white; color: black; font-size: 11pt; }
  .doc-layout { display: block; }
  .doc-article { max-width: none; }
  a { text-decoration: underline; }
  .code-block { break-inside: avoid; border-color: #aaa; background: #f4f4f4; color: #111; }
  .code-head { background: #eee; color: #333; }
}
