@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2191, U+2193;
}

:root {
  color-scheme: light;
  --background: #f7f8f6;
  --paper: #fff;
  --ink: #16252b;
  --muted: #4e6463;
  --line: #dce5df;
  --accent: #d4f66d;
  --green: #225344;
  --night: #122023;
  --header-height: 66px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 400 1rem/1.56 Inter, system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid #458241;
  outline-offset: 3px;
}
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.045em; }
p { margin: 0; }

.frame { width: min(1380px, calc(100% - 72px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  color: #f4f8f4;
  background: var(--night);
  border-bottom: 1px solid #304540;
}

.topbar, .footer-inner {
  min-height: var(--header-height);
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; gap: 11px; align-items: center; white-space: nowrap; }
.brand strong { font-size: 1.36rem; letter-spacing: -.06em; }
.brand-mark {
  width: 22px;
  height: 14px;
  transform: skewX(-27deg);
  background: linear-gradient(90deg, var(--accent) 44%, transparent 44% 55%, var(--accent) 55%);
}

.brand-product {
  color: #c8d9d1;
  border-left: 1px solid #45605a;
  padding-left: 11px;
  font-size: .87rem;
}

.product-link { color: #dce8de; font-size: .87rem; font-weight: 650; }
.product-link:hover { color: var(--accent); }

.shell {
  min-height: calc(100vh - 138px);
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 68px);
  align-items: start;
}

.sidebar {
  position: sticky;
  top: var(--header-height);
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: 28px 16px 28px 0;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 10px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 720;
  list-style: none;
  cursor: pointer;
}

.sidebar-heading::-webkit-details-marker, .nav-group summary::-webkit-details-marker { display: none; }

.sidebar a, .nav-group summary {
  display: block;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: .875rem;
  line-height: 1.36;
}

.sidebar .nav-home { margin-bottom: 10px; font-weight: 670; }

.sidebar a:hover, .nav-group summary:hover { background: #eaf1eb; }

.sidebar a[aria-current="page"] {
  background: #e6efdc;
  color: #234c34;
  box-shadow: inset 3px 0 #73a34c;
  font-weight: 680;
}

.nav-group { padding-block: 2px; }
.nav-group summary {
  display: flex;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 650;
}

.nav-group summary::after, .sidebar-heading::after {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin: -3px 1px 0 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

.nav-group[open] > summary::after, .sidebar[open] > .sidebar-heading::after { transform: rotate(45deg); }
.nav-group ul { margin: 3px 0 7px 12px; padding: 0 0 0 7px; border-left: 1px solid var(--line); list-style: none; }
.nav-group li a { padding-block: 7px; color: #405855; }

.main { min-width: 0; padding: 34px 0 76px; }
.main:focus { outline: none; }

.hero {
  padding: clamp(28px, 5.3vw, 70px);
  border-radius: 22px;
  overflow: hidden;
  color: #f6fbf7;
  background-color: #162e2c;
  background-image:
    linear-gradient(90deg, #142a29 14%, #142a29e8 57%, #294a3870),
    repeating-linear-gradient(0deg, #b4cba326 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, #b4cba326 0 1px, transparent 1px 38px),
    radial-gradient(ellipse at 100% 30%, #456e44, transparent 68%);
}

.hero h1 { font-size: clamp(2.45rem, 5.2vw, 5.15rem); font-weight: 780; }
.hero p { max-width: 36ch; margin: 17px 0 24px; color: #d3e4db; font-size: clamp(1rem, 1.3vw, 1.12rem); }

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  padding: 5px;
  border: 1px solid #bdcec4;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}

.search:focus-within { border-color: #78a85a; }
.search-icon {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin: 0 2px 3px 10px;
  border: 1.5px solid #4e6461;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 1.5px;
  right: -5px;
  bottom: -2px;
  transform: rotate(46deg);
  background: #4e6461;
}

.search input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 6px 3px;
  font: inherit;
  font-size: .92rem;
}

.search input::placeholder { color: #546864; }
.search button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: var(--accent);
  color: #1a321e;
  font: inherit;
  font-size: .88rem;
  font-weight: 730;
  cursor: pointer;
}

.search button:hover { background: #c1e758; }

.quick-links { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 18px 0 43px; }
.quick-links strong { margin-right: 4px; font-size: .875rem; }
.quick-links a {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--green);
  background: var(--paper);
  font-size: .875rem;
  font-weight: 630;
}

.quick-links a:hover { border-color: #8aab86; background: #edf4e8; }

.directory h2 { margin-bottom: 18px; font-size: clamp(1.75rem, 3vw, 2.42rem); }
.group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.group-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-height: 104px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.group-card:hover { border-color: #8aab86; box-shadow: 0 4px 14px #284b3820; }
.group-card h3 { margin-bottom: 6px; font-size: 1rem; letter-spacing: -.025em; }
.group-card p { color: var(--muted); font-size: .875rem; line-height: 1.4; }
.group-symbol {
  position: relative;
  flex: 0 0 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eaf2df;
  color: #375f45;
}
.group-symbol::before { content: ""; width: 13px; height: 13px; border: 1.5px solid currentColor; border-radius: 3px; }
.symbol-sales::before { transform: rotate(45deg) scale(.81); }
.symbol-fleet::before { width: 15px; height: 9px; border-radius: 3px; box-shadow: 0 4px 0 -2px currentColor; }
.symbol-finance::before { width: 14px; height: 12px; border-width: 0 0 2px 2px; border-radius: 0; box-shadow: inset 5px 0 #eaf2df, inset 7px 0 currentColor; }
.symbol-channels::before { width: 14px; height: 11px; border-radius: 6px 6px 6px 1px; }
.symbol-network::before { width: 12px; height: 12px; border-radius: 50%; box-shadow: 6px 4px 0 -3px currentColor; }
.symbol-settings::before { border-radius: 50%; box-shadow: inset 0 0 0 3px #eaf2df; background: currentColor; }

.topic-group { margin-top: 38px; scroll-margin-top: calc(var(--header-height) + 18px); }
.topic-group > h3 { margin-bottom: 10px; font-size: 1.45rem; }
.topic-list { margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.topic-list li + li { border-top: 1px solid var(--line); }
.topic-list a { display: grid; gap: 3px; padding: 12px 10px; }
.topic-list a:hover { background: #eaf1eb; color: var(--green); }
.topic-list li span { color: var(--muted); font-size: .875rem; }
.results { margin-top: 24px; }
.results .result-group { color: var(--green); font-size: .8rem; }
.empty-results { padding: 19px 10px; color: var(--muted); }

.article-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 33px; }
.breadcrumbs { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .875rem; }
.breadcrumbs > :not(:first-child)::before { content: "/"; margin-right: 9px; color: #5a756c; }
.breadcrumbs a:hover, .back-link a:hover { text-decoration: underline; }

.search-compact { width: min(100%, 355px); }
.search-compact button { min-height: 34px; padding-inline: 12px; }

.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 170px); gap: clamp(20px, 3vw, 45px); align-items: start; }
.article-layout h1, .result-title { font-size: clamp(2.15rem, 5vw, 4.25rem); font-weight: 780; }
.result-title { margin-bottom: 19px; }
.article-summary { color: var(--muted); margin: 12px 0 23px; font-size: 1.1rem; }
.article-body { margin-top: 28px; overflow-wrap: anywhere; }
.article-body h2, .article-body h3 { margin: 1.55em 0 .55em; scroll-margin-top: calc(var(--header-height) + 18px); }
.article-body h2 { font-size: 1.7rem; }
.article-body h3 { font-size: 1.27rem; }
.article-body a, .back-link a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.article-body p + p, .article-body figure { margin-top: 1em; }
.article-body figure { margin-inline: 0; }
.article-body img, .article-body video, .article-body iframe { display: block; max-width: 100%; border-radius: 10px; }
.article-body iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.article-body figcaption { margin-top: 7px; font-size: .875rem; color: var(--muted); }
.article-body pre { max-width: 100%; overflow: auto; padding: 15px; background: #e9f0eb; border-radius: 8px; }
.article-body table { display: block; max-width: 100%; overflow: auto; border-collapse: collapse; }
.article-body th, .article-body td { text-align: left; padding: 7px 12px; border: 1px solid var(--line); }

.empty-article { padding: 18px 22px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); background: var(--paper); }
.article-aside { position: sticky; top: calc(var(--header-height) + 22px); }
.article-aside nav { padding-left: 14px; border-left: 2px solid var(--line); font-size: .875rem; }
.article-aside p { font-weight: 700; }
.article-aside ul { margin: 8px 0 0; padding: 0; color: var(--muted); list-style: none; }
.article-aside li { margin-top: 6px; }
.article-aside .nested { padding-left: 9px; }
.article-aside a:hover { color: var(--green); text-decoration: underline; }

.adjacent { display: flex; flex-wrap: wrap; gap: 11px; max-width: 760px; margin-top: 30px; }
.adjacent a { flex: 1 1 210px; display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; }
.adjacent a:hover { background: #edf4e8; border-color: #a1baa4; }
.adjacent span { font-size: .875rem; color: var(--muted); }
.back-link { margin-top: 18px; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-inner { min-height: 72px; }
.footer-inner a:hover { text-decoration: underline; }
.skip-link { position: fixed; z-index: 9; top: 8px; left: 8px; transform: translateY(-200%); padding: 8px 12px; background: var(--paper); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 1140px) {
  .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 840px) {
  :root { --header-height: 58px; }
  .frame { width: calc(100% - 36px); }
  .shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sidebar { position: static; max-height: none; overflow: visible; padding: 11px 0 4px; border: 0; }
  .sidebar-heading {
    padding: 10px 12px;
    background: #eaf1eb;
    border-radius: 8px;
    font-size: .875rem;
    color: var(--ink);
  }
  .sidebar-nav { margin-top: 8px; }
  .main { padding-top: 13px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; grid-row: 1; }
  .article-aside nav { padding: 10px 12px; background: #eaf1eb; border-radius: 6px; }
  .article-aside:has([hidden]) { display: none; }
  .article-bar { margin-bottom: 20px; }
}

@media (max-width: 520px) {
  .frame { width: calc(100% - 28px); }
  .brand { gap: 7px; }
  .brand-product { padding-left: 7px; font-size: .75rem; }
  .product-link { font-size: .75rem; }
  .topbar { gap: 9px; }
  .hero { border-radius: 13px; padding: 24px 16px 27px; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .search { gap: 7px; }
  .search-icon { margin-left: 5px; }
  .search input { font-size: .85rem; }
  .search button { min-height: 38px; padding-inline: 9px; }
  .quick-links strong { flex-basis: 100%; }
  .quick-links { margin-bottom: 27px; }
  .group-grid { grid-template-columns: 1fr; gap: 7px; }
  .group-card { min-height: auto; padding: 13px; }
}
