:root {
  --bg: #f6f8fc;
  --paper: #ffffff;
  --paper-soft: #f2f6fd;
  --ink: #121826;
  --ink-soft: #344054;
  --muted: #667085;
  --line: #dfe5ef;
  --line-strong: #c9d4e4;
  --blue: #1467df;
  --blue-deep: #0d4da9;
  --blue-soft: #e4efff;
  --amber: #a66511;
  --amber-bg: #fff8ec;
  --green: #15936e;
  --radius-lg: 24px;
  --radius-md: 15px;
  --shadow: 0 18px 46px rgba(24, 55, 106, 0.08);
  --font-sans: Inter, "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% -3%, rgba(105, 166, 255, 0.22), transparent 29rem),
    var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  color: #fff;
  background: var(--blue-deep);
  border-radius: 8px;
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}

.skip-link:focus { transform: translateY(0); }

.loading-state,
.load-error {
  display: grid;
  min-height: 100vh;
  padding: 48px 24px;
  place-items: center;
  color: var(--muted);
}

.load-error > div {
  max-width: 560px;
  padding: 30px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.load-error h1 { margin-top: 0; color: var(--ink); font-size: 24px; }
.load-error code { overflow-wrap: anywhere; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255, 255, 255, 0.89);
  border-bottom: 1px solid rgba(223, 229, 239, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1440px, 100%);
  min-height: 70px;
  padding: 0 38px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 9px;
  font-family: Georgia, serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.header-catalog-link {
  padding: 5px 9px;
  color: var(--blue-deep);
  border: 1px solid #cbdcf5;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 740;
  line-height: 1.35;
  text-decoration: none;
}

.header-catalog-link:hover,
.header-catalog-link:focus-visible {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  outline: none;
}

.eyebrow {
  margin: 0;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.home-main { width: min(1280px, 100%); padding: 0 38px 75px; margin: 0 auto; }

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  padding: clamp(75px, 11vw, 135px) 0 clamp(46px, 6vw, 72px);
}

.home-title {
  max-width: 820px;
  margin: 13px 0 0;
  color: var(--ink);
  font-size: clamp(44px, 6.2vw, 84px);
  font-weight: 770;
  letter-spacing: -0.065em;
  line-height: 1.1;
}

.home-title em {
  color: var(--blue);
  font-family: Georgia, "Noto Serif SC", serif;
  font-weight: 600;
}

.home-intro {
  max-width: 760px;
  margin: 25px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.9;
}

.home-section-head {
  padding-top: 4px;
}

.home-section-head h2,
.chapter-hero h1,
.source-section h2,
.chapter-end h2 {
  margin: 10px 0 0;
  letter-spacing: -0.05em;
}

.home-section-head h2 { font-size: clamp(28px, 3.4vw, 43px); line-height: 1.2; }

.service-cta {
  display: grid;
  grid-template-columns: minmax(270px, .36fr) minmax(0, .64fr);
  min-height: 310px;
  margin: 0 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid #173b39;
}

.service-cta-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(31px, 4vw, 49px);
  color: #f8f6ec;
  background:
    radial-gradient(circle at 100% 100%, rgba(47, 126, 118, .22), transparent 21rem),
    linear-gradient(145deg, #0c2c2b, #123d3a);
}

.service-kicker {
  margin: 0;
  color: #ff7760;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .11em;
  line-height: 1.55;
  text-transform: uppercase;
}

.service-cta-intro h2 {
  margin: 13px 0 0;
  color: #fffdf7;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(31px, 3.5vw, 46px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1.25;
}

.service-cta-intro > p:not(.service-kicker) {
  max-width: 350px;
  margin: 19px 0 0;
  color: #c9dad6;
  font-size: 14px;
  line-height: 1.8;
}

.service-text-link {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  margin-top: auto;
  padding-top: 27px;
  color: #fff;
  font-size: 13px;
  font-weight: 740;
  text-decoration: none;
}

.service-text-link:hover,
.service-text-link:focus-visible { color: #ff9a88; outline: none; }

.service-cta-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(31px, 5vw, 62px);
}

.service-cta-contact .service-kicker { color: #e55742; }
.service-qq {
  margin: 9px 0 0;
  color: #173b39;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(30px, 3.6vw, 43px);
  font-weight: 780;
  letter-spacing: .02em;
  line-height: 1.1;
}
.service-contact-copy { max-width: 500px; margin: 17px 0 0; color: #b42318; font-size: 14px; font-weight: 680; line-height: 1.8; }
.service-catalog-link {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  color: #fff;
  background: #123a37;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.service-catalog-link:hover,
.service-catalog-link:focus-visible { background: #1b5953; outline: 3px solid rgba(27, 89, 83, .24); outline-offset: 3px; }

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 31px;
}

.chapter-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 25px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 9px 26px rgba(29, 53, 91, 0.045);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.chapter-card:hover,
.chapter-card:focus-visible {
  border-color: #9dc0fb;
  box-shadow: 0 17px 35px rgba(20, 88, 187, 0.12);
  outline: none;
  transform: translateY(-3px);
}

.chapter-card:nth-child(2),
.chapter-card:nth-child(5) { background: linear-gradient(145deg, #f2f7ff 0%, #fff 75%); }
.chapter-card:nth-child(3),
.chapter-card:nth-child(6) { background: linear-gradient(145deg, #fcfdff 0%, #edf4ff 100%); }

.chapter-card-support {
  grid-template-areas:
    "number cta"
    "title cta"
    "summary cta";
  grid-template-columns: minmax(0, 1fr) auto;
  grid-column: 1 / -1;
  gap: 0 38px;
  min-height: 205px;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .86), transparent 17rem),
    linear-gradient(135deg, #e4efff 0%, #edf5ff 58%, #f7fbff 100%);
  border-color: #b8d2fb;
  box-shadow: 0 18px 42px rgba(20, 103, 223, .12);
}
.chapter-card-support .chapter-card-number { grid-area: number; color: var(--blue); }
.chapter-card-support h3 { grid-area: title; max-width: 820px; font-size: clamp(24px, 3vw, 36px); }
.chapter-card-support p { grid-area: summary; max-width: 720px; color: var(--ink-soft); font-size: 14px; }
.chapter-card-support .card-cta {
  grid-area: cta;
  align-self: center;
  padding: 12px 17px;
  margin: 0;
  color: var(--blue-deep);
  background: #fff;
  border: 1px solid #b8d2fb;
  border-radius: 8px;
}
.chapter-card-support:hover,
.chapter-card-support:focus-visible { border-color: #8db8f7; box-shadow: 0 22px 48px rgba(20, 88, 187, .18); }

.chapter-card-number {
  color: var(--blue);
  font-size: 13px;
  font-weight: 810;
  letter-spacing: 0.12em;
}

.chapter-card h3 { margin: 16px 0 0; font-size: 23px; letter-spacing: -0.04em; line-height: 1.32; }
.chapter-card p { margin: 13px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.chapter-card p.chapter-card-summary-alert { color: #b42318; font-weight: 680; }
.chapter-card .card-cta { display: inline-flex; align-items: center; gap: 7px; padding-top: 20px; margin-top: auto; color: var(--blue-deep); font-size: 13px; font-weight: 740; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1440px, 100%);
  padding: 24px 38px 31px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.site-footer p { margin: 0; }

.catalog-page { width: min(1280px, 100%); padding: 0 38px 80px; margin: 0 auto; }
.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .52fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: end;
  padding: clamp(54px, 8vw, 90px) 0 31px;
}
.catalog-title { max-width: 760px; margin: 10px 0 0; color: var(--ink); font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(39px, 5.1vw, 64px); font-weight: 500; letter-spacing: -.065em; line-height: 1.08; }
.catalog-description { max-width: 620px; margin: 14px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.catalog-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 9px 25px rgba(29, 53, 91, .04);
}
.catalog-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 103, 223, .14); }
.catalog-search > span { color: var(--blue-deep); font-size: 22px; line-height: 1; }
.catalog-search input { width: 100%; min-width: 0; padding: 12px 0; color: var(--ink); background: transparent; border: 0; outline: none; font: inherit; font-size: 14px; }
.catalog-search input::placeholder { color: #8793a7; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 9px; padding: 0 0 33px; }
.catalog-filter {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .54);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 680;
}
.catalog-filter span { color: var(--blue-deep); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.catalog-filter:hover,
.catalog-filter:focus-visible { color: var(--blue-deep); background: #fff; border-color: #9dbef1; outline: none; }
.catalog-filter[aria-pressed="true"] { color: #fff; background: var(--blue-deep); border-color: var(--blue-deep); }
.catalog-filter[aria-pressed="true"] span { color: #d9e8ff; }
.catalog-list-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; padding: 0 0 20px; }
.catalog-list-head h2 { margin: 8px 0 0; color: var(--ink); font-size: clamp(27px, 3.2vw, 40px); letter-spacing: -.05em; line-height: 1.2; }
.catalog-list-head > p { margin: 0; color: var(--muted); font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; background: #c9d8ec; border: 1px solid #c9d8ec; border-radius: 20px; box-shadow: 0 16px 38px rgba(29, 53, 91, .06); }
.product-card { display: grid; grid-template-rows: 132px minmax(0, 1fr); min-width: 0; color: var(--ink); background: var(--paper); }
.product-card-visual { position: relative; display: flex; align-items: center; padding: 22px; border-bottom: 1px solid #c9d8ec; }
.product-tone-blue { background: linear-gradient(135deg, #dcecff 0%, #f8fbff 100%); }
.product-tone-rose { background: linear-gradient(135deg, #fbe3e0 0%, #fff8f6 100%); }
.product-tone-lavender { background: linear-gradient(135deg, #e9e5ff 0%, #fbfaff 100%); }
.product-tone-sky { background: linear-gradient(135deg, #e0f0fc 0%, #fbfdff 100%); }
.product-tone-amber { background: linear-gradient(135deg, #fff0c9 0%, #fffaf0 100%); }
.product-tone-mint { background: linear-gradient(135deg, #e3f3df 0%, #fbfffa 100%); }
.product-tone-cyan { background: linear-gradient(135deg, #dcf2f2 0%, #fbffff 100%); }
.product-tone-peach { background: linear-gradient(135deg, #fce6df 0%, #fffaf8 100%); }
.product-mark { position: relative; display: grid; width: 68px; height: 68px; place-items: center; overflow: hidden; color: var(--ink); background: rgba(255, 255, 255, .68); border: 1px solid rgba(18, 24, 38, .7); border-radius: 50%; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 15px; font-weight: 800; letter-spacing: -.04em; }
.product-icon-fallback { display: grid; width: 100%; height: 100%; place-items: center; transition: opacity .14s ease; }
.product-mark svg { display: block; width: 35px; height: 35px; }
.product-mark-text { display: block; max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-company-logo { position: absolute; inset: 16px; display: block; width: 34px; height: 34px; margin: auto; object-fit: contain; opacity: 0; transition: opacity .14s ease; }
.product-mark.has-company-logo .product-icon-fallback { opacity: 0; }
.product-mark.has-company-logo .product-company-logo { opacity: 1; }
.product-tone-blue .product-mark { color: #1467df; }
.product-tone-rose .product-mark { color: #d55745; }
.product-tone-lavender .product-mark { color: #6b58bf; }
.product-tone-sky .product-mark { color: #2373b3; }
.product-tone-amber .product-mark { color: #a66b14; }
.product-tone-mint .product-mark { color: #387b4e; }
.product-tone-cyan .product-mark { color: #237b82; }
.product-tone-peach .product-mark { color: #d55845; }
.product-card-number { position: absolute; right: 21px; bottom: 16px; color: var(--ink-soft); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.product-card-body { display: flex; flex-direction: column; min-height: 338px; padding: 20px; }
.product-card-meta { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.product-category { color: #e55742; font-size: 12px; font-weight: 780; letter-spacing: .04em; }
.product-status { color: #748096; font-size: 11px; text-align: right; white-space: nowrap; }
.product-card h3 { margin: 16px 0 0; font-size: 20px; letter-spacing: -.04em; line-height: 1.35; }
.product-card-description { margin: 14px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.72; }
.product-delivery { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.63; }
.product-price-row { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); }
.product-price-label { display: block; color: #8a94a5; font-size: 11px; }
.product-price-wrap { display: flex; flex-wrap: wrap; gap: 4px; align-items: baseline; margin: 3px 0 0; }
.product-price { color: #123a37; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 25px; font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.product-price-suffix { color: var(--muted); font-size: 11px; line-height: 1.35; }
.product-consult-link { display: inline-flex; flex: 0 0 auto; gap: 7px; align-items: center; justify-content: center; min-height: 43px; padding: 10px 12px; color: #fff; background: #123a37; border-radius: 7px; font-size: 13px; font-weight: 740; text-decoration: none; }
.product-consult-link:hover,
.product-consult-link:focus-visible { background: #1b5953; outline: 3px solid rgba(27, 89, 83, .2); outline-offset: 2px; }
.catalog-no-results { padding: 38px 24px; color: var(--ink-soft); background: rgba(255, 255, 255, .72); border: 1px dashed #acc5ea; border-radius: var(--radius-md); text-align: center; }
.catalog-no-results h3 { margin: 0; color: var(--ink); font-size: 20px; }
.catalog-no-results p { margin: 7px 0 0; font-size: 14px; }
.catalog-empty { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 30px; color: var(--ink-soft); background: #f7faff; border: 1px dashed #b7cfef; border-radius: var(--radius-md); }
.catalog-empty h3 { margin: 0; color: var(--ink); font-size: 22px; letter-spacing: -.04em; }
.catalog-empty p { max-width: 680px; margin: 9px 0 0; font-size: 14px; line-height: 1.75; }
.catalog-empty code { padding: 2px 5px; color: var(--blue-deep); background: #e7f0ff; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.catalog-empty a { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 10px 12px; color: var(--blue-deep); border: 1px solid #bcd4f7; border-radius: 8px; font-size: 13px; font-weight: 730; text-decoration: none; white-space: nowrap; }
.catalog-empty a:hover,
.catalog-empty a:focus-visible { color: #fff; background: var(--blue); border-color: var(--blue); outline: none; }

.chapter-page { width: min(1440px, 100%); margin: 0 auto; }

.chapter-topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 670;
  text-decoration: none;
}

.back-home:hover,
.back-home:focus-visible { color: var(--blue-deep); outline: none; }

.chapter-current { margin-left: auto; color: var(--muted); font-size: 12px; }

.chapter-layout {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: calc(100vh - 142px);
}

.chapter-sidebar {
  position: sticky;
  top: 70px;
  align-self: start;
  height: calc(100vh - 70px);
  padding: 38px 23px 31px 38px;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.chapter-switcher { display: grid; gap: 3px; margin-top: 15px; }
.chapter-switcher a {
  display: flex;
  gap: 8px;
  padding: 7px 8px;
  color: var(--muted);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.4;
  text-decoration: none;
}
.chapter-switcher a span { color: #99a6b8; font-size: 10px; }
.chapter-switcher a:hover,
.chapter-switcher a:focus-visible { color: var(--ink); background: rgba(255,255,255,.85); outline: none; }
.chapter-switcher a[aria-current="page"] { color: var(--blue-deep); background: var(--blue-soft); }
.chapter-switcher a[aria-current="page"] span { color: var(--blue-deep); }

.toc-divider { height: 1px; margin: 25px 0 18px; background: var(--line); }
.toc-title { margin: 0; color: var(--muted); font-size: 11px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.chapter-toc { display: grid; gap: 3px; margin-top: 11px; }
.chapter-toc a {
  display: block;
  padding: 7px 8px;
  color: var(--muted);
  border-left: 2px solid transparent;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}
.chapter-toc a:hover,
.chapter-toc a:focus-visible { color: var(--ink); border-left-color: #afc9ef; outline: none; }
.chapter-toc a.is-active { color: var(--blue-deep); border-left-color: var(--blue); font-weight: 720; }

.chapter-content { width: min(100%, 1050px); padding: 0 58px 88px; }

.chapter-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 34px;
  align-items: end;
  padding: clamp(67px, 9vw, 113px) 0 64px;
}

.chapter-hero h1 { max-width: 780px; color: var(--ink); font-size: clamp(39px, 5vw, 68px); line-height: 1.12; }
.chapter-number-display { justify-self: end; color: #c8dafa; font-size: clamp(72px, 10vw, 132px); font-weight: 780; letter-spacing: -0.08em; line-height: .85; }
.chapter-hero-summary { max-width: 760px; margin: 21px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.9; }

.source-banner {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 13px;
  padding: 18px 19px;
  margin-bottom: 76px;
  color: #41506a;
  background: #eef5ff;
  border: 1px solid #d4e5ff;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.7;
}
.source-banner .source-icon { display: grid; width: 25px; height: 25px; place-items: center; color: var(--blue-deep); background: var(--blue-soft); border-radius: 7px; font-weight: 800; }
.source-banner p { margin: 0; }

.support-contact-banner {
  display: grid;
  grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  margin-bottom: 76px;
  color: #d8e8e5;
  background:
    radial-gradient(circle at 92% 15%, rgba(73, 168, 157, .22), transparent 18rem),
    linear-gradient(145deg, #0c2c2b, #123d3a);
  border: 1px solid #173b39;
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(12, 44, 43, .14);
}
.support-contact-banner .service-qq { color: #fff; }
.support-contact-banner > p { max-width: 560px; margin: 0; font-size: 15px; line-height: 1.9; }

.source-section {
  position: relative;
  padding: 72px 0 0;
  scroll-margin-top: 92px;
}

.source-section:first-of-type { padding-top: 0; }

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 { font-size: clamp(25px, 3.2vw, 38px); line-height: 1.25; }
.section-permalink { color: #9eb7da; font-size: 20px; font-weight: 700; text-decoration: none; }
.section-permalink:hover,
.section-permalink:focus-visible { color: var(--blue); outline: none; }

.source-body { padding-top: 22px; }

.source-paragraph {
  max-width: 790px;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.source-paragraph strong { color: var(--ink); }

.source-paragraph .inline-link {
  color: var(--blue-deep);
  font-weight: 660;
  overflow-wrap: anywhere;
  text-decoration-color: #a6c7f5;
  text-underline-offset: 2px;
}
.source-paragraph .inline-link:hover,
.source-paragraph .inline-link:focus-visible { color: var(--blue); outline: none; }

.link-entries { display: grid; gap: 8px; max-width: 790px; margin: -4px 0 21px; }
.link-entry {
  display: grid;
  grid-template-areas:
    "main edit"
    "editor editor";
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 13px;
  align-items: start;
  padding: 11px 13px;
  color: var(--blue-deep);
  background: #f1f6ff;
  border: 1px solid #d9e8ff;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.45;
}
.link-entry-main {
  display: grid;
  grid-area: main;
  grid-template-areas:
    "label arrow"
    "url arrow";
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.link-entry:hover,
.link-entry:focus-visible { color: #fff; background: var(--blue); border-color: var(--blue); outline: none; }
.link-entry:focus-within { color: #fff; background: var(--blue); border-color: var(--blue); }
.link-entry.is-editing,
.link-entry.is-editing:hover,
.link-entry.is-editing:focus-within { color: var(--blue-deep); background: #f8fbff; border-color: #9bc1f9; }
.link-entry-main:focus-visible,
.link-entry-edit:focus-visible,
.link-entry-editor button:focus-visible,
.link-entry-editor input:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.link-entry-label { grid-area: label; color: inherit; font-size: 13px; font-weight: 760; letter-spacing: .01em; }
.link-entry-url { grid-area: url; min-width: 0; overflow: hidden; color: inherit; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.link-entry-arrow { grid-area: arrow; align-self: center; font-size: 16px; }
.link-entry-edit {
  grid-area: edit;
  align-self: center;
  padding: 5px 8px;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  white-space: nowrap;
}
.link-entry-editor {
  display: grid;
  grid-area: editor;
  gap: 9px;
  padding: 11px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid #c9defe;
  border-radius: 8px;
}
.link-entry-editor[hidden] { display: none; }
.link-entry-editor label { display: grid; gap: 5px; color: var(--ink); font-size: 11px; font-weight: 720; }
.link-entry-editor input {
  width: 100%;
  padding: 8px 9px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9d0f4;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
}
.link-entry-editor-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.link-entry-editor-actions button {
  padding: 6px 9px;
  color: var(--blue-deep);
  background: #edf5ff;
  border: 1px solid #c5dcff;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}
.link-entry-editor-actions button[type="submit"] { color: #fff; background: var(--blue); border-color: var(--blue); }
.link-entry-editor p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.empty-link {
  max-width: 790px;
  padding: 11px 13px;
  margin: -4px 0 21px;
  color: #78654a;
  background: #faf7f1;
  border: 1px dashed #ded0b8;
  border-radius: 10px;
  font-size: 13px;
}
.empty-link strong { color: #604c2e; }

.source-figure { max-width: 820px; margin: 28px 0; }
.source-figure a { position: relative; display: block; overflow: hidden; background: #e9eef5; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(23, 51, 96, .1); }
.source-figure img { width: 100%; height: auto; transition: transform .25s ease; }
.source-figure a:hover img,
.source-figure a:focus-visible img { transform: scale(1.012); }
.source-figure a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.image-badge { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; color: #fff; background: rgba(16, 24, 40, .72); border-radius: 5px; font-size: 11px; }
.source-figure figcaption { margin-top: 9px; color: var(--muted); font-size: 12px; }

.chapter-end {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 82px;
  padding: 28px;
  color: #fff;
  background: linear-gradient(135deg, #1467df, #328bed);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(20, 103, 223, .2);
}
.chapter-end p { margin: 0; color: #e9f3ff; font-size: 13px; }
.chapter-end .chapter-end-label { color: #c9e1ff; font-size: 11px; font-weight: 770; letter-spacing: .12em; text-transform: uppercase; }
.chapter-end a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 13px; color: var(--blue-deep); background: #fff; border-radius: 8px; font-size: 13px; font-weight: 720; text-align: center; text-decoration: none; }
.chapter-end a:hover,
.chapter-end a:focus-visible { background: #e8f2ff; outline: none; }

@media (max-width: 1060px) {
  .header-inner,
  .chapter-topbar { padding-right: 28px; padding-left: 28px; }
  .home-main { padding-right: 28px; padding-left: 28px; }
  .chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-layout { grid-template-columns: 213px minmax(0, 1fr); }
  .chapter-sidebar { padding-left: 28px; padding-right: 17px; }
  .chapter-content { padding-right: 38px; padding-left: 38px; }
  .catalog-page { padding-right: 28px; padding-left: 28px; }
  .catalog-hero { grid-template-columns: minmax(0, 1fr) minmax(275px, .56fr); gap: 32px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 112px; }
  .header-inner { min-height: 61px; padding: 0 18px; }
  .home-main { padding: 0 18px 52px; }
  .home-hero { grid-template-columns: 1fr; gap: 26px; padding: 60px 0 42px; }
  .home-title { font-size: clamp(40px, 12vw, 58px); }
  .home-intro { margin-top: 19px; font-size: 15px; }
  .header-actions { gap: 0; }
  .header-catalog-link { padding: 5px 8px; }
  .home-section-head { padding-top: 2px; }
  .service-cta { grid-template-columns: 1fr; min-height: 0; margin-bottom: 54px; }
  .service-cta-intro { min-height: 280px; padding: 30px; }
  .service-cta-contact { grid-template-columns: 1fr; gap: 24px; padding: 30px; }
  .service-catalog-link { justify-self: start; }
  .chapter-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 23px; }
  .chapter-card { min-height: 204px; padding: 22px; }
  .chapter-card h3 { font-size: 21px; }
  .chapter-card-support {
    display: flex;
    min-height: 260px;
    gap: 0;
  }
  .chapter-card-support h3 { font-size: 25px; }
  .chapter-card-support .card-cta { align-self: flex-start; padding: 10px 14px; margin-top: auto; }
  .site-footer { display: grid; gap: 4px; padding: 21px 18px 28px; }

  .catalog-page { padding: 0 18px 55px; }
  .catalog-hero { grid-template-columns: 1fr; gap: 22px; padding: 54px 0 25px; }
  .catalog-title { font-size: clamp(37px, 11vw, 56px); }
  .catalog-description { margin-top: 17px; font-size: 15px; }
  .catalog-search { min-height: 50px; }
  .catalog-filters { gap: 7px; padding-bottom: 27px; }
  .catalog-filter { min-height: 36px; padding: 7px 10px; }
  .catalog-list-head { display: block; padding: 0 0 18px; }
  .catalog-list-head > p { margin-top: 11px; }
  .product-grid { grid-template-columns: 1fr; gap: 1px; }
  .product-card { grid-template-rows: 122px minmax(0, 1fr); }
  .product-card-visual { padding: 19px; }
  .product-card-number { right: 19px; bottom: 14px; }
  .product-card-body { min-height: 0; padding: 20px; }
  .catalog-empty { grid-template-columns: 1fr; gap: 18px; padding: 23px; }
  .catalog-empty a { justify-self: start; }

  .chapter-topbar { min-height: 61px; padding: 0 18px; }
  .chapter-current { display: none; }
  .chapter-layout { display: block; }
  .chapter-sidebar {
    display: grid;
    position: sticky;
    z-index: 18;
    top: 0;
    height: auto;
    padding: 8px 10px;
    overflow: hidden;
    background: rgba(255,255,255,.95);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 7px 17px rgba(20, 42, 77, .05);
  }
  .chapter-sidebar .eyebrow,
  .chapter-switcher,
  .toc-divider { display: none; }
  .toc-title { display: none; }
  .chapter-toc { display: flex; gap: 6px; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .chapter-toc::-webkit-scrollbar { display: none; }
  .chapter-toc a { flex: 0 0 auto; padding: 7px 9px; border-left: 0; border-radius: 7px; font-size: 12px; white-space: nowrap; }
  .chapter-toc a.is-active { background: var(--blue-soft); border-left: 0; }
  .chapter-content { width: 100%; padding: 0 19px 54px; }
  .chapter-hero { grid-template-columns: 1fr 68px; gap: 14px; padding: 60px 0 45px; }
  .chapter-hero h1 { font-size: clamp(34px, 10vw, 49px); }
  .chapter-number-display { align-self: center; font-size: 64px; }
  .chapter-hero-summary { margin-top: 17px; font-size: 15px; }
  .source-banner { margin-bottom: 51px; padding: 16px; }
  .source-section { padding-top: 59px; scroll-margin-top: 113px; }
  .support-contact-banner { grid-template-columns: 1fr; gap: 22px; margin-bottom: 58px; }
  .section-heading { gap: 9px; padding-bottom: 14px; }
  .section-heading h2 { font-size: 26px; }
  .source-paragraph { margin-bottom: 16px; font-size: 15px; line-height: 1.84; }
  .link-entry { gap: 8px; padding: 10px; }
  .link-entry-label { font-size: 12px; }
  .link-entry-url { font-size: 10px; }
  .source-figure { margin: 23px 0; }
  .chapter-end { grid-template-columns: 1fr; gap: 16px; margin-top: 57px; padding: 23px; }
}

@media (max-width: 400px) {
  .brand { font-size: 13px; }
  .brand-mark { width: 29px; height: 29px; }
  .chapter-hero { grid-template-columns: 1fr 54px; }
  .chapter-number-display { font-size: 53px; }
  .link-entry {
    grid-template-areas:
      "main"
      "edit"
      "editor";
    grid-template-columns: minmax(0, 1fr);
  }
  .link-entry-edit { justify-self: start; }
  .link-entry-label { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
