.site-search { position: relative; }
.site-search__trigger { display:inline-flex; min-height:44px; align-items:center; gap:8px; padding:0 12px; border:0; border-radius:12px; background:transparent; color:var(--ink); font:600 14px/1 inherit; cursor:pointer; }
.site-search__trigger:hover,.site-search__trigger:focus-visible { outline:0; background:var(--soft-blue); color:var(--blue); }
.site-search__trigger svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; }
.site-search__popover[popover] { position:fixed; inset:76px max(20px,calc((100vw - var(--page))/2)) auto auto; width:min(560px,calc(100vw - 40px)); max-height:min(680px,calc(100dvh - 96px)); margin:0; padding:10px; overflow:auto; border:1px solid var(--line); border-radius:20px; background:rgba(255,255,255,.96); color:var(--ink); box-shadow:0 24px 80px rgba(0,0,0,.18); -webkit-backdrop-filter:blur(24px); backdrop-filter:blur(24px); }
.site-search__popover[hidden] { display:none; }
.site-search__field { display:grid; grid-template-columns:22px 1fr; align-items:center; gap:9px; padding:10px 12px; border:1px solid var(--line); border-radius:13px; background:var(--paper); }
.site-search__field:focus-within { border-color:var(--blue); box-shadow:0 0 0 1px var(--blue); }
.site-search__field svg { width:20px; height:20px; fill:none; stroke:var(--blue); stroke-width:1.8; }
.site-search__field input { width:100%; min-width:0; padding:0; border:0; outline:0; background:transparent; color:var(--ink); font:400 17px/1.35 inherit; }
.site-search__status { margin:10px 8px 6px; color:rgba(0,0,0,.58); font-size:12px; }
.site-search__results { display:grid; gap:2px; }
.site-search__result { display:grid; grid-template-columns:58px minmax(0,1fr); gap:12px; align-items:center; min-height:70px; padding:6px; border-radius:13px; color:var(--ink); text-decoration:none; }
.site-search__result:hover,.site-search__result:focus-visible { outline:0; background:var(--soft-blue); }
.site-search__result img,.site-search__result-placeholder { width:58px; height:58px; border-radius:9px; object-fit:cover; background:var(--soft-blue); }
.site-search__result-placeholder { display:block; border:1px solid var(--blue); }
.site-search__result > span:last-child { min-width:0; }
.site-search__result strong,.site-search__result small { display:block; overflow:hidden; text-overflow:ellipsis; }
.site-search__result strong { font-size:15px; white-space:nowrap; }
.site-search__result small { margin-top:3px; color:rgba(0,0,0,.62); font-size:12px; line-height:1.3; }
.site-search.is-loading .site-search__field { opacity:.68; }

@media (max-width: 900px) {
  .site-search__trigger span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
}
@media (max-width: 620px) {
  .site-search__popover[popover] { inset:68px 8px auto; width:auto; max-height:calc(100dvh - 76px); border-radius:16px; }
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, 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("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: rgba(0, 0, 0, 0.9);
  --paper: #ffffff;
  --blue: #1f5bff;
  --line: rgba(0, 0, 0, 0.16);
  --soft-blue: rgba(31, 91, 255, 0.08);
  --radius-control: 14px;
  --radius-card: 24px;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img[data-progressive-image] {
  opacity: 0;
  transition: opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  animation: progressive-image-fallback 0s 5s forwards;
}

.progressive-images-active img[data-progressive-image] {
  animation: none;
}

img[data-progressive-image][data-image-state="ready"] {
  opacity: 1;
}

.progressive-image-shell {
  position: relative;
  isolation: isolate;
}

.progressive-image-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, rgba(31, 91, 255, 0.045) 18%, rgba(31, 91, 255, 0.15) 42%, rgba(255, 255, 255, 0.82) 50%, rgba(31, 91, 255, 0.12) 58%, rgba(31, 91, 255, 0.045) 82%);
  background-size: 230% 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.progressive-image-shell.is-image-loading::before {
  opacity: 1;
  animation: progressive-image-shimmer 1.8s ease-in-out infinite;
}

.progressive-image-shell.is-image-error::before {
  opacity: 1;
  background: var(--soft-blue);
}

.progressive-image-shell > img[data-progressive-image] {
  position: relative;
  z-index: 1;
}

@keyframes progressive-image-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -130% 0; }
}

@keyframes progressive-image-fallback {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  img[data-progressive-image], .progressive-image-shell::before { transition: none; }
  .progressive-image-shell.is-image-loading::before { animation: none; }
}

/* CRM knowledge supplies the editorial composition. Variants create rhythm
   without introducing colours outside the approved black/white/blue system. */
.knowledge-home-section { padding-block:clamp(64px,8vw,112px); }
.knowledge-home-section--compact { padding-block:clamp(52px,6.5vw,88px); }
.knowledge-home-section > .page { display:grid; grid-template-columns:minmax(320px,.95fr) minmax(0,1.05fr); align-items:start; gap:clamp(40px,6vw,96px); }
.knowledge-home-section--compact > .page { grid-template-columns:minmax(360px,1fr) minmax(0,1fr); }
.knowledge-home-section .section-head { max-width:620px; margin:0; }
.knowledge-home-section .section-head h2 { margin:0; font-size:clamp(42px,5vw,72px); font-weight:720; line-height:.98; letter-spacing:-.055em; text-wrap:balance; }
.knowledge-home-section--long-title .section-head h2 { font-size:clamp(38px,4.35vw,64px); line-height:1; letter-spacing:-.045em; }
.knowledge-home-section .section-head > p { max-width:520px; margin:clamp(30px,4vw,56px) 0 0; font-size:clamp(18px,1.7vw,24px); line-height:1.45; }
.knowledge-home-section__body { max-width:760px; font-size:clamp(17px,1.35vw,21px); line-height:1.55; }
.knowledge-home-section__body p { margin:0 0 1.35em; }
.knowledge-home-section__body p:last-child { margin-bottom:0; }
.knowledge-home-section__lead { padding-bottom:clamp(18px,2.2vw,30px); border-bottom:1px solid currentColor; font-size:clamp(20px,1.65vw,24px); line-height:1.42; }
.knowledge-home-section__body ul { display:grid; gap:0; margin:clamp(28px,4vw,44px) 0 0; padding:0; list-style:none; }
.knowledge-home-section__body li { padding:16px 0 16px 32px; border-top:1px solid currentColor; position:relative; }
.knowledge-home-section__body li::before { content:"→"; position:absolute; left:0; color:var(--blue); font-weight:800; }
.knowledge-home-section--dark { background:var(--ink); color:var(--paper); }
.knowledge-home-section--dark .section-head > p,
.knowledge-home-section--dark .knowledge-home-section__body { color:rgba(255,255,255,.76); }
.knowledge-home-section--dark .knowledge-home-section__body li { border-color:rgba(255,255,255,.28); }
.knowledge-home-section--dark .knowledge-home-section__body li::before { color:#9db8ff; }
.knowledge-home-section--soft { background:var(--soft-blue); }
.knowledge-home-section--soft > .page { grid-template-columns:minmax(0,1.18fr) minmax(280px,.82fr); }
.knowledge-home-section--soft.knowledge-home-section--compact > .page { grid-template-columns:minmax(360px,1fr) minmax(0,1fr); }
.knowledge-home-section--soft .section-head { padding-left:clamp(24px,4vw,56px); border-left:clamp(5px,.6vw,9px) solid var(--blue); }
.knowledge-home-section--soft .knowledge-home-section__body { padding-top:clamp(8px,2vw,24px); }
.knowledge-home-section--single-column > .page,
.knowledge-home-section--soft.knowledge-home-section--single-column > .page { grid-template-columns:minmax(0,1fr); gap:clamp(34px,5vw,64px); }
.knowledge-home-section--single-column .section-head { max-width:940px; }
.knowledge-home-section--single-column .knowledge-home-section__body { max-width:940px; }
.knowledge-home-order { padding-block:clamp(64px,8vw,112px); background:var(--blue); color:var(--paper); }
.knowledge-home-order > .page { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:clamp(32px,7vw,104px); }
.knowledge-home-order__copy { max-width:820px; }
.knowledge-home-order .eyebrow { color:rgba(255,255,255,.72); }
.knowledge-home-order h2 { margin-bottom:24px; }
.knowledge-home-order p:last-child { max-width:720px; margin-bottom:0; font-size:clamp(18px,1.6vw,23px); }
.knowledge-home-order__button { min-width:190px; border-color:var(--paper); background:var(--paper); color:var(--blue); }
.knowledge-home-order__button:hover { border-color:var(--ink); background:var(--ink); color:var(--paper); }
.knowledge-home-faq { padding-block: clamp(64px,8vw,112px); }
.knowledge-home-faq details { padding:18px 0; border-top:1px solid var(--line); }
@media (max-width:760px) {
  .knowledge-home-section > .page,
  .knowledge-home-section--soft > .page { grid-template-columns:1fr; gap:28px; }
  .knowledge-home-section .section-head h2 { font-size:clamp(40px,12vw,58px); }
  .knowledge-home-section--long-title .section-head h2 { font-size:clamp(36px,10.5vw,52px); }
  .knowledge-home-section .section-head > p { margin-top:24px; }
  .knowledge-home-section__lead { padding-bottom:18px; }
  .knowledge-home-section--soft .section-head { padding-left:20px; }
  .knowledge-home-order > .page { grid-template-columns:1fr; align-items:start; }
  .knowledge-home-order__button { width:100%; min-width:0; }
}
