/* ===== VVM Core — общие стили страниц vvm.net.ru =====
   Все классы с префиксом custom-vvm-, на оформление темы WordPress не влияют.
   Здесь только то, что нужно двум и более страницам; своё — в теле страницы. */

/* --- токены и основа --- */
.custom-vvm{--custom-bg:#f2f2f3;--custom-ink:#1d1f20;--custom-muted:#5b6066;--custom-accent:#5980a6;--custom-accent-100:#e4ebf2;--custom-accent-300:#b3c6d9;--custom-accent-700:#3d5a78;--custom-accent-900:#1f2f40;--custom-line:#c9d3dd;--custom-card:rgba(242,242,243,.72);--custom-h:'IBM Plex Sans Condensed','Arial Narrow',sans-serif;--custom-b:'IBM Plex Sans',system-ui,sans-serif;--custom-m:'JetBrains Mono',ui-monospace,monospace;
  background-color:var(--custom-bg);color:var(--custom-ink);transition:background-color .4s ease,color .4s ease;font-family:var(--custom-b);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased;
  background-image:linear-gradient(var(--custom-accent-100) 1px,transparent 1px),linear-gradient(90deg,var(--custom-accent-100) 1px,transparent 1px);background-size:32px 32px;
  padding:0 16px 48px;box-sizing:border-box;overflow:hidden;max-width:none!important;margin-block:0!important}
.custom-vvm.custom-vvm-dark{--custom-bg:#12171d;--custom-ink:#e6eaee;--custom-muted:#9ba7b3;--custom-accent:#7fa3c7;--custom-accent-100:#1a222b;--custom-accent-300:#3a4f66;--custom-accent-700:#a3bfdb;--custom-accent-900:#d3e0ec;--custom-line:#2b3744;--custom-card:rgba(18,23,29,.78);color-scheme:dark}
.custom-vvm [hidden]{display:none!important}
.custom-vvm *,.custom-vvm *::before,.custom-vvm *::after{box-sizing:border-box}
/* убираем отступы обёрток WordPress вокруг страницы */
:where(body *):has(.custom-vvm){margin-top:0!important;margin-bottom:0!important;margin-block-start:0!important;margin-block-end:0!important;padding-top:0!important;padding-bottom:0!important}
body:has(.custom-vvm){margin:0;background:#12171d}
body:has(.custom-vvm:not(.custom-vvm-dark)){background:#f2f2f3}
/* страховка от автоабзацев WordPress (wpautop) — на случай, если код попал в блок «Шорткод»
   или «Классический»: лишние <p> и <br> не встают в сетки и не сдвигают страницу.
   Свои <p> на страницах всегда с классом; свой <br> вне заголовка h1 — тоже с классом. */
.custom-vvm p:not([class]){display:contents}
.custom-vvm br:not([class]){display:none}
.custom-vvm .custom-vvm-h1 br{display:inline}
.custom-vvm ~ p:not([class]),.custom-vvm ~ br{display:none}
.custom-vvm-wrap{max-width:1120px;margin:0 auto}
.custom-vvm-bp{position:relative;border:1px solid var(--custom-line)}
.custom-vvm-c{position:absolute;width:11px;height:11px;pointer-events:none}
.custom-vvm-c::before,.custom-vvm-c::after{content:"";position:absolute;background:var(--custom-accent)}
.custom-vvm-c::before{left:5px;top:0;width:1px;height:11px}
.custom-vvm-c::after{top:5px;left:0;height:1px;width:11px}
.custom-vvm-tl{top:-6px;left:-6px}.custom-vvm-tr{top:-6px;right:-6px}.custom-vvm-bl{bottom:-6px;left:-6px}.custom-vvm-br{bottom:-6px;right:-6px}

/* --- шапка --- */
.custom-vvm-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 0;border-bottom:1px solid var(--custom-line)}
.custom-vvm-logo{display:flex;align-items:center;gap:10px;color:var(--custom-ink);text-decoration:none}
.custom-vvm-logo svg{width:44px;height:44px;flex:none}
.custom-vvm-logo-frame{stroke:var(--custom-accent)}.custom-vvm-logo-ink{stroke:var(--custom-ink)}
.custom-vvm-logo-t{font-family:var(--custom-h);font-weight:700;font-size:26px;letter-spacing:.02em;line-height:1}
.custom-vvm-logo-t span{color:var(--custom-accent-700);font-weight:500}
.custom-vvm-actions{display:flex;align-items:center;gap:16px}
.custom-vvm-status{font-family:var(--custom-m);font-size:12px;color:var(--custom-accent-700);display:flex;align-items:center;gap:8px;white-space:nowrap;margin:0}
.custom-vvm-dot{width:8px;height:8px;background:var(--custom-accent);animation:custom-vvm-blink 2.4s steps(2) infinite}
.custom-vvm-st-short{display:none}
.custom-vvm-theme{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;background:transparent;border:1px solid var(--custom-line);color:var(--custom-accent-700);cursor:pointer;border-radius:0;transition:background-color .2s,border-color .2s}
.custom-vvm-theme:hover{background:var(--custom-accent-100);border-color:var(--custom-accent)}
.custom-vvm-theme:active{background:var(--custom-accent-300)}
.custom-vvm-theme:focus-visible{outline:2px solid var(--custom-accent);outline-offset:2px}
.custom-vvm-theme svg{width:20px;height:20px;transition:transform .5s cubic-bezier(.2,.7,.2,1),opacity .3s}
.custom-vvm-theme .custom-vvm-ico-sun,.custom-vvm-theme .custom-vvm-ico-moon{position:absolute}
.custom-vvm-dark .custom-vvm-ico-moon,.custom-vvm:not(.custom-vvm-dark) .custom-vvm-ico-sun{opacity:0;transform:rotate(-90deg) scale(.6)}

/* --- первый экран --- */
.custom-vvm-hero{padding:48px 0 40px;display:grid;gap:28px}
.custom-vvm-kicker{font-family:var(--custom-m);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--custom-accent-700);margin:0}
.custom-vvm-h1{font-family:var(--custom-h);font-weight:700;font-size:clamp(44px,11vw,104px);line-height:.92;letter-spacing:-.01em;margin:10px 0 0;text-transform:uppercase;text-wrap:balance}
.custom-vvm-h1 em{font-style:normal;color:var(--custom-accent)}
.custom-vvm-lead{font-size:18px;max-width:34em;margin:0;color:var(--custom-muted);text-wrap:pretty}
.custom-vvm-spec{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;padding:0}
.custom-vvm-spec div{padding:14px 16px;border-top:1px solid var(--custom-line);min-width:0}
.custom-vvm-spec div:nth-of-type(odd){border-right:1px solid var(--custom-line)}
.custom-vvm-spec dt{font-family:var(--custom-m);font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--custom-accent-700)}
.custom-vvm-spec dd{margin:2px 0 0;font-family:var(--custom-h);font-size:22px;font-weight:600}
.custom-vvm-spec dd.custom-vvm-mono{font-family:var(--custom-m);font-size:15px;font-weight:400;padding-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* --- заголовки секций и текст --- */
.custom-vvm-sechead{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:24px 0 20px}
.custom-vvm-h2{font-family:var(--custom-h);font-weight:700;font-size:clamp(28px,6vw,44px);text-transform:uppercase;margin:0;line-height:1}
.custom-vvm-note{font-family:var(--custom-m);font-size:12px;color:var(--custom-muted);text-align:right}
.custom-vvm-p{margin:0;color:var(--custom-muted);text-wrap:pretty}

/* --- карточки-чертежи --- */
.custom-vvm-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;list-style:none;margin:0;padding:0}
.custom-vvm-card{padding:0;display:flex;flex-direction:column;background:var(--custom-card);height:100%}
.custom-vvm-fig{margin:0;border-bottom:1px solid var(--custom-line);color:var(--custom-accent);background:var(--custom-accent-100);aspect-ratio:12/7;display:flex}
.custom-vvm-fig svg{width:100%;height:100%;display:block}
.custom-vvm-fig text{font-family:'JetBrains Mono',monospace;fill:var(--custom-accent-900);font-size:9px}
.custom-vvm-body{padding:18px 20px 20px;display:flex;flex-direction:column;gap:8px;flex:1}
.custom-vvm-no{font-family:var(--custom-m);font-size:11px;color:var(--custom-accent-700);letter-spacing:.08em}
.custom-vvm-h3{font-family:var(--custom-h);font-weight:600;font-size:26px;line-height:1.05;margin:0;text-transform:uppercase}
.custom-vvm-tag{align-self:flex-start;margin-top:auto;font-family:var(--custom-m);font-size:11px;padding:3px 8px;border:1px solid var(--custom-accent-300);color:var(--custom-accent-700)}

/* --- панели (текст слева, содержимое справа) --- */
.custom-vvm-panel{margin-top:56px;display:grid;gap:24px;padding:24px 20px}
.custom-vvm-panel-h{font-family:var(--custom-h);font-weight:700;font-size:clamp(28px,6vw,44px);text-transform:uppercase;margin:6px 0 8px;line-height:1}
.custom-vvm-msg{font-family:var(--custom-m);font-size:12px;color:var(--custom-accent-700);margin:0;min-height:1.5em}
.custom-vvm-row{display:flex;flex-wrap:wrap;align-items:center;gap:16px}

/* --- кнопки --- */
.custom-vvm-cta{display:flex;flex-wrap:wrap;gap:12px}
.custom-vvm .custom-vvm-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-family:var(--custom-h);font-weight:600;font-size:18px;letter-spacing:.04em;text-transform:uppercase;line-height:1;text-decoration:none;border-radius:0;padding:0 28px;min-height:48px;margin:0;box-shadow:none;cursor:pointer;transition:background-color .2s,border-color .2s,color .2s}
.custom-vvm .custom-vvm-btn svg{width:18px;height:18px;flex:none}
.custom-vvm .custom-vvm-btn-main{color:#f2f2f3;background:#5980a6;border:1px solid #5980a6}
.custom-vvm .custom-vvm-btn-main:hover{color:#f2f2f3;background:#4a6d90;border-color:#4a6d90}
.custom-vvm .custom-vvm-btn-main:active{background:#3d5a78;border-color:#3d5a78}
.custom-vvm-dark .custom-vvm-btn-main{color:#12171d;background:var(--custom-accent);border-color:var(--custom-accent)}
.custom-vvm-dark .custom-vvm-btn-main:hover{color:#12171d;background:#96b5d4;border-color:#96b5d4}
.custom-vvm .custom-vvm-btn-ghost{color:var(--custom-accent-700);background:transparent;border:1px solid var(--custom-line)}
.custom-vvm .custom-vvm-btn-ghost:hover{color:var(--custom-ink);background:var(--custom-accent-100);border-color:var(--custom-accent)}
.custom-vvm .custom-vvm-btn-ghost:active{background:var(--custom-accent-300)}
.custom-vvm .custom-vvm-btn:focus-visible{outline:2px solid var(--custom-accent);outline-offset:4px}
.custom-vvm .custom-vvm-btn:disabled{opacity:.45;cursor:progress}

/* --- поля ввода --- */
.custom-vvm-label{font-family:var(--custom-m);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--custom-accent-700)}
.custom-vvm .custom-vvm-input{width:100%;margin:0;font:inherit;color:var(--custom-ink);background:transparent;border:1px solid var(--custom-line);border-radius:0;box-shadow:none;padding:11px 12px;min-height:44px;-webkit-appearance:none;appearance:none;transition:border-color .2s,background-color .2s}
.custom-vvm .custom-vvm-input::placeholder{color:var(--custom-muted);opacity:.8}
.custom-vvm .custom-vvm-input:hover{border-color:var(--custom-accent-300)}
.custom-vvm .custom-vvm-input:focus{outline:none;border-color:var(--custom-accent);background:var(--custom-accent-100)}
.custom-vvm .custom-vvm-input:focus-visible{outline:2px solid var(--custom-accent);outline-offset:2px}
.custom-vvm-search{display:grid;gap:6px;margin:0}
.custom-vvm-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.custom-vvm .custom-vvm-search-row .custom-vvm-input{height:48px}

/* --- терминал --- */
.custom-vvm-term{border:1px solid var(--custom-line);background:var(--custom-accent-100);min-width:0;align-self:start}
.custom-vvm-term-bar{display:flex;align-items:center;gap:6px;padding:8px 12px;border-bottom:1px solid var(--custom-line);font-family:var(--custom-m);font-size:11px;color:var(--custom-muted)}
.custom-vvm-term-bar i{width:9px;height:9px;border:1px solid var(--custom-accent-300)}
.custom-vvm-term-bar span{margin-left:8px}
.custom-vvm .custom-vvm-term-out{display:block;margin:0;padding:14px 16px 18px;border:0;border-radius:0;background:transparent;font-family:var(--custom-m);font-size:13px;line-height:1.7;color:var(--custom-ink);white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;max-height:none;overflow:visible;tab-size:2}
.custom-vvm-ln{display:block}
.custom-vvm-ln-c{color:var(--custom-accent)}
.custom-vvm-ln-o{color:var(--custom-muted)}
.custom-vvm-ln-k,.custom-vvm-ln-p{color:var(--custom-accent-700)}
.custom-vvm-hid{visibility:hidden}
.custom-vvm-cur::after{content:"";display:inline-block;width:.6em;height:1.15em;margin-right:-.6em;vertical-align:-.22em;background:var(--custom-accent);animation:custom-vvm-blink 1s steps(2) infinite}

/* --- футер --- */
.custom-vvm-foot{margin-top:48px;padding-top:20px;border-top:1px solid var(--custom-line);display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-family:var(--custom-m);font-size:12px;color:var(--custom-muted)}

/* --- анимации --- */
.custom-vvm-reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.custom-vvm-reveal.custom-vvm-in{opacity:1;transform:none}
.custom-vvm-nojs .custom-vvm-reveal{opacity:1;transform:none}
.custom-vvm-draw path,.custom-vvm-draw line,.custom-vvm-draw rect,.custom-vvm-draw polyline,.custom-vvm-draw circle{stroke-dasharray:600;stroke-dashoffset:600;transition:stroke-dashoffset 1.6s ease .2s}
.custom-vvm-in .custom-vvm-draw path,.custom-vvm-in .custom-vvm-draw line,.custom-vvm-in .custom-vvm-draw rect,.custom-vvm-in .custom-vvm-draw polyline,.custom-vvm-in .custom-vvm-draw circle,.custom-vvm-nojs .custom-vvm-draw *{stroke-dashoffset:0}
.custom-vvm-draw .custom-vvm-dash{stroke-dasharray:5 4;stroke-dashoffset:0}
.custom-vvm-draw .custom-vvm-fade{opacity:0;transition:opacity .8s ease 1.3s}
.custom-vvm-in .custom-vvm-draw .custom-vvm-fade,.custom-vvm-nojs .custom-vvm-draw .custom-vvm-fade{opacity:1}
@keyframes custom-vvm-blink{50%{opacity:0}}

/* --- адаптив --- */
@media (max-width:519px){
  .custom-vvm-st-long{display:none}
  .custom-vvm-st-short{display:inline}
}
@media (min-width:640px){
  .custom-vvm{padding:0 24px 64px}
  .custom-vvm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .custom-vvm-spec{grid-template-columns:repeat(4,minmax(0,1fr))}
  .custom-vvm-spec div{border-right:1px solid var(--custom-line)}
  .custom-vvm-spec div:last-of-type{border-right:0}
  .custom-vvm-panel{padding:32px}
}
@media (min-width:1000px){
  .custom-vvm-hero{padding:80px 0 64px}
  .custom-vvm-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .custom-vvm-panel{grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:48px}
}
@media (prefers-reduced-motion:reduce){
  .custom-vvm-reveal,.custom-vvm-draw *{transition:none!important;opacity:1!important;transform:none!important;stroke-dashoffset:0!important;animation:none!important}
  .custom-vvm-dot,.custom-vvm-cur::after{animation:none}
}
