:root {
  color-scheme: light;
  --ink: #2e1a1a;
  --muted: #6d5652;
  --subtle: #795e59;
  --paper: #fcf8f4;
  --white: #fffdfb;
  --line: #ebded8;
  --red: #ab211d;
  --red-deep: #831714;
  --wine: #29080d;
  --gold: #ffc785;
  --focus: #d66a2f;
  --radius: 20px;
  --shadow: 0 12px 36px rgba(70, 24, 19, .055);
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  line-height: 1.65;
  -webkit-tap-highlight-color: transparent;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
main { min-height: 50vh; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, a { touch-action: manipulation; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[id] { scroll-margin-top: 24px; }

.container { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link {
  position: fixed; top: 12px; left: 12px; transform: translateY(-160%); z-index: 20;
  background: var(--white); color: var(--red-deep); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { transform: none; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px;
  border: 1px solid transparent; border-radius: 10px; padding: 8px 15px; font-size: .9rem; font-weight: 700;
  line-height: 1.35; text-decoration: none; text-align: center; transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
}
.button .icon { font-size: 1.05rem; }
.button--primary { background: var(--red); color: #fff9f5; border-color: var(--red); }
.button--primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.button--secondary, .button--small { background: var(--white); color: var(--red-deep); border-color: #e8d4ca; }
.button--secondary:hover, .button--small:hover { background: #fff1e8; border-color: #dcaa98; }
.button--quiet { color: var(--red-deep); background: transparent; padding-inline: 9px; }
.button--quiet:hover { background: #f8ebe4; }
.button--header, .button--hero { color: #fff0e6; background: #fff1e711; border-color: #ffe2ce41; }
.button--header:hover, .button--hero:hover { background: #fff1e724; border-color: #ffe2ce82; }
.button--gold {
  background: linear-gradient(115deg, #ffce92, #ffb46d); color: #391710; border-color: #ffd8a5;
  box-shadow: 0 4px 24px #ff9a5440;
}
.button--gold:hover { background: #ffdaa6; box-shadow: 0 5px 28px #ffad6266; }
.button--small { min-height: 42px; padding: 6px 11px; font-size: .84rem; }

.site-header {
  position: relative; z-index: 5; color: #fff3eb; background: #2a080b;
  border-bottom: 1px solid #ffb59628;
}
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 74px; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; font-size: 1.14rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.brand img { width: 45px; height: 45px; border-radius: 12px; box-shadow: 0 0 0 1px #fff0de5e, 0 4px 15px #0004; }
.nav--desktop { display: flex; align-self: stretch; gap: clamp(17px, 2.55vw, 41px); }
.nav__link {
  position: relative; display: flex; align-items: center; padding: 3px 2px; font-size: .92rem;
  color: #f0d3cb; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.nav__link:hover, .nav__link.is-active { color: #ffd29c; }
.nav__link.is-active::after {
  content: ""; position: absolute; bottom: 0; left: 10%; right: 10%; height: 2px; border-radius: 3px;
  background: #ffbc78; box-shadow: 0 0 10px #ffae6c66;
}
.desktop-support { justify-self: end; }
.desktop-support .button { font-size: .85rem; min-height: 40px; }
.mobile-menu { display: none; }

.hero {
  isolation: isolate; position: relative; overflow: hidden; color: #fff3ec;
  background: radial-gradient(ellipse at 84% 67%, #691718 0%, #400e15 45%, #25080c 84%);
  border-bottom: 1px solid #692719;
}
.hero__inner { min-height: 470px; display: flex; align-items: center; position: relative; z-index: 1; }
.hero__copy { max-width: 575px; padding: 51px 0 44px; }
.hero__eyebrow {
  display: flex; align-items: center; gap: 9px; margin-bottom: 20px; color: #ffd1a1;
  font-size: .88rem; font-weight: 650; letter-spacing: .14em;
}
.hero__eyebrow .icon { font-size: 1.08rem; }
.hero h1 { font-size: clamp(3.3rem, 5.35vw, 5.3rem); line-height: 1.09; letter-spacing: -.06em; font-weight: 800; }
.hero__tagline {
  margin-top: 13px; color: #ffc58d; font-size: clamp(1.55rem, 2.65vw, 2.25rem);
  font-weight: 750; line-height: 1.34; letter-spacing: -.045em;
}
.hero__description { max-width: 400px; margin-top: 17px; color: #f0d0c8; font-size: 1.01rem; line-height: 1.8; }
.hero__actions { gap: 11px; margin-top: 28px; }
.hero__actions .button { padding-inline: 18px; min-height: 49px; }
.hero__values { display: flex; align-items: center; gap: 11px; margin-top: 26px; color: #e9bfb2; font-size: .86rem; letter-spacing: .12em; }
.hero__values::before { content: ""; width: 20px; height: 1px; background: #f5b276a0; }
.hero__scene {
  position: absolute; inset: 0 0 0 38%; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 26%, #000 89%, transparent), linear-gradient(0deg, transparent, #000 13%, #000 87%, transparent);
  mask-composite: intersect;
}
.hero__scene img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
}

.home-directory { padding-top: 43px; }
.section-heading { margin-bottom: 20px; }
.section-heading h2 { font-size: clamp(1.45rem, 2.35vw, 1.9rem); letter-spacing: -.04em; font-weight: 780; }
.section-heading p { margin-top: 8px; color: var(--muted); }
.entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.entry-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.entry-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; gap: 15px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  background: radial-gradient(ellipse at 0 0, var(--wash) -58%, transparent 62%), var(--white);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: translate .2s, box-shadow .2s, border-color .2s;
}
.entry-card:hover { translate: 0 -4px; box-shadow: 0 14px 24px #6b271515; border-color: #dab6a8; }
.entry-card h3 { margin-bottom: 7px; font-size: 1.22rem; font-weight: 780; letter-spacing: -.03em; }
.entry-card p { color: var(--muted); font-size: .94rem; line-height: 1.65; }
.entry-card__action {
  display: flex; align-items: center; min-height: 43px; width: 100%; margin-top: auto; padding-top: 8px;
  border-top: 1px solid #eee3dc; color: var(--accent); font-size: .89rem; font-weight: 750;
}
.entry-card:hover .entry-card__action { text-decoration: underline; text-underline-offset: 4px; }
.tone-red { --accent: #a61f23; --wash: #fbe6e3; --edge: #f3d1ca; }
.tone-amber { --accent: #99501c; --wash: #fff0dd; --edge: #f2dbc1; }
.tone-rose { --accent: #96374b; --wash: #fae8ed; --edge: #eed3db; }
.tone-copper { --accent: #895327; --wash: #f9ebdc; --edge: #efdbc5; }
.icon-tile, .agent-card__mark {
  display: inline-grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 14px;
  color: var(--accent); background: linear-gradient(150deg, #fff8f4, var(--wash));
  border: 1px solid var(--edge); box-shadow: inset 0 1px 0 #fffb;
}
.icon-tile .icon { font-size: 1.5rem; }
.badge {
  display: inline-flex; align-items: center; width: fit-content; border: 1px solid var(--edge, #ffcab044);
  border-radius: 99px; padding: 3px 10px; color: var(--accent, #ffdbb7); background: var(--wash, #fff0d920);
  font-size: .78rem; line-height: 1.45; font-weight: 700; white-space: nowrap;
}

.site-footer { margin-top: 46px; }
.support-strip {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 18px 20px; background: #f9ede7; border: 1px solid #eeddd5; border-radius: 16px;
}
.support-strip__copy { display: flex; align-items: center; gap: 12px; }
.support-strip__copy .icon-tile { height: 40px; width: 40px; border-radius: 11px; }
.support-strip__copy .icon { font-size: 1.15rem; }
.footer-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 0 23px; color: var(--subtle); font-size: .79rem;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { width: 25px; height: 25px; border-radius: 7px; }

.subpage { padding-top: 20px; }
.crumbs { margin-bottom: 16px; font-size: .86rem; color: var(--muted); }
.crumbs ol, .lesson-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: flex; align-items: center; gap: 7px; min-width: 0; }
.crumbs a { display: inline-flex; align-items: center; min-height: 30px; color: var(--red-deep); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .icon { color: #ac8175; font-size: .76rem; }
.crumbs [aria-current] { font-weight: 700; }
.category-hero, .lesson-hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 199px; border: 1px solid #70231e;
  border-radius: 24px; background: radial-gradient(ellipse at 88% 100%, #8b2d20 0%, transparent 51%), linear-gradient(118deg, #340a0f, #5b161b);
  color: #fff7ee; box-shadow: 0 12px 30px #57252213;
}
.category-hero { display: flex; align-items: center; min-height: 164px; padding: 26px clamp(25px, 4.5vw, 53px); }
.category-hero::before, .lesson-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(#ffdbb314 1px, transparent 1px), linear-gradient(90deg, #ffdbb314 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at 91% 55%, #000 3%, transparent 63%);
}
.category-hero__content { position: relative; z-index: 1; max-width: 73%; }
.category-hero h1, .lesson-hero h1 { font-size: clamp(2rem, 3.8vw, 2.85rem); letter-spacing: -.045em; font-weight: 780; overflow-wrap: anywhere; }
.category-hero p, .lesson-hero__copy > p { margin-top: 12px; color: #f5d4c7; line-height: 1.8; }
.category-hero__art {
  display: grid; place-items: center; position: absolute; top: 50%; right: 7%; width: 145px; height: 145px;
  translate: 0 -50%; border-radius: 50%; border: 1px solid #ffe1af36; color: #ffc68d;
  background: radial-gradient(circle, #f8a96723, transparent 71%);
}
.category-hero__art::before, .category-hero__art::after {
  content: ""; position: absolute; inset: 12px; border: 1px solid #ffbf9440; border-radius: 50%;
}
.category-hero__art::after { inset: -26px; border-color: #ffc99e26; }
.category-hero__art .icon { font-size: 3.65rem; filter: drop-shadow(0 0 20px #ff994d80); }
.section-block { margin-top: 28px; }
.section-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 13px; margin-bottom: 19px; }
.section-bar .section-heading, .reading__intro .section-heading, .reading .resource-heading .section-heading { margin-bottom: 0; }
.filter { display: flex; gap: 3px; padding: 4px; background: #f5e8e0; border: 1px solid #e9d9d0; border-radius: 12px; }
.filter button {
  border: 1px solid transparent; border-radius: 8px; min-height: 44px; min-width: 62px;
  background: transparent; color: var(--muted); font-size: .9rem; font-weight: 700;
}
.filter button[aria-pressed="true"] { background: var(--white); border-color: #e9d9d0; color: var(--red-deep); box-shadow: 0 2px 5px #7332130e; }
.filter button:hover { color: var(--red-deep); }
.agent-group + .agent-group { margin-top: 24px; }
.agent-group h3 { margin-bottom: 12px; font-size: 1.14rem; }
.agent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.agent-card, .row-card, .reading, .instruction, .product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.agent-card { padding: 19px; }
.agent-card__head { display: flex; align-items: center; gap: 13px; }
.agent-card__mark { height: 48px; width: 48px; font-size: 1.15rem; font-weight: 800; }
.agent-card h4 { font-size: 1.13rem; }
.agent-card > p { color: var(--muted); margin: 14px 0; }
.device { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .86rem; }
.device .icon { color: var(--red-deep); }
.row-list, .instruction-list { display: grid; gap: 12px; }
.row-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 20px; }
.row-card__body h3 { font-size: 1.16rem; margin-bottom: 4px; }
.row-card__body p { color: var(--muted); }
.row-card__body .row-card__meta { margin-bottom: 4px; color: #8d4940; font-size: .8rem; font-weight: 700; }
.row-card__actions { justify-content: flex-end; }
.empty-state { margin-top: 23px; padding: 38px 20px; display: grid; justify-items: center; text-align: center; gap: 13px; background: var(--white); border: 1px dashed #debfb0; border-radius: var(--radius); }
.empty-state p { color: var(--muted); }
.back-link { margin-top: 16px; font-size: .93rem; color: var(--red-deep); }
.not-found-title { margin-top: 20px; }
.not-found-title p { margin-top: 12px; color: var(--muted); }
.not-found-actions { margin-top: 22px; }

.reading { padding: clamp(18px, 3.5vw, 32px); }
.reading__intro { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 19px; }
.reading > :is(p, h3, .copy-block, .actions, .faq) + :is(h3, p, .copy-block, .actions, .faq) { margin-top: 13px; }
.reading h3 { font-size: 1.14rem; }
.reading p { color: var(--muted); }
.resource-heading { display: flex; align-items: center; gap: 14px; }
.resource-heading h3 { font-size: 1.2rem; }
.resource-heading p { margin-top: 3px; }
.resource-heading img { border-radius: 15px; }
.helper-text { font-size: .92rem; }
.copy-block { overflow: hidden; border: 1px solid #ead8d0; border-radius: 12px; background: #fcf3ed; }
.copy-block__head { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 8px; padding: 7px 12px; border-bottom: 1px solid #ead8d0; color: #633632; }
.copy-block pre {
  margin: 0; padding: 14px; font: inherit; line-height: 1.75; color: #412822;
  white-space: pre-wrap; overflow-wrap: anywhere; user-select: text;
}
.copy-block pre:focus-visible { outline-offset: -3px; }
.values-list { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; margin: 20px 0; background: var(--line); }
.values-list div { display: grid; grid-template-columns: min(85px, 25%) 1fr; align-items: start; gap: 12px; background: #fffcf9; padding: 12px 14px; }
.values-list dt { font-weight: 750; color: var(--red-deep); }
.values-list dd { color: var(--muted); }

.lesson-hero { display: grid; align-items: center; padding: clamp(24px, 4vw, 44px); gap: 22px; }
.lesson-hero--result { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.lesson-hero__label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 13px; color: #f3d2c1; font-size: .86rem; }
.lesson-hero h1 { font-size: clamp(1.95rem, 3.55vw, 2.85rem); overflow-wrap: anywhere; }
.lesson-facts { display: flex; gap: 7px 16px; margin-top: 16px; color: #ffe4d5; font-size: .88rem; }
.lesson-facts li { display: flex; align-items: center; gap: 6px; }
.lesson-facts .icon { color: #ffcb95; }
.lesson-hero .actions { margin-top: 21px; }
.result-preview { background: #fff9f4; color: var(--ink); border-radius: 16px; border: 1px solid #ffcfab; padding: 13px; box-shadow: 0 8px 30px #29060a45; }
.result-preview__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.result-preview__top > span { display: flex; align-items: center; gap: 8px; font-weight: 750; }
.result-preview__top > span .icon { color: var(--red-deep); }
.result-preview p { margin-top: 7px; color: var(--muted); font-size: .82rem; }
.result-table { width: 100%; border-collapse: collapse; border: 1px solid #eadbd3; font-size: .9rem; overflow-wrap: anywhere; }
.result-table th, .result-table td { padding: 7px 9px; border-bottom: 1px solid #ebded7; text-align: left; }
.result-table th { color: #6f331e; font-weight: 750; background: #f8e9e0; }
.result-table td { background: #fffaf7; }
.example-table { overflow-x: auto; border-radius: 9px; }
.lesson-grid { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 20px; align-items: start; }
.lesson-aside { position: sticky; top: 16px; margin-top: 28px; }
.aside-nav { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.aside-nav h2 { font-size: 1.04rem; margin-bottom: 6px; }
.aside-nav a { display: flex; align-items: center; min-height: 42px; color: var(--red-deep); padding: 5px 8px; border-radius: 7px; text-decoration: none; }
.aside-nav a:hover { background: #f9eae3; }
.aside-nav p { font-size: .82rem; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); }
.instruction { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 13px; padding: clamp(15px, 2.8vw, 23px); }
.instruction__number { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; color: var(--red-deep); background: #f9e4de; border: 1px solid #efd2c6; font-weight: 800; }
.instruction h3 { font-size: 1.14rem; }
.instruction__body > * + * { margin-top: 10px; }
.instruction__body p { color: var(--muted); }
.expected { display: flex; gap: 8px; align-items: flex-start; color: #69451e; padding: 8px 10px; background: #fbefdd; border-radius: 8px; font-size: .87rem; }
.expected .icon { margin-top: 3px; flex: none; }
.checklist { display: grid; border: 0; min-inline-size: 0; padding: 0; margin: 0; gap: 5px; }
.checklist legend { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.checklist label { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; border: 1px solid #eaded6; border-radius: 8px; background: #fffcf8; padding: 8px 10px; cursor: pointer; }
.checklist input { width: 18px; height: 18px; flex: none; margin: 4px 0 0; accent-color: var(--red); }
.checklist label:has(input:checked) { background: #faede6; border-color: #e2b4a4; }
.faq { border-top: 1px solid var(--line); }
.faq summary { padding: 11px 0; cursor: pointer; min-height: 44px; color: var(--red-deep); font-weight: 700; }
.faq > :not(summary) { margin-bottom: 11px; }
.next-step { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; background: #f9ece4; border: 1px solid #ead6ca; border-radius: 15px; padding: 18px 20px; }
.next-step h2 { font-size: 1.19rem; }
.next-step p { margin-top: 4px; color: var(--muted); }
.concept-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.concept-grid blockquote { margin: 12px 0 0; padding: 8px 10px; background: #f9eee6; border-radius: 8px; color: #74412f; }
.text-list { margin: 0 0 15px; padding-inline-start: 1.3em; color: var(--muted); }
.text-list li + li { margin-top: 6px; }

.product-card { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); overflow: hidden; }
.product-card__copy { padding: clamp(20px, 4vw, 38px); align-self: center; }
.product-card__copy h3 { margin: 10px 0; font-size: 1.8rem; letter-spacing: -.03em; }
.product-card__copy > p { color: var(--muted); margin-bottom: 12px; }
.product-card__copy .actions { margin-top: 14px; }
.product-art {
  display: grid; place-items: center; padding: clamp(17px, 4.2vw, 45px);
  background: radial-gradient(ellipse at 63% 15%, #b74c36 0%, transparent 58%), linear-gradient(145deg, #430d13, #6c1e19);
}
.product-app { width: min(100%, 378px); border: 1px solid #d6ad99; border-radius: 15px; overflow: hidden; background: #fff8f2; box-shadow: 0 16px 35px #21030965; }
.product-app__top { display: flex; align-items: center; gap: 5px; padding: 8px 11px; background: #f6e6dd; color: #714038; font-size: .74rem; }
.product-app__top span { width: 6px; height: 6px; border-radius: 9px; background: #c57969; }
.product-app__top strong { margin-inline-start: 4px; }
.product-app__body { display: grid; gap: 5px; padding: 13px; }
.product-app__label { display: flex; align-items: center; gap: 5px; font-size: .77rem; font-weight: 750; color: var(--red-deep); }
.product-app__input, .product-app__output { padding: 8px 9px; border: 1px solid #eddbce; border-radius: 7px; color: var(--muted); background: #fffdf9; font-size: .77rem; }
.product-app__output { background: #fcf0e4; }
.media-player { max-width: 900px; overflow: hidden; border-radius: 17px; border: 1px solid var(--line); background: var(--white); }
.media-player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #2d080e; }
.media-player figcaption { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; padding: 10px 14px; color: var(--muted); font-size: .87rem; }
.media-player a { color: var(--red-deep); }
.media-error { padding: 8px 14px; color: var(--red-deep); }
.below-media { margin-top: 15px; }
.demo-form { display: grid; gap: 8px; }
.demo-form label { font-weight: 700; color: #623631; }
.demo-form textarea {
  display: block; resize: vertical; min-height: 104px; width: 100%; padding: 11px 12px;
  border: 1px solid #d9b9af; border-radius: 10px; background: #fffcf8; color: var(--ink);
}
.demo-lab [data-demo-output] { margin-top: 17px; }

.dialog {
  width: min(440px, calc(100% - 28px)); max-height: calc(100% - 30px); border: 1px solid #ead5c8;
  border-radius: 20px; padding: 0; color: var(--ink); background: var(--white); box-shadow: 0 24px 100px #22080c50;
}
.dialog::backdrop { background: #1c0809b8; backdrop-filter: blur(3px); }
.dialog__inner { position: relative; padding: 26px; }
.dialog h2 { padding-right: 38px; font-size: 1.4rem; }
.dialog__intro { margin: 9px 0 14px; color: var(--muted); }
.dialog__close { position: absolute; top: 12px; right: 12px; margin: 0; }
.icon-button {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 9px;
  color: var(--red-deep); background: #f9eae1; font-size: 1.06rem;
}
.icon-button:hover { background: #f4d8ca; }
.assistant-status { display: flex; align-items: flex-start; gap: 9px; padding: 11px; border-radius: 10px; background: #fbefe6; color: #6c3d2a; }
.assistant-status .icon { margin-top: 4px; }
.assistant-status p { margin-top: 2px; font-size: .91rem; }
.assistant-qr { width: min(224px, 100%); margin: 10px auto 16px; }
.dialog--image { width: min(820px, calc(100% - 25px)); }
.large-example { margin-top: 13px; overflow: hidden; border-radius: 13px; border: 1px solid var(--line); }
.large-example img { width: 100%; }
.toast {
  position: fixed; z-index: 7; bottom: 18px; right: 18px; max-width: min(410px, calc(100% - 36px));
  border: 1px solid #f6c1a4; border-radius: 11px; padding: 11px 15px; background: #511319;
  color: #fff6ee; box-shadow: 0 8px 30px #2b101738; font-size: .91rem;
}

@media (max-width: 1000px) {
  .container { width: calc(100% - 64px); }
  .header-inner { gap: 16px; }
  .hero__scene { left: 44%; }
  .hero__scene img { inset: 50% 0 auto auto; height: auto; translate: 0 -50%; mask-image: linear-gradient(0deg, transparent, #000 14%, #000 86%, transparent); }
  .hero__inner { min-height: 430px; }
  .hero__copy { max-width: 53%; }
  .entry-grid { gap: 12px; }
  .entry-card { padding: 17px; }
  .entry-card h3 { font-size: 1.08rem; }
}

@media (max-width: 790px) {
  .container { width: calc(100% - 42px); }
  .header-inner { min-height: 65px; grid-template-columns: 1fr auto; }
  .nav--desktop, .desktop-support { display: none; }
  .mobile-menu { display: block; }
  .menu-toggle { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 7px 11px; border: 1px solid #ffe2ce41; border-radius: 9px; font-weight: 700; font-size: .9rem; cursor: pointer; }
  .menu-toggle::-webkit-details-marker { display: none; }
  .mobile-menu[open] .menu-toggle { background: #fff1e724; }
  .nav--mobile {
    display: grid; gap: 2px; position: absolute; top: 63px; right: 20px; width: min(242px, calc(100% - 40px));
    background: #3c0e13; border: 1px solid #a75e51; border-radius: 12px; padding: 8px; box-shadow: 0 15px 40px #2b040b55;
  }
  .nav--mobile .nav__link { min-height: 43px; padding: 8px 12px; border-radius: 7px; }
  .nav--mobile .nav__link.is-active { background: #fbb07f20; }
  .nav--mobile .nav__link.is-active::after { display: none; }
  .nav--mobile .button { margin-top: 4px; }
  .brand img { width: 39px; height: 39px; border-radius: 10px; }
  .entry-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__inner { min-height: 394px; }
  .hero h1 { font-size: clamp(2.55rem, 6.1vw, 3.65rem); }
  .hero__copy { max-width: 56%; padding-block: 40px; }
  .hero__scene { left: 46%; }

  .category-hero__art { right: 4.5%; width: 133px; height: 133px; }
  .category-hero__art .icon { font-size: 3.4rem; }
  .category-hero__art::after { inset: -15px; }
  .lesson-grid { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .lesson-aside { position: static; margin-top: 11px; }
  .lesson-aside .aside-nav { display: none; }
  .lesson-hero { gap: 15px; padding: 23px; }
  .row-card { grid-template-columns: auto minmax(0, 1fr); }
  .row-card__actions { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .brand { font-size: 1rem; gap: 9px; }
  .mobile-menu { margin-right: 0; }
  .nav--mobile { right: 15px; }
  .hero { display: flex; flex-direction: column; }
  .hero__inner { min-height: 0; }
  .hero__copy { max-width: 100%; padding: 31px 0 4px; }
  .hero__eyebrow { margin-bottom: 13px; font-size: .8rem; }
  .hero h1 { font-size: clamp(2.55rem, 10.5vw, 3.65rem); }
  .hero__tagline { margin-top: 8px; font-size: clamp(1.37rem, 6vw, 1.95rem); }
  .hero__description { margin-top: 12px; font-size: .95rem; }
  .hero__actions { gap: 7px; margin-top: 18px; }
  .hero__actions .button { min-height: 46px; padding-inline: 12px; }
  .hero__values { margin-top: 15px; font-size: .79rem; }
  .hero__scene { order: 2; inset: auto; position: relative; height: clamp(194px, 60vw, 268px); mask-image: linear-gradient(0deg, transparent, #000 12%, #000 82%, transparent); }
  .hero__scene img { inset: 0; height: 100%; object-position: center 62%; translate: none; mask-image: none; }
  .home-directory { padding-top: 29px; }
  .entry-grid, .entry-grid--home, .agent-grid, .concept-grid, .product-card, .lesson-hero--result { grid-template-columns: minmax(0, 1fr); }
  .entry-grid--home .entry-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; padding: 14px; align-items: start; }
  .entry-grid--home .entry-card__action { grid-column: 2; border-top: 0; min-height: 29px; padding-top: 4px; }
  .entry-grid--home .icon-tile { width: 44px; height: 44px; border-radius: 12px; }
  .entry-grid--home h3 { margin-bottom: 4px; }
  .entry-grid--home p { font-size: .9rem; }
  .section-heading { margin-bottom: 14px; }
  .section-heading p { margin-top: 5px; }
  .site-footer { margin-top: 28px; }
  .support-strip { flex-wrap: wrap; padding: 13px; }
  .support-strip__copy { gap: 8px; }
  .footer-meta { font-size: .76rem; }
  .subpage { padding-top: 10px; }
  .crumbs { margin-bottom: 11px; }
  .crumbs a { min-height: 34px; }
  .category-hero, .lesson-hero { min-height: 153px; padding: 18px; border-radius: 17px; }
  .category-hero__content { max-width: 100%; }
  .category-hero h1, .lesson-hero h1 { font-size: clamp(1.76rem, 8vw, 2.4rem); }
  .category-hero p { max-width: 89%; margin-top: 9px; }
  .category-hero__art { right: -24px; opacity: .28; }
  .section-block { margin-top: 21px; }
  .row-card { gap: 9px 11px; padding: 13px; align-items: start; }
  .row-card .icon-tile { height: 40px; width: 40px; border-radius: 11px; }
  .row-card .icon-tile .icon { font-size: 1.2rem; }
  .row-card__body h3 { font-size: 1.07rem; }
  .row-card__body p, .row-card__actions .button { font-size: .88rem; }
  .row-card__actions { grid-column: 1 / -1; }
  .instruction { gap: 8px; }
  .instruction__number { width: 30px; height: 30px; border-radius: 8px; }
  .instruction h3 { margin-top: 3px; }
  .result-table th, .result-table td { padding-inline: 6px; }
  .dialog__inner { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .entry-card:hover { translate: none; }
}
