/* AgentDesk — agentdesk.moscow
   Один шрифт Onest, голубой из логотипа, жидкое стекло без обводок,
   крупные синие мазки под стеклом. Кнопки и боковой ползунок как у lukres.dev. */

/* Onest лежит у нас (fonts/, лицензия OFL): без запросов к Google Fonts — быстрее и данные посетителей
   не уходят за рубеж. Латиница и кириллица в одном файле на начертание; в <head> оба файла
   подгружаются заранее (preload) с тем же адресом, что здесь, — менять адрес только в обоих местах. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/onest-400.woff2?v=2001") format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/onest-500.woff2?v=2001") format("woff2"); }

:root {
  --out: cubic-bezier(.16, 1, .3, 1);
  --paper: #eeeef5;
  --ink: #0a0a0f;
  --ink-2: #2b2b38;
  --muted: #5f5f70;
  --blue: #2788F0;
  --grad: linear-gradient(135deg, #35BAF0 0%, #2B9FF1 55%, #2788F0 100%);
  --grad-btn: linear-gradient(140deg, #2380ee, #2B9FF1);
  --pill-dark: #181818; /* чёрный, как плитка логотипа */
  --pill-light: rgb(228, 230, 239);
  --night: #050506;
  --night-ink: #f1f1f6;
  --night-muted: #a0a0b2;
  --man: #e6f1fe;
  --f: "Onest", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(16px, 4.4vw, 64px);
  --gap: clamp(12px, 1.4vw, 18px);
  --r: clamp(18px, 1.8vw, 26px);
  --sec: clamp(56px, 6.2vw, 96px);

  --t-head: clamp(34px, 4vw, 64px);
  --t-num: clamp(30px, 3vw, 46px);
  --t-body: clamp(16px, 1.3vw, 19px);
  --t-small: clamp(13px, 1vw, 15px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; background: rgb(var(--bgc, 238,238,245)); color: var(--ink); font: 400 var(--t-body)/1.4 var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b { font-weight: 500; }
.blue { color: var(--blue); }
.dim { color: var(--muted); }
.nw { white-space: nowrap; }
.wrap { position: relative; z-index: 1; width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- текст ---------- */
.head { font-weight: 500; font-size: var(--t-head); line-height: 1.03; letter-spacing: -.038em; text-wrap: balance; max-width: 24ch; margin-bottom: clamp(22px, 2.6vw, 40px); }
.num { font-weight: 500; font-size: var(--t-num); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.small { font-size: var(--t-small); line-height: 1.4; color: var(--muted); }
.note { margin-top: clamp(14px, 1.6vw, 22px); font-size: var(--t-small); color: var(--muted); max-width: 90ch; }
.lead { font-size: clamp(19px, 1.65vw, 25px); line-height: 1.36; letter-spacing: -.012em; }

/* ---------- кнопки как у lukres: пилюля, капс, точка ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 48px; padding: 0 18px 0 24px; border: 0; border-radius: 999px; font: 500 14px/1 var(--f); letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: background-color .4s ease, color .4s ease, transform .25s ease, box-shadow .25s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:not(:has(.dot, .dots)) { padding: 0 24px; }
.btn .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.btn .dots { display: inline-flex; gap: 3px; flex: none; }
.btn .dots::before, .btn .dots::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
/* наведение как у lukres: точка справа уходит, слева выезжает стрелка, тёмная кнопка становится синей;
   у «Меню» две точки встают вертикально */
.btn:has(.dot) { transition: background-color .4s ease, color .4s ease, transform .25s ease, box-shadow .25s ease, padding .45s var(--out); }
.btn:has(.dot)::before { content: ""; width: 0; height: 12px; margin-right: -12px; flex: none; opacity: 0; background: currentColor;
  -webkit-mask: center / 15px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 12' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h12.5M8.5 1l5 5-5 5'/%3E%3C/svg%3E");
  mask: center / 15px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 12' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h12.5M8.5 1l5 5-5 5'/%3E%3C/svg%3E");
  transition: width .45s var(--out), margin .45s var(--out), opacity .3s ease; }
.btn .dot { transition: width .45s var(--out), height .45s var(--out), margin .45s var(--out), opacity .25s ease; }
/* только там, где есть наведение: на телефоне после нажатия hover «залипает» */
@media (hover: hover) {
  .btn:has(.dot):hover { padding: 0 16px; }  /* 24+18 по краям = 16+16 + стрелка 15 − точка 5: ширина та же */
  .btn:has(.dot):hover::before { width: 15px; margin-right: 0; opacity: 1; }
  .btn:has(.dot):hover .dot { width: 0; height: 0; margin-left: -12px; opacity: 0; }
}
.btn .dots { transition: transform .45s var(--out); }
/* точки встают вертикально: на компьютере при наведении, везде — пока меню открыто
   (на телефоне наведения нет, а «залипший» hover после нажатия путал состояния) */
@media (hover: hover) { .btn:hover .dots { transform: rotate(90deg); } }
.menu-btn[aria-expanded="true"] .dots { transform: rotate(90deg); }
/* «Меню» ⇄ «Закрыть»: оба слова в одной ячейке — ширина кнопки не меняется; смена прокруткой:
   открыли — «Меню» уезжает вверх, «Закрыть» приезжает снизу; закрыли — наоборот */
.menu-label { display: inline-grid; justify-items: center; overflow: hidden; line-height: 1.25; padding-block: .1em; margin-block: -.1em; }
.menu-label > span { grid-area: 1 / 1; transition: transform .55s var(--out), opacity .35s ease; }
.menu-label .ml-b { transform: translateY(105%); opacity: 0; }
.menu-btn[aria-expanded="true"] .ml-a { transform: translateY(-105%); opacity: 0; }
.menu-btn[aria-expanded="true"] .ml-b { transform: none; opacity: 1; }
.btn-dark { background: var(--pill-dark); color: #fff; }
@media (hover: hover) { .btn-dark:hover { background: var(--blue); } }  /* на телефоне наведение залипает после нажатия */
.btn-light { background: #fff; color: #000; box-shadow: 0 8px 22px rgba(24,28,90,.08); }
.btn-light:hover { box-shadow: 0 12px 28px rgba(24,28,90,.14); }
.btn-blue { position: relative; isolation: isolate; background: var(--grad-btn); color: #fff; box-shadow: 0 12px 28px rgba(39,136,240,.28); }
/* при наведении тёмный слой плавно проявляется поверх градиента: без мигания */
.btn-blue::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--pill-dark); opacity: 0; transition: opacity .4s ease; }
.btn-blue:hover::before { opacity: 1; }
.btn-blue:hover { box-shadow: 0 12px 28px rgba(10,10,20,.18); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ---------- жидкое стекло ---------- */
.glass { position: relative; border-radius: var(--r); background: linear-gradient(140deg, rgba(255,255,255,.9), rgba(255,255,255,.7)); backdrop-filter: blur(36px) saturate(170%); -webkit-backdrop-filter: blur(36px) saturate(170%); box-shadow: 0 20px 52px rgba(24,28,90,.09); }
.night .glass { background: linear-gradient(140deg, rgba(40,40,52,.86), rgba(22,22,30,.8)); box-shadow: 0 20px 52px rgba(0,0,0,.4); }
/* браузер без ускорения графики (js ставит .lowgfx): размытие фона под стеклом считал бы процессор
   в каждом кадре прокрутки — там стекло без размытия, остальной вид тот же */
.lowgfx .glass, .lowgfx .menu-panel { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.card { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.2vw, 32px); }
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: clamp(20px, 2vw, 28px); }
.stat b { font-weight: 500; font-size: clamp(30px, 2.9vw, 46px); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat > span { font-size: clamp(14px, 1.1vw, 16px); line-height: 1.35; color: var(--ink-2); }
.night .stat > span { color: var(--night-muted); }

/* ---------- шапка: без подложки ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px var(--pad); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 14px; font-weight: 500; font-size: 29px; letter-spacing: -.02em; transition: color .4s ease; }
.brand img { width: 50px; height: 50px; }
.brand-logo { width: 50px; height: 50px; display: block; flex: none; overflow: visible; }
/* глаз-звёздочка в логотипе шапки всё время медленно крутится */
.brand-eye { transform-box: view-box; transform-origin: 466.95px 261.41px; animation: eye-spin 14s linear infinite; }
.top.on-dark .brand, .top.on-blue .brand { color: #fff; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-pills { display: flex; align-items: center; gap: 10px; transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.top .btn { height: 45px; }
/* «Скачать» в шапке едет над любым фоном, в том числе над синими карточками: тонкий белый ободок держит контраст */
.top-dl { box-shadow: 0 0 0 1.5px rgba(255,255,255,.9), 0 10px 26px rgba(39,136,240,.3); }


.menu-panel { position: fixed; z-index: 49; top: 78px; right: var(--pad); width: min(360px, calc(100vw - 2 * var(--pad))); padding: 10px; border-radius: 24px; background: linear-gradient(140deg, rgba(255,255,255,.94), rgba(255,255,255,.8)); backdrop-filter: blur(30px) saturate(170%); -webkit-backdrop-filter: blur(30px) saturate(170%); box-shadow: 0 30px 70px rgba(24,28,90,.18); transform-origin: 100% 0; animation: menuIn .35s cubic-bezier(.2,.7,.2,1); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.menu-panel nav { display: grid; }
/* пункт под курсором: голубая подложка, синий текст и выезжающая слева стрелка, как у кнопок */
.menu-panel a { display: flex; align-items: center; padding: 12px 16px; border-radius: 16px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; transition: background-color .25s ease, color .25s ease; }
.menu-panel a::before { content: ""; width: 0; height: 14px; margin-right: 0; flex: none; opacity: 0; background: currentColor;
  -webkit-mask: left center / 18px 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 7h15.5M10.5 1l6 6-6 6'/%3E%3C/svg%3E");
  mask: left center / 18px 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 7h15.5M10.5 1l6 6-6 6'/%3E%3C/svg%3E");
  transition: width .4s var(--out), margin .4s var(--out), opacity .25s ease; }
.menu-panel a:hover, .menu-panel a:focus-visible { background: var(--man); color: var(--blue); outline: none; }
.menu-panel a:hover::before, .menu-panel a:focus-visible::before { width: 18px; margin-right: 12px; opacity: 1; }
.menu-panel a:last-child { color: var(--blue); }

/* ---------- боковой ползунок как у lukres ---------- */
.scrollbar { position: fixed; z-index: 48; right: 16px; top: 50%; width: 6px; height: 180px; margin-top: -90px; border-radius: 3px; background: rgba(0,0,0,.1); cursor: pointer; transition: background-color .4s ease, opacity .4s ease; touch-action: none; }
.scrollbar i { position: absolute; left: 0; top: 0; width: 6px; height: 36px; border-radius: 3px; background: #000; transition: background-color .4s ease; will-change: transform; }
.scrollbar.inv { background: rgba(255,255,255,.2); }
.scrollbar.inv i { background: #fff; }
.scrollbar::before { content: ""; position: absolute; inset: -10px -12px; }

/* ---------- подсветы на фоне ---------- */
main { position: relative; }
.glows { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: calc(1 - var(--dark, 0)); }
.glows i { position: absolute; width: var(--s, 60vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); opacity: .9; animation: drift var(--t, 22s) ease-in-out infinite alternate; will-change: transform; }
.glows i:nth-child(1) { --c: rgba(53,186,240,.34); --s: 62vw; top: -12vw; right: -14vw; --t: 20s; }
.glows i:nth-child(2) { --c: rgba(160,150,255,.22); --s: 48vw; top: 18vw; left: -16vw; --t: 26s; }
.glows i:nth-child(3) { --c: rgba(255,255,255,.95); --s: 40vw; top: 6vw; left: 30vw; --t: 30s; }
.glows i:nth-child(4) { --c: rgba(39,136,240,.2); --s: 56vw; top: 14%; right: -20vw; --t: 24s; }
.glows i:nth-child(5) { --c: rgba(53,186,240,.26); --s: 54vw; top: 33%; left: -18vw; --t: 28s; }
.glows i:nth-child(6) { --c: rgba(160,150,255,.2); --s: 50vw; top: 46%; right: -12vw; --t: 22s; }
.glows i:nth-child(7) { --c: rgba(53,186,240,.24); --s: 58vw; top: 66%; left: -20vw; --t: 26s; }
.glows i:nth-child(8) { --c: rgba(39,136,240,.18); --s: 52vw; top: 80%; right: -16vw; --t: 30s; }
.glows i:nth-child(9) { --c: rgba(255,255,255,.9); --s: 44vw; top: 90%; left: 20vw; --t: 24s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(4vw, -3vw) scale(1.08); } }
/* подсветы показываем, когда страница разобрана целиком (main.js ставит .main-ready в конце <body>):
   их top — в % от высоты страницы, и пока HTML приходил по частям, каждый новый кусок сдвигал их
   (сдвиг макета, CLS до 0,3). Обычно скрипт успевает до первой отрисовки, и разницы не видно;
   при первом заходе это и так под загрузчиком. Классы al-* ставит загрузчик — без скриптов правило не действует */
html:is(.al-loading, .al-done):not(.main-ready) .glows { visibility: hidden; }
.hero, .sec { z-index: 1; }

/* ---------- секции и мазки ---------- */
/* лента через «Качество» и «Цены»: кончик идёт вместе с прокруткой (js: ribbon) */
.ribbon-zone { position: relative; }
.ribbon { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: hidden; }
.sec { position: relative; padding: var(--sec) 0; overflow: hidden; }
.stroke { position: absolute; left: 0; top: 50%; width: 100%; height: auto; aspect-ratio: 16 / 9; transform: translateY(-50%); z-index: 0; pointer-events: none; }
.night { color: var(--night-ink); }
#security { padding-bottom: clamp(28px, 3vw, 44px); }
.night .dim, .night .small, .night .note { color: var(--night-muted); }

/* ---------- первый экран ---------- */
.hero { position: relative; padding: 0; }
.hero-head { position: relative; min-height: 100vh; min-height: 100svh; padding: clamp(96px, 8.6vw, 116px) 0 clamp(26px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: clamp(28px, 5vw, 96px); row-gap: clamp(20px, 2.4vw, 32px); align-items: center; }
.hero-left { position: relative; z-index: 2; display: grid; gap: clamp(20px, 2.2vw, 30px); justify-items: start; }
/* кнопки внизу первого экрана, поверх всего */
.hero-cta { position: relative; z-index: 2; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-title { font-weight: 500; font-size: clamp(36px, min(4.3vw, 7.2vh), 70px); line-height: 1.03; letter-spacing: -.042em; max-width: 17ch; text-wrap: balance; }
.hero-right { position: relative; z-index: 1; }
.hero-star { position: absolute; z-index: 0; width: 150%; height: auto; left: -14%; top: 50%; transform: translateY(-50%); pointer-events: none; }
.hero-right .spec { z-index: 1; }
.hero-star { z-index: -1 !important; }
.hero-star .draw { transition: stroke-dashoffset 1.5s cubic-bezier(.3,.6,.15,1); }
/* звезда и плашка медленно дышат */
.hero-star { animation: star-sway 9s ease-in-out infinite; }
@keyframes star-sway { 0%, 100% { transform: translateY(-50%) rotate(0deg); } 50% { transform: translateY(calc(-50% - 10px)) rotate(4deg); } }
.ready .hero-right .spec { animation: spec-float 7s ease-in-out 1.4s infinite; }
@keyframes spec-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
/* пока первый экран или подвал за пределами экрана, их бесконечные анимации стоят (js ставит .off):
   их не видно, а главный поток не тратит на них каждый кадр прокрутки */
.hero.off .ask-eye, .hero.off .hero-star, .hero.off .spec, .hero.off .ask-caret,
.foot.off .foot-dl-btn, .foot.off .chev i { animation-play-state: paused !important; }
/* строка задачи: печатает задачи, после «отправки» появляются шаги агента */
.ask { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: min(100%, 540px); }
.ask-bar { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 9px 0 11px; border-radius: 18px; background: #fff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: 0 1px 2px rgba(24,28,90,.06), 0 12px 32px rgba(24,28,90,.08) !important; }
.ask-logo { width: 36px; height: 36px; flex: none; display: block; }
/* глаз-звёздочка крутится: медленно, пока печатается задача, быстро, пока агент работает */
.ask-eye { transform-box: view-box; transform-origin: 466.95px 261.41px; animation: eye-spin 6s linear infinite; }
.ask.busy .ask-eye { animation-duration: .9s; }
@keyframes eye-spin { to { transform: rotate(360deg); } }
.ask-text { flex: 1; min-width: 0; display: flex; align-items: center; font-size: 17px; color: var(--ink); white-space: nowrap; overflow: hidden; }
.ask-typed:empty::before { content: "Что сделать?"; color: var(--muted); }
.ask-caret { width: 2px; height: 20px; margin-left: 2px; background: var(--blue); border-radius: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ask-send { position: relative; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--pill-dark); transition: background-color .25s ease, transform .25s ease; }
.ask-send::before { content: ""; position: absolute; inset: 0; background: #fff; -webkit-mask: center / 14px 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12V2M2.5 6.5 7 2l4.5 4.5'/%3E%3C/svg%3E"); mask: center / 14px 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12V2M2.5 6.5 7 2l4.5 4.5'/%3E%3C/svg%3E"); }
.ask-send.go { background: var(--blue); transform: scale(.9); }
.ask-steps { display: flex; flex-wrap: nowrap; gap: 8px; min-height: 34px; padding-left: 4px; }
.ask-steps li { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px 0 8px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px rgba(24,28,90,.07); font-size: 13px; white-space: nowrap; color: var(--ink-2); opacity: 0; transform: translateY(8px); transition: opacity .35s var(--out), transform .55s var(--out); }
.ask-steps li.on { opacity: 1; transform: none; }
.ask-steps li i { width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--grad-btn); -webkit-mask: none; position: relative; }
.ask-steps li i::after { content: ""; position: absolute; left: 5px; top: 3.5px; width: 4px; height: 7px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.ask-steps li.out { opacity: 0; transform: translateY(-6px); }
/* невысокие экраны: первый экран всё равно ровно в высоту окна */
@media (max-height: 780px) and (min-width: 761px) {
  .hero-head { padding-top: 88px; row-gap: 18px; }
  .hero-left { gap: 16px; }
  .ask-bar { height: 52px; }
    }
.hero-star .draw:nth-child(2) { transition-delay: .18s; }
.hero-star .draw:nth-child(3) { transition-delay: .36s; }
.hv { opacity: 0; transform: translateY(40px); transition: opacity .5s var(--out) calc(var(--i) * .06s), transform .85s var(--out) calc(var(--i) * .06s); }
.ready .hv { opacity: 1; transform: none; }
.demo-sec { overflow: visible; }
.demo-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(22px, 2.6vw, 40px); }
.demo-head .head { margin-bottom: 0; }
.demo-note { max-width: 34ch; padding-bottom: .35em; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.4; color: var(--muted); }

/* окно приложения */
.stage { position: relative; }
.window { position: relative; z-index: 1; height: 640px; border-radius: 14px; overflow: hidden; background: #191817; box-shadow: 0 0 0 1px rgba(10,10,15,.28), 0 50px 110px rgba(24,28,90,.28), 0 18px 40px rgba(24,28,90,.14); }
.window-scale { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; transform-origin: 0 0; }
.window-app { display: block; width: 100%; height: 100%; border: 0; background: #191817; pointer-events: none; }
.window.live .window-app { pointer-events: auto; }
.lights { position: absolute; left: 18px; top: 17px; display: flex; gap: 8px; pointer-events: none; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.25); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.window-shot { display: none; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
/* демо по требованию (js): пока живое приложение не подгрузилось, в окне его снимок — тот же экран,
   так что подмены не видно; приложение (около 1 МБ) больше не грузится вместе со страницей */
.window picture { display: contents; }
/* высота окна = 0,6 ширины сразу из CSS — то же, что потом ставит fitWindow(): блоки ниже не прыгают */
@media (min-width: 835px) { .window { height: auto; aspect-ratio: 5 / 3; } }
@media (min-width: 761px) {
  .window-shot { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
  .window-app { visibility: hidden; }
  .window.app-on .window-shot { display: none; }
  .window.app-on .window-app { visibility: visible; }
}
.window-shield { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 30px; border: 0; background: linear-gradient(to top, rgba(5,5,6,.5), rgba(5,5,6,0) 36%); cursor: pointer; transition: opacity .35s ease; }
.window-shield .btn { pointer-events: none; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.window-shield:hover .btn { background: #fff; transform: translateY(-1px); }
.window.used .window-shield { background: none; }
.window.used .window-shield .btn { display: none; }
.window.live .window-shield { opacity: 0; pointer-events: none; }
.window-open { display: none; }

/* ---------- имя и коротко ---------- */
/* мазок проходит целиком: по вертикали не обрезаем, только по бокам */
.about { overflow-x: clip; overflow-y: visible; }
.about .stroke { pointer-events: none; }
/* имя одной строкой во всю ширину, текст — карточкой справа, заходит под буквы снизу */
.about-in { --mega: calc((min(100vw, 1440px) - 2 * var(--pad)) / 4.7); display: grid; grid-template-columns: minmax(0, 1fr); }
.about .mega { font-size: var(--mega); white-space: nowrap; margin-left: -.035em; }
.about .about-card { position: relative; z-index: 2; justify-self: end; max-width: 34ch; margin-top: calc(var(--mega) * .14); }
.about .about-card { max-width: 32ch; padding: clamp(24px, 2.6vw, 38px) clamp(26px, 2.8vw, 42px); font-size: clamp(20px, 1.85vw, 28px); line-height: 1.34; color: var(--ink); }
.mega { font-weight: 500; font-size: clamp(84px, 15vw, 240px); line-height: .84; letter-spacing: -.062em; }
.about-side { display: grid; gap: clamp(22px, 2.4vw, 32px); }
.spec { padding: clamp(6px, .7vw, 10px) clamp(22px, 2.4vw, 36px); }
.spec div { display: grid; grid-template-columns: 7.4em 1fr; gap: 16px; padding: clamp(14px, 1.4vw, 20px) 0; }
.spec span { color: var(--ink-2); }

/* ---------- чат-бот и агент ---------- */
.flows { display: grid; gap: var(--gap); }
.flow { display: grid; grid-template-columns: clamp(150px, 15vw, 220px) minmax(0, 1fr); gap: clamp(16px, 2vw, 32px); align-items: center; padding: clamp(18px, 2.2vw, 32px); }
.flow-agent { background: linear-gradient(140deg, rgba(255,255,255,.92), rgba(226,240,255,.78)); }
.flow-label { display: grid; gap: 6px; }
.flow-label b { font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -.03em; line-height: 1.05; }
.flow-label span { color: var(--muted); line-height: 1.3; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(22px, 2.4vw, 36px); }
.step { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: clamp(118px, 10vw, 150px); padding: clamp(12px, 1.2vw, 16px); border-radius: clamp(12px, 1.1vw, 16px); font-size: clamp(14px, 1.15vw, 17px); line-height: 1.28; }
.step + .step::before { content: ""; position: absolute; top: 50%; right: 100%; width: clamp(22px, 2.4vw, 36px); height: 12px; transform: translateY(-50%); background: center / 14px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12' fill='none' stroke='%23b5b8c0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h11M8 1.5 12.5 6 8 10.5'/%3E%3C/svg%3E"); }
.step small { display: flex; align-items: center; gap: 6px; font-size: clamp(11px, .85vw, 13px); font-weight: 500; color: var(--muted); }
.step.man { background: var(--man); }
.step.bot { background: #0d0d12; color: #fff; box-shadow: 0 14px 32px rgba(10,10,20,.22); }
.step.bot small { color: #a0a0b2; }
.step.agent { background: var(--grad-btn); color: #fff; box-shadow: 0 14px 32px rgba(39,136,240,.26); }
.step.agent small { color: rgba(255,255,255,.86); }
.flow .step { opacity: 0; transform: translateY(26px) scale(.96); transition: opacity .4s var(--out), transform .7s var(--out); }
.flow.in .step { opacity: 1; transform: none; }
.flow.in .step:nth-child(2) { transition-delay: .05s; } .flow.in .step:nth-child(3) { transition-delay: .1s; }
.flow.in .step:nth-child(4) { transition-delay: .15s; } .flow.in .step:nth-child(5) { transition-delay: .2s; }
.ic { display: inline-block; width: 12px; height: 12px; flex: none; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ic-man { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='4.6' r='3.4'/%3E%3Cpath d='M1.5 15.5c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6z'/%3E%3C/svg%3E"); }
.ic-chat { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 1.5h12a1.5 1.5 0 0 1 1.5 1.5v8A1.5 1.5 0 0 1 14 12.5H6L2.5 15v-2.5H2A1.5 1.5 0 0 1 .5 11V3A1.5 1.5 0 0 1 2 1.5z'/%3E%3C/svg%3E"); }
.ic-star { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M8 1.5v13M2.4 4.75l11.2 6.5M2.4 11.25l11.2-6.5'/%3E%3C/svg%3E"); }

/* ---------- отделы: синяя секция ---------- */
.depts { color: #fff; padding: 0; overflow: visible; }
/* на компьютере колода закреплена по центру, а анимация идёт прокруткой (js: deckFrame) */
.depts.pinned { height: 340vh; margin-top: -40px; } /* заходит на нижний отступ «Защиты данных» */
.depts-pin { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh; padding-block: clamp(96px, 10vw, 140px); overflow: hidden; }
.depts.pinned .depts-pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding-block: clamp(150px, 18vh, 190px) clamp(30px, 4vh, 50px); }
/* после колоды сразу следующий блок, без пустого синего поля */
.depts.pinned + #deploy { padding-top: clamp(20px, 2.4vw, 36px); margin-top: -14.4vh; /* = (340vh − 100vh) × (1 − 0.88) / 2, см. deckFrame */ }
/* высота колоды задаётся сразу, ещё до скриптов (то же условие, что в deckMode: шире 1180 и без «меньше движения»):
   иначе первый кадр короче, и всё ниже — блоки и подсветы — прыгает, когда скрипт ставит .pinned (сдвиг макета, CLS).
   Классы al-* ставит загрузчик в <head>, то есть скрипты работают; без них колода — обычный ряд карт. */
@media (min-width: 1181px) and (prefers-reduced-motion: no-preference) {
  html:is(.al-loading, .al-done) .depts { height: 340vh; margin-top: -40px; }
  html:is(.al-loading, .al-done) .depts + #deploy { padding-top: clamp(20px, 2.4vw, 36px); margin-top: -14.4vh; }
}
.depts.pinned .deckcards { display: block; height: calc(clamp(200px, 16.5vw, 248px) * 1.4); transform-style: preserve-3d; }
.depts.pinned .pc { position: absolute; left: 50%; top: 0; margin-left: calc(clamp(200px, 16.5vw, 248px) / -2); transition: none; will-change: transform; }
.depts.pinned .pc-in { transition: none; will-change: transform; }
/* заголовок: сначала крупно в две строки со сдвигом, потом уменьшается и встаёт над колодой */
.depts.pinned .depts-pin > .wrap { position: absolute; inset: 0; margin-inline: auto; }
.depts.pinned .depts-title { position: absolute; left: var(--pad); top: 0; margin: 0; max-width: none; font-size: clamp(64px, 9.4vw, 156px); line-height: .9; letter-spacing: -.052em; transform-origin: 0 0; will-change: transform; }
.depts.pinned .depts-title span { display: block; white-space: nowrap; will-change: transform; }
.deckcards { position: relative; z-index: 1; display: flex; justify-content: center; gap: 20px; padding: 0 var(--pad) 8px; perspective: 1100px; }
.pc { position: relative; flex: 0 0 auto; width: clamp(200px, 16.5vw, 248px); aspect-ratio: 5 / 7; transform: rotateY(var(--ry)) rotateZ(var(--rz)) translateY(var(--ty)); perspective: 700px; transform-style: preserve-3d; }
.pc:nth-child(1) { --ry: 16deg; --rz: -2deg; --ty: 10px; }
.pc:nth-child(2) { --ry: 8deg; --rz: -1deg; --ty: 0px; }
.pc:nth-child(3) { --ry: 0deg; --rz: 0deg; --ty: -10px; z-index: 2; }
.pc:nth-child(4) { --ry: -8deg; --rz: 1deg; --ty: 0px; }
.pc:nth-child(5) { --ry: -16deg; --rz: 2deg; --ty: 10px; }
.pc-in { position: absolute; inset: 0; transform-style: preserve-3d; }
.pc-face { position: absolute; inset: 0; border-radius: 16px; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 30px 60px rgba(0,25,90,.28); }
.pc-front { display: grid; grid-template-rows: auto 1fr auto; padding: clamp(18px, 1.7vw, 24px) clamp(16px, 1.6vw, 22px); background: #fff; color: var(--ink); }
.pc-back { transform: rotateY(180deg); overflow: hidden; background: #2a7cf0; box-shadow: 0 26px 54px rgba(0,25,90,.32); }
.pc-back > svg { display: block; width: 100%; height: 100%; }
/* рубашка: только звёздочка AgentDesk по центру */
.pc-nt { position: absolute; left: 50%; top: 50%; z-index: 1; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.pc-nt svg { display: block; width: 100%; height: 100%; }
/* блик бегает по карте, когда она поворачивается (js задаёт --sheen) */
.pc-face { overflow: hidden; }
.pc-sheen { position: absolute; inset: -20%; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.38) 48%, rgba(255,255,255,.08) 54%, transparent 62%); transform: translateX(calc(var(--sheen, -60) * 1%)); mix-blend-mode: soft-light; }
.pc-front .pc-sheen { mix-blend-mode: normal; opacity: .5; }
.pc .t { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-mark { width: 16px; height: 16px; flex: none; background: var(--blue); -webkit-mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M9.6 1.6 6.4 14.4M2.2 4.6l11.6 6.8M1.6 9.8l12.8-3.6'/%3E%3C/svg%3E"); mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M9.6 1.6 6.4 14.4M2.2 4.6l11.6 6.8M1.6 9.8l12.8-3.6'/%3E%3C/svg%3E"); }
.pc .t.flip { flex-direction: row-reverse; }
.pc .t { font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; text-transform: uppercase; letter-spacing: -.005em; line-height: 1.1; }
.pc .t.flip { transform: rotate(180deg); }
.pc ul { display: grid; align-content: start; align-self: center; margin: 0; } /* список по центру между названиями: отступы сверху и снизу равны */
.pc li { padding: clamp(8px, .8vw, 11px) 0; font-size: clamp(13px, 1.05vw, 15px); line-height: 1.3; border-bottom: 1px dotted rgba(10,10,15,.28); }
.pc li:last-child { border-bottom: 0; }

/* ---------- качество ---------- */
.q { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: var(--gap); }
.chart { display: grid; gap: clamp(14px, 1.4vw, 20px); padding: clamp(20px, 2.2vw, 32px); }
.bars { display: grid; gap: clamp(9px, 1vw, 14px); }
.bars li { display: grid; grid-template-columns: clamp(140px, 14vw, 210px) minmax(0, 1fr); gap: clamp(12px, 1.4vw, 20px); align-items: center; }
.bn { display: grid; gap: 1px; }
.bn b { font-size: clamp(15px, 1.25vw, 18px); }
.bn small { font-size: clamp(12px, .95vw, 14px); color: var(--muted); }
.bt { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bt i { display: block; flex: none; height: clamp(16px, 1.5vw, 22px); width: 0; border-radius: 7px; background: var(--blue); transition: width 1s var(--out); }
.cloud .bt i { background: rgba(10,10,15,.85); }
.on .bt i { width: calc(var(--w) * 1%); }
/* строки графика появляются по очереди: подпись выезжает, полоса растёт, число набирается */
.bars li, .cmp-r { opacity: 0; transform: translateX(-28px); transition: opacity .45s var(--out) calc(var(--n, 0) * .05s), transform .75s var(--out) calc(var(--n, 0) * .05s); }
.on li, .on .cmp-r { opacity: 1; transform: none; }
.bars .bt i, .cmp .bt i { transition-delay: calc(.06s + var(--n, 0) * .05s); }
.bt em { opacity: 0; transition: opacity .4s var(--out) calc(.1s + var(--n, 0) * .05s); }
.on .bt em { opacity: 1; }
.bt em { font-style: normal; font-weight: 500; font-size: clamp(15px, 1.25vw, 18px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-dark { background: rgba(10,10,15,.85); }
.sw-blue { background: var(--blue); }
.q-side { display: grid; grid-template-rows: 1fr 1fr; gap: var(--gap); }
.q-side .card { justify-content: space-between; }
.q-side .card > span { color: var(--ink-2); }

/* ---------- цены ---------- */
.strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding: clamp(16px, 1.6vw, 22px) clamp(20px, 2.4vw, 32px); margin-bottom: var(--gap); }
.strip span { color: var(--muted); }
.strip b { color: var(--ink); }
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.tier { display: flex; flex-direction: column; gap: 6px; padding: clamp(20px, 2vw, 28px); }
.tier .tt { font-size: clamp(18px, 1.5vw, 22px); margin-bottom: 12px; }
.tier .num { margin-bottom: 16px; }
.cmp { display: grid; gap: 7px; padding: 14px 0; box-shadow: 0 -1px 0 rgba(10,10,15,.07), 0 1px 0 rgba(10,10,15,.07); }
.cmp-r { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.cmp .bt { display: contents; }
.cmp .bt i { height: 12px; border-radius: 5px; }
.cmp .bt em { font-size: 14px; color: var(--ink); text-align: right; min-width: 4.6em; }
.cmp-r:not(.cloud) .bt em { color: var(--blue); }
.tier-list { display: grid; gap: 4px; margin-top: 14px; font-size: var(--t-small); color: var(--muted); }
/* Цены: «Наш сервер» (по умолчанию) или «Ваш сервер» — лицензия */
#price:not(.own) [data-m="own"], #price.own [data-m="cloud"] { display: none !important; }
.strip:has(.seg) { align-items: center; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(10,10,15,.06); }
.seg button { height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 15px/1 var(--f); white-space: nowrap; cursor: pointer; transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgba(24,28,90,.1); cursor: default; }
@media (hover: hover) { .seg button[aria-pressed="false"]:hover { color: var(--ink); } }
.snap .cmp-r, .snap .bt i, .snap .bt em { transition: none !important; }
.nope { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-top: var(--gap); padding: clamp(20px, 2.2vw, 30px) clamp(22px, 2.4vw, 34px); border-radius: var(--r); background: #0d0d14; color: #f1f1f6; box-shadow: 0 20px 50px rgba(10,10,20,.22); }
.nope b { font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -.03em; line-height: 1.05; }
.nope span { color: #b9b9c8; }

/* Личные тарифы Free / Plus / Pro */
.plans-wrap { margin-top: clamp(48px, 6vw, 88px); display: grid; gap: var(--gap); justify-items: start; }
.plans-h { font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -.03em; line-height: 1.05; margin: 0; }
.plans-sub, .plans-note { margin: 0; max-width: 62ch; color: var(--muted); }
.plans-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.plans { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .plans .tier { padding: 20px; } }

/* ---------- защита данных ---------- */
.list { border-top: 1px solid rgba(255,255,255,.1); }
.li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 24px; padding: clamp(16px, 1.6vw, 24px) 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.li b { font-size: clamp(17px, 1.45vw, 21px); }
.li span { color: var(--night-muted); font-size: clamp(16px, 1.35vw, 20px); transition: color .3s ease; }
.li:hover span { color: var(--night-ink); }
.sub-head { font-weight: 500; font-size: clamp(24px, 2.3vw, 34px); letter-spacing: -.028em; line-height: 1.1; margin: clamp(44px, 5vw, 72px) 0 clamp(18px, 2vw, 26px); max-width: 24ch; }
.fines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.fines .stat { min-height: clamp(170px, 14vw, 210px); }
.fines b.blue { color: #35BAF0; }

/* ---------- развёртывание ---------- */
#deploy { padding-bottom: clamp(150px, 15vw, 220px); }
.dep { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.dep .ct { font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -.028em; line-height: 1.1; }
.dep ul { display: grid; gap: 10px; margin-top: 6px; }
.dep li { position: relative; padding-left: 22px; }
.dep li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.os { grid-column: span 2; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px clamp(24px, 3vw, 44px); padding: clamp(18px, 1.8vw, 26px) 28px; font-size: clamp(18px, 1.7vw, 24px); }
.os-list > span { display: inline-flex; align-items: center; gap: 10px; }
.os .os-list { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px clamp(24px, 3vw, 44px); }
.os .btn { height: 44px; padding: 0 24px; margin-left: clamp(4px, 1vw, 16px); }
.os svg { width: clamp(20px, 1.9vw, 26px); height: clamp(20px, 1.9vw, 26px); flex: none; }

/* ---------- демо: док с курсором ---------- */
/* финальный экран: синий, на всю высоту; слева текст и кнопки, справа большой док */
.cta { display: flex; align-items: center; color: #fff; padding: clamp(84px, 8vw, 120px) 0 clamp(72px, 7vw, 104px); }
.cta-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.cta-text { display: grid; gap: clamp(22px, 2.4vw, 34px); justify-items: start; }
.cta-title { font-weight: 500; font-size: clamp(56px, 7.6vw, 124px); line-height: .94; letter-spacing: -.05em; max-width: 9ch; }
.cta-lead { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.38; color: rgba(255,255,255,.86); max-width: 30ch; }
.cta .cta-row { gap: 14px 26px; margin-top: 6px; }
.cta-mail { font-size: clamp(18px, 1.6vw, 22px); color: rgba(255,255,255,.9); border-bottom: 1px solid rgba(255,255,255,.4); transition: border-color .2s ease, color .2s ease; }
.cta-mail:hover { color: #fff; border-color: #fff; }
.cta-dock { justify-self: center; }
.cta .dk { width: clamp(68px, 6.8vw, 104px); height: clamp(68px, 6.8vw, 104px); }
.cta .dock { gap: clamp(14px, 1.4vw, 20px); padding: clamp(14px, 1.4vw, 20px) clamp(16px, 1.6vw, 24px) clamp(18px, 1.8vw, 26px); border-radius: clamp(28px, 2.8vw, 38px); box-shadow: 0 30px 80px rgba(0,30,110,.3); }
.cta .dk.me::after { background: #fff; }
.dock-stage { position: relative; display: flex; align-items: center; }
.dock-wrap { position: relative; }
.dock { display: inline-flex; align-items: center; gap: clamp(12px, 1.3vw, 18px); padding: clamp(12px, 1.2vw, 16px) clamp(14px, 1.4vw, 20px) clamp(16px, 1.6vw, 22px); border-radius: clamp(24px, 2.4vw, 32px); background: linear-gradient(140deg, rgba(255,255,255,.95), rgba(246,247,252,.86)); box-shadow: 0 24px 60px rgba(24,28,90,.14); }
.dk { position: relative; display: block; width: clamp(60px, 6.2vw, 88px); height: clamp(60px, 6.2vw, 88px); padding: 0; border: 0; background: none; flex: none; }
.dk-i, .dk-b { display: block; width: 100%; height: 100%; transform-origin: 50% 100%; }
.dk-i { transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.dk-b { position: relative; }
.dk-b::before { content: ""; position: absolute; inset: 0; border-radius: 23%; box-shadow: 0 8px 18px rgba(24,28,90,.2); }
.dk.me .dk-b::before { border-radius: 22.6%; box-shadow: 0 14px 30px rgba(10,30,100,.38), 0 0 0 6px rgba(53,186,240,.0); }
/* акцент на нашей иконке: крупнее, остальные серые и полупрозрачные */
.cta .dk.me { width: clamp(84px, 8.4vw, 128px); height: clamp(84px, 8.4vw, 128px); }
.dk.other .dk-b { filter: grayscale(1); opacity: .42; transition: filter .3s ease, opacity .3s ease; }
.dk.other .dk-b::before { box-shadow: none; }
.dk.other.hov .dk-b { opacity: .7; }
.dk svg, .dk img { position: relative; display: block; width: 100%; height: 100%; }
.dk.me { cursor: pointer; }
.dk.hov .dk-i { transform: scale(1.24) translateY(-6%); }
.dk.near .dk-i { transform: scale(1.09) translateY(-2%); }
.dk.me::after { content: ""; position: absolute; left: 50%; bottom: calc(-1 * clamp(9px, .9vw, 13px)); width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--blue); opacity: 0; transform: scale(.4); transition: opacity .4s ease, transform .4s ease; }
.dock-stage.open .dk.me::after, .dock-stage:not(.js) .dk.me::after { opacity: 1; transform: none; }
.dock-cursor { position: absolute; z-index: 4; left: 0; top: 0; width: clamp(24px, 2.2vw, 32px); pointer-events: none; opacity: 0; transition: opacity .35s ease; will-change: transform; }
.dock-cursor-i { display: block; transform-origin: 12% 6%; }
.dock-cursor svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 3px 5px rgba(0,0,0,.3)); }
.dock-cursor.on { opacity: 1; }

/* ---------- подвал ---------- */
.foot { background: var(--night); color: var(--night-muted); padding: 0 0 26px; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.foot .brand { color: var(--night-ink); font-size: 20px; }
.foot .brand img { width: 32px; height: 32px; }
/* документы: мелкая строка под подвалом, цвет как у текста подвала */
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; font-size: 13px; line-height: 1.4; }
.foot-legal a { transition: color .25s ease; }
.foot-legal a:hover { color: var(--night-ink); }
.page-download .foot-legal a:hover { color: var(--ink); }
/* на телефоне — столбиком, с запасом по высоте под палец */
@media (max-width: 760px) {
  .foot-legal { flex-direction: column; align-items: flex-start; gap: 0; margin-top: 10px; }
  .foot-legal a { padding: 5px 0; }
}

/* ---------- появление ---------- */
.rv { opacity: 0; transform: translateY(44px); transition: opacity .5s var(--out), transform .85s var(--out); }
.rv.in { opacity: 1; transform: none; }
.window.rv { transform: translateY(70px) scale(.96); }
.window.rv.in { transform: none; transition: opacity .6s var(--out), transform 1s var(--out); }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .hero-head { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 40px; }
  .hero-star { width: 90%; left: auto; right: -10%; }
  .about .about-card { justify-self: stretch; max-width: none; margin-top: 24px; }
  .flow { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding: 6px 4px 14px; margin: -6px -4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .step { scroll-snap-align: start; }
  .q { grid-template-columns: 1fr; }
  .cta-in { grid-template-columns: 1fr; }
  .q-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .tiers, .fines { grid-template-columns: 1fr 1fr; }
  .deckcards { justify-content: flex-start; overflow-x: auto; padding: 30px var(--pad) 40px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .deckcards::-webkit-scrollbar { display: none; }
  .pc { scroll-snap-align: center; }
  .deckcards .pc { transform: none; }
}
@media (max-width: 760px) {
  .top-demo { display: none; }
  /* «Скачать» — всегда в шапке; на телефоне без точки, «Меню» — круглая кнопка с точками (подпись остаётся для экранных дикторов) */
  .top-dl { padding: 0 18px; }
  .top-dl .dot { display: none; }
  .menu-btn { width: 45px; padding: 0; gap: 0; }
  .menu-btn .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .scrollbar { display: none; }
  .brand { font-size: 23px; }
  .brand img, .brand-logo { width: 40px; height: 40px; }
  .menu-panel { top: 72px; }
  .cta-row .btn { flex: 1 1 100%; }
  .window { height: auto !important; aspect-ratio: 2200 / 1284; }
  .window-scale, .window-shield { display: none; }
  .window-shot { display: block; }
  /* по центру без transform: наведение (.btn:hover — translateY) затирало сдвиг на −50%, и кнопка уезжала вправо */
  .window-open { display: inline-flex; position: absolute; left: 0; right: 0; bottom: 14px; width: fit-content; margin-inline: auto; height: 42px; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .q-side, .tiers, .fines, .dep { grid-template-columns: 1fr; }
  .bars li { grid-template-columns: 1fr; gap: 4px; }
  .li { grid-template-columns: 1fr; gap: 4px; }
    .os { grid-column: auto; justify-content: flex-start; }
  .strip { flex-direction: column; }
  .cta-dock { justify-self: start; }
}
/* узкие телефоны: логотип и название чуть меньше, чтобы «Скачать» и меню влезли в 360 px */
@media (max-width: 400px) {
  .top { gap: 10px; }
  .top-pills { gap: 8px; }
  .brand { gap: 10px; font-size: 21px; }
  .brand img, .brand-logo { width: 36px; height: 36px; }
}

.nw { white-space: nowrap; }
@media (max-width: 1180px) {
  .hero-head { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- телефон: как у lukres — крупный текст, плотные отступы, без лишнего ---------- */
@media (max-width: 760px) {
  :root { --pad: 20px; --sec: 40px; --gap: 10px; --t-head: 32px; --r: 22px; }  /* между блоками 80 px, а не 104 */
  .head { max-width: none; margin-bottom: 22px; letter-spacing: -.035em; }
  .lead { font-size: 18px; }
  .card { padding: 20px; gap: 10px; }

  /* первый экран: заголовок, строка задачи и кнопки; плашку и звезду убираем */
  .hero-head { grid-template-rows: 1fr auto; row-gap: 26px; padding: 96px 0 22px; align-items: center; }
  .hero-right, .ask-steps { display: none; }
  .hero-left { gap: 22px; justify-items: stretch; }
  .hero-title { font-size: clamp(32px, 9.4vw, 40px); line-height: 1.04; max-width: none; }
  .ask { width: 100%; }
  .ask-bar { height: 54px; border-radius: 16px; }
  .ask-logo { width: 32px; height: 32px; }
  .ask-text { font-size: 15px; }
  .hero-cta { flex-direction: column; gap: 8px; }
  .hero-cta .btn { width: 100%; height: 54px; }

  /* волны: SVG шире экрана, поэтому линии крупные и их видно; ленту в «Качестве» и «Ценах» убираем */
  .stroke { width: 260%; left: 50%; transform: translate(-50%, -50%); }
  .ribbon { display: none; }

  /* имя и описание */
  .about .about-card { margin-top: 18px; padding: 20px; font-size: 18px; line-height: 1.4; }

  /* как работает: шаги сеткой по два, без стрелок и прокрутки вбок */
  .flow { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
  .flow-label { gap: 2px; }
  .flow-label b { font-size: 24px; }
  .flow-label span { font-size: 14px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; padding: 0; margin: 0; scroll-snap-type: none; }
  .step + .step::before { display: none; }
  .step { min-height: 0; gap: 6px; padding: 12px; font-size: 14px; line-height: 1.3; }
  .step:last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* интерфейс */
  .demo-head { margin-bottom: 18px; }
  .demo-note { font-size: 16px; }

  /* качество */
  .chart { padding: 18px; gap: 12px; }
  .q-side .card .num { font-size: 28px; }

  /* цены: тарифы листаются вбок, следующий видно краем */
  .strip { gap: 6px; padding: 16px 18px; font-size: 15px; }
  .strip:has(.seg) { align-items: stretch; }
  .seg { margin-bottom: 8px; }
  .seg button { flex: 1; }
  .tiers { display: flex; grid-template-columns: none; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); margin-inline: calc(-1 * var(--pad)); padding: 4px var(--pad) 16px; scrollbar-width: none; }
  .tiers::-webkit-scrollbar { display: none; }
  .tier { flex: 0 0 82%; scroll-snap-align: start; padding: 20px; }
  .nope { padding: 20px; gap: 8px; }
  .nope b { font-size: 22px; }
  .nope span { font-size: 15px; }

  /* защита данных */
  .li { padding: 14px 0; }
  .li b { font-size: 17px; }
  .li span { font-size: 15px; }

  /* отделы: карты листаются вбок */
  .depts-pin { min-height: 0; padding-block: 40px 28px; }
  .deckcards { gap: 12px; padding: 18px var(--pad) 28px; scroll-padding-inline: var(--pad); }
  .pc { width: 220px; }

  /* развёртывание: «Приложение для» — заголовок, системы в ряд, кнопка на всю ширину */
  .dep .ct { font-size: 24px; }
  .os { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px; text-align: center; font-size: 18px; }
  .os > b { font-size: 16px; color: var(--muted); font-weight: 500; }
  .os .os-list { gap: 10px 22px; }
  .os .btn { margin: 0; width: 100%; height: 50px; }

  /* финал */
  .cta { padding: 48px 0 44px; }
  #deploy { padding-bottom: 56px; }  /* на компьютере 150+ под переход в синий блок, на телефоне это пустой экран */
  .cta-in { gap: 28px; }
  .cta-title { font-size: clamp(48px, 14vw, 60px); }
  .cta-lead { font-size: 17px; }
  .cta .dk { width: 60px; height: 60px; }
  .cta .dk.me { width: 72px; height: 72px; }
  .cta .dock { gap: 10px; padding: 12px 14px 16px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .hv, .window.rv, .flow .step, .pc { opacity: 1 !important; transform: none !important; transition: none !important; }
  .deckcards .pc { transform: rotateY(var(--ry)) rotateZ(var(--rz)) translateY(var(--ty)) !important; }
  .pc-in { transform: none !important; transition: none !important; }
  .bt i, .dk-i, .hero-star .draw { transition: none !important; }
  .bars li, .cmp-r, .bt em { opacity: 1 !important; transform: none !important; transition: none !important; }
  .glows i, .hero-star, .ready .hero-right .spec, .ask-caret, .ask-eye, .brand-eye { animation: none; }
  .chev i, .foot-dl-btn { animation: none; }
}

/* ---------- страница скачивания: только факты ---------- */
.dl { position: relative; z-index: 1; padding: clamp(116px, 11vw, 150px) 0 var(--sec); }
/* верх: большая кнопка под систему посетителя и версия под ней */
.dl-hero { display: grid; justify-items: center; gap: 14px; text-align: center; margin-bottom: clamp(34px, 4vw, 56px); }
.dl-main { height: clamp(56px, 4.4vw, 64px); padding: 0 clamp(28px, 2.6vw, 38px); gap: 12px; font-size: clamp(14px, 1.1vw, 16px); }
.dl-main svg { width: 19px; height: 19px; fill: #fff; flex: none; }
.dl-main.no-ic svg { display: none; }
.dl-ver { margin: 0; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* три карточки систем, у каждой — кнопки вариантов с размером */
.dl-os-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.dl-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(18px, 1.8vw, 24px); }
.dl-card.is-you { box-shadow: 0 0 0 2px var(--blue), 0 20px 52px rgba(39,136,240,.16); }
.dl-card-head { display: flex; align-items: center; gap: 14px; }
.dl-card-head b { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.dl-card-head small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.dl-card.is-you .dl-card-head small::after { content: " · ваша система"; color: var(--blue); }
.dl-links { display: grid; gap: 8px; }
.dl-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; padding: 0 18px; border-radius: 16px; background: var(--pill-dark); color: #fff; font-size: 15px; transition: background-color .25s ease, transform .25s ease; }
.dl-link b { font-weight: 500; }
.dl-link:hover { background: var(--blue); }
.dl-link:active { transform: scale(.98); }
.dl-card.is-you .dl-link { background: #2B8EF0; }
.dl-card.is-you .dl-link:hover { background: var(--pill-dark); }
.dl-link .dl-size { color: rgba(255,255,255,.62); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dl-link.off { opacity: .4; pointer-events: none; }
.dl-note { margin: auto 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.dl-note code { font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); background: rgba(10,10,15,.06); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dl-os { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #fff; box-shadow: 0 6px 16px rgba(24,28,90,.08); }
.dl-os svg { width: 19px; height: 19px; fill: var(--ink); }
.dl-size { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dl-auto { margin-top: 16px; font-size: 15px; color: var(--muted); }
.dl-h2 { font-weight: 500; font-size: clamp(28px, 2.8vw, 42px); letter-spacing: -.03em; line-height: 1.05; margin: clamp(48px, 5vw, 72px) 0 clamp(18px, 2vw, 26px); }
.dl-news { padding-top: 0; }
/* на странице скачивания подвал светлый, как сама страница, и с ровными отступами */
.page-download .foot { position: relative; z-index: 1; background: transparent; color: var(--muted); padding: 24px 0 30px; }
.page-download .foot .brand { color: var(--ink); }
.page-download .foot-in { padding-top: 0; }
.dl-news .dl-h2 { margin-top: 0; }
.dl-news-list { display: grid; gap: 10px; }
.dl-entry { padding: clamp(20px, 2vw, 28px); }
.dl-entry-head { display: flex; align-items: center; gap: 12px; }
.dl-entry-head b { font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dl-entry-head span { font-size: 14px; color: var(--muted); }
.dl-entry-head i { margin-left: auto; padding: 5px 11px; border-radius: 999px; background: var(--grad-btn); color: #fff; font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
/* Две колонки, каждая своим ходом: в сетке пункты выравнивались по строкам, и под коротким пунктом
   справа оставалась дыра высотой с длинный слева. */
.dl-entry ul { columns: 2; column-gap: clamp(24px, 3vw, 48px); margin-top: 16px; }
.dl-entry li { position: relative; padding-left: 18px; margin-bottom: 16px; break-inside: avoid; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.dl-entry li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
/* У пункта своя иконка: синяя, на светлой синей плашке — вместо точки. */
.dl-entry li.has-ic { padding-left: 42px; min-height: 30px; }
.dl-entry li.has-ic::before { display: none; }
.dl-ic {
  position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; background: rgb(39 136 240 / .1);
}
.dl-ic::after {
  content: ""; width: 16px; height: 16px; background: var(--blue);
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
}
.dl-entry li b { display: block; color: var(--ink); font-weight: 500; }
.dl-entry li span { display: block; margin-top: 2px; }
/* последняя версия: сначала видно начало, остальное — по кнопке */
.dl-entry.is-cut li:nth-child(n + 5) { display: none; }
.dl-entry.is-cut ul { position: relative; }
.dl-entry.is-cut ul::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(rgba(250,250,253,0), rgba(250,250,253,.92)); pointer-events: none; }
.dl-more { margin-top: 18px; height: 44px; padding: 0 22px; font-size: 13px; box-shadow: inset 0 0 0 1px rgba(10,10,15,.12); }
/* прошлые версии: свёрнуты, раскрываются по нажатию */
details.dl-entry { padding-block: 0; }
details.dl-entry > summary { list-style: none; cursor: pointer; padding-block: clamp(18px, 1.8vw, 24px); }
details.dl-entry > summary::-webkit-details-marker { display: none; }
details.dl-entry[open] > summary { padding-bottom: 0; }
details.dl-entry[open] > ul { padding-bottom: clamp(20px, 2vw, 28px); }
.dl-chev { margin-left: auto; width: 32px; height: 32px; flex: none; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px rgba(10,10,15,.1); position: relative; transition: transform .3s var(--out); }
.dl-chev::before { content: ""; position: absolute; left: 50%; top: 45%; width: 8px; height: 8px; border-right: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: translate(-50%, -50%) rotate(45deg); }
details[open] .dl-chev { transform: rotate(180deg); }
details.dl-entry > summary:hover .dl-chev { background: var(--man); }
@media (max-width: 960px) {
  .dl-os-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dl-entry ul { columns: 1; }
  .dl-entry.is-cut li:nth-child(n + 3) { display: none; }
}

/* ---------- внизу: большая кнопка скачивания, к ней с боков бегут стрелки ---------- */
.foot-dl { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.8vw, 26px); padding-top: clamp(32px, 3.6vw, 48px); padding-bottom: clamp(24px, 2.8vw, 36px); }
.foot-dl-btn { height: clamp(52px, 4.2vw, 60px); padding: 0 clamp(28px, 2.6vw, 38px); font-size: clamp(14px, 1.1vw, 16px); box-shadow: 0 0 0 0 rgba(255,255,255,.4); animation: knock 1.6s linear infinite; }
.foot-dl-btn:hover { transform: scale(1.03); }
/* общий цикл 1,6 с: стрелки загораются от краёв к кнопке (пики 0,48 / 0,64 / 0,8 с),
   на 0,8 с — ровно с ближней парой — от кнопки расходится кольцо */
@keyframes knock { 0%, 50% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); transform: scale(1); } 56% { transform: scale(1.04); } 68% { transform: scale(1); } 90%, 100% { box-shadow: 0 0 0 18px rgba(255,255,255,0); transform: scale(1); } }
.chev { display: flex; gap: clamp(6px, .9vw, 14px); }
.chev i { position: relative; width: clamp(14px, 1.3vw, 20px); height: clamp(14px, 1.3vw, 20px); border-top: 3px solid #35BAF0; border-right: 3px solid #35BAF0; border-radius: 2px; transform: rotate(45deg); opacity: .15; animation: chev 1.6s ease-in-out infinite; }
.chev-r { flex-direction: row-reverse; }
.chev-r i { transform: rotate(-135deg); }
.chev i:nth-child(1) { animation-delay: 0s; }
.chev i:nth-child(2) { animation-delay: .16s; }
.chev i:nth-child(3) { animation-delay: .32s; }
@keyframes chev { 0%, 100% { opacity: .15; } 30% { opacity: 1; } 60% { opacity: .15; } }
.foot-in { padding-top: 0; }
/* чёрная косая шторка между страницами */
/* шторка перехода на страницу скачивания: чёрная, по центру лого с крутящимся глазом —
   на обеих страницах в одном месте, поэтому пока грузится новая страница, это выглядит как один кадр */
:root { --wipe-logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='28 29 626 626' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='40'%3E%3Cpath d='M115 321.5L205.5 201L295.5 321.5' stroke='%23D6D8DF'/%3E%3Cpath d='M190.5 477.5C291.167 531.167 391.833 531.167 492.5 477.5' stroke='%23D6D8DF'/%3E%3Cg%3E%3Cpath d='M496.149 159.596L437.851 362.902M394.684 185.117L539.179 337.862M365.19 287.972L568.672 235.007' stroke='%232B9FF1'/%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 466.95 261.41' to='360 466.95 261.41' dur='1.6s' repeatCount='indefinite'/%3E%3C/g%3E%3C/svg%3E"); }
/* переход между страницами сайта без пустого кадра: браузер держит старую страницу (чёрную шторку),
   пока не нарисует новую (тоже под чёрной шторкой), — белому неоткуда взяться. Где не поддерживается — просто игнорируется */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
html.wipe-in::after { content: ""; position: fixed; inset: 0; z-index: 2147483000; background: var(--night) var(--wipe-logo) center / 72px 72px no-repeat; }
.wipe { position: fixed; inset: 0; z-index: 2147483000; background: var(--night) var(--wipe-logo) center / 72px 72px no-repeat; pointer-events: none; }

/* ---------- юридические страницы (privacy.html): длинный текст ----------
   Всё здесь — только классы .legal-*: чужие правила не трогаем. Текст на белом листе,
   содержание сбоку (на телефоне — над текстом), плашка черновика и замечания — голубым акцентом. */
.legal-page .foot { position: relative; z-index: 1; background: transparent; color: var(--muted); padding: 24px 0 30px; }
.legal-page .foot .brand { color: var(--ink); }
.legal-page .foot-in { padding-top: 0; }
/* подвал светлый: ссылка на документы при наведении темнеет, а не светлеет, как на тёмном подвале */
.legal-page .foot-legal a:hover, .legal-page .foot-legal a[aria-current] { color: var(--ink); }
/* длинный текст уезжает под прозрачную шапку и сталкивается с логотипом — под шапкой мягкая растушёвка цвета страницы */
/* растушёвка кончается у нижнего края шапки: ниже открывается меню, его не задеваем */
.legal { position: relative; z-index: 1; padding: clamp(100px, 9.5vw, 136px) 0 clamp(32px, 4vw, 56px); }
.legal-in { max-width: 1200px; margin-inline: auto; }

/* плашка «Черновик»: видна сразу, синим градиентом как главная кнопка */
.legal-draft { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border-radius: var(--r); background: var(--grad-btn); color: #fff; box-shadow: 0 12px 28px rgba(39,136,240,.28); }
.legal-draft > i { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.22); font-style: normal; font-weight: 500; font-size: 17px; }
.legal-draft b { display: block; font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; letter-spacing: -.01em; }
.legal-draft span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.9); }
.legal-org { background: linear-gradient(135deg, #ffa53a, #ff7a1a); box-shadow: 0 12px 28px rgba(255,122,26,.28); }
.legal-org + .legal-draft, .legal-org + .legal-head { margin-top: 14px; }

/* замечания к черновику: что найдено в коде и что проверить юристу */
.legal-todo { margin-top: 10px; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 2px rgba(39,136,240,.35); }
.legal-todo > summary { display: flex; align-items: center; gap: 12px; padding: 14px 20px; cursor: pointer; list-style: none; font-weight: 500; color: var(--blue); }
.legal-todo > summary::-webkit-details-marker { display: none; }
.legal-todo > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--out); }
.legal-todo[open] > summary::after { transform: rotate(-135deg); }
.legal-todo-body { padding: 0 20px 18px; }
.legal-todo-body > p { font-size: 14px; line-height: 1.5; color: var(--muted); margin-bottom: 10px; }
.legal-todo ol { counter-reset: todo; display: grid; gap: 10px; }
.legal-todo li { counter-increment: todo; position: relative; padding-left: 34px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); scroll-margin-top: 96px; }
.legal-todo li::before { content: counter(todo); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--man); color: var(--blue); font-size: 12px; font-weight: 500; }
.legal-todo li b { color: var(--ink); font-weight: 500; }
.legal-todo h3 { margin: 18px 0 8px; font-size: 15px; font-weight: 500; }
.legal-src { display: grid; gap: 4px; font-size: 13.5px; line-height: 1.45; }
.legal-src li { padding-left: 0; font-size: 13.5px; }
.legal-src li::before { content: none; }
.legal-todo a, .legal-doc a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; overflow-wrap: anywhere; }

/* заголовок документа */
.legal-head { margin-top: clamp(28px, 3.4vw, 48px); }
.legal-title { font-weight: 500; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.03; letter-spacing: -.038em; max-width: 17ch; text-wrap: balance; }
.legal-meta { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* сетка: содержание и лист */
.legal-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(16px, 2.2vw, 32px); align-items: start; margin-top: clamp(22px, 2.6vw, 36px); }
.legal-toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; padding: 14px 8px; scrollbar-width: thin; }
.legal-toc > b { display: block; padding: 0 12px 8px; font-size: 13px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.legal-toc ol { display: grid; gap: 1px; }
.legal-toc a { display: flex; gap: 8px; padding: 7px 12px; border-radius: 12px; font-size: 14px; line-height: 1.3; color: var(--ink-2); transition: background-color .25s ease, color .25s ease; }
.legal-toc a span { flex: none; min-width: 1.4em; color: var(--blue); font-variant-numeric: tabular-nums; }
.legal-toc a:hover, .legal-toc a:focus-visible { background: var(--man); color: var(--blue); outline: none; }

/* лист с текстом */
/* размытие под стеклом на длинном листе дорого для телефона: лист почти белый, без размытия */
.legal-doc { padding: clamp(22px, 3.2vw, 52px); background: rgba(255,255,255,.94); -webkit-backdrop-filter: none; backdrop-filter: none; }
.legal-doc > section + section { margin-top: clamp(30px, 3.2vw, 46px); }
.legal-doc h2 { font-weight: 500; font-size: clamp(23px, 2vw, 30px); line-height: 1.15; letter-spacing: -.025em; margin-bottom: 14px; }
.legal-doc h3 { font-weight: 500; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.3; letter-spacing: -.01em; }
.legal-doc p, .legal-doc li, .legal-doc dd { font-size: clamp(15.5px, 1.1vw, 17px); line-height: 1.6; color: var(--ink-2); overflow-wrap: break-word; }
.legal-doc p { max-width: 76ch; }
.legal-doc * + p, .legal-doc p + ul, .legal-doc p + .legal-cards { margin-top: 10px; }
.legal-doc b { color: var(--ink); }
.legal-doc code, .legal-todo code { font: 13.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); background: rgba(10,10,15,.06); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
/* пункт с номером: номер висит слева, текст ровной колонкой */
.legal-p { position: relative; padding-left: 2.7em; }
.legal-n { position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 500; font-variant-numeric: tabular-nums; }
/* больше девяти разделов: «14.1.» шире «1.1.» и налезал на текст — отступ под двузначный номер */
.legal-doc.legal-n2 .legal-p { padding-left: 3.15em; }
/* списки с голубой точкой, как на странице скачивания */
/* колонка сжимается по ширине листа: длинный адрес в тексте переносится, а не вылезает за край на телефоне */
.legal-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; max-width: 76ch; }
.legal-p + .legal-list, .legal-p .legal-list { margin-top: 8px; }
.legal-list li { position: relative; padding-left: 18px; }
.legal-list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* «Коротко» в начале документа */
.legal-brief { padding: clamp(16px, 1.8vw, 22px) clamp(18px, 2vw, 26px); border-radius: 18px; background: var(--man); margin-bottom: clamp(26px, 3vw, 40px); }
.legal-brief h2 { font-size: clamp(19px, 1.5vw, 22px); margin-bottom: 10px; }

/* цели обработки — карточками: на телефоне читается лучше таблицы */
.legal-cards { display: grid; gap: 12px; }
.legal-card { padding: clamp(16px, 1.8vw, 24px); border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px rgba(10,10,15,.08); scroll-margin-top: 96px; }
.legal-card h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 12px; }
.legal-card h3 > span:first-child { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--man); color: var(--blue); font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.legal-dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 18px; margin: 0; }
.legal-dl dt { font-size: 14px; line-height: 1.5; color: var(--muted); padding-top: 2px; }
.legal-dl dd { margin: 0; font-size: clamp(15px, 1.05vw, 16px); }
.legal-dl dd .legal-list { gap: 4px; margin-top: 2px; }
/* термины */
.legal-terms { display: grid; gap: 8px; }
.legal-terms dt { font-weight: 500; color: var(--ink); font-size: clamp(15.5px, 1.1vw, 17px); }
.legal-terms dd { margin: 0 0 6px; }

/* заглушки и пометки — чтобы их было легко найти глазами */
.legal-ph { padding: 0 4px; border-radius: 5px; background: rgba(39,136,240,.13); color: var(--blue); font-weight: 500; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.legal-flag { display: inline-block; margin-left: 4px; padding: 2px 9px; border-radius: 999px; background: var(--blue); color: #fff !important; font-size: 11.5px; line-height: 1.4; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; text-decoration: none !important; vertical-align: 1px; white-space: nowrap; }
a.legal-flag:hover { background: var(--pill-dark); }

@media (max-width: 960px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; max-height: none; padding: 12px 6px; }
  .legal-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .legal-draft { padding: 14px 16px; gap: 12px; }
  .legal-todo > summary { padding: 14px 16px; }
  .legal-todo-body { padding: 0 16px 16px; }
  .legal-toc ol { grid-template-columns: minmax(0, 1fr); }
  .legal-toc a { padding: 5px 10px; }
  .legal-grid { margin-inline: -6px; }
  .legal-doc { padding: 20px 14px; border-radius: 20px; }
  .legal-p { padding-left: 2.4em; }
  .legal-card { padding: 16px 14px; }
  .legal-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .legal-dl dt { padding-top: 10px; }
  .legal-dl dt:first-child { padding-top: 0; }
}
/* печать: только документ, без шапки, фона и содержания */
@media print {
  .legal-page .top, .legal-page .menu-panel, .legal-page .scrollbar, .legal-page .glows, .legal-toc, .legal-todo { display: none !important; }
  .legal { padding: 0; }
  .legal-grid { display: block; }
  .legal-doc { box-shadow: none; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .legal-draft { box-shadow: none; }
}

/* ---------- лицензии сторонних компонентов (third-party.html): таблицы ----------
   Только классы .legal-*, чужие правила не трогаем. На широком экране — обычная таблица,
   на телефоне каждая строка становится карточкой: четыре колонки в 375 px не помещаются. */
.legal-doc h3 + .legal-table, .legal-doc p + .legal-table { margin-top: 10px; }
.legal-doc .legal-table + h3, .legal-doc .legal-table + p { margin-top: 22px; }
.legal-doc h3.legal-sub { margin-top: 20px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: clamp(14.5px, 1vw, 15.5px); line-height: 1.45; }
.legal-table th { padding: 0 12px 8px; text-align: left; font-size: 12px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid rgba(39,136,240,.35); white-space: nowrap; }
.legal-table td { padding: 10px 12px; vertical-align: top; color: var(--ink-2); border-bottom: 1px solid rgba(10,10,15,.08); }
.legal-table th:first-child, .legal-table td:first-child { padding-left: 0; }
.legal-table th:last-child, .legal-table td:last-child { padding-right: 0; }
.legal-table tbody tr:last-child td { border-bottom: 0; }
.legal-table td:first-child b { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.legal-table td small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.legal-table .legal-ver { font-variant-numeric: tabular-nums; }
/* одинаковые колонки во всех таблицах страницы, чтобы глаз не прыгал от таблицы к таблице */
@media (min-width: 761px) {
  .legal-table { table-layout: fixed; }
  .legal-table th:nth-child(1) { width: 40%; }
  .legal-table th:nth-child(2) { width: 17%; }
  .legal-table th:nth-child(3) { width: 19%; }
}
.legal-table td:last-child { font-size: 14px; }
/* лицензия — голубая пилюля; в ячейке их может быть две (Lucide: ISC и MIT) */
.legal-lic { display: inline-block; margin: 1px 4px 1px 0; padding: 2px 9px; border-radius: 999px; background: var(--man); color: var(--blue); font-size: 13px; font-weight: 500; line-height: 1.45; white-space: nowrap; }
.legal-table .legal-lic { max-width: 100%; white-space: normal; }
.legal-doc a.legal-lic { text-decoration: none; transition: background-color .25s ease, color .25s ease; }
.legal-doc a.legal-lic:hover { background: var(--blue); color: #fff; }
/* строка, которую юристу нужно посмотреть отдельно */
.legal-table tr.legal-warn td:first-child { box-shadow: inset 3px 0 0 var(--blue); padding-left: 12px; }
/* тексты лицензий — пилюлями в строку */
.legal-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.legal-chips .legal-lic { margin: 0; padding: 5px 12px; font-size: 14px; }

@media (max-width: 760px) {
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .legal-table, .legal-table tbody { display: block; }
  .legal-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 11px 0; border-bottom: 1px solid rgba(10,10,15,.08); }
  .legal-table tbody tr:last-child { border-bottom: 0; }
  .legal-table td { display: block; padding: 0; border: 0; }
  .legal-table td:first-child { flex: 1 0 100%; }
  .legal-table td:last-child { flex: 1 0 100%; padding: 0; }
  .legal-table td.legal-ver[data-label]::before { content: attr(data-label) " "; color: var(--muted); }
  .legal-table tr.legal-warn { padding-left: 12px; box-shadow: inset 3px 0 0 var(--blue); }
  .legal-table tr.legal-warn td:first-child { box-shadow: none; padding-left: 0; }
}

/* ---------- ленты карточек на узких экранах: кнопки ← → и точки (js/carousel.js) ---------- */
.car-nav { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }  /* поверх ленты: её нижний отступ заходит под кнопки и перехватывал мышь */
.car-nav[hidden], .depts.pinned .car-nav { display: none; }
.car-btn { width: 46px; height: 46px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 6px 18px rgba(24,28,90,.1); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .35s ease, color .35s ease, transform .35s var(--out), opacity .3s ease; }
.car-btn::before { content: ""; width: 16px; height: 12px; background: currentColor;
  -webkit-mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h13.5M9.5 1l5 5-5 5'/%3E%3C/svg%3E");
  mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h13.5M9.5 1l5 5-5 5'/%3E%3C/svg%3E");
  transition: transform .35s var(--out); }
.car-btn.prev::before { transform: scaleX(-1); }
.car-btn:hover { background: var(--blue); color: #fff; }
.car-btn.next:hover::before { transform: translateX(2px); }
.car-btn.prev:hover::before { transform: scaleX(-1) translateX(2px); }
.car-btn:active { transform: scale(.93); }
.car-btn:disabled { opacity: .35; pointer-events: none; box-shadow: none; }
.car-dots { display: flex; align-items: center; gap: 6px; }
.car-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(10,10,15,.18); cursor: pointer; transition: width .45s var(--out), background-color .35s ease; }
.car-dot.on { width: 26px; background: var(--blue); }
/* на синем блоке отделов: белые кнопки с синей стрелкой, при наведении — чёрные */
.depts .car-btn { color: var(--blue); box-shadow: 0 8px 22px rgba(0,25,90,.22); }
.depts .car-btn:hover { background: var(--pill-dark); color: #fff; }
.depts .car-dot { background: rgba(255,255,255,.4); }
.depts .car-dot.on { background: #fff; }
/* тень карточек не обрезается краем ленты: даём ей место и забираем его обратно */
@media (max-width: 1180px) {
  .deckcards { padding-bottom: 64px; }
  .deckcards .pc-face { box-shadow: 0 14px 30px rgba(0,25,90,.24); }  /* короче, чтобы целиком помещалась в ленту */
  .deckcards + .car-nav { margin-top: -34px; }
}
@media (max-width: 760px) {
  .tiers { padding-bottom: 48px; }
  .tiers + .car-nav { margin-top: -30px; margin-bottom: 18px; }  /* сверху 48 − 30 = 18; снизу 18 (отступы с плашкой схлопываются) */
  /* тень чёрной плашки короче: раздел на телефоне кончается раньше, и длинная тень обрезалась ровной полосой */
  .nope { box-shadow: 0 12px 26px rgba(10,10,20,.2); }
  /* тени стеклянных карточек короче нижнего отступа секции (40 px): длинная тень обрезалась краем
     секции и давала полосу другого цвета под последним блоком */
  .glass { box-shadow: 0 10px 24px rgba(24,28,90,.1); }
  .step.agent, .step.bot { box-shadow: 0 8px 18px rgba(39,136,240,.2); }
  .deckcards { padding-bottom: 56px; }
  .deckcards + .car-nav { margin-top: -26px; }
}

/* ---------- статьи (/blog/): шаблон статьи и список статей ----------
   Только классы .blog-*, .post-*, .crumbs — чужие правила не трогаем.
   Текст на белом листе, строка около 68 знаков, оглавление сбоку (на телефоне — сворачивается над текстом).
   Без backdrop-filter: размытие под липким оглавлением на длинной странице тормозит прокрутку. */
.blog-page .foot { position: relative; z-index: 1; background: transparent; color: var(--muted); padding: 24px 0 30px; }
.blog-page .foot .brand { color: var(--ink); }
.blog-page .foot-legal a:hover { color: var(--ink); }
.blog-page .foot-col b { color: var(--ink); opacity: .5; }
.blog-page .foot-col a:hover, .blog-page .foot-col a[aria-current] { color: var(--ink); }
/* подсветы гаснут к низу страницы, а не обрываются краем: на короткой /blog/ край был виден */
.blog-page .glows { -webkit-mask-image: linear-gradient(#000 calc(100% - 360px), transparent); mask-image: linear-gradient(#000 calc(100% - 360px), transparent); }
.post, .blog { position: relative; z-index: 1; padding: clamp(100px, 9.5vw, 136px) 0 clamp(32px, 4vw, 56px); }
.post-in { max-width: 1064px; margin-inline: auto; }

/* хлебные крошки: Главная → Статьи → статья */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: ""; flex: none; width: 6px; height: 6px; margin: 0 11px 0 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .55; }
.crumbs a { color: var(--ink-2); transition: color .25s ease; }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* шапка статьи: рубрика, заголовок, подзаголовок, автор и даты */
.post-head { margin-top: clamp(20px, 2.4vw, 34px); }
.post-head .post-tag { margin-top: clamp(16px, 1.8vw, 24px); }
.post-tag { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--man); color: var(--blue); font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: .02em; text-transform: uppercase; }
.post-title { margin-top: 12px; max-width: 22ch; font-weight: 500; font-size: clamp(32px, 3.9vw, 56px); line-height: 1.04; letter-spacing: -.036em; text-wrap: balance; }
.post-lead { margin-top: clamp(14px, 1.4vw, 20px); max-width: 60ch; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.42; letter-spacing: -.01em; color: var(--ink-2); text-wrap: pretty; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin-top: clamp(14px, 1.5vw, 20px); font-size: 14px; line-height: 1.4; color: var(--muted); }
.post-meta > * + *::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 10px; border-radius: 50%; background: var(--blue); vertical-align: middle; }
.post-meta b { color: var(--ink); font-weight: 500; }

/* оглавление сбоку + лист с текстом */
.post-grid { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(16px, 2.2vw, 32px); align-items: start; margin-top: clamp(24px, 2.8vw, 40px); }
.post-toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; padding: 14px 8px; border-radius: var(--r); background: rgba(255,255,255,.62); scrollbar-width: thin; }
.post-toc > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px 8px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.post-toc > summary::-webkit-details-marker { display: none; }
.post-toc > summary::after { content: ""; flex: none; width: 7px; height: 7px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--out); }
.post-toc[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.post-toc:not([open]) > summary { padding-bottom: 0; }
.post-toc ol { display: grid; gap: 1px; }
.post-toc a { display: block; padding: 7px 12px; border-radius: 12px; font-size: 14px; line-height: 1.3; color: var(--ink-2); transition: background-color .25s ease, color .25s ease; }
.post-toc a:hover, .post-toc a:focus-visible { background: var(--man); color: var(--blue); outline: none; }
.post-col { display: grid; gap: var(--gap); min-width: 0; }

/* текст статьи: 17–19 px, межстрочный 1,62, абзацы плотно */
.post-body { min-width: 0; padding: clamp(24px, 3.4vw, 48px) clamp(20px, 3.4vw, 48px) clamp(28px, 3.4vw, 48px); border-radius: var(--r); background: #fff; box-shadow: 0 20px 52px rgba(24,28,90,.07); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.62; color: var(--ink-2); overflow-wrap: break-word; }
.post-body > * { max-width: 37em; } /* ≈ 68 знаков в строке */
.post-body > * + * { margin-top: .85em; }
.post-body > h2 { margin-top: 1.6em; }
.post-body > h3 { margin-top: 1.3em; }
.post-body > h2 + *, .post-body > h3 + * { margin-top: .45em; }
.post-body h2 { font-weight: 500; font-size: clamp(24px, 2.05vw, 31px); line-height: 1.15; letter-spacing: -.026em; color: var(--ink); text-wrap: balance; scroll-margin-top: 96px; }
.post-body h3 { font-weight: 500; font-size: clamp(19px, 1.45vw, 22px); line-height: 1.25; letter-spacing: -.015em; color: var(--ink); scroll-margin-top: 96px; }
.post-body strong, .post-body b { font-weight: 500; color: var(--ink); }
.post-body a:not(.btn):not(.post-ref) { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(39,136,240,.45); transition: text-decoration-color .25s ease, color .25s ease; }
.post-body a:not(.btn):not(.post-ref):hover { text-decoration-color: currentColor; }
/* списки: маркер — голубая точка, нумерация — номер в голубом кружке */
.post-body ul, .post-body ol { display: grid; gap: .4em; }
.post-body li > ul, .post-body li > ol { margin-top: .4em; }
.post-body ul > li { position: relative; padding-left: 1.25em; }
.post-body ul > li::before { content: ""; position: absolute; left: .2em; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.post-body ol { counter-reset: li; }
.post-body ol > li { counter-increment: li; position: relative; padding-left: 2.1em; }
.post-body ol > li::before { content: counter(li); position: absolute; left: 0; top: .2em; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--man); color: var(--blue); font-size: 12.5px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
/* «Коротко» в начале статьи — ответ для читателя и для ИИ-поиска */
.post-brief { max-width: none; padding: clamp(16px, 1.8vw, 22px) clamp(18px, 2vw, 26px); border-radius: 18px; background: var(--man); }
.post-brief-label { font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: .02em; text-transform: uppercase; color: var(--blue); }
.post-brief > * + * { margin-top: 8px; }
.post-brief li::before { top: .62em; }
/* врезка «Важно» */
.post-note { max-width: none; padding: 14px 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px rgba(39,136,240,.35); font-size: .95em; line-height: 1.55; }
.post-note > b:first-child { display: block; margin-bottom: 2px; color: var(--blue); }
/* цитата: голубая черта слева, подпись снизу */
.post-body blockquote { margin: .85em 0 0; padding: 2px 0 2px 22px; box-shadow: inset 3px 0 0 var(--blue); font-size: 1.1em; line-height: 1.45; letter-spacing: -.01em; color: var(--ink); }
.post-body blockquote > * + * { margin-top: .5em; }
.post-body blockquote cite { display: block; font-size: 14px; font-style: normal; letter-spacing: 0; color: var(--muted); }
/* код */
.post-body code { padding: 1px 6px; border-radius: 6px; background: rgba(10,10,15,.06); color: var(--ink); font: .84em/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.post-body pre { max-width: none; overflow-x: auto; padding: 16px 20px; border-radius: 16px; background: var(--pill-dark); color: var(--night-ink); font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; tab-size: 2; scrollbar-width: thin; }
.post-body pre code { padding: 0; background: none; color: inherit; font: inherit; overflow-wrap: normal; }
/* таблица: на телефоне прокручивается вбок внутри листа */
.post-table { max-width: none !important; overflow-x: auto; scrollbar-width: thin; }
.post-table table { width: 100%; border-collapse: collapse; font-size: .84em; line-height: 1.45; font-variant-numeric: tabular-nums; }
.post-table caption { caption-side: top; padding-bottom: 10px; text-align: left; font-size: 14px; color: var(--muted); }
.post-table thead th { padding: 0 14px 9px; text-align: left; vertical-align: bottom; font-size: 12px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid rgba(39,136,240,.35); }
.post-table td, .post-table tbody th { padding: 11px 14px; text-align: left; vertical-align: top; color: var(--ink-2); border-bottom: 1px solid rgba(10,10,15,.08); }
.post-table tbody th { font-weight: 500; color: var(--ink); }
.post-table tr > :first-child { padding-left: 0; }
.post-table tr > :last-child { padding-right: 0; }
.post-table tbody tr:last-child > * { border-bottom: 0; }
.post-table .r { text-align: right; white-space: nowrap; }
.post-table code { white-space: nowrap; overflow-wrap: normal; }
/* столбец, который надо выделить (например, свой сервер): голубая подложка */
.post-table .hl { background: rgba(39,136,240,.07); padding-inline: 14px !important; }
/* картинка с подписью */
.post-body figure { max-width: none; }
.post-body figure img { width: 100%; border-radius: 14px; box-shadow: 0 0 0 1px rgba(10,10,15,.08); }
.post-body figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.post-body hr { height: 1px; margin: 1.8em 0; border: 0; background: rgba(10,10,15,.1); }
/* ссылка на источник в тексте: [1] */
.post-ref { margin-left: 2px; font-size: .74em; font-weight: 500; line-height: 1; vertical-align: .38em; color: var(--blue); font-variant-numeric: tabular-nums; transition: color .25s ease; }
.post-ref:hover { color: var(--ink); }
/* источники в конце листа */
.post-body > .post-sources { max-width: none; margin-top: 2.2em; padding-top: 1.3em; border-top: 1px solid rgba(10,10,15,.1); }
.post-sources h2 { margin-bottom: 12px; font-size: clamp(19px, 1.45vw, 22px); }
.post-sources ol { gap: 8px; font-size: 15px; line-height: 1.5; }
.post-sources ol > li { padding-left: 2.2em; scroll-margin-top: 96px; overflow-wrap: anywhere; border-radius: 8px; transition: background-color .4s ease; }
.post-sources ol > li::before { top: 0; width: 22px; height: 22px; font-size: 12px; }
.post-sources li:target { background: var(--man); }
.post-sources small { color: var(--muted); font-size: 1em; }

/* «Попробовать AgentDesk»: тёмная плашка, как кнопки сайта, с голубым отсветом */
.post-cta { display: grid; justify-items: start; gap: clamp(18px, 1.8vw, 24px); padding: clamp(22px, 2.6vw, 36px) clamp(20px, 2.8vw, 40px); border-radius: var(--r); background: radial-gradient(120% 150% at 100% 0%, rgba(43,159,241,.38), rgba(43,159,241,0) 55%), var(--pill-dark); color: var(--night-ink); box-shadow: 0 20px 52px rgba(24,28,90,.14); }
.post-cta-text { max-width: 60ch; }
.post-cta-title { display: block; font-size: clamp(24px, 2.1vw, 32px); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; }
.post-cta p { margin-top: 10px; font-size: clamp(15.5px, 1.1vw, 17px); line-height: 1.5; color: var(--night-muted); }
.post-cta p b { color: var(--night-ink); }

/* «Читайте также» и список статей: карточки без размытия */
.post-more { margin-top: clamp(40px, 4.4vw, 64px); }
.post-more-title { margin-bottom: clamp(16px, 1.8vw, 24px); font-weight: 500; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -.03em; }
.post-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.post-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(18px, 1.8vw, 24px); border-radius: var(--r); background: rgba(255,255,255,.86); box-shadow: 0 16px 40px rgba(24,28,90,.07); transition: transform .35s var(--out), box-shadow .35s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 22px 52px rgba(24,28,90,.12); }
.post-card-title { font-size: clamp(18px, 1.4vw, 21px); font-weight: 500; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); text-wrap: pretty; transition: color .25s ease; }
.post-card:hover .post-card-title { color: var(--blue); }
.post-card-text { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.post-card-meta { margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--muted); }

/* список статей /blog/ */
.blog-head { margin: clamp(20px, 2.4vw, 34px) 0 clamp(24px, 3vw, 44px); }
.blog-title { font-weight: 500; font-size: var(--t-head); line-height: 1.03; letter-spacing: -.038em; }
.blog-lead { margin-top: clamp(12px, 1.3vw, 18px); max-width: 54ch; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.42; letter-spacing: -.01em; color: var(--ink-2); }
.blog-empty { padding: clamp(20px, 2.2vw, 30px); border-radius: var(--r); background: rgba(255,255,255,.7); color: var(--ink-2); }
.blog-empty a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

@media (max-width: 1180px) {
  .post-grid { grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .post-toc { position: static; max-height: none; padding: 12px 6px; background: rgba(255,255,255,.72); }
  .post-toc:not([open]) { padding-block: 14px; }
  .post-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-cards > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .post, .blog { padding-top: 92px; }
  .crumbs ol { font-size: 13px; }
  .crumbs li:nth-child(n + 3)[aria-current] { display: none; } /* название статьи и так в H1 */
  .post-title { max-width: none; font-size: clamp(28px, 8.2vw, 34px); letter-spacing: -.032em; }
  .post-lead { font-size: 17px; }
  .post-meta { gap: 4px 14px; font-size: 13px; }
  .post-meta > * + *::before { display: none; }
  .post-grid { margin-inline: -6px; }
  .post-body { padding: 22px 16px 26px; border-radius: 20px; font-size: 17px; line-height: 1.58; }
  .post-body h2 { font-size: 23px; }
  .post-body h3 { font-size: 19px; }
  .post-body blockquote { padding-left: 16px; font-size: 1.05em; }
  .post-body pre { margin-inline: -16px; padding-inline: 16px; border-radius: 0; font-size: 13px; }
  .post-table { margin-inline: -16px; padding-inline: 16px; }
  .post-table td, .post-table th { min-width: 7.5em; }
  .post-brief { padding: 14px 16px; }
  .post-cta { padding: 22px 18px; }
  .post-cta .cta-row { width: 100%; }
  .post-cta .btn { flex: 1 1 auto; }
  .post-cards { grid-template-columns: minmax(0, 1fr); }
  .post-cards > :last-child:nth-child(odd) { grid-column: auto; }
  .blog-lead { font-size: 17px; }
}
/* печать: только текст статьи и источники */
@media print {
  .blog-page .top, .blog-page .menu-panel, .blog-page .scrollbar, .blog-page .glows, .post-toc, .post-cta, .post-more { display: none !important; }
  .post { padding: 0; }
  .post-grid { display: block; }
  .post-body { padding: 0; box-shadow: none; }
}

/* ---------- подвал: о продукте, три колонки ссылок и строка с ©; без разделительных линий ---------- */
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 30px clamp(24px, 3vw, 48px); padding-top: clamp(24px, 2.6vw, 36px); }
.foot-about { display: grid; gap: 14px; align-content: start; }
.foot-about p { margin: 0; max-width: 26ch; font-size: 14px; line-height: 1.45; }
.foot-col { display: grid; gap: 10px; align-content: start; font-size: 14px; line-height: 1.35; }
.foot-col b { margin-bottom: 4px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--night-ink); opacity: .55; }
.foot-col a { width: fit-content; transition: color .25s ease; }
.foot-col a:hover, .foot-col a[aria-current] { color: var(--night-ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(28px, 3vw, 44px); font-size: 13px; }
/* светлый подвал: страница скачивания, документы, статьи */
.page-download .foot-col b, .legal-page .foot-col b { color: var(--ink); opacity: .5; }
.page-download .foot-col a:hover, .legal-page .foot-col a:hover, .legal-page .foot-col a[aria-current] { color: var(--ink); }
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 380px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- подвал на всех страницах чёрный, как на главной (раньше на скачивании, документах и статьях был светлым) ---------- */
.page-download .foot, .legal-page .foot, .blog-page .foot { background: var(--night); color: var(--night-muted); padding: clamp(36px, 4vw, 56px) 0 26px; }
.page-download .foot .brand, .legal-page .foot .brand, .blog-page .foot .brand { color: var(--night-ink); }
.page-download .foot-col b, .legal-page .foot-col b, .blog-page .foot-col b { color: var(--night-ink); opacity: .55; }
.page-download .foot-col a:hover, .legal-page .foot-col a:hover, .legal-page .foot-col a[aria-current], .blog-page .foot-col a:hover, .blog-page .foot-col a[aria-current] { color: var(--night-ink); }

/* синяя кнопка с точкой: её ::before — тёмный слой при наведении, поэтому стрелка у неё в ::after
   (раньше общая стрелка ложилась на этот слой и вылезала за кнопку) */
.btn.btn-blue:has(.dot)::before { content: ""; position: absolute; inset: 0; z-index: -1; width: auto; height: auto; margin: 0; border-radius: inherit; background: var(--pill-dark); opacity: 0; -webkit-mask: none; mask: none; transition: opacity .4s ease; }
.btn.btn-blue:has(.dot)::after { content: ""; order: -1; width: 0; height: 12px; margin-right: -12px; flex: none; opacity: 0; background: currentColor;
  -webkit-mask: center / 15px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 12' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h12.5M8.5 1l5 5-5 5'/%3E%3C/svg%3E");
  mask: center / 15px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 12' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h12.5M8.5 1l5 5-5 5'/%3E%3C/svg%3E");
  transition: width .45s var(--out), margin .45s var(--out), opacity .3s ease; }
@media (hover: hover) {
  .btn.btn-blue:has(.dot):hover::before { width: auto; margin: 0; opacity: 1; }
  .btn.btn-blue:has(.dot):hover::after { width: 15px; margin-right: 0; opacity: 1; }
}

/* синяя кнопка на тёмном фоне (блок «Попробовать AgentDesk» в статьях, тёмные секции):
   при наведении она светлеет, а не уходит в чёрный и не сливается с фоном */
.post-cta .btn-blue::before, .night .btn-blue::before, .foot .btn-blue::before,
.post-cta .btn.btn-blue:has(.dot)::before, .night .btn.btn-blue:has(.dot)::before { background: #fff; }
@media (hover: hover) {
  .post-cta .btn-blue:hover, .night .btn-blue:hover, .foot .btn-blue:hover { color: var(--ink); box-shadow: 0 12px 28px rgba(255,255,255,.12); }
}

/* страница скачивания открывается сразу: без «выплывания» блоков после загрузки */
.page-download .hv { opacity: 1; transform: none; transition: none; }
