/*
 * hub.css — общий сайт компании leo-wend.ru и вход/регистрация CRM (08.11.2026).
 *
 * Владелец: «leo-wend.ru — основной домен, тут должно быть всё красиво и показываться наши сервисы; leoboxer.leo-wend.ru —
 * сайт по силомерам; страничку регистрации и входа у CRM — форму вправо, слева под вид сервиса красивое оформление, типа
 * CRM, анимация». Потом: «leowend — это отдельный сайт» → сайт компании со всеми сервисами, но СВОЁ оформление, не как у
 * сайта силомеров. Отличия от сайта силомеров (site.css + ad.css): обычная ширина шрифта и строчные заголовки с плотной
 * разрядкой вместо узкого капса; кнопки-«пилюли»; шапка с меню на весь экран; первый экран — витрина сервисов на цветной
 * панели; сервисы — списком-указателем с превью у курсора (как у студийных сайтов); без склада на фоне.
 * Цвета — бренд (синий, белый, тёмно-синий); с 08.11.2026 и у печати — синий (её сайт бело-синий). Сайт только светлый.
 * Чего нет намеренно (владелец считает признаками «сайта из нейросети»): градиентного текста, свечений, «стекла», сеток
 * на фоне, моно-номеров «01».
 * Подключается после static/css/site.css: оттуда шрифты, токены (--ink, --accent…), поля форм и окно заявки.
 * Движение — static/js/hub_base.js (шапка, меню), static/js/hub.js (главная), static/js/auth_show.js (вход CRM).
 */

.lw {
    --lw-ink: #0a1f4d;
    --lw-ink-2: #33476f;
    --lw-mute: #66789c;
    --lw-line: #e2e9f6;
    --lw-blue: #1f63ff;
    --lw-blue-d: #1550e0;
    --lw-soft: #f3f6fd;
    --lw-pad: clamp(20px, 3.4vw, 48px);
    --lw-ease: cubic-bezier(.16, 1, .3, 1);
    background: #fff; color: var(--lw-ink);
}
.lw main { overflow-x: clip; }
.lw-locked { overflow: hidden; }
.lw-wrap { width: 100%; max-width: calc(1320px + 2 * var(--lw-pad)); margin: 0 auto; padding: 0 var(--lw-pad); }

.lw-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 14px; font-weight: 600; color: var(--lw-ink-2); }
.lw-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--lw-blue); box-shadow: 0 0 0 4px rgba(31, 99, 255, .14); }
.lw-h1, .lw-h2 { margin: 0; font-weight: 700; letter-spacing: -.04em; color: var(--lw-ink); }
.lw-h1 { font-size: clamp(34px, 3.8vw, 60px); line-height: 1.04; }   /* 20.11: было до 84 px — «большие буквы, пустоты» */
.lw-h2 { font-size: clamp(28px, 2.9vw, 44px); line-height: 1.08; }
.lw-h2 span, .lw-h1 .is-blue { color: var(--lw-blue); }
.lw-lead { margin: 0; font-size: clamp(16.5px, 1.25vw, 19px); line-height: 1.6; color: var(--lw-ink-2); }

.lw-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px;
    padding: 0 28px; border-radius: 999px; border: 1.5px solid var(--lw-blue); background: var(--lw-blue); color: #fff;
    font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background-color .25s, border-color .25s, color .25s, transform .4s var(--lw-ease);
}
.lw-btn:hover { background: var(--lw-ink); border-color: var(--lw-ink); color: #fff; }
.lw-btn:active { transform: scale(.98); }
.lw-btn svg { width: 18px; height: 18px; transition: transform .4s var(--lw-ease); }
.lw-btn:hover svg { transform: translateX(4px); }
.lw-btn--line { background: transparent; color: var(--lw-ink); border-color: rgba(10, 31, 77, .2); }
.lw-btn--line:hover { background: var(--lw-ink); border-color: var(--lw-ink); color: #fff; }
.lw-btn--sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.lw-btn:focus-visible, .lw a:focus-visible, .lw button:focus-visible { outline: 2px solid var(--lw-blue); outline-offset: 3px; }

/* ------------------------------------------------------------------ шапка */
.lw-head { position: sticky; top: var(--lwt-h, 0px); z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: border-color .3s; }
.lw-head.is-scrolled { border-bottom-color: var(--lw-line); }
.lw-head__row { display: flex; align-items: center; gap: 28px; height: 68px; }
.lw-logo { display: inline-flex; flex: none; align-items: center; gap: 10px; color: var(--lw-ink); text-decoration: none; }
.lw-logo img { flex: none; width: 32px; height: 32px; }   /* flex: none — на телефоне строка разделов ужимала знак до 26×32 */
.lw-logo span { font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.lw-nav { display: flex; gap: 6px; margin-left: 18px; }
.lw-nav a { position: relative; padding: 8px 12px; border-radius: 999px; color: var(--lw-ink-2); font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color .2s, color .2s; }
.lw-nav a:hover { background: var(--lw-soft); color: var(--lw-ink); }
.lw-head__tools { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lw-phone { color: var(--lw-ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.lw-phone:hover { color: var(--lw-blue); }
.lw-burger {
    display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px 0 6px; border: 0; border-radius: 999px;
    background: var(--lw-ink); color: #fff; font: 600 14.5px/1 var(--sans); cursor: pointer; transition: background-color .25s;
}
.lw-burger:hover { background: var(--lw-blue); }
.lw-burger__ico { position: relative; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.lw-burger__ico i { position: absolute; left: 9px; right: 9px; height: 1.8px; border-radius: 2px; background: #fff; transition: transform .35s var(--lw-ease), top .35s var(--lw-ease); }
.lw-burger__ico i:first-child { top: 11px; }
.lw-burger__ico i:last-child { top: 17px; }
.lw-burger.is-x .lw-burger__ico i:first-child { top: 14px; transform: rotate(45deg); }
.lw-burger.is-x .lw-burger__ico i:last-child { top: 14px; transform: rotate(-45deg); }

/* меню на весь экран: раскрывается кругом из кнопки */
.lw-menu {
    position: fixed; inset: 0; z-index: 90; overflow-y: auto; background: #fff; visibility: hidden;
    clip-path: circle(0 at calc(100% - 70px) 38px); transition: clip-path .7s var(--lw-ease), visibility 0s .7s;
}
.lw-menu.is-open { visibility: visible; clip-path: circle(150% at calc(100% - 70px) 38px); transition: clip-path .8s var(--lw-ease); }
.lw-menu__head { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.lw-menu__body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: 48px; padding-top: clamp(24px, 6vh, 72px); padding-bottom: 48px; }
.lw-menu__big { display: grid; }
.lw-menu__big a {
    display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--lw-line); color: var(--lw-ink); text-decoration: none;
    opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .7s var(--lw-ease), color .2s;
}
.lw-menu.is-open .lw-menu__big a { opacity: 1; transform: none; transition-delay: calc(.18s + var(--i) * .06s); }
.lw-menu__big b { font-size: clamp(36px, 5vw, 72px); font-weight: 700; letter-spacing: -.045em; line-height: 1; transition: transform .45s var(--lw-ease); }
.lw-menu__big span { color: var(--lw-mute); font-size: 15px; }
.lw-menu__big a:hover { color: var(--lw-blue); }
.lw-menu__big a:hover b { transform: translateX(14px); }
.lw-menu__side { display: grid; align-content: start; gap: 36px; padding-top: 18px; }
.lw-menu__side nav { display: grid; gap: 4px; }
.lw-menu__side nav a { color: var(--lw-ink-2); font-size: 18px; font-weight: 500; text-decoration: none; padding: 6px 0; }
.lw-menu__side nav a:hover { color: var(--lw-blue); }
.lw-menu__reach { display: grid; gap: 6px; justify-items: start; color: var(--lw-mute); font-size: 15px; }
.lw-menu__reach a { color: var(--lw-ink); text-decoration: none; }
.lw-menu__phone { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.lw-menu__reach .lw-btn { margin-top: 14px; }

/* ------------------------------------------------------------------ первый экран: заголовок + витрина сервисов */
.lw-hero { padding: clamp(28px, 4.5vh, 52px) 0 clamp(48px, 5.5vw, 84px); }
.lw-hero__top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 20px 56px; align-items: end; margin-bottom: clamp(28px, 3vw, 40px); }
.lw-hero__top .lw-eyebrow { grid-column: 1 / -1; margin-bottom: -8px; }
.lw-hero__aside { display: grid; gap: 26px; padding-bottom: 8px; }
.lw-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.lw-in { animation: lw-in 1s var(--lw-ease) both; animation-delay: var(--d, 0s); }
@keyframes lw-in { from { opacity: 0; transform: translateY(26px); } }
.lw-h1 .lw-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em 0 .1em; margin: -.08em 0 -.1em; }
.lw-h1 .lw-w > span { display: inline-block; animation: lw-up 1.1s var(--lw-ease) both; animation-delay: var(--d, 0s); }
@keyframes lw-up { from { transform: translateY(110%); } }

/* витрина: панель меняет оттенок под сервис, слева список, справа кадр */
.lw-show {
    position: relative; display: grid; grid-template-columns: minmax(250px, .62fr) minmax(0, 1.38fr); gap: 0;
    height: clamp(500px, 64vh, 660px); border-radius: 32px;   /* 20.11: высоту не трогать — телефон витрины CRM задан шириной и при меньшей вылезал за верх */ overflow: hidden; background: #eaf1ff;
    transition: background-color .9s var(--lw-ease); isolation: isolate;
}
.lw-show[data-on="1"] { background: #eef2f9; }
.lw-show[data-on="2"] { background: #e6eeff; }
.lw-show[data-on="3"] { background: #e6ebf5; }
.lw-show::before {     /* большой светлый круг — «студия» за кадром */
    content: ''; position: absolute; z-index: -1; right: 6%; top: 50%; width: min(56%, 620px); aspect-ratio: 1; border-radius: 50%;
    transform: translateY(-50%); background: rgba(255, 255, 255, .6);
}
.lw-show__list { list-style: none; margin: 0; padding: clamp(24px, 2.6vw, 40px); display: grid; align-content: center; gap: 4px; }
.lw-show__list .hb-switch__b {
    position: relative; display: grid; gap: 4px; width: 100%; padding: 16px 0 16px 22px; border: 0; background: none; text-align: left;
    font: inherit; color: var(--lw-mute); cursor: pointer;
}
.lw-show__list .hb-switch__b::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: rgba(10, 31, 77, .12); }
.lw-show__list .hb-switch__b i { position: absolute; left: 0; top: 14px; width: 2px; height: calc(var(--p, 0) * (100% - 28px)); border-radius: 2px; background: var(--lw-blue); }
.lw-show__list .hb-switch__b b { font-size: clamp(20px, 1.7vw, 26px); font-weight: 700; letter-spacing: -.03em; color: rgba(10, 31, 77, .42); transition: color .3s; }
.lw-show__list .hb-switch__b span { font-size: 14px; }
.lw-show__list .hb-switch__b.is-on b, .lw-show__list .hb-switch__b:hover b { color: var(--lw-ink); }
.lw-show__go { margin-top: 18px; justify-self: start; }
.lw-show__stage { position: relative; }
.lw-show .hb-slide { inset: 6% 5% 9% 0; }

/* кадры витрины (общие с прежней разметкой: .hb-slide, .hb-boxer, .hb-desk…) */
.hb-slide { position: absolute; display: block; color: var(--lw-ink); text-decoration: none; opacity: 0; visibility: hidden; transition: opacity .6s var(--lw-ease), visibility 0s .6s; }
.hb-slide.is-on { opacity: 1; visibility: visible; transition: opacity .8s var(--lw-ease); }
.hb-slide > * { transition: transform 1.1s var(--lw-ease), opacity .9s var(--lw-ease); }
.hb-slide:not(.is-on) > * { opacity: 0; }
.hb-cap {
    position: absolute; left: 0; bottom: -6%; z-index: 5; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px;
    border-radius: 999px; background: #fff; font-weight: 600; font-size: 14.5px; color: var(--lw-ink); box-shadow: 0 10px 30px -18px rgba(10, 31, 77, .45);
}
.hb-cap em { font-style: normal; color: var(--lw-blue); }
.hb-tag {
    position: absolute; z-index: 4; display: grid; gap: 2px; padding: 14px 18px; border-radius: 18px; background: #fff;
    box-shadow: 0 18px 40px -24px rgba(16, 48, 120, .45); font-size: 13px; color: var(--lw-mute); line-height: 1.3;
    animation: hb-float 6s ease-in-out infinite;
}
.hb-tag b { font-size: 21px; font-weight: 700; color: var(--lw-ink); letter-spacing: -.02em; }
.hb-tag--a { left: 4%; top: 14%; }
.hb-tag--b { right: 2%; top: 56%; animation-delay: -3s; }
.hb-tag--print { left: 2%; top: 8%; }
.hb-tag--print b { color: var(--lw-blue); }
@keyframes hb-float { 50% { transform: translateY(-10px); } }
.hb-boxer { position: absolute; left: 50%; bottom: 4%; height: 96%; width: auto; max-width: none; transform: translateX(-50%); }
.hb-slide--boxer:not(.is-on) .hb-boxer { transform: translate(-50%, 40px) scale(.96); }
.hb-floor { position: absolute; left: 50%; bottom: 2.5%; width: 40%; height: 5%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(10, 31, 77, .28), rgba(10, 31, 77, 0)); }
.hb-desk {
    position: absolute; left: 0; top: 8%; width: 88%; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden;
    background: #fff; box-shadow: 0 40px 80px -46px rgba(16, 48, 120, .55);
}
.hb-desk img, .hb-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.hb-phone {        /* телефон: тонкая рамка, полоса статуса с «островком» — снимок CRM не залезает под вырез */
    position: absolute; right: 0; bottom: 4%; width: 27%; aspect-ratio: 585 / 1266; border-radius: 13% / 6%; overflow: hidden;
    display: flex; flex-direction: column; padding-top: 9%;
    border: 7px solid var(--lw-ink); background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 40px 70px -36px rgba(10, 31, 77, .6);
}
.hb-phone::before { content: ''; position: absolute; top: 1.1%; left: 50%; width: 30%; aspect-ratio: 4 / 1; border-radius: 999px; background: var(--lw-ink); transform: translateX(-50%); }
.hb-phone img { flex: 1 1 auto; min-height: 0; height: auto; }
.hb-slide--crm:not(.is-on) .hb-desk { transform: translateX(-30px); }
.hb-slide--crm:not(.is-on) .hb-phone { transform: translateY(60px) rotate(4deg); }
.hb-ping {
    position: absolute; right: 18%; top: 0; z-index: 4; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px;
    border-radius: 14px; background: #fff; box-shadow: 0 18px 40px -26px rgba(16, 48, 120, .45);
    font-size: 14px; font-weight: 600; color: var(--lw-ink); animation: hb-float 6s ease-in-out infinite -1.5s;
}
.hb-ping i { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); animation: hb-beat 2s infinite; }
@keyframes hb-beat { 0% { box-shadow: 0 0 0 0 rgba(16, 163, 106, .5); } 70% { box-shadow: 0 0 0 9px rgba(16, 163, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 163, 106, 0); } }
.hb-slide--print .pr-art { position: absolute; left: 50%; top: 46%; width: min(80%, 520px); height: auto; transform: translate(-50%, -50%); }
.hb-slide--print:not(.is-on) .pr-art { transform: translate(-50%, -44%) scale(.95); }
.hb-board { position: absolute; left: 50%; top: 46%; width: 94%; aspect-ratio: 1400 / 933; transform: translate(-50%, -50%); }
.hb-board img { width: 100%; height: 100%; border-radius: 20px; display: block; box-shadow: 0 44px 80px -44px rgba(10, 31, 77, .7); }
.hb-slide--board:not(.is-on) .hb-board { transform: translate(-50%, -46%) scale(.96); }
.hb-pin {
    position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 12px 7px 9px; border-radius: 999px; background: #fff; color: var(--lw-ink); font-size: 13px; font-weight: 600; white-space: nowrap;
    box-shadow: 0 10px 24px -14px rgba(10, 31, 77, .6);
}
.hb-pin::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lw-blue); }
.hb-slide--board.is-on .hb-pin { animation: hb-pop .7s var(--lw-ease) both; }
.hb-slide--board.is-on .hb-pin:nth-of-type(2) { animation-delay: .15s; }
.hb-slide--board.is-on .hb-pin:nth-of-type(3) { animation-delay: .3s; }
.hb-slide--board.is-on .hb-pin:nth-of-type(4) { animation-delay: .45s; }
@keyframes hb-pop { from { opacity: 0; transform: translate(-50%, -30%) scale(.8); } }

/* принтер (templates/hub/includes/printer_art.html): сопло ходит, модель растёт, катушка крутится */
.pr-head { animation: pr-move 3.2s ease-in-out infinite alternate; }
@keyframes pr-move { from { transform: translateX(-46px); } to { transform: translateX(46px); } }
.pr-grow { transform-box: fill-box; transform-origin: 50% 100%; animation: pr-grow 14s linear infinite; }
@keyframes pr-grow { 0% { transform: scaleY(.02); } 88%, 100% { transform: scaleY(1); } }
.pr-spool { animation: pr-spin 6s linear infinite; }
@keyframes pr-spin { to { transform: rotate(360deg); } }
.pr-hot, .pr-led { animation: pr-blink 1.4s ease-in-out infinite; }
@keyframes pr-blink { 50% { opacity: .35; } }

/* ------------------------------------------------------------------ разделы */
.lw-sec { position: relative; padding: clamp(56px, 6.4vw, 100px) 0; scroll-margin-top: 60px; }
.lw-sec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(28px, 3vw, 44px); }
.lw-sec__head .lw-eyebrow { grid-column: 1 / -1; margin-bottom: -6px; }

/* сервисы — список-указатель; у курсора — превью (static/js/hub.js, .lw-peek) */
.lw-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--lw-line); }
.lw-row {
    position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) 150px 56px; align-items: center;
    gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--lw-line); color: var(--lw-ink); text-decoration: none;
}
.lw-row__name { font-size: clamp(24px, 2.4vw, 36px); font-weight: 700; letter-spacing: -.045em; line-height: 1; transition: transform .5s var(--lw-ease), color .25s; }
.lw-row__what { display: grid; gap: 6px; color: var(--lw-mute); font-size: 15.5px; line-height: 1.5; }
.lw-row__what b { color: var(--lw-ink); font-weight: 600; font-size: 14px; }
.lw-row__st { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--lw-ink-2); white-space: nowrap; }
.lw-row__st::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #b6c3dc; }
.lw-row__st.is-on::before { background: var(--ok); }
.lw-row__st.is-new::before { background: var(--lw-blue); }
.lw-row__go { justify-self: end; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--lw-line); color: var(--lw-ink); transition: background-color .3s, border-color .3s, color .3s, transform .5s var(--lw-ease); }
.lw-row__go svg { width: 20px; height: 20px; }
.lw-row__pic { display: none; }
a.lw-row:hover .lw-row__name { transform: translateX(14px); color: var(--lw-blue); }
a.lw-row:hover .lw-row__go { background: var(--lw-blue); border-color: var(--lw-blue); color: #fff; transform: rotate(-45deg); }
div.lw-row { color: var(--lw-ink-2); }
div.lw-row .lw-row__name { color: rgba(10, 31, 77, .5); }
.lw-peek {
    position: fixed; left: 0; top: 0; z-index: 30; width: 300px; height: 220px; border-radius: 20px; overflow: hidden; pointer-events: none;
    background: var(--lw-soft); box-shadow: 0 30px 60px -30px rgba(10, 31, 77, .5); opacity: 0; transform: translate(0, -50%) scale(.6); transform-origin: 0 50%;
    transition: opacity .3s, transform .45s var(--lw-ease);
}
.lw-peek.is-on { opacity: 1; transform: translate(0, -50%) scale(1); }
.lw-peek > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.lw-peek > img.is-cut { object-fit: contain; object-position: 50% 100%; padding-top: 10px; }
.lw-peek > svg { padding: 14px; }
.lw-index__note { margin: 26px 0 0; color: var(--lw-mute); font-size: 15px; }
.lw-index__note a { color: var(--lw-blue); font-weight: 600; text-decoration: none; }

/* платформа: панель с путём данных, по линии бегут «пакеты» */
.lw-plat { border-radius: 32px; background: var(--lw-soft); padding: clamp(28px, 4vw, 56px); }
.lw-plat .lw-sec__head { margin-bottom: clamp(36px, 4vw, 56px); }
.hb-flowbox { position: relative; }
.hb-flow { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.hb-flow__step { display: grid; align-content: start; gap: 10px; }
.hb-flow__ico { width: 72px; height: 72px; margin-bottom: 14px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--lw-blue); box-shadow: 0 12px 30px -18px rgba(10, 31, 77, .45); transition: background-color .4s, color .4s, transform .5s var(--lw-ease); }
.hb-flow__ico svg { width: 30px; height: 30px; }
.hb-flow__step:hover .hb-flow__ico { background: var(--lw-blue); color: #fff; transform: translateY(-4px); }
.hb-flow h3 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.hb-flow p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--lw-mute); max-width: 30ch; }
.hb-flow__wire { position: absolute; z-index: 0; top: 36px; left: 36px; right: calc((100% - 3 * 28px) / 4 - 36px); height: 2px; background: repeating-linear-gradient(90deg, #b9cdf4 0 8px, transparent 8px 14px); }
.hb-flow__wire i { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--lw-blue); animation: hb-packet 4.5s linear infinite; }
.hb-flow__wire i:nth-child(2) { animation-delay: -1.5s; }
.hb-flow__wire i:nth-child(3) { animation-delay: -3s; }
@keyframes hb-packet { 0% { left: 0; opacity: 0; } 6%, 94% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* о компании: крупный текст, фото и четыре факта */
.lw-say { max-width: 1120px; margin: 0 0 clamp(40px, 5vw, 72px); font-size: clamp(26px, 3vw, 44px); font-weight: 600; line-height: 1.22; letter-spacing: -.03em; color: var(--lw-ink); }
.lw-say span { color: var(--lw-blue); }
.lw-about { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.lw-about__photo { margin: 0; border-radius: 28px; overflow: hidden; min-height: 420px; }
.lw-about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lw-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--lw-line); }
.lw-facts > div { padding: 26px 0 26px; border-bottom: 1px solid var(--lw-line); }
.lw-facts > div:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--lw-line); }
.lw-facts > div:nth-child(even) { padding-left: 24px; }
.lw-facts dt { margin-bottom: 10px; font-size: clamp(28px, 2.4vw, 38px); font-weight: 700; letter-spacing: -.04em; color: var(--lw-blue); }
.lw-facts dd { margin: 0; color: var(--lw-mute); font-size: 15px; line-height: 1.5; }
.lw-facts dd b { display: block; margin-bottom: 4px; color: var(--lw-ink); font-size: 16.5px; }

/* контакты: номер крупно */
.lw-contact { display: grid; gap: clamp(28px, 3vw, 44px); }
.lw-contact__big { justify-self: start; color: var(--lw-ink); text-decoration: none; font-size: clamp(36px, 4.6vw, 68px); font-weight: 700; letter-spacing: -.05em; line-height: .95; transition: color .25s; }
.lw-contact__big:hover { color: var(--lw-blue); }
.lw-contact__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 24px; align-items: end; padding-top: 28px; border-top: 1px solid var(--lw-line); }
.lw-contact__row > div { display: grid; gap: 4px; }
.lw-contact__row small { color: var(--lw-mute); font-size: 13.5px; }
.lw-contact__row b, .lw-contact__row a { color: var(--lw-ink); font-size: 18px; font-weight: 600; text-decoration: none; }
.lw-contact__row a:hover { color: var(--lw-blue); }
.lw-contact__row { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
/* «Мы в соцсетях» (20.11.2026): YouTube, Telegram-канал, Авито — круглыми значками в своих цветах */
.lw-soc { display: flex; gap: 8px; }
.lw-contact__row .lw-soc a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lw-soft); border: 1px solid transparent; transition: background-color .25s, border-color .25s, transform .3s var(--lw-ease); }
.lw-contact__row .lw-soc a:hover { background: #fff; border-color: rgba(31, 99, 255, .35); transform: translateY(-2px); }
.lw-soc svg { display: block; width: 22px; height: 22px; }
.lw-soc .lw-ico-yt { width: 24px; }

/* ------------------------------------------------------------------ подвал */
.lw-foot { background: var(--lw-soft); padding: 64px 0 28px; color: var(--lw-ink); }
.lw-foot__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 44px; }
.lw-foot__brand p { margin: 16px 0 0; max-width: 34ch; color: var(--lw-mute); font-size: 15px; line-height: 1.55; }
.lw-foot__col { display: grid; align-content: start; gap: 9px; font-size: 15px; color: var(--lw-mute); }
.lw-foot__col h4 { margin: 0 0 6px; color: var(--lw-ink); font-size: 14px; font-weight: 700; }
.lw-foot__col a { color: var(--lw-ink-2); text-decoration: none; }
.lw-foot__col a:hover { color: var(--lw-blue); }
.lw-foot__phone { font-size: 19px; font-weight: 700; color: var(--lw-ink) !important; }
.lw-foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--lw-line); color: var(--lw-mute); font-size: 13.5px; }
.lw-foot__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.lw-foot__bottom a { color: var(--lw-mute); text-decoration: none; }
.lw-foot__bottom a:hover { color: var(--lw-blue); }

/* документы (политика, соглашение, правила оплаты) — в каркасе общего сайта */
.lw .legal, .lw .section { background: transparent; }

/* ------------------------------------------------------------------ планшет и телефон */
@media (max-width: 1180px) {
    /* 08.11.2026: полноэкранного меню больше нет — разделы остаются в шапке строкой, которую можно листать */
    .lw-nav { flex: 1 1 auto; min-width: 0; margin-left: 4px; overflow-x: auto; scrollbar-width: none; }
    .lw-nav::-webkit-scrollbar { display: none; }
    .lw-nav a { flex: none; }
    .hb-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
    .hb-flow__wire { display: none; }
    .lw-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 52px; }
    .lw-row__st { display: none; }
}
@media (max-width: 900px) {
    .lw-phone, .lw-head__crm { display: none; }
    .lw-hero__top, .lw-sec__head { grid-template-columns: minmax(0, 1fr); }
    .lw-show { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: auto; }
    .lw-show__list { grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; padding: 18px 18px 0; gap: 14px; scrollbar-width: none; }
    .lw-show__list::-webkit-scrollbar { display: none; }
    .lw-show__list .hb-switch__b { padding: 14px 0 10px; }
    .lw-show__list .hb-switch__b::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 2px; }
    .lw-show__list .hb-switch__b i { top: 0; width: calc(var(--p, 0) * 100%); height: 2px; }
    .lw-show__list .hb-switch__b b { font-size: 18px; }
    .lw-show__go { display: none; }
    .lw-show__stage { height: min(112vw, 560px); }
    .lw-show .hb-slide { inset: 4% 4% 12% 4%; }
    .lw-menu__body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .lw-about { grid-template-columns: minmax(0, 1fr); }
    .lw-about__photo { min-height: 0; aspect-ratio: 4 / 3; }
    .lw-contact__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .lw-foot__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .lw-foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .lw-head__row { height: 64px; gap: 8px; }
    .lw-logo span { display: none; }
    .lw-nav a { padding: 8px 10px; font-size: 14.5px; }
    .lw-nav { padding-right: 24px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
    /* витрина CRM на телефоне (09.11.2026, владелец: «телефон выглядит плохо»): телефон крупнее и впереди, компьютер — фоном */
    .hb-desk { top: 3%; width: 92%; border-radius: 10px; }
    .hb-phone { width: 40%; right: 0; bottom: 1%; border-width: 5px; }
    .hb-ping { left: 0; right: auto; top: 64%; max-width: calc(60% - 10px); line-height: 1.3; }   /* не заходит на телефон */
    .lw-burger__t { display: none; }
    .lw-burger { padding: 0 6px; }
    .lw-menu__head { height: 64px; }
    .lw-cta .lw-btn { flex: 1 1 auto; }
    .lw-show { border-radius: 24px; }
    .hb-tag { padding: 10px 12px; border-radius: 14px; font-size: 12px; }
    .hb-tag b { font-size: 16px; }
    .hb-ping { font-size: 12.5px; padding: 9px 12px; }
    .hb-pin { font-size: 11px; padding: 5px 9px 5px 7px; }
    .hb-cap { font-size: 13px; padding: 8px 12px; bottom: -9%; }
    .hb-cap em { display: none; }
    .lw-row { grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "pic pic" "name go" "what what"; gap: 12px 16px; padding: 22px 0 26px; }
    .lw-row__pic { grid-area: pic; display: block; position: relative; height: 190px; border-radius: 18px; overflow: hidden; background: var(--lw-soft); }
    .lw-row__pic > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
    .lw-row__pic > img.is-cut { object-fit: contain; object-position: 50% 100%; padding-top: 10px; }
    .lw-row__pic > svg { padding: 10px; }
    .lw-row__name { grid-area: name; }
    .lw-row__what { grid-area: what; }
    .lw-row__go { grid-area: go; width: 44px; height: 44px; }
    .hb-flow { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
    .hb-flow__step { grid-template-columns: 60px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; }
    .hb-flow__ico { grid-row: span 2; width: 60px; height: 60px; margin: 0; }
    .lw-plat { border-radius: 24px; }
    .lw-facts { grid-template-columns: minmax(0, 1fr); }
    .lw-facts > div:nth-child(odd) { padding-right: 0; border-right: 0; }
    .lw-facts > div:nth-child(even) { padding-left: 0; }
    .lw-contact__row { grid-template-columns: minmax(0, 1fr); }
    .lw-foot__top { grid-template-columns: minmax(0, 1fr); }
}
@media (hover: none) { .lw-peek { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .lw-in, .lw-h1 .lw-w > span, .hb-tag, .hb-ping, .hb-ping i, .hb-flow__wire i, .pr-head, .pr-grow, .pr-spool, .pr-hot, .pr-led,
    .hb-slide--board.is-on .hb-pin { animation: none !important; }
    .pr-grow { transform: none; }
    .lw-menu, .lw-menu.is-open { transition: none; }
}
/* установленное приложение CRM (вход): только форма, без шапки и подвала сайта */
@media (display-mode: standalone) {
    .is-crm-app .lw-head, .is-crm-app .lw-foot, .is-crm-app .lw-menu { display: none !important; }
}


/* ==================================================================
 * Вход и регистрация CRM: слева «живой экран CRM» (templates/landing/includes/auth_show.html), справа форма.
 * Страницы — templates/silomers/crm_login.html, templates/landing/register.html и др. (секция .auth.auth--split).
 * ================================================================== */
.auth--split {
    display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr); place-items: stretch;
    padding: 0; min-height: calc(100vh - 80px); background: #fff;
}
.auth--split .auth__box { align-self: center; justify-self: center; width: min(100% - 2 * var(--gutter), 440px); padding: 56px 0 64px; }
.auth--split .auth__card { padding: 0; border: 0; background: none; }
.auth--split .auth__title { font-size: clamp(32px, 3vw, 42px); letter-spacing: -.035em; }
.auth--split .auth__submit { border-radius: 999px; }
.auth--split .auth__back { display: none; }

.ash {
    position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 30px;
    padding: clamp(40px, 5vw, 72px) clamp(28px, 4.5vw, 76px); background: var(--bg-2); color: var(--ink);
}
.ash::before {      /* светлый круг за экраном — как подложка сцены на главной */
    content: ''; position: absolute; z-index: -1; right: -18%; top: 34%; width: 78%; aspect-ratio: 1; border-radius: 50%; background: #e1ebff;
}
.ash__head .lw-eyebrow { margin-bottom: 18px; }
.ash__title {
    margin: 0 0 14px; font-weight: 700; letter-spacing: -.035em;
    font-size: clamp(34px, 3.4vw, 54px); line-height: 1.02; color: var(--ink);
}
.ash__title span { color: var(--accent); }
.ash__sub { margin: 0; max-width: 520px; font-size: 16.5px; line-height: 1.6; color: var(--muted); }

.ash__stage { position: relative; flex: 1 0 auto; min-height: 400px; max-width: 700px; padding: 0 132px 0 0; }
.ash-win {
    position: relative; display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: #fff;
    border: 1px solid var(--line); box-shadow: 0 50px 90px -60px rgba(16, 48, 120, .6);
    font-size: 12.5px; line-height: 1.3; color: var(--ink);
    animation: ash-rise 1s var(--ease-out) both .15s;
}
@keyframes ash-rise { from { opacity: 0; transform: translateY(26px); } }
.ash-win__bar { display: flex; align-items: center; gap: 6px; padding: 0 2px 10px; border-bottom: 1px solid var(--line-2); }
.ash-win__logo { display: inline-flex; align-items: center; gap: 7px; margin-right: 10px; font-weight: 800; font-size: 13.5px; }
.ash-win__tab { padding: 6px 10px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.ash-win__tab.is-on { background: var(--accent-soft); color: var(--accent); }
.ash-win__note { margin-left: auto; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

.ash-kpis { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 10px; }
.ash-kpi { position: relative; display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.ash-kpi > span { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.ash-kpi b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ash-kpi b em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); }
.ash-kpi small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11.5px; }
.ash-spark { position: absolute; right: 10px; bottom: 10px; width: 44%; height: 30px; }
.ash-spark path { fill: none; stroke: var(--accent); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-dasharray: 240; stroke-dashoffset: 240; animation: ash-draw 1.8s var(--ease-out) forwards .6s; }
@keyframes ash-draw { to { stroke-dashoffset: 0; } }
.ash-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(16, 163, 106, .45); animation: hb-beat 2.4s infinite; }
.ash-up { width: 0; height: 0; border: 4px solid transparent; border-bottom: 6px solid var(--ok); margin-top: -5px; }

.ash-mid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ash-bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; padding: 12px; border-radius: 12px; background: var(--bg-2); }
.ash-bars i { flex: 1; height: 0; border-radius: 4px 4px 2px 2px; background: #b9cdf4; transition: height 1s var(--ease-out); }
.ash-bars i.is-now { background: var(--accent); }
.ash.is-live .ash-bars i { height: var(--h); }
.ash.is-live .ash-bars i:nth-child(2) { transition-delay: .05s; } .ash.is-live .ash-bars i:nth-child(3) { transition-delay: .1s; }
.ash.is-live .ash-bars i:nth-child(4) { transition-delay: .15s; } .ash.is-live .ash-bars i:nth-child(5) { transition-delay: .2s; }
.ash.is-live .ash-bars i:nth-child(6) { transition-delay: .25s; } .ash.is-live .ash-bars i:nth-child(7) { transition-delay: .3s; }
.ash.is-live .ash-bars i:nth-child(8) { transition-delay: .35s; } .ash.is-live .ash-bars i:nth-child(9) { transition-delay: .4s; }
.ash-pay { display: grid; gap: 10px; align-content: center; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); }
.ash-pay > span { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.ash-pay__bar { display: flex; gap: 3px; height: 12px; }
.ash-pay__bar i { flex: var(--w) 1 0; border-radius: 3px; background: var(--c); transition: flex-grow .8s var(--ease-out); }
.ash-pay ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; color: var(--muted); font-size: 11.5px; }
.ash-pay li { display: flex; align-items: center; gap: 6px; }
.ash-pay li i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

.ash-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ash-list li {
    display: grid; grid-template-columns: 8px 76px minmax(0, 1fr) auto 76px; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: 10px;
}
.ash-list li b { font-weight: 700; }
.ash-list__where { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ash-list__when { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.ash-list__sum { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ash-list li.is-hit { animation: ash-hit 1.6s var(--ease-out); }
.ash-list li.is-hit .ash-list__when { color: var(--ok); font-weight: 700; }
@keyframes ash-hit { 0% { background: rgba(31, 99, 255, .14); } 100% { background: transparent; } }

/* всплывающее событие над экраном */
.ash-toast {
    position: absolute; z-index: 3; left: 26%; top: -26px; display: flex; align-items: center; gap: 12px;
    padding: 11px 16px 11px 11px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
    box-shadow: 0 24px 46px -26px rgba(16, 48, 120, .55); font-size: 13px; line-height: 1.25; color: var(--ink);
    opacity: 0;
}
.ash-toast.is-in { animation: ash-toast 2.8s var(--ease-out) both; }
@keyframes ash-toast { 0% { opacity: 0; transform: translateY(14px) scale(.96); } 14% { opacity: 1; transform: none; } 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }
.ash-toast__ico { width: 32px; height: 32px; border-radius: 10px; background: var(--c, var(--accent)); position: relative; }
.ash-toast__ico::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; border: 2.5px solid #fff; }
.ash-toast__txt { display: grid; gap: 2px; }
.ash-toast__txt small { color: var(--muted); font-size: 12px; }
.ash-toast__sum { margin-left: 8px; font-weight: 800; color: var(--ok); font-size: 15px; white-space: nowrap; }

/* телефон с уведомлением */
.ash-phone {
    position: absolute; z-index: 2; right: 0; bottom: -26px; width: 156px; aspect-ratio: 9 / 17.5; padding: 7px;
    border-radius: 30px; background: #0a1f4d; box-shadow: 0 40px 70px -34px rgba(10, 31, 77, .65);
    animation: ash-rise 1.1s var(--ease-out) both .45s;
}
.ash-phone__screen { position: relative; height: 100%; border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, #e9f0ff 0%, #d8e5ff 100%); }
.ash-phone__time { position: absolute; left: 0; right: 0; top: 30px; text-align: center; font-size: 34px; font-weight: 300; color: var(--ink); letter-spacing: -.02em; }
.ash-push {
    position: absolute; left: 8px; right: 8px; top: 92px; display: grid; gap: 2px; padding: 9px 10px; border-radius: 13px;
    background: #fff; font-size: 11px; line-height: 1.3; color: var(--ink); box-shadow: 0 10px 20px -14px rgba(10, 31, 77, .5);
}
.ash-push__app { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9.5px; font-weight: 600; margin-bottom: 2px; }
.ash-push b { font-size: 11.5px; }
.ash-push small { color: var(--muted); font-size: 10.5px; }
.ash-push.is-in { animation: ash-push 1s var(--ease-out); }
@keyframes ash-push { from { opacity: 0; transform: translateY(-16px) scale(.94); } }

.ash__feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 760px; }
.ash__feats li { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid #cfdcf6; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.ash__feats b { font-size: 15px; color: var(--ink); }
.ash__demo { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; color: var(--accent); font-weight: 700; text-decoration: none; }
.ash__demo svg { width: 17px; height: 17px; transition: transform .45s var(--ease-out); }
.ash__demo:hover svg { transform: translateX(4px); }

@media (max-width: 1240px) {
    .ash__stage { padding-right: 96px; }
    .ash-list li { grid-template-columns: 8px 68px minmax(0, 1fr) 76px; }
    .ash-list__when { display: none; }
    .ash-phone { width: 128px; }
}
/* узкий экран: форма сверху, под ней — короткий рассказ без макета экрана */
@media (max-width: 1020px) {
    .auth--split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .auth--split .auth__box { order: 1; padding: 36px 0 44px; }
    .ash { order: 2; gap: 22px; padding: 44px var(--gutter) 52px; }
    .ash::before { display: none; }
    .ash__stage { min-height: 0; max-width: 640px; width: 100%; padding: 30px 96px 0 0; }
    .ash-toast { left: 10px; top: -6px; }
    .ash__title { font-size: clamp(30px, 8vw, 42px); }
    .ash__feats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 640px) {
    .ash__stage { padding-right: 0; }
    .ash-phone { display: none; }
    .ash-win { padding: 10px; gap: 10px; }
    .ash-win__tab:not(.is-on) { display: none; }
    .ash-kpi { padding: 10px; }
    .ash-kpi b { font-size: 16px; }
    .ash-kpi small, .ash-spark { display: none; }
    .ash-mid { grid-template-columns: minmax(0, 1fr); }
    .ash-bars { height: 70px; }
    .ash-list li { grid-template-columns: 8px 64px minmax(0, 1fr) 64px; gap: 8px; padding: 8px 6px; }
}
/* установленное приложение CRM: только форма */
@media (display-mode: standalone) {
    .is-crm-app .ash { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ash-win, .ash-phone, .ash-spark path, .ash-dot { animation: none !important; }
    .ash-spark path { stroke-dashoffset: 0; }
    .ash-bars i { height: var(--h); transition: none; }
}
