:root {
  --bg: #f3f6fc;
  --surface: #ffffff;
  --surface-soft: #f8f9ff;
  --line: #dce3f0;
  --text: #172033;
  --muted: #5f6e86;
  --dim: #8290a7;
  --primary: #5b5cf0;
  --primary-2: #7758ee;
  --green: #159f69;
  --shadow: 0 18px 48px rgba(31, 45, 78, .09);
  --shadow-hover: 0 22px 56px rgba(31, 45, 78, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 16px/1.65 "Nunito Sans", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 82% 0, rgba(91, 92, 240, .13), transparent 34%),
    radial-gradient(circle at 8% 70%, rgba(15, 170, 180, .06), transparent 28%),
    linear-gradient(180deg, #fbfcff, #f3f6fc 58%);
}
body.album-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid rgba(91, 92, 240, .35); outline-offset: 3px; }

header {
  height: 74px;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(207, 215, 230, .85);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(20px);
}
.top {
  max-width: 1320px;
  height: 100%;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand > i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 11px;
  box-shadow: 0 9px 22px rgba(91, 92, 240, .24);
  font: 700 12px "JetBrains Mono", monospace;
  font-style: normal;
}
.brand b { font: 700 16px "Nunito Sans", "Segoe UI", sans-serif; }
.brand small { color: var(--dim); font: 500 11px "JetBrains Mono", monospace; }
nav { display: flex; gap: 26px; margin-left: auto; }
nav a { color: var(--muted); font-size: 14px; font-weight: 700; }
nav a:hover { color: var(--primary); }
.live {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 15px;
  color: var(--primary);
  background: #fff;
  border: 1px solid #d7deeb;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
}
.live:hover { border-color: var(--primary); box-shadow: 0 8px 22px rgba(91, 92, 240, .13); }
.live i, .status i, .quick dd i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(21, 159, 105, .11);
}

.layout {
  max-width: 1320px;
  margin: auto;
  padding: 46px 28px 96px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 224px;
  gap: 28px;
}
.toc, .quick { position: sticky; top: 104px; height: max-content; }
.toc, .quick, .overview, .doc {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.toc { display: grid; gap: 4px; padding: 18px; }
.toc > b, .quick > b, .heading small {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .045em;
}
.toc > a {
  color: var(--muted);
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.toc > a:hover { color: var(--primary); background: #f0f1ff; }
.toc > div { display: grid; margin-top: 15px; padding: 15px 9px 3px; border-top: 1px solid var(--line); }
.toc strong { color: var(--primary); font: 700 21px "JetBrains Mono", monospace; }
.toc small, .toc span { color: var(--dim); font: 600 10px "JetBrains Mono", monospace; }

article { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.overview, .doc { padding: 32px; }
.path { margin: 0; color: var(--dim); font-size: 13px; }
.path a { color: var(--primary); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  padding: 8px 12px;
  color: var(--green);
  background: rgba(21, 159, 105, .09);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 800;
}
h1, h2, h3 { font-family: "Nunito Sans", "Segoe UI", sans-serif; }
h1 {
  max-width: 820px;
  margin: 18px 0;
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 1.1;
  letter-spacing: -2px;
  font-weight: 800;
}
h1 em { color: var(--primary); font-style: normal; }
.lead { max-width: 800px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.actions { display: flex; gap: 12px; margin: 28px 0; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #d4dceb;
  border-radius: 11px;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 10px 26px rgba(91, 92, 240, .13); }
.btn.primary { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.cover { margin: 30px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.cover figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  color: var(--dim);
  border-top: 1px solid var(--line);
  font: 600 11px "JetBrains Mono", monospace;
}

.doc { scroll-margin-top: 100px; }
.heading { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.heading h2 { margin: 7px 0 0; font-size: 31px; letter-spacing: -.8px; }
.heading p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.specs dl { display: grid; grid-template-columns: 140px 1fr; margin: 0; padding: 17px; border-bottom: 1px solid var(--line); }
.specs dl:nth-child(odd) { border-right: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: 14px; }
.specs dd { margin: 0; color: #303a50; font: 600 13px "JetBrains Mono", monospace; }
.note { margin: 14px 0 0; padding: 14px 16px; color: #56627c; background: #f2f3ff; border: 1px solid #d7dbff; border-radius: 10px; font-size: 14px; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gallery figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.gallery figure:hover { transform: translateY(-3px); border-color: #c7cdf9; box-shadow: var(--shadow-hover); }
.gallery a { position: relative; display: block; cursor: zoom-in; }
.gallery a::after {
  content: "Xem album";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(23, 32, 51, .82);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(4px);
  transition: .2s;
}
.gallery a:hover::after { opacity: 1; transform: none; }
.gallery img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gallery figcaption { display: grid; gap: 4px; padding: 15px 16px; border-top: 1px solid var(--line); }
.gallery b { color: var(--primary); font: 700 12px "JetBrains Mono", monospace; }
.gallery span { color: var(--muted); font-size: 14px; }

.modules { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.modules > div {
  --feature: #5b5cf0;
  --feature-soft: #f0f0ff;
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 7px 14px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--feature) 24%, white);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--feature-soft), #fff 58%);
}
.modules > div::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--feature); }
.modules > div:nth-child(2) { --feature: #078aa5; --feature-soft: #eafaff; }
.modules > div:nth-child(3) { --feature: #d17b00; --feature-soft: #fff7e6; }
.modules > div:nth-child(4) { --feature: #159f69; --feature-soft: #ebfbf4; }
.modules > div:nth-child(5) { --feature: #2574d9; --feature-soft: #edf5ff; }
.modules > div:nth-child(6) { --feature: #c2448d; --feature-soft: #fff0f8; }
.modules code {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--feature);
  border-radius: 12px;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--feature) 24%, transparent);
  font: 800 12px "JetBrains Mono", monospace;
}
.modules b { font-size: 16px; font-family: "Nunito Sans", "Segoe UI", sans-serif; }
.modules p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.terminal { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fbfcff; }
.terminal > div { height: 45px; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: #f3f5fa; border-bottom: 1px solid var(--line); }
.terminal > div i { width: 9px; height: 9px; border-radius: 50%; background: #ff6e72; }
.terminal > div i:nth-child(2) { background: #f2bd4b; }
.terminal > div i:nth-child(3) { background: #3abf88; }
.terminal > div span { margin-left: 8px; color: var(--dim); font: 600 11px "JetBrains Mono", monospace; }
.terminal pre { margin: 0; padding: 22px; overflow: auto; color: #59667e; font: 13px/1.9 "JetBrains Mono", monospace; }
.terminal pre b { color: var(--primary); }

.delivery { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.delivery > div { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.delivery h3 { margin-top: 0; font-size: 18px; }
.delivery p { color: var(--muted); font-size: 14px; }
.delivery dl { display: grid; grid-template-columns: 105px 1fr; gap: 7px; font-size: 14px; }
.delivery dd { margin: 0; color: var(--primary); font: 700 13px "JetBrains Mono", monospace; }
.telegram { display: block; margin-top: 13px; color: var(--primary); font-size: 14px; font-weight: 700; }

.quick { display: grid; gap: 10px; padding: 20px; }
.quick .btn { font-size: 13px; }
.quick hr { width: 100%; margin: 8px 0; border: 0; border-top: 1px solid var(--line); }
.quick dl { margin: 0; }
.quick dt { margin-top: 11px; color: var(--dim); font-size: 12px; }
.quick dd { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font: 600 12px "JetBrains Mono", monospace; }

.album { display: none; position: fixed; inset: 0; z-index: 100; padding: 24px; }
.album.open { display: grid; place-items: center; }
.album-backdrop { position: absolute; inset: 0; background: rgba(10, 15, 28, .82); backdrop-filter: blur(10px); }
.album-dialog {
  position: relative;
  width: min(1180px, 96vw);
  max-height: 94vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
}
.album-head { position: static; height: auto; display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.album-head span { color: var(--primary); font: 700 12px "JetBrains Mono", monospace; }
.album-head h2 { margin: 2px 0 0; font-size: 20px; }
.album-close, .album-nav, .album-thumbs button { border: 0; cursor: pointer; }
.album-close { width: 44px; height: 44px; color: #354056; background: #eef1f7; border-radius: 12px; font-size: 27px; line-height: 1; }
.album-stage { position: relative; display: grid; place-items: center; min-height: 400px; background: #101727; }
.album-stage img { width: 100%; max-height: 68vh; object-fit: contain; }
.album-nav { position: absolute; top: 50%; z-index: 2; width: 48px; height: 58px; color: #fff; background: rgba(15, 22, 38, .72); border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; transform: translateY(-50%); font-size: 35px; }
.album-nav:hover { background: var(--primary); }
.album-nav.prev { left: 16px; }
.album-nav.next { right: 16px; }
.album-caption { padding: 15px 20px; }
.album-caption b { color: var(--primary); font: 700 13px "JetBrains Mono", monospace; }
.album-caption p { margin: 3px 0 0; color: var(--muted); font-size: 15px; }
.album-thumbs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; padding: 0 20px 20px; }
.album-thumbs button { padding: 0; overflow: hidden; background: #edf0f6; border: 3px solid transparent; border-radius: 9px; opacity: .66; }
.album-thumbs button.active { border-color: var(--primary); opacity: 1; }
.album-thumbs img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

footer { max-width: 1320px; margin: auto; padding: 28px; display: flex; justify-content: space-between; color: var(--dim); border-top: 1px solid var(--line); font-size: 13px; }
footer span { color: var(--muted); }
footer a:hover { color: var(--primary); }

@media (max-width: 1100px) {
  .layout { grid-template-columns: 175px minmax(0, 1fr); }
  .quick { display: none; }
}

@media (max-width: 760px) {
  nav { display: none; }
  .top { padding: 0 18px; }
  .layout { display: block; padding: 24px 16px 64px; }
  .toc { position: static; display: flex; margin-bottom: 18px; padding: 9px; overflow-x: auto; border-radius: 12px; box-shadow: 0 8px 26px rgba(31, 45, 78, .06); }
  .toc > b, .toc > div { display: none; }
  .toc a { white-space: nowrap; font-size: 13px; }
  article { gap: 18px; }
  .overview, .doc { padding: 22px; border-radius: 16px; }
  .specs, .gallery, .delivery, .modules { grid-template-columns: 1fr; }
  .specs dl { border-right: 0 !important; }
  .album { padding: 10px; }
  .album-dialog { width: 100%; max-height: 96vh; }
  .album-stage { min-height: 220px; }
  .album-thumbs { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 430px) {
  .brand small { display: none; }
  .live { width: auto; padding: 9px 12px; font-size: 0; }
  .live::after { content: "Demo"; font-size: 12px; }
  .live i { display: none; }
  .overview, .doc { padding: 19px; }
  h1 { font-size: 34px; letter-spacing: -1.25px; }
  .lead { font-size: 16px; }
  .actions { display: grid; }
  .cover figcaption { display: grid; }
  .specs dl { grid-template-columns: 1fr; gap: 5px; }
  .heading h2 { font-size: 27px; }
  .modules > div { grid-template-columns: 44px 1fr; padding: 17px; }
  .album-head h2 { font-size: 16px; }
  .album-nav { width: 42px; height: 52px; }
  .album-nav.prev { left: 8px; }
  .album-nav.next { right: 8px; }
}

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

/* Shared product system: the existing Webshop layout is the visual baseline. */
.skip-link{position:fixed;top:-80px;left:16px;z-index:200;background:#fff;padding:12px;border:2px solid var(--primary)}
.skip-link:focus{top:10px}
.breadcrumb{display:flex;flex-wrap:wrap;gap:6px;margin:0;color:var(--muted);font-size:12px;line-height:1.6}
.breadcrumb a{color:var(--primary);font-size:12px;font-weight:600;min-height:24px;display:inline-flex;align-items:center}
.breadcrumb [aria-current]{font-weight:700}
.overview-description{margin-top:24px;color:var(--muted);font-size:15px;line-height:1.8}
.overview-description p:last-child{margin-bottom:0}
.toc .source-type{font-size:15px;margin:3px 0;line-height:1.6}
.quick-product{font-size:13px;line-height:1.6;color:var(--primary);font-weight:800;padding:8px 0}
.quick dd{font-family:"Nunito Sans","Segoe UI",sans-serif;flex-wrap:wrap;font-size:13px}
.modules{grid-template-columns:1fr}
.modules>div{padding:20px;grid-template-columns:42px minmax(0,1fr)}
.modules b{font-size:17px;line-height:1.5}
.modules p{line-height:1.8;font-size:15px}
.doc>p{color:var(--muted);font-size:15px;line-height:1.8}
.doc>p strong{color:var(--text)}
.specs dd{font-family:"Nunito Sans","Segoe UI",sans-serif;font-size:14px}
.specs dl{grid-template-columns:105px minmax(0,1fr);gap:8px}
.workflow{list-style:none;padding:0;counter-reset:step;display:grid;gap:12px}
.workflow li{counter-increment:step;position:relative;padding:16px 16px 16px 58px;background:var(--surface-soft);border:1px solid var(--line);border-radius:12px}
.workflow li:before{content:counter(step,decimal-leading-zero);position:absolute;left:16px;top:18px;font:700 14px "JetBrains Mono",monospace;color:var(--primary)}
.workflow h3{font-size:16px;margin:0 0 4px}
.workflow p{font-size:15px;color:var(--muted);margin:0;line-height:1.7}
.audience{padding-left:22px;color:var(--muted);font-size:15px;line-height:1.9}
.audience li+li{margin-top:10px}
.gallery span,.gallery b{font-family:"Nunito Sans","Segoe UI",sans-serif}
.gallery a:after{opacity:1;transform:none}
.gallery img{object-fit:contain;background:#f3f6fc}
.cover a{display:block}
.cover img,.gallery img{height:auto}
.album-stage img{width:auto;max-width:100%;height:auto}
.album-thumbs img{object-fit:contain}
.album-head h2{line-height:1.5}
.actions{flex-wrap:wrap}
.btn{line-height:1.5}
.related-grid,.catalog-grid{display:grid;gap:20px}
.related-card{display:block;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
.related-image{display:block;background:var(--surface-soft)}
.related-image img{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}
.related-body{padding:20px}
.related-body small{color:var(--primary);font-size:11px;font-weight:800}
.related-body h3{font-size:21px;margin:8px 0;line-height:1.4}
.related-body p{font-size:15px;color:var(--muted);margin:0;line-height:1.7}
.related-body .actions{margin:18px 0 0}
.catalog-link{display:inline-flex;margin-top:20px;color:var(--primary);font-size:14px;font-weight:800;min-height:44px;align-items:center}
.catalog{max-width:1200px;margin:auto;padding:40px 28px 80px}
.catalog h1{font-size:42px;line-height:1.3;letter-spacing:-1px}
.catalog-grid{grid-template-columns:1fr 1fr;margin:30px 0}
.catalog .related-card{box-shadow:var(--shadow)}
.layout h1{font-size:clamp(30px,2.8vw,42px);line-height:1.25;letter-spacing:-1px}
.layout .heading h2{font-size:27px;line-height:1.35;letter-spacing:-.5px}
.toc{max-height:calc(100vh - 124px);overflow-y:auto}
.toc>a{padding:7px 9px}
footer{gap:16px;flex-wrap:wrap}
@media(min-width:1600px){.top,.layout,footer{max-width:1500px}.layout{grid-template-columns:190px minmax(0,1fr) 224px;gap:28px}}
@media(max-width:760px){.site-header nav{display:flex;gap:12px}.site-header nav a{font-size:12px}.top{gap:12px}.brand small{display:none}.site-header .live{display:none}.top .brand b{font-size:14px}.layout .breadcrumb{display:flex}.toc{max-height:none;overflow-x:auto}.toc>a{min-height:44px;display:flex;align-items:center}.gallery{grid-template-columns:1fr 1fr;gap:12px}.gallery figcaption{padding:10px}.gallery b{font-size:12px}.gallery span{font-size:12px}.gallery a:after{font-size:10px;right:6px;bottom:6px;padding:5px 7px}.catalog{padding:24px 16px 56px}.catalog h1{font-size:30px}.catalog-grid{grid-template-columns:1fr}.layout h1{font-size:30px}.layout .heading h2{font-size:24px}.specs dl{grid-template-columns:1fr;gap:4px}.modules>div{padding:16px;gap:8px 10px}.modules p{font-size:14px}.lead{font-size:16px}.related-body{padding:16px}}
@media(max-width:430px){.top{padding:0 12px;gap:10px}.site-header nav{gap:10px}.site-header nav a{font-size:12px}.layout .actions{display:flex}.layout .actions .btn{flex:1 1 auto}.gallery{grid-template-columns:1fr}.layout h1{font-size:29px}.breadcrumb [aria-current]{display:block}.related-body .actions{display:flex}.btn{padding:11px 14px;min-height:44px}.modules>div{grid-template-columns:32px minmax(0,1fr)}.modules code{width:30px;height:34px;font-size:11px}.modules b{font-size:16px}}
.brand>i{overflow:hidden;border:0;background:url('/assets/logo-mark.svg') center/cover no-repeat;box-shadow:0 9px 22px rgba(8,102,255,.22);font-size:0}
