@font-face {
  font-family: Manrope;
  src: url("../vendor/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2212;
}

@font-face {
  font-family: Manrope;
  src: url("../vendor/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --ink: #1d1733;
  --muted: #625c70;
  --accent: #5835e8;
  --accent-deep: #4623ca;
  --line: #e9e5f0;
  --tint: #f8f7fd;
  --bs-body-font-family: Manrope, system-ui, sans-serif;
  --bs-body-color: var(--ink);
  --bs-link-color: var(--accent-deep);
  --bs-link-color-rgb: 70, 35, 202;
}

body { min-width: 0; }
a { text-underline-offset: .18em; }
p { line-height: 1.65; }
h1, h2, h3, .brand { font-weight: 800; }
h2 { letter-spacing: -.045em; }
.shell { max-width: 1192px; --bs-gutter-x: clamp(2rem, 6vw, 4.5rem); }
.skip-link { position: absolute; z-index: 1100; padding: .75rem; background: white; }
:focus-visible { outline: 3px solid #6848ee; outline-offset: 4px; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.navbar { padding-block: .9rem; }
.brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.55rem;
  letter-spacing: -.075em;
  line-height: 1;
}
.brand:hover { color: var(--accent-deep); }
.brand-accent { color: var(--accent); }
.brand-mark,
.platform-mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  flex-shrink: 0;
}
.brand-mark { width: 34px; height: 34px; gap: 3px; padding: 8px; border-radius: 9px; background: var(--accent); }
.brand-mark i { border-radius: 1.5px; background: white; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { background: #cdb8ff; }
.navbar .nav-link { color: var(--muted); font-size: .9rem; font-weight: 750; }
.navbar .nav-link:hover, .navbar .nav-link[aria-current] { color: var(--accent-deep); }
.navbar :is(.nav-catalog, .nav-link[href$="#catalog"]) { color: var(--accent-deep); padding-inline: 1rem; background: #f0ebff; border-radius: .55rem; }
.navbar-toggler { padding: .3rem .5rem; border-color: var(--line); }

.home-hero { background: var(--tint); border-bottom: 1px solid var(--line); }
.hero-grid {
  min-height: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: 3.35rem;
}
.platform {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  padding: .38rem .65rem;
  border: 1px solid #ded5ff;
  border-radius: .45rem;
  background: #efebff;
  color: #4c2ab9;
  font-size: .83rem;
  font-weight: 800;
}
.platform-mark { width: 12px; height: 12px; gap: 2px; transform: rotate(-8deg); }
.platform-mark i { border-radius: 1px; background: currentColor; }
.platform-mark i:nth-child(2) { opacity: .5; }
.home-hero h1, .detail-hero h1 {
  margin: .95rem 0 1rem;
  font-size: clamp(2.75rem, 5.6vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -.078em;
}
.home-hero h1 span { color: var(--accent); }
.hero-copy p, .detail-intro { max-width: 32rem; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.14rem); }
.hero-copy p { margin-bottom: 1.6rem; }
.oa-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent-deep);
  --bs-btn-hover-border-color: var(--accent-deep);
  --bs-btn-active-bg: var(--accent-deep);
  --bs-btn-active-border-color: var(--accent-deep);
  --bs-btn-disabled-color: #524b62;
  --bs-btn-disabled-bg: #e9e5f1;
  --bs-btn-disabled-border-color: #e9e5f1;
  --bs-btn-disabled-opacity: 1;
  --bs-btn-focus-shadow-rgb: 88, 53, 232;
  padding: .78rem 1.2rem;
  border-radius: .6rem;
  font-weight: 800;
  font-size: .925rem;
}

.hero-visual {
  position: relative;
  isolation: isolate;
  height: clamp(300px, 33vw, 405px);
  overflow: hidden;
  border: 1px solid #ded3ff;
  border-radius: 1.65rem;
  background:
    radial-gradient(ellipse at 30% 0%, #f1eaff 0%, transparent 54%),
    radial-gradient(circle at 76% 77%, #a285f9 0%, transparent 65%),
    linear-gradient(140deg, #e9dfff, #c9b7ff 57%, #b39cf9);
}
.hero-visual::before,
.art-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 17px 17px;
  pointer-events: none;
}
.hero-visual::before { content: ""; color: #6546be; opacity: .23; mask-image: linear-gradient(140deg, #000, transparent 92%); }
.hero-orbit { position: absolute; border: 1px solid #fff9; border-radius: 50%; transform: rotate(-21deg); }
.orbit-outer { inset: 10% 7% 15%; }
.orbit-inner { inset: 20% 15% 22%; }
.visual-spark { position: absolute; color: #633bbd; font-size: 1.75rem; line-height: 1; }
.spark-one { top: 13%; left: 14%; }
.spark-two { bottom: 12%; right: 12%; font-size: 1.3rem; }
.hero-window {
  position: absolute;
  width: 72%;
  left: 13%;
  top: 24%;
  min-width: 205px;
  padding: 0 .8rem .8rem;
  border: 1px solid #fff;
  border-radius: 1rem;
  background: #fcfbff;
  box-shadow: 0 20px 42px #4d28a842;
  transform: rotate(-8deg);
}
.window-bar { display: flex; align-items: center; gap: 4px; height: 1.75rem; }
.window-bar span { width: 6px; height: 6px; border-radius: 50%; background: #c5b4ed; }
.window-body { display: grid; grid-template-columns: .85fr 1fr; gap: 11px; }
.window-product {
  position: relative;
  min-height: clamp(90px, 11vw, 143px);
  display: grid;
  place-items: center;
  border-radius: .65rem;
  background: radial-gradient(circle at 50% 34%, #e2d3ff, #c5adfa);
}
.product-cube {
  width: clamp(38px, 5vw, 67px);
  aspect-ratio: 1;
  border-radius: 19%;
  background: linear-gradient(145deg, #9b74fd 0 32%, #6a3ee8 40%, #4c24b1);
  box-shadow: inset 1px 1px 2px #f1dcff, 8px 13px 13px #563aaf71;
  transform: rotate(16deg) skewY(-13deg);
}
.window-detail { align-self: center; display: grid; gap: clamp(5px, 1vw, 9px); }
.window-detail i { width: 90%; height: 7px; border-radius: 12px; background: #e6dff5; }
.window-detail i:first-child { width: 72%; height: 10px; background: #382861; }
.window-detail i:nth-child(3) { width: 60%; }
.window-button { width: fit-content; margin-top: 2px; padding: .32rem .55rem; border-radius: .34rem; color: #fff; background: #6037df; font-size: clamp(.49rem, .82vw, .69rem); font-weight: 800; white-space: nowrap; }
.hero-float {
  position: absolute;
  display: flex;
  gap: .55rem;
  align-items: center;
  padding: .56rem .72rem .56rem .56rem;
  border: 1px solid #fff;
  border-radius: .72rem;
  background: #fff;
  box-shadow: 0 12px 28px #4a25953d;
}
.float-top { top: 12%; right: 6%; transform: rotate(5deg); }
.float-bottom { bottom: 12%; left: 8%; transform: rotate(-4deg); }
.hero-float strong, .hero-float div > span:not(.bolt, .price-tag) { display: block; }
.hero-float strong { font-size: clamp(.63rem, 1.1vw, .87rem); }
.hero-float div > span:not(.bolt, .price-tag) { color: #625c70; font-size: clamp(.51rem, .82vw, .69rem); }
.float-icon, .art-float { display: grid; place-items: center; aspect-ratio: 1; }
.float-icon { width: 2.1rem; border-radius: .5rem; background: #ede7ff; color: #6437e8; }
.float-bottom .float-icon { color: #b94424; background: #ffe9dd; }
.bolt { width: 45%; height: 62%; display: block; background: currentColor; clip-path: polygon(55% 0, 100% 0, 70% 39%, 98% 39%, 19% 100%, 34% 56%, 0 56%); }
.price-tag { position: relative; display: block; width: 56%; height: 39%; border-radius: 2px; background: currentColor; clip-path: polygon(0 0, 73% 0, 100% 50%, 73% 100%, 0 100%); transform: rotate(-35deg); }
.price-tag i { position: absolute; right: 24%; top: 34%; height: 29%; aspect-ratio: 1; border-radius: 50%; background: #fff0e5; }

.catalog-section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.55rem; }
.catalog-heading h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.catalog-count { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.module-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.module-card:hover, .module-card:focus-within { transform: translateY(-3px); border-color: #cdbdfb; box-shadow: 0 12px 30px #49377315; }
.module-card:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.module-art {
  position: relative;
  isolation: isolate;
  height: clamp(136px, 17vw, 193px);
  overflow: hidden;
  background: var(--art-bg);
  color: var(--art-ink);
}
.purple { --art-bg: #eee9ff; --art-ink: #643de4; --art-light: #dcd0ff; --art-shadow: #6340ae35; }
.orange { --art-bg: #fff0e6; --art-ink: #c24d26; --art-light: #fbd6c0; --art-shadow: #af56283c; }
.art-grid { opacity: .20; mask-image: linear-gradient(100deg, transparent 4%, #000 55%); }
.module-art::before {
  content: "";
  position: absolute;
  width: clamp(140px, 21vw, 245px);
  aspect-ratio: 1;
  border: 1px solid var(--art-light);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-54%, -50%);
  box-shadow: 0 0 0 13px color-mix(in srgb, var(--art-light) 36%, transparent);
}
.art-window {
  position: absolute;
  width: clamp(107px, 13vw, 155px);
  padding: .58rem .65rem .66rem;
  border: 1px solid #fff;
  border-radius: .7rem;
  left: 50%;
  top: 50%;
  background: #fffcff;
  box-shadow: 0 10px 22px var(--art-shadow);
  transform: translate(-65%, -48%) rotate(-10deg);
}
.orange .art-window { transform: translate(-62%, -49%) rotate(8deg); background: #fffdfa; }
.art-window span { display: block; }
.mini-chrome { width: 4px; height: 4px; border-radius: 50%; background: var(--art-light); box-shadow: 7px 0 var(--art-light), 14px 0 var(--art-light); margin-bottom: .47rem; }
.mock-line { height: 5px; border-radius: 4px; background: var(--art-ink); opacity: .76; }
.width-60 { width: 60%; }
.mock-input { margin-top: .35rem; height: 10px; border: 1px solid var(--art-light); border-radius: 3px; }
.mock-action { margin-top: .35rem; height: 9px; width: 66%; border-radius: 3px; background: var(--art-light); }
.art-float {
  position: absolute;
  width: clamp(42px, 5.6vw, 68px);
  left: 53%;
  top: 31%;
  transform: rotate(9deg);
  border-radius: 24%;
  background: var(--art-ink);
  color: #fff;
  box-shadow: 0 10px 24px var(--art-shadow);
}
.orange .art-float { transform: rotate(-10deg); }
.orange .art-float .price-tag i { background: var(--art-ink); }
.card-body-custom { flex: 1; display: flex; flex-direction: column; padding: clamp(1rem, 3vw, 1.55rem); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: .65rem; color: var(--muted); font-size: .85rem; font-weight: 700; }
.free-tag { width: fit-content; border-radius: 100px; background: #e7f6ee; color: #216143; padding: .27rem .65rem; font-weight: 800; font-size: .82rem; white-space: nowrap; }
.card-body-custom h3 { margin: .55rem 0 .3rem; font-size: clamp(1.35rem, 2.5vw, 1.7rem); letter-spacing: -.045em; }
.card-body-custom h3 a { color: var(--ink); text-decoration: none; }
.card-body-custom p { color: var(--muted); margin-bottom: .85rem; }
.card-action { color: var(--accent-deep); font-weight: 800; font-size: .9rem; margin-top: auto; }
.module-card:hover .card-action, .module-card:focus-within .card-action { text-decoration: underline; }

.detail-hero { padding-block: 1.35rem clamp(2.25rem, 5vw, 4.7rem); background: var(--tint); border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: .875rem; margin-bottom: clamp(1.75rem, 5vw, 3.5rem); }
.detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.detail-hero h1 { max-width: 46rem; font-size: clamp(2.65rem, 5.8vw, 5rem); }
.detail-intro { margin-bottom: 1.25rem; }
.detail-hero .module-art { border-radius: 1rem; height: clamp(165px, 24vw, 285px); }
.detail-hero .art-window { scale: 1.18; }
.detail-hero .art-float { scale: 1.12; }
.detail-content { padding-block: clamp(2rem, 5vw, 4.2rem); }
.detail-content h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
.detail-content section > p, .feature-list p { color: var(--muted); }
.feature-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.feature-list li { padding: .85rem 0; border-top: 1px solid var(--line); }
.feature-list strong { font-weight: 800; }
.feature-list p { margin: .18rem 0 0; }
.download-panel { padding: 1.3rem; border: 1px solid var(--line); background: var(--tint); border-radius: 1rem; }
.download-panel h2 { font-size: 1.35rem; }
.download-panel dl div { display: flex; justify-content: space-between; align-items: baseline; gap: .65rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.download-panel dt { color: var(--muted); font-weight: 600; }
.download-panel dd { margin: 0; text-align: end; font-weight: 800; }
.download-note { margin: .55rem 0 0; color: var(--muted); font-size: .85rem; }
.related-module { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.related-module p { color: var(--muted); margin-bottom: .2rem; font-size: .88rem; }
.related-module a { font-weight: 800; }

.site-footer { border-top: 1px solid var(--line); background: var(--tint); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .9rem 1.2rem; flex-wrap: wrap; padding-block: 1.4rem; }
.footer-inner small { color: var(--muted); margin-inline-end: auto; }
.footer-inner > a:last-child { font-size: .9rem; font-weight: 750; }

@media (max-width: 767.98px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 2.4rem; }
  .hero-visual { height: clamp(255px, 65vw, 340px); }
  .window-product { min-height: clamp(80px, 20vw, 130px); }
  .detail-hero .module-art { height: 170px; }
}
@media (max-width: 575.98px) {
  .navbar-nav { padding-top: .8rem; }
  .navbar :is(.nav-catalog, .nav-link[href$="#catalog"]) { width: fit-content; margin-top: .25rem; }
  .hero-grid { gap: 1.65rem; }
  .hero-visual { border-radius: 1.05rem; }
  .catalog-heading { align-items: baseline; }
  .catalog-count { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .module-card { transition: none; }
}

.card-meta, .detail-meta, .module-specs { overflow-wrap: anywhere; }
.detail-hero h1, .card-body-custom h3 { overflow-wrap: anywhere; }
.module-specs dt, .module-specs dd { min-width: 0; }
.module-specs dt { flex: 1 1 46%; }
.module-specs dd { flex: 0 1 50%; }
.module-copy img { max-width: 100%; height: auto; }
.card-meta .free-tag, .detail-meta .free-tag { white-space: normal; }
