/* Помощь, установка и кабинет: те же чернила, стол и бумага. */
.w4 [hidden] { display: none !important; }
.w4-hero { padding: clamp(54px, 7vw, 94px) 0 64px; }
.w4-hero h1 { margin-top: 20px; max-width: 14ch; }
.w4-hero .lead { max-width: 48ch; }
.w4-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.w4-hero .w4-split { min-height: 510px; }
.w4-desk { padding: 42px 34px; background: repeating-linear-gradient(97deg, transparent 0 48px, color-mix(in srgb, var(--desk-2) 24%, transparent) 49px 50px), var(--desk); border: 1px solid var(--line); border-radius: var(--r-l); }
.w4-paper { position: relative; color: var(--on-sheet); background: var(--sheet); border-radius: 3px 7px 12px 5px; padding: 32px; box-shadow: var(--shadow-2); transform: rotate(-1.4deg); }
.w4-paper::after { content: ''; position: absolute; inset: 6px -5px -6px 5px; z-index: -1; border-right: 5px solid var(--sheet-edge); border-bottom: 6px solid var(--sheet-edge); border-radius: inherit; pointer-events: none; }
.w4-paper .eyebrow, .w4-paper a { color: #2a44c8; }
.w4-paper .btn.on-sheet { color: var(--fg); }
.w4-paper p { margin-top: 14px; }
.w4-paper .w4-muted { color: color-mix(in srgb, var(--on-sheet) 80%, var(--sheet)); }
.w4-paper h2, .w4-paper h3 { color: var(--on-sheet); }
.w4-paper h2 { font: 600 2.4rem/1.05 var(--hand); }
.w4-label { font: 700 11px/1.4 var(--font); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.w4-muted { color: var(--muted); font-size: 14px; }
.w4-status { font-size: 14px; color: var(--accent); margin-top: 12px; min-height: 24px; overflow-wrap: anywhere; }
.w4-status[data-error] { color: var(--stamp); }
.w4-intro { max-width: 64ch; }
.w4-demo { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding: 12px 0; border-bottom: 1px dashed var(--line); margin-bottom: 28px; }
.w4-demo b { color: var(--accent); }
.w4-quick { margin: 26px 0 0; padding: 0; list-style: none; }
.w4-quick li { border-top: 1px solid var(--sheet-edge); padding: 12px 0; }
.w4-quick a { font-weight: 700; text-decoration: none; display: flex; justify-content: space-between; gap: 12px; }
.w4-quick a:hover { text-decoration: underline; }
.w4-quick small { display: block; margin-top: 4px; color: var(--on-sheet-muted); }
.w4-search { margin-top: 28px; max-width: 570px; }
.w4-search .input { padding-right: 54px; }
.w4-searchbox { position: relative; }
.w4-clear { position: absolute; right: 5px; top: 5px; min-width: 42px; min-height: 42px; background: transparent; border: 0; color: var(--accent); cursor: pointer; font-size: 24px; }
.w4-faq-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.w4-groups { position: sticky; top: 100px; display: grid; gap: 8px; }
.w4-groups .chip { text-align: left; border-radius: 12px; min-height: 46px; }
.w4-faq-group + .w4-faq-group { margin-top: 40px; }
.w4-faq-group h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: 0; }
.w4-faq-group .faq { margin-top: 18px; }
.w4-empty { padding: 32px; border: 1px dashed var(--accent); border-radius: var(--r); }
.w4-empty p { margin: 12px 0; }
.w4-contact { align-items: start; }
.w4-contact-address { font-size: clamp(1.05rem, 2vw, 1.5rem); font-weight: 700; overflow-wrap: anywhere; margin-top: 20px; }
.w4-contact .card { background: var(--paper); }
.w4-copy-preview { white-space: pre-wrap; overflow-wrap: anywhere; border-left: 2px solid var(--accent); padding-left: 16px; margin-top: 18px; font-size: 14px; }
.w4-legal { display: grid; gap: 20px; }
.w4-legal details { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 26px; scroll-margin-top: 90px; }
.w4-legal summary { font-weight: 800; cursor: pointer; }
.w4-legal details p { margin-top: 14px; max-width: 80ch; color: var(--muted); }
.w4-release { margin-top: 24px; display: grid; gap: 14px; }
.w4-release .badge { justify-self: start; color: #2a44c8; background: #e4e8fb; }
.w4-release strong { font-size: 1.7rem; line-height: 1.2; }
.w4-note { font: 600 1.5rem/1.2 var(--hand); color: var(--accent); margin-top: 22px; }
.w4-requirements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 32px; }
.w4-requirements p { color: var(--muted); margin-top: 10px; }
.w4-step-list { display: grid; gap: 12px; margin-top: 28px; }
.w4-step { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; background: transparent; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 16px; }
.w4-step[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); }
.w4-step b { color: var(--accent); font: 700 2rem/1 var(--hand); }
.w4-step small { display: block; color: var(--muted); }
.w4-install-picture { min-height: 310px; }
.w4-install-picture .w4-step-num { font: 600 6rem/1 var(--hand); color: var(--pen-ink); }
.w4-install-picture h3 { font: 600 2rem/1.1 var(--hand); }
.w4-install-picture p { min-height: 76px; }
.w4-warning { margin-top: 34px; }
.w4-warning details { padding: 24px; border: 1px dashed var(--accent); border-radius: var(--r); }
.w4-warning summary { font-weight: 700; cursor: pointer; }
.w4-warning p { color: var(--muted); margin-top: 16px; max-width: 78ch; }
.w4-file { font-size: 14px; max-width: 100%; }
.w4-file::file-selector-button { padding: 10px 14px; margin-right: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--accent); font: inherit; cursor: pointer; }
.w4-auth { align-items: start; }
.w4-auth-copy { padding-top: 28px; }
.w4-auth-copy h1 { max-width: 12ch; }
.w4-auth-form { background: var(--stage); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(24px, 3.5vw, 40px); }
.w4-auth-form h2 { font-size: 1.6rem; margin: 0 0 24px; }
.w4-auth-form .field:last-of-type { margin-bottom: 20px; }
.w4-password { position: relative; }
.w4-password input { padding-right: 98px; }
.w4-password button { position: absolute; right: 8px; top: 8px; min-height: 36px; padding: 4px 8px; border: 0; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; cursor: pointer; }
.w4-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; margin: 20px 0; cursor: pointer; }
.w4-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.w4-auth-form .w4-foot-link { display: block; margin-top: 20px; font-size: 14px; }
.w4-recovery-details { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px; }
.w4-recovery-details summary { color: var(--accent); font-weight: 700; cursor: pointer; }
.w4-recovery-details form { margin-top: 20px; }
.w4-recovery-details p { margin: 12px 0; }
.w4-slip { background: var(--sheet); color: var(--on-sheet); padding: 32px 32px 30px 42px; position: relative; box-shadow: var(--shadow-2); border-radius: 3px; background-image: linear-gradient(90deg, transparent 24px, var(--margin-red) 24px 25px, transparent 25px), repeating-linear-gradient(transparent 0 31px, var(--rule) 31px 32px); background-position: 0 0, 0 14px; }
.w4-slip::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; background: radial-gradient(circle at 8px 0, transparent 5px, var(--sheet) 5.5px) 0 0 / 16px 8px; }
.w4-slip h2 { color: var(--on-sheet); font: 600 2.3rem/1.1 var(--hand); margin: 0 0 16px; }
.w4-slip p { margin: 14px 0; color: var(--on-sheet); }
.w4-slip .w4-label { color: color-mix(in srgb, var(--on-sheet) 80%, var(--sheet)); }
.w4-codes { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; padding: 0; margin: 14px 0; font: 600 clamp(1.2rem, 2vw, 1.55rem)/32px var(--hand); color: var(--pen-ink); }
.w4-slip .btn { min-height: 44px; padding-inline: 18px; font-size: 14px; }
.w4-slip .button.secondary { color: var(--on-sheet); border-color: color-mix(in srgb, var(--on-sheet) 60%, var(--sheet)); }
.w4-slip .w4-status { color: #2a44c8; }
.w4-slip .w4-check input { accent-color: #2a44c8; }
.w4-slip .w4-label + p { margin-top: 6px; }
.w4-paper, .w4-slip { color-scheme: light; }
.w4 .error { color: var(--ink); font-size: 13px; }
.w4 .error:not(:empty) { border-left: 2px solid var(--stamp); padding-left: 8px; margin-top: 8px; }
.w4-auth-note { margin-top: 32px; transform: rotate(-1deg); max-width: 390px; }
.w4-auth-note h3 { font: 600 1.8rem/1.15 var(--hand); }
.w4-dashboard { padding-top: 52px; }
.w4-dashboard h1 { max-width: none; }
.w4-dashboard-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.w4-account-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 30px 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.w4-account-nav a { font-size: 14px; text-decoration: none; font-weight: 700; padding-block: 8px; }
.w4-account-nav a:hover { text-decoration: underline; }
.w4-balance { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.w4-balance-num { font: 700 clamp(4rem, 8vw, 6.8rem)/1 var(--hand); color: var(--accent); letter-spacing: -.04em; margin: 16px 0 0; }
.w4-balance-num span { font-size: .42em; letter-spacing: 0; }
.w4-balance-line { color: var(--accent); font-weight: 700; font-size: 1.1rem; margin-top: 8px; }
.w4-metrics { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 26px; }
.w4-metrics b { display: block; font-size: 1.4rem; }
.w4-metrics span { font-size: 13px; color: var(--muted); }
.w4-lots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.w4-lot { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.w4-lot b { display: block; color: var(--accent); font: 700 2.3rem/1 var(--hand); margin: 10px 0; }
.w4-lot small { color: var(--muted); }
.w4-lot progress { width: 100%; height: 6px; accent-color: var(--accent); display: block; margin: 16px 0; }
.w4-lot progress::-webkit-progress-bar { border-radius: 8px; background: var(--line); }
.w4-lot progress::-webkit-progress-value { border-radius: 8px; background: var(--accent); }
.w4-disclosure { margin-top: 24px; font-size: 14px; }
.w4-disclosure summary { color: var(--accent); cursor: pointer; font-weight: 700; }
.w4-disclosure p { margin-top: 12px; color: var(--muted); }
.w4-events { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 14px; }
.w4-event { padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.w4-event-top { display: flex; gap: 18px; justify-content: space-between; align-items: start; }
.w4-event p { margin-top: 8px; color: var(--muted); }
.w4-event[data-read] { border-style: dashed; }
.w4-device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.w4-device h3 { margin: 18px 0 10px; }
.w4-device p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.w4-device-icon { display: inline-grid; place-items: center; width: 70px; height: 52px; border: 2px solid var(--accent); border-radius: 5px; font: 600 1.6rem/1 var(--hand); color: var(--accent); box-shadow: 0 8px 0 -5px var(--accent); }
.w4-purchases { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.w4-purchase { padding: 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
.w4-purchase:last-child { border-bottom: 0; }
.w4-purchase-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
.w4-purchase p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.w4-purchase details { font-size: 14px; margin-top: 12px; }
.w4-purchase summary { cursor: pointer; color: var(--accent); }
.w4-security { align-items: start; }
.w4-security .card p { margin-top: 16px; color: var(--muted); }
.w4-danger { margin-top: 30px; border: 1px dashed var(--stamp); border-radius: var(--r); padding: 24px; }
.w4-danger summary { cursor: pointer; font-weight: 700; }
.w4-danger p { margin-top: 16px; color: var(--muted); }
.w4-danger .btn { margin-top: 8px; }
.w4-modal { width: min(520px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: var(--r-l); padding: 30px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-3); }
.w4-modal::backdrop { background: color-mix(in srgb, var(--desk) 65%, transparent); backdrop-filter: blur(5px); }
.w4-modal h2 { font-size: 1.6rem; margin-top: 0; }
.w4-modal p { margin-top: 16px; color: var(--muted); }
.w4-modal .field { margin-top: 20px; }
.w4 button:disabled { opacity: .52; cursor: not-allowed; }
.w4 button:disabled:hover { transform: none; }
html:not(.js) .w4-js { display: none !important; }
html:not(.js) .w4-install-picture { display: none; }
.w4-noscript { padding: 18px; border: 1px dashed var(--accent); border-radius: var(--r); margin: 22px 0; }
body.w4-private .phrase-box { display: none; }
@media (max-width: 960px) {
  .w4-split { gap: 32px; }
  .w4-faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .w4-groups { position: static; display: flex; flex-wrap: wrap; }
  .w4-balance { gap: 24px; }
}
@media (max-width: 760px) {
  .w4-split, .w4-balance, .w4-security { grid-template-columns: 1fr; }
  .w4-hero { padding: 44px 0 52px; }
  .w4-hero .w4-split { min-height: auto; }
  .w4-hero h1 { max-width: 15ch; }
  .w4-auth-copy { padding-top: 0; }
  .w4-auth { row-gap: 22px; }
  .w4-auth-copy { display: contents; }
  .w4-auth-copy > .eyebrow { order: 0; }
  .w4-auth-copy > h1 { order: 1; margin-top: 0; }
  .w4-auth-copy > .lead { order: 2; margin-top: 0; }
  .w4-auth-copy > .w4-muted { order: 3; margin-top: 0; }
  .w4-auth > :last-child { order: 4; }
  .w4-auth-copy > .w4-auth-note, .w4-auth-copy > .w4-quick { order: 5; margin-top: 12px; }
  .w4-requirements, .w4-lots { grid-template-columns: 1fr; }
  .w4-device-grid { grid-template-columns: 1fr; }
  .w4-desk { padding: 30px 22px; }
  .w4-paper { padding: 26px; }
  .w4-slip { padding: 28px 22px 26px 36px; }
  .w4-event-top { flex-direction: column; gap: 8px; }
  .w4-dashboard-head { align-items: start; }
  .w4-dashboard-head .btn { min-height: 44px; }
  .w4-dashboard h1 { font-size: 2.3rem; }
}
@media (max-width: 380px) {
  .w4-codes { grid-template-columns: 1fr; }
  .w4-auth-form { padding: 22px 18px; }
  .w4-desk { padding: 28px 16px; }
}
