/* Общие токены, элементы управления и каркас текущего интерфейса. */
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url('./fonts/inter-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url('./fonts/inter-cyrillic.woff2') format('woff2'); unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
:root { --navy: #111c30; --navy-2: #19273f; --blue: #2456d8; --blue-hover: #1947bb; --blue-light: #eef3ff; --ink: #101827; --muted: #697386; --line: #dfe4ed; --surface: #f7f9fc; --white: #fff; --danger: #b34343; --rail: 288px; --radius: 8px; --font: Inter,Arial,sans-serif; --control-size: 44px; --control-font-size: 14px; --control-line-height: 20px; --control-radius: 8px; --control-padding-x: 16px; --control-gap: 8px; }
* { box-sizing: border-box; letter-spacing: normal; }
html { min-width: 0; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 15px; font-weight: 400; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; display: inline-flex; align-items: center; justify-content: center; gap: var(--control-gap); height: var(--control-size); min-height: var(--control-size); padding: 0 var(--control-padding-x); border: 1px solid transparent; border-radius: var(--control-radius); font-family: var(--font); font-size: var(--control-font-size); font-weight: 500; line-height: var(--control-line-height); background: transparent; color: inherit; cursor: pointer; transition: background .15s,border-color .15s,transform .12s; }
input { font: inherit; letter-spacing: normal; -webkit-tap-highlight-color: transparent; }
textarea { font: inherit; letter-spacing: normal; -webkit-tap-highlight-color: transparent; width: 100%; min-height: 46px; border: 1px solid #bec7d7; border-radius: 7px; padding: 11px 13px; background: white; color: var(--ink); transition: border-color .15s,box-shadow .15s; }
select { font: inherit; letter-spacing: normal; -webkit-tap-highlight-color: transparent; cursor: pointer; }
a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; cursor: pointer; color: var(--blue); text-decoration: none; }
summary { touch-action: manipulation; cursor: pointer; }
[role=tab] { touch-action: manipulation; }
button:disabled { cursor: wait; opacity: .65; }
h1 { margin: 0; font-weight: 600; line-height: 1.16; }
h2 { margin: 0; font-weight: 600; line-height: 1.3; }
h3 { margin: 0; font-weight: 600; }
h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
strong { font-weight: 600; }
b { font-weight: 600; }
@media (hover:hover) and (pointer:fine) { a:hover { text-decoration: none; } }
input:focus { outline: 3px solid #dbe6ff; border-color: var(--blue); }
textarea:focus { outline: 3px solid #dbe6ff; border-color: var(--blue); }
select:focus { outline: 3px solid #dbe6ff; border-color: var(--blue); }
[hidden] { display: none!important; }
.icon { display: inline-block; flex: 0 0 auto; object-fit: contain; vertical-align: middle; }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 20px; padding: 10px 20px; background: white; box-shadow: 0 2px 20px #0002; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.text-muted { color: var(--muted); }
.eyebrow { font-size: 12px; color: var(--muted); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--control-gap); height: var(--control-size); min-height: var(--control-size); padding: 0 var(--control-padding-x); border: 1px solid transparent; border-radius: var(--control-radius); font-family: var(--font); font-size: var(--control-font-size); font-weight: 500; line-height: var(--control-line-height); background: transparent; transition: background .15s,border-color .15s,transform .12s; }
.btn:not(:disabled):active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: white; }
@media (hover:hover) and (pointer:fine) { .btn-primary:not(:disabled):hover { background: var(--blue-hover); } }
.btn-primary .icon { filter: brightness(0) invert(1); }
.btn-secondary { border-color: var(--line); background: white; color: var(--ink); }
@media (hover:hover) and (pointer:fine) { .btn-secondary:not(:disabled):hover { background: var(--surface); border-color: #bcc7d9; } }
.btn-ghost { color: var(--muted); }
@media (hover:hover) and (pointer:fine) { .btn-ghost:not(:disabled):hover { background: var(--surface); color: var(--ink); } }
.btn-danger { color: var(--danger); background: #fff4f3; border-color: #f0d1ce; }
@media (hover:hover) and (pointer:fine) { .btn-danger:not(:disabled):hover { background: #ffe7e4; } }
.icon-button { width: var(--control-size); min-width: var(--control-size); height: var(--control-size); min-height: var(--control-size); padding: 0; border: 1px solid transparent; border-radius: var(--control-radius); background: transparent; display: inline-flex; align-items: center; justify-content: center; flex: none; }
@media (hover:hover) and (pointer:fine) { .icon-button:not(:disabled):hover { background: var(--icon-button-feedback-bg, var(--surface)); } }
.icon-button:not(:disabled):active { background: var(--icon-button-feedback-bg, var(--surface)); }
/* Unfilled navigation follows the content edge; keep the standard touch height. */
.text-action, .text-button, .back-link, .dash-back, .login-link, .register-link, .mobile-login { min-width: var(--control-size); padding-inline: 0; border: 0; }
.text-action { color: var(--muted); background: transparent; }
@media (hover:hover) and (pointer:fine) { .text-action:not(:disabled):hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; } }
.text-button { color: var(--blue); background: transparent; }
@media (hover:hover) and (pointer:fine) { .text-button:not(:disabled):hover { text-decoration: underline; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field-label { display: block; font-size: 14px; font-weight: 500; }
.input { width: 100%; min-height: 46px; border: 1px solid #bec7d7; border-radius: 7px; padding: 11px 13px; background: white; color: var(--ink); transition: border-color .15s,box-shadow .15s; }
.select { width: 100%; min-height: 46px; border: 1px solid #bec7d7; border-radius: 7px; padding: 11px 13px; background: white; color: var(--ink); transition: border-color .15s,box-shadow .15s; padding-right: 30px; }
.input::placeholder { color: #8690a2; opacity: 1; }
textarea::placeholder { color: #8690a2; opacity: 1; }
.field-error { font-size: 13px; color: var(--danger); margin-top: 5px; }
.input[aria-invalid=true] { border-color: var(--danger); }
.field-hint { font-size: 13px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 4px 8px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge-blue { color: var(--blue); background: var(--blue-light); }
.badge-amber { color: #94631d; background: #fff5df; }
.badge-gray { color: #6b7283; background: #eff2f6; }
.sidebar { --icon-button-feedback-bg: #2b374d; --nav-icon-size: 20px; --nav-icon-slot: 32px; --nav-text-gap: 13px; --brand-nav-offset: 3px; --step-icon-width: var(--nav-icon-slot); --step-icon-height: var(--nav-icon-slot); --step-text-gap: var(--nav-text-gap); --step-icon-radius: 8px; --step-icon-background: #2b374d; --step-glyph-size: var(--nav-icon-size); --side-icon-slot: var(--step-icon-width); --side-text-gap: var(--step-text-gap); --side-glyph: var(--step-glyph-size); --side-axis: var(--brand-nav-offset); --side-text-inset: calc(var(--side-axis) + var(--side-icon-slot) + var(--side-text-gap)); position: fixed; inset: 0 auto 0 0; width: var(--rail); background: var(--navy); color: #fff; z-index: 20; padding: 25px 28px; display: flex; flex-direction: column; }
.mobile-head-actions { display: none; }
.side-steps { list-style: none; padding: 0; margin: 60px 0 0 var(--side-axis); }
.side-step { position: relative; display: flex; gap: var(--step-text-gap); align-items: flex-start; min-height: 98px; padding: 0; color: #c3cad8; }
.side-step:not(:last-child):after { position: absolute; content: ''; left: 15.5px; top: 40px; height: 50px; width: 1px; background: #68758e; }
.side-step:last-child { min-height: 70px; }
.step-icon { width: var(--step-icon-width); height: var(--step-icon-height); border-radius: var(--step-icon-radius); background: var(--step-icon-background); display: flex; align-items: center; justify-content: center; flex: none; }
.step-icon .icon { width: var(--step-glyph-size); height: var(--step-glyph-size); filter: brightness(0) invert(1); opacity: .85; }
.side-step.active { color: white; }
.side-step.active .step-icon { background: var(--blue); }
.side-step.done .step-icon { background: #253d66; }
.side-step strong { display: block; font-size: 14px; font-weight: 500; line-height: 20px; }
.side-step small { display: block; color: #aeb9cd; font-size: 11px; line-height: 14px; margin-top: 2px; }
.side-bottom { margin-top: auto; border-top: 1px solid #41506b; padding-top: 22px; }
.side-help { display: grid; grid-template-columns: var(--side-icon-slot) minmax(0,1fr); column-gap: var(--side-text-gap); align-items: center; color: #f7f9ff; text-align: left; width: calc(100% - var(--side-axis)); margin-left: var(--side-axis); padding: 0; border: 0; }
.side-help .icon { width: var(--side-glyph); height: var(--side-glyph); min-width: 0; justify-self: center; filter: brightness(0) invert(1); }
.side-help strong { display: block; font-size: var(--control-font-size); font-weight: 500; line-height: var(--control-line-height); }
.side-help small { display: block; font-size: 11px; line-height: 14px; color: #adb8cd; }
.side-return { display: block; margin: 20px 0 0; padding-left: var(--side-text-inset); color: #aebbd2; font-size: 12px; }
@media (hover:hover) and (pointer:fine) { .side-return:hover { color: white; } }
.main-workspace { margin-left: var(--rail); min-height: 100vh; }
.topbar { max-width: 1212px; height: 90px; margin: 0 36px 0 52px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-title { font-weight: 600; font-size: 21px; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.login-link { color: var(--blue); }
.login-link .icon { filter: invert(29%) sepia(92%) saturate(1984%) hue-rotate(217deg) brightness(85%); }
/* Регистрация без сервера — запасной путь: спокойная текстовая ссылка рядом со входом. */
.register-link { color: var(--muted); display: flex; align-items: center; }
@media (hover:hover) and (pointer:fine) { .register-link:hover { color: var(--blue); } }
.workspace-content { max-width: 1300px; margin: 0; padding: 43px 36px 40px 52px; }
.mobile-steps { display: none; }
.mobile-copy { display: none; }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 50px; }
.password-wrap .icon-button { position: absolute; right: 1px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.password-wrap .icon { opacity: .55; }
.faq-section { border-top: 1px solid var(--line); }
.faq-section h2 { font-size: 26px; margin-bottom: 24px; }
.faq-section details { border-bottom: 1px solid var(--line); }
.faq-section summary { padding: 18px 0; font-size: 16px; list-style: none; display: flex; align-items: center; justify-content: space-between; font-weight: 500; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section details p { padding: 0 35px 20px 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.site-footer { margin-top: 40px; padding: 20px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 12px; color: var(--muted); }
.site-footer .text-button { font-size: inherit; font-weight: inherit; }
/* На ПК регистрация стоит в верхней панели; в подвале она нужна там, где верхней панели нет. */
.site-footer .footer-register { display: none; }
/* Реквизиты продавца — отдельной строкой под ссылками подвала. */
.site-requisites { flex: 1 1 100%; margin: -6px 0 0; line-height: 1.6; overflow-wrap: anywhere; }
.side-nav { display: flex; flex-direction: column; gap: 7px; margin: 48px -10px 0; }
.side-nav a { color: #b9c4d7; display: flex; align-items: center; gap: var(--nav-text-gap); padding: 12px 13px; border-radius: 7px; font-size: 14px; font-weight: 500; }
.side-nav .nav-icon { width: var(--nav-icon-slot); display: flex; align-items: center; justify-content: center; flex: none; }
.side-nav a .icon { width: var(--nav-icon-size); height: var(--nav-icon-size); filter: brightness(0) invert(1); opacity: .75; }
@media (hover:hover) and (pointer:fine) { .side-nav a:hover { background: #1c2c48; color: white; } }
.side-nav a.active { color: #fff; background: #244584; }
.side-nav a.active .icon { opacity: 1; }
.side-account { display: grid; grid-template-columns: var(--side-icon-slot) minmax(0,1fr); column-gap: var(--side-text-gap); align-items: center; margin: 0 0 23px var(--side-axis); padding-top: 18px; font-size: 13px; }
.account-avatar { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 50%; background: #2a3b59; color: white; font-size: 12px; flex: none; }
.side-account .account-avatar { min-width: 0; justify-self: center; }
.side-account small { display: block; color: #96a8c3; font-size: 11px; }
.panel-mode .side-bottom { padding-top: 0; }
.workspace-content.panel-content { padding-top: 29px; }
.back-link { color: var(--muted); margin-bottom: 27px; }
.stage-title { font-size: 38px; line-height: 1.2; margin-bottom: 13px; }
.stage-subtitle { color: var(--muted); font-size: 17px; max-width: 620px; }
.stage-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(250px,1fr); gap: 62px; margin-top: 37px; }
.stage-grid h2 { font-size: 20px; margin-bottom: 20px; }
.payment-methods { display: flex; gap: 12px; margin-bottom: 26px; }
.payment-method { border: 1px solid var(--line); border-radius: 8px; padding: 18px; flex: 1; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.payment-method:has(input:checked) { border-color: var(--blue); background: var(--blue-light); }
input[type=radio] { accent-color: var(--blue); width: 17px; height: 17px; flex: none; cursor: pointer; }
input[type=checkbox] { accent-color: var(--blue); width: 17px; height: 17px; flex: none; cursor: pointer; }
.order-facts { border-top: 1px solid var(--line); margin-top: 22px; }
.order-fact { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.order-fact span { color: var(--muted); }
.order-fact.total { font-size: 20px; padding: 20px 0; border: 0; }
.payment-action { width: 100%; margin-top: 14px; }
.stage-aside { border-left: 1px solid var(--line); padding-left: 32px; }
.stage-aside h3 { font-size: 17px; margin: 0 0 12px; }
.stage-aside p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.registration-form { max-width: 530px; }
.registration-form .input { height: 52px; }
.registration-form .field { margin-bottom: 23px; }
.confirmed { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-size: 13px; margin-bottom: 20px; }
.confirmed .icon { filter: invert(29%) sepia(92%) saturate(1984%) hue-rotate(217deg) brightness(85%); }
.install-box { max-width: 690px; margin-top: 35px; }
.installation-server { padding: 20px 0; display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 25px; }
.installation-server h3 { font-size: 16px; }
.installation-server p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.installation-server .badge { margin-left: auto; }
.install-progress { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 10px; }
.install-box progress { appearance: none; width: 100%; height: 7px; border: 0; border-radius: 8px; background: #e6ebf4; }
.install-box progress::-webkit-progress-bar { background: #e6ebf4; border-radius: 8px; }
.install-box progress::-webkit-progress-value { background: var(--blue); border-radius: 8px; transition: width .6s; }
.install-steps { padding: 10px 0 0; list-style: none; }
.install-steps li { padding: 12px 0; display: flex; align-items: center; gap: 12px; color: #8c96a8; font-size: 14px; }
.install-steps li.complete { color: var(--ink); }
.install-steps li.current { color: var(--blue); }
.install-steps .step-number { width: 23px; height: 23px; border-radius: 50%; background: #f0f3f8; display: flex; align-items: center; justify-content: center; font-size: 11px; flex: none; }
.install-steps .complete .step-number { background: var(--blue-light); }
.install-steps .complete .icon { width: 14px; height: 14px; }
.install-success { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.spin { animation: spin 1.2s linear infinite; }
@keyframes spin {to{transform:rotate(360deg)}}
.modal { border: 1px solid var(--line); border-radius: 12px; padding: 0; width: min(510px,calc(100vw - 32px)); max-height: calc(100dvh - 48px); color: var(--ink); box-shadow: 0 24px 100px #111c3033; background: white; }
.modal::backdrop { background: #0b162c80; backdrop-filter: blur(2px); }
.modal-wide { width: min(680px,calc(100vw - 32px)); }
.modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 14px; }
.modal-heading h2 { font-size: 22px; }
.modal-body { padding: 10px 24px 24px; }
.modal-body>p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: var(--surface); position: sticky; bottom: 0; z-index: 1; }
.modal .field:last-child { margin-bottom: 0; }
.modal ul { padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.modal h3 { font-size: 16px; margin: 20px 0 8px; }
.modal details { margin: 10px 0; }
.modal summary { font-weight: 500; padding: 5px 0; }
.modal details p { font-size: 14px; color: var(--muted); padding: 5px 0 12px; line-height: 1.65; }
#toast { position: fixed; bottom: 27px; left: calc(50% + var(--rail)/2); transform: translate(-50%,16px); max-width: calc(100% - 40px); padding: 13px 20px; z-index: 1000; border-radius: 8px; background: var(--navy); color: white; box-shadow: 0 6px 30px #111c3026; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s,transform .2s; }
#toast.visible { opacity: 1; transform: translate(-50%,0); }
.install-success.install-complete .btn { width: 100%; }
.install-success.install-complete { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; border: 0; }
.install-success[hidden] { display: none; }
.payment-included { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }
.payment-view .order-facts { margin-top: 16px; }
.payment-view .payment-methods { margin-bottom: 16px; }
.payment-view .payment-action { margin-top: 14px; }
.mobile-login { display: inline-flex; align-items: center; justify-content: flex-end; height: var(--control-size); padding: 0; font-size: var(--control-font-size); font-weight: 500; line-height: var(--control-line-height); color: #d4def1; }
.brand { display: inline-flex; align-items: center; gap: var(--nav-text-gap); width: max-content; max-width: 100%; height: 36px; margin: 0 0 0 var(--brand-nav-offset); color: #fff; flex: none; }
.brand-mark { display: flex; align-items: center; justify-content: center; flex: none; width: var(--nav-icon-slot); height: var(--nav-icon-slot); border-radius: 8px; background: var(--blue); }
.brand-key { width: var(--nav-icon-size); height: var(--nav-icon-size); display: block; object-fit: contain; filter: none; flex: none; }
.brand-wordmark { font-family: var(--font); font-size: 24px; line-height: 1; font-weight: 600; letter-spacing: normal; }
button .icon, .btn .icon { width: 18px; height: 18px; }
.stage-aside .stage-aside-section { margin-top: 25px; }
a:focus-visible,button:focus-visible,summary:focus-visible { outline: 3px solid #97b5ff; outline-offset: 3px; }

@media(min-width:1600px) {
  .workspace-content { padding-top: 55px; }
}

@media(max-width:1190px) {
  :root { --rail: 240px; }
  .sidebar { padding: 23px 24px; }
  .topbar { margin: 0 32px; height: 86px; }
  .workspace-content { padding: 35px 32px; }
  .topbar-title { font-size: 18px; }
  .stage-grid { gap: 32px; }
}

@media(max-width:950px) and (min-width:701px) {
  :root { --rail: 218px; }
  .sidebar { padding: 20px; }
  .stage-grid { grid-template-columns: 1fr; }
  .stage-aside { border: 0; padding: 20px 0 0; }
}

@media(max-width:700px) {
  :root { --rail: 0px; }
  .sidebar { --brand-nav-offset: 13px; inset: 0 0 auto; width: 100%; height: 60px; padding: 0 18px; display: flex; flex-direction: row; justify-content: space-between; align-items: center; }
  .mobile-head-actions { display: flex; align-items: center; gap: 7px; }
  .mobile-login { color: #d4def1; background: none; border: 0; }
  .mobile-menu { color: white; }
  .mobile-menu .icon { filter: brightness(0) invert(1); }
  .sidebar>.side-steps { display: none; }
  .sidebar>.side-bottom { display: none; }
  .sidebar>.side-nav { display: none; }
  .main-workspace { margin-left: 0; padding-top: 60px; }
  .topbar { margin: 0 20px; height: 56px; }
  .topbar-title { font-size: 16px; }
  .topbar-actions .login-link, .topbar-actions .register-link { display: none; }
  .onboarding-mode .mobile-head-actions { gap: 16px; }
  .onboarding-mode .topbar { display: none; }
  .workspace-content { padding: 20px; max-width: 100%; }
  .workspace-content.panel-content { padding: 22px 20px 35px; padding-top: 20px; }
  .mobile-steps { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; gap: 7px; }
  .mobile-step { display: flex; align-items: center; gap: 5px; color: #8691a4; font-size: 10px; white-space: nowrap; }
  .mobile-step span { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid #d5ddeb; font-size: 10px; }
  .mobile-step.active { color: var(--blue); font-weight: 500; }
  .mobile-step.active span { background: var(--blue); color: white; border-color: var(--blue); }
  .mobile-step.done span { background: var(--blue-light); color: var(--blue); border-color: transparent; }
  .desktop-copy { display: none; }
  .mobile-copy { display: block; }
  .faq-section h2 { font-size: 22px; margin-bottom: 13px; }
  .faq-section summary { font-size: 14px; gap: 12px; }
  .faq-section details p { font-size: 13px; padding-right: 10px; }
  .site-footer { font-size: 11px; gap: 15px; }
  .site-footer .footer-register { display: inline-flex; }
  .panel-mode .sidebar.nav-open { height: 100dvh; align-items: flex-start; padding-top: 12px; flex-wrap: wrap; align-content: flex-start; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 24px; }
  .panel-mode .sidebar.nav-open .brand { margin-top: 2px; }
  .panel-mode .sidebar.nav-open .mobile-head-actions { margin-left: auto; }
  .panel-mode .sidebar.nav-open .side-nav { display: flex; width: 100%; margin: 34px 0 0; }
  .panel-mode .sidebar.nav-open .side-bottom { display: block; width: 100%; margin-top: 30px; }
  .panel-mode .sidebar.nav-open .side-account { padding: 14px 0 0; }
  .stage-title { font-size: 29px; margin-bottom: 9px; }
  .stage-subtitle { font-size: 15px; }
  .back-link { margin-bottom: 20px; }
  .stage-grid { grid-template-columns: 1fr; gap: 30px; margin-top: 27px; }
  .stage-aside { border: 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
  .stage-aside h3 { font-size: 16px; }
  .payment-method { padding: 13px; font-size: 13px; }
  .payment-methods { gap: 9px; }
  .order-fact { font-size: 14px; }
  .order-fact.total { font-size: 18px; }
  .registration-form .input { height: 48px; }
  .registration-form .field { margin-bottom: 19px; }
  .install-box { margin-top: 24px; }
  .installation-server { padding: 17px 0; gap: 10px; }
  .installation-server h3 { font-size: 14px; }
  .installation-server .badge { font-size: 10px; }
  .install-steps li { font-size: 13px; }
  .modal-heading { padding: 18px 18px 10px; }
  .modal-heading h2 { font-size: 20px; }
  .modal-body { padding: 10px 18px 20px; }
  .modal-footer { padding: 14px 18px; flex-wrap: wrap; }
  #toast { left: 50%; bottom: 18px; font-size: 13px; width: max-content; max-width: calc(100vw - 30px); }
  .topbar-actions { gap: 9px; }
  .topbar .account-avatar { width: 30px; height: 30px; }
  .panel-mode .topbar { display: none; }
  .brand { height: 32px; }
  .brand-wordmark { font-size: 22px; }
}

@media(max-width:360px) {
  .sidebar { --nav-icon-slot: 30px; height: 54px; padding: 0 15px; }
  .main-workspace { padding-top: 54px; }
  .workspace-content { padding: 14px 16px 25px; }
  .workspace-content.panel-content { padding: 18px 16px; padding-top: 18px; }
  .mobile-steps { margin-bottom: 15px; gap: 5px; }
  .mobile-step { font-size: 9px; gap: 4px; }
  .mobile-step span { width: 16px; height: 16px; font-size: 9px; }
  .stage-title { font-size: 26px; }
  .stage-subtitle { font-size: 14px; }
  .stage-grid { margin-top: 20px; }
  .payment-view .back-link { margin-bottom: 14px; }
  .payment-view .payment-methods { margin-bottom: 12px; }
  .payment-view .order-facts { margin-top: 12px; }
  .payment-view .order-fact.total { padding: 14px 0; font-size: 16px; }
  .brand { height: 30px; }
  .panel-mode .sidebar.nav-open .brand { margin-top: 0; }
  .brand-wordmark { font-size: 21px; }
  /* В шапке шириной до 360 px рядом с логотипом помещается только «Войти»; регистрация остаётся в окне входа и в подвале. */
  .mobile-register { display: none; }
}

@media(prefers-reduced-motion:reduce) {
  * { scroll-behavior: auto!important; animation-duration: .01ms!important; transition-duration: .01ms!important; }
  *:before { scroll-behavior: auto!important; animation-duration: .01ms!important; transition-duration: .01ms!important; }
  *:after { scroll-behavior: auto!important; animation-duration: .01ms!important; transition-duration: .01ms!important; }
}

/* Токены кабинета ссылаются на общую палитру и доступны его компонентам вне .dashboard:
   в окнах, на этапах подключения и на странице подключения пользователя. */
:root { --dash-ink: var(--ink); --dash-muted: var(--muted); --dash-line: var(--line); --dash-blue: var(--blue); }
/* Скрытые подписи для экранных дикторов — в том числе в окнах и на страницах без кабинета. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* --- Сервисные состояния этапов подключения: согласия, ожидание, ошибки, документы --- */
.form-error { margin: 12px 0 0; }
.field-hint.node-verified { margin-top: 5px; font-size: 12px; }
.consents { display: grid; gap: 14px; margin: 20px 0 4px; }
.consents a, .legal-text a, .modal-body .dash-checkbox-row a { color: var(--blue); }
.consents .field-error { margin: -6px 0 0 29px; }
.modal-body .dash-checkbox-row + .field-error { margin: 6px 0 0 29px; }
.modal-body .consents { margin: 4px 0 0; }
.stage-wait { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.stage-wait .icon { opacity: .6; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.install-failure { margin-top: 26px; }
.install-failure .dash-notice { margin-bottom: 0; }
.install-failure .stage-actions { margin-top: 16px; }
.install-steps li.failed { color: var(--danger); }
.install-steps .failed .step-number { background: #fff4f3; }
.install-steps .failed .icon { width: 14px; height: 14px; }
.form-alt { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.modal-links { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 16px; margin: -6px 0 0 !important; }
.side-logout { height: var(--control-size); margin: 0; padding: 0 0 0 var(--side-text-inset); border: 0; justify-content: flex-start; color: #aebbd2; font-size: 12px; font-weight: 400; }
@media (hover:hover) and (pointer:fine) { .side-logout:hover { color: white; } }
.side-login { margin: 7px 0 0; }
.side-account-link { margin: 14px 0 0 var(--side-axis); padding-top: 0; color: #f7f9ff; }
.side-account-link strong { display: block; font-weight: 500; }
@media (hover:hover) and (pointer:fine) { .side-account-link:hover strong { text-decoration: underline; } }
.legal-view .back-link { display: inline-flex; align-items: center; gap: var(--control-gap); height: var(--control-size); font-size: var(--control-font-size); font-weight: 500; line-height: var(--control-line-height); }
.legal-text { max-width: 760px; }
.legal-text h2 { font-size: 20px; line-height: 1.35; margin: 30px 0 12px; }
.legal-text p { font-size: 15px; line-height: 1.7; margin-bottom: 10px; }
.legal-text strong { font-weight: 600; }
.legal-requisites { margin: 0; border-top: 1px solid var(--line); }
.legal-requisites > div { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.legal-requisites dt { color: var(--muted); }
.legal-requisites dd { margin: 0; overflow-wrap: anywhere; }
.public-connect-view .stage-subtitle { margin-bottom: 26px; }
.public-connect { max-width: 650px; }
.public-connect-details { max-width: 650px; margin: 26px 0 14px; }
@media (max-width: 700px) {
  .stage-wait { margin-top: 20px; font-size: 13px; }
  .stage-actions { margin-top: 20px; }
  .stage-actions .btn { flex: 1 1 100%; }
  .consents { margin-top: 16px; }
  .legal-text h2 { font-size: 18px; margin-top: 24px; }
  .legal-text p { font-size: 14px; }
  .legal-requisites > div { grid-template-columns: 1fr; gap: 2px; font-size: 13px; }
  .public-connect-view .stage-subtitle { margin-bottom: 18px; }
}
/* Предупреждение о версии системы рядом с причиной остановки установки. */
.install-failure .dash-notice p + p { margin-top: 6px; }
